[phpwebapp-commits] CVS: documentation/templates/webobjects/pages xlistbox.txt,1.1,1.2 tabs.txt,1.1,
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-08-20 08:13:24
|
Update of /cvsroot/phpwebapp/documentation/templates/webobjects/pages In directory sc8-pr-cvs1:/tmp/cvs-serv10107/templates/webobjects/pages Modified Files: xlistbox.txt tabs.txt table.txt listbox.txt leftMenu.txt form.txt folderListing.txt dbTable.txt datebox.txt Log Message: tabs converted to spaces, improvments in templates and stylesheets Index: xlistbox.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/xlistbox.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** xlistbox.txt 23 Feb 2003 14:42:40 -0000 1.1 --- xlistbox.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 7,20 **** <WebObject Class="xlistbox" Name="office" ! mainlist="true" ! sublist="department" ! onchange="alert(this.options[this.slectedIndex].text)" /> <WebObject Class="xlistbox" Name="department" ! sublist="users" ! onchange="alert(this.options[this.slectedIndex].text)" /> <WebObject Class="xlistbox" Name="user" ! onchange="alert(this.options[this.slectedIndex].text)" /> The 'mainlist' attribute, when it is true, tells that this is the first --- 7,20 ---- <WebObject Class="xlistbox" Name="office" ! mainlist="true" ! sublist="department" ! onchange="alert(this.options[this.slectedIndex].text)" /> <WebObject Class="xlistbox" Name="department" ! sublist="users" ! onchange="alert(this.options[this.slectedIndex].text)" /> <WebObject Class="xlistbox" Name="user" ! onchange="alert(this.options[this.slectedIndex].text)" /> The 'mainlist' attribute, when it is true, tells that this is the first *************** *** 35,40 **** <Recordset ID="xlistbox::office"> <Query> ! SELECT off_id AS id, name AS label ! FROM offices </Query> </Recordset> --- 35,40 ---- <Recordset ID="xlistbox::office"> <Query> ! SELECT off_id AS id, name AS label ! FROM offices </Query> </Recordset> *************** *** 42,47 **** <Recordset ID="xlistbox::department"> <Query> ! SELECT off_id AS master_id, dept_id AS id, name AS label ! FROM departments </Query> </Recordset> --- 42,47 ---- <Recordset ID="xlistbox::department"> <Query> ! SELECT off_id AS master_id, dept_id AS id, name AS label ! FROM departments </Query> </Recordset> *************** *** 49,54 **** <Recordset ID="xlistbox::user"> <Query> ! SELECT department AS master_id, user_id AS id, username AS label ! FROM users </Query> </Recordset> --- 49,54 ---- <Recordset ID="xlistbox::user"> <Query> ! SELECT department AS master_id, user_id AS id, username AS label ! FROM users </Query> </Recordset> Index: tabs.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/tabs.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tabs.txt 23 Feb 2003 14:42:40 -0000 1.1 --- tabs.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 5,9 **** <WebObject Class="tabs1" Name="su" ! items="{{#./}}su_menu_items.php" /> The attribute 'items' is a PHP file that contains the items of the menu, --- 5,9 ---- <WebObject Class="tabs1" Name="su" ! items="{{#./}}su_menu_items.php" /> The attribute 'items' is a PHP file that contains the items of the menu, *************** *** 14,22 **** */ $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ); ?> --- 14,22 ---- */ $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ); ?> Index: table.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/table.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** table.txt 23 Feb 2003 14:42:40 -0000 1.1 --- table.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 6,12 **** <WebObject Class="table" Name="offices" ! table="offices" ! fields="off_id,name" ! where="off_id < 10" /> If attribute 'table' is the name of the table that will be displayed. --- 6,12 ---- <WebObject Class="table" Name="offices" ! table="offices" ! fields="off_id,name" ! where="off_id < 10" /> If attribute 'table' is the name of the table that will be displayed. Index: listbox.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/listbox.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** listbox.txt 23 Feb 2003 14:42:40 -0000 1.1 --- listbox.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 19,24 **** <WebObject Class="listbox" Name="country" rs = "rs_id" ! onchange = "alert(this.options[this.selectedIndex].text)" ! width = "---------------" /> The attribute "rs" is optional. Its default value (if not specified) is --- 19,24 ---- <WebObject Class="listbox" Name="country" rs = "rs_id" ! onchange = "alert(this.options[this.selectedIndex].text)" ! width = "---------------" /> The attribute "rs" is optional. Its default value (if not specified) is *************** *** 33,39 **** This WebClass uses a <select> tag like this: ! <select name="{{#obj_name}}" onchange="{{#onchange}}"> ! . . . . . ! </select> So, this should be kept in mind when accessing the selected value and when giving an initial value. --- 33,39 ---- This WebClass uses a <select> tag like this: ! <select name="{{#obj_name}}" onchange="{{#onchange}}"> ! . . . . . ! </select> So, this should be kept in mind when accessing the selected value and when giving an initial value. Index: leftMenu.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/leftMenu.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** leftMenu.txt 23 Feb 2003 14:42:40 -0000 1.1 --- leftMenu.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 6,10 **** <WebObject Class="leftMenu" Name="su" ! items="{{#./}}su_menu_items.php" /> The attribute 'items' is a PHP file that contains the items of the menu, --- 6,10 ---- <WebObject Class="leftMenu" Name="su" ! items="{{#./}}su_menu_items.php" /> The attribute 'items' is a PHP file that contains the items of the menu, *************** *** 15,23 **** */ $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ); ?> --- 15,23 ---- */ $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ); ?> Index: form.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/form.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** form.txt 23 Feb 2003 14:42:40 -0000 1.1 --- form.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 9,17 **** <WebBox ID="editProject"> ! <form name="bigForm"> ! . . . . . . . . ! <!--# many <input>s, <select>s, etc. here #--> ! . . . . . . . . ! </form> </WebBox> ---------------------------------------------- --- 9,17 ---- <WebBox ID="editProject"> ! <form name="bigForm"> ! . . . . . . . . ! <!--# many <input>s, <select>s, etc. here #--> ! . . . . . . . . ! </form> </WebBox> ---------------------------------------------- *************** *** 21,25 **** class editProject extends formWebObj { ! . . . . . . . . . . } ?> --- 21,25 ---- class editProject extends formWebObj { ! . . . . . . . . . . } ?> *************** *** 28,32 **** class formWebObj extends WebObject { ! . . . . . . . . . . . } ?> --- 28,32 ---- class formWebObj extends WebObject { ! . . . . . . . . . . . } ?> Index: folderListing.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/folderListing.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** folderListing.txt 23 Feb 2003 14:42:40 -0000 1.1 --- folderListing.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 67,71 **** contains it: ! <Include SRC="{{#FOLDERLISTING_PATH}}folderListing.html" /> ({{#FOLDERLISTING_PATH}} is declared by the framework itself) --- 67,71 ---- contains it: ! <Include SRC="{{#FOLDERLISTING_PATH}}folderListing.html" /> ({{#FOLDERLISTING_PATH}} is declared by the framework itself) Index: dbTable.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/dbTable.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dbTable.txt 23 Feb 2003 14:42:40 -0000 1.1 --- dbTable.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 6,14 **** <WebObject Class="dbTable" Name="offices" ! table = "offices" ! fields = "off_id,name" ! where = "off_id < 10" ! editable = "true" ! selectable="true" /> The attribute 'table' is the name of the table that will be displayed. --- 6,14 ---- <WebObject Class="dbTable" Name="offices" ! table = "offices" ! fields = "off_id,name" ! where = "off_id < 10" ! editable = "true" ! selectable="true" /> The attribute 'table' is the name of the table that will be displayed. Index: datebox.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/pages/datebox.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** datebox.txt 23 Feb 2003 14:42:40 -0000 1.1 --- datebox.txt 20 Aug 2003 07:31:54 -0000 1.2 *************** *** 10,16 **** <WebObject Class="datebox" Name="information_date" ! value="{{#info_date}}" ! format="YYYY-MM-DD" ! onchange="check_selected_date(this)" /> <WebObject Class="datebox" Name="proposal_date" /> --- 10,16 ---- <WebObject Class="datebox" Name="information_date" ! value="{{#info_date}}" ! format="YYYY-MM-DD" ! onchange="check_selected_date(this)" /> <WebObject Class="datebox" Name="proposal_date" /> |