,,,
7.1
7.2
7.3
7.4
7.5
7.6 htp
- - WOW. SQL PL/SQL Oracle. Oracle. PL/SQL Oracle, "PL/SQL Users Guide and Reference". Oracle , "Oracle7 Server Administration Guide".
WOW Unix.
WOW WWW - (Web -) SQL - Oracle (-Oracle-) HTML - (-Web). , WOW Oracle - PL/SQL, SQL. . Oracle .
WOW - WWW - PL/SQL. , WWW - . , PL/SQL HTML. . 7-1.
, WOW , CGI PL/SQL (. . 7-2).
htp , HTML - . htf , HTML - .
. WOW 2Mb . :
, , wowstub. wowstub Oracle SQL*Net. make Makefile. Makefile Oracle Unix:
wowstub, Oracle.
wowstub CGI WWW . wow, sh:
, 4 : wow.win, wow.iso, wow.alt, wow.koi8.
wow ( 4 ) CGI - WWW .
WOW. WWW - www.cnit.nsu.ru URL:
http://www.cnit.nsu.ru/cgi-bin/wow.win/example.test?answer=no
(. . 7-3):
URL, PL/SQL :
:
http://www.cnit.nsu.ru/cgi-bin/wow.win
http://www.cnit.nsu.ru/cgi-bin/wow.win/test
(example), www, :
http://www.cnit.nsu.ru/cgi-bin/wow.win/example.test
Oracle, . , fancy :
http://www.cnit.nsu.ru/cgi-bin/wow.win/fancy.example.test
www , GRANT SQL.
<_> = <_>
, '&':
<_1>=<_1>&<_2>= <_2>
. . , . . .
, . , .
:
http://www.cnit.nsu.ru/cgi-bin/wow.win/example.test?answer=no
WOW PL/SQL - , WWW - .
example:
Create or Replace package example is
procedure test(answer in Varchar2);
end;
/
Create or Replace package body example is
procedure test(answer in Varchar2) is
varchar2(3);
cursor c_man(ans in varchar2) is select from _ where
=ans order by ;
begin
--
htp.p('<HTML>');
--
if answer = 'no'
then
:='';
htp.htitle(' , ');
else
:='';
htp.htitle(' , ');
end if;
htp.olistopen;
--
for man in c_man() loop
--
htp.item(man.);
end loop;
--
htp.olistclose;
--
htp.p('</HTML>');
end;
end;
/
WWW Oracle :
Create table _( varchar2(30),
varchar2(14),
varchar2(20),
varchar2(3));
WOW HTML. example .
<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>
<BODY>
<H1> </H1>
<FORM
ACTION="http://www.cnit.nsu.ru/cgi-bin/wow.win/example.test">
:<INPUT NAME="answer">
<INPUT VALUE="" TYPE="SUBMIT">
</FORM>
</BODY>
</HTML>
procedure title(ctitle in varchar2) |
- ( <TITLE>) |
procedure htitle(ctitle in varchar2) |
- ( <TITLE>, <H1>) |
procedure header(nsize in integer, cheader in varchar2) |
- nsize ( <H1> ... <H6>) |
procedure url(curl in varchar2, cname in varchar2) |
- cname , curl ( <A HREF>). |
procedure gif(curl in varchar2) |
- , curl ( <IMG>). |
procedure gif(curl in varchar2, calign in varchar2) |
- , curl , calign ( <IMG>). |
procedure bold(ctext in varchar2) |
- ctext ( <B>). |
procedure italic(ctext in varchar2) |
- ctext italic ( <I>) |
procedure item(cval in varchar2) |
- cval ( <ITEM>). |
procedure formOpen(curl in varchar2) |
- curl ( <FORM>). |
procedure formHidden(cname in varchar2, cvalue in varchar2) |
- cvalue cname. |
procedure
formPassword(cname in varchar2), |
- - cname cvalue. |
procedure formField(cname
in varchar2, nsize in integer), |
- cname nsize cvalue. |
procedure formText(cname in varchar2, nrow in integer, ncol in integer) |
- ( ncol, nrow) cname. |
procedure formCheckbox(cname in varchar2) |
- checkbox cname. |
procedure formRadio(cname in varchar2, cval in varchar2) |
- radiobutton cval cname. |
procedure formSelectOpen(cname in varchar2) |
- cname. |
procedure formSelectOption(cval in varchar2) |
- cval , formSelectOpen. |
procedure formSelectClose |
- , formSelectOpen. |
procedure formDo(cname in varchar2) |
- SUBMIT cname. |
procedure formDo |
- SUBMIT 'Submit'. |
procedure formUndo(cname in varchar2) |
- RESET cname. |
procedure formUndo |
- RESET 'Reset'. |
procedure formClose | - . |
: |
|
procedure print (cbuf in
varchar2), |
- . |
print - p: |
|
procedure p (cbuf in
varchar2), |
|
, : |
|
procedure line |
- ( <HR>). |
procedure para |
- ( <P>). |
procedure nl |
- ( <BR>). |
procedure item |
- ( <LI>). |
procedure ulistOpen |
- ( <UL>). |
procedure ulistClose |
- ( </UL>). |
procedure olistOpen |
- ( <OL>). |
procedure olistClose |
- ( </OL>). |
procedure dlistOpen |
- ( <DL>). |
procedure dlistClose |
- ( </DL>). |
procedure dterm |
- ( <DT>). |
procedure ddef |
- ( <DD>). |
procedure preOpen | - . |
procedure preClose | - . |
Copyright (c) 2024 Stud-Baza.ru , , , .