[phpwebapp-commits] CVS: web_app/webobjects/tabs tabs3_items.php,1.4,1.5 tabs3.php,1.4,1.5 tabs3.js,
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-08-26 10:51:24
|
Update of /cvsroot/phpwebapp/web_app/webobjects/tabs In directory sc8-pr-cvs1:/tmp/cvs-serv27739/webobjects/tabs Modified Files: tabs3_items.php tabs3.php tabs3.js tabs3.html tabs2_items.php tabs2.php tabs2.js tabs2.html tabs1_items.php tabs1.php tabs1.js tabs1.html Log Message: converted CRLF to LF Index: tabs3_items.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3_items.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabs3_items.php 25 Aug 2003 13:18:28 -0000 1.4 --- tabs3_items.php 25 Aug 2003 14:37:19 -0000 1.5 *************** *** 1,17 **** ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * The $menu_items array contains the items of the tabs3. ! * ! * @package webobjects ! * @subpackage tabs ! */ ! $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ! ); ! ?> --- 1,17 ---- ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * The $menu_items array contains the items of the tabs3. ! * ! * @package webobjects ! * @subpackage tabs ! */ ! $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ! ); ! ?> Index: tabs3.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabs3.php 25 Aug 2003 13:18:28 -0000 1.4 --- tabs3.php 25 Aug 2003 14:37:19 -0000 1.5 *************** *** 1,81 **** ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! /** ! * @package webobjects ! * @subpackage tabs ! */ ! class tabs3 extends WebObject ! { ! function init() ! { ! $items_file = $this->params["items"]; ! $items_file = WebApp::replaceVars($items_file); ! $this->addSVar("items_file", $items_file); ! ! //set the first menu item as the selected item ! include $items_file; //read the menu items ! $first_item = key($menu_items); ! $this->addSVar("selected_item", $first_item); ! } ! ! function on_select($event_args) ! { ! $item = $event_args["item"]; ! $this->setSVar("selected_item", $item); ! } ! ! function onRender() ! { ! $this->add_items_list(); ! } ! ! function add_items_list() ! { ! $obj_vars = $this->getObjVars(); ! $obj_name = $obj_vars["obj_name"]; ! $obj_count = $obj_vars["obj_count"]; ! $rs = new EditableRS($obj_name."_items"); ! ! //read the menu items ! $items_file = $this->getSVar("items_file"); ! include $items_file; ! ! //fill the recordset ! $selected = $this->getSVar("selected_item"); ! while ( list($item, $label) = each($menu_items) ) ! { ! $css_class = ($item==$selected ? "tabs3-item-selected" : "tabs3-item"); ! $rec = array( ! "item" => $item, ! "label" => $label, ! "class" => $css_class ! ); ! $rs->addRec($rec); ! } ! ! //set the recordset to the page ! global $webPage; ! $webPage->addRecordset($rs); ! } ! } ! ?> --- 1,81 ---- ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! /** ! * @package webobjects ! * @subpackage tabs ! */ ! class tabs3 extends WebObject ! { ! function init() ! { ! $items_file = $this->params["items"]; ! $items_file = WebApp::replaceVars($items_file); ! $this->addSVar("items_file", $items_file); ! ! //set the first menu item as the selected item ! include $items_file; //read the menu items ! $first_item = key($menu_items); ! $this->addSVar("selected_item", $first_item); ! } ! ! function on_select($event_args) ! { ! $item = $event_args["item"]; ! $this->setSVar("selected_item", $item); ! } ! ! function onRender() ! { ! $this->add_items_list(); ! } ! ! function add_items_list() ! { ! $obj_vars = $this->getObjVars(); ! $obj_name = $obj_vars["obj_name"]; ! $obj_count = $obj_vars["obj_count"]; ! $rs = new EditableRS($obj_name."_items"); ! ! //read the menu items ! $items_file = $this->getSVar("items_file"); ! include $items_file; ! ! //fill the recordset ! $selected = $this->getSVar("selected_item"); ! while ( list($item, $label) = each($menu_items) ) ! { ! $css_class = ($item==$selected ? "tabs3-item-selected" : "tabs3-item"); ! $rec = array( ! "item" => $item, ! "label" => $label, ! "class" => $css_class ! ); ! $rs->addRec($rec); ! } ! ! //set the recordset to the page ! global $webPage; ! $webPage->addRecordset($rs); ! } ! } ! ?> Index: tabs3.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tabs3.js 25 Aug 2003 13:18:28 -0000 1.3 --- tabs3.js 25 Aug 2003 14:37:19 -0000 1.4 *************** *** 1,7 **** ! //-*- mode: C; -*-//tells emacs to use mode C for this file ! /* This file is part of phpWebApp. */ ! ! function tabs3_select(obj_id, item) ! { ! SendEvent(obj_id, "select", "item="+item); ! } --- 1,7 ---- ! //-*- mode: C; -*-//tells emacs to use mode C for this file ! /* This file is part of phpWebApp. */ ! ! function tabs3_select(obj_id, item) ! { ! SendEvent(obj_id, "select", "item="+item); ! } Index: tabs3.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tabs3.html 23 Feb 2003 14:23:16 -0000 1.1 --- tabs3.html 25 Aug 2003 14:37:19 -0000 1.2 *************** *** 1,12 **** ! <WebClass ID="tabs3"> ! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" /> ! <table class="tabs3-table" cellspacing="0" cellpadding="0"> ! <Repeat rs="{{obj_name}}_items"> ! <tr><td class="{{class}}"> ! <a href="javascript: tabs3_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td></tr> ! </Repeat> ! </table> ! </WebClass> --- 1,12 ---- ! <WebClass ID="tabs3"> ! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" /> ! <table class="tabs3-table" cellspacing="0" cellpadding="0"> ! <Repeat rs="{{obj_name}}_items"> ! <tr><td class="{{class}}"> ! <a href="javascript: tabs3_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td></tr> ! </Repeat> ! </table> ! </WebClass> Index: tabs2_items.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2_items.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabs2_items.php 25 Aug 2003 13:18:28 -0000 1.4 --- tabs2_items.php 25 Aug 2003 14:37:19 -0000 1.5 *************** *** 1,17 **** ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * The $menu_items array contains the items of the tabs2. ! * ! * @package webobjects ! * @subpackage tabs ! */ ! $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ! ); ! ?> --- 1,17 ---- ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * The $menu_items array contains the items of the tabs2. ! * ! * @package webobjects ! * @subpackage tabs ! */ ! $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ! ); ! ?> Index: tabs2.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabs2.php 25 Aug 2003 13:18:28 -0000 1.4 --- tabs2.php 25 Aug 2003 14:37:19 -0000 1.5 *************** *** 1,81 **** ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! /** ! * @package webobjects ! * @subpackage tabs ! */ ! class tabs2 extends WebObject ! { ! function init() ! { ! $items_file = $this->params["items"]; ! $items_file = WebApp::replaceVars($items_file); ! $this->addSVar("items_file", $items_file); ! ! //set the first menu item as the selected item ! include $items_file; //read the menu items ! $first_item = key($menu_items); ! $this->addSVar("selected_item", $first_item); ! } ! ! function on_select($event_args) ! { ! $item = $event_args["item"]; ! $this->setSVar("selected_item", $item); ! } ! ! function onRender() ! { ! $this->add_items_list(); ! } ! ! function add_items_list() ! { ! $obj_vars = $this->getObjVars(); ! $obj_name = $obj_vars["obj_name"]; ! $obj_count = $obj_vars["obj_count"]; ! $rs = new EditableRS($obj_name."_items"); ! ! //read the menu items ! $items_file = $this->getSVar("items_file"); ! include $items_file; ! ! //fill the recordset ! $selected = $this->getSVar("selected_item"); ! while ( list($item, $label) = each($menu_items) ) ! { ! $css_class = ($item==$selected ? "tabs2-item-selected" : "tabs2-item"); ! $rec = array( ! "item" => $item, ! "label" => $label, ! "class" => $css_class ! ); ! $rs->addRec($rec); ! } ! ! //set the recordset to the page ! global $webPage; ! $webPage->addRecordset($rs); ! } ! } ! ?> --- 1,81 ---- ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! /** ! * @package webobjects ! * @subpackage tabs ! */ ! class tabs2 extends WebObject ! { ! function init() ! { ! $items_file = $this->params["items"]; ! $items_file = WebApp::replaceVars($items_file); ! $this->addSVar("items_file", $items_file); ! ! //set the first menu item as the selected item ! include $items_file; //read the menu items ! $first_item = key($menu_items); ! $this->addSVar("selected_item", $first_item); ! } ! ! function on_select($event_args) ! { ! $item = $event_args["item"]; ! $this->setSVar("selected_item", $item); ! } ! ! function onRender() ! { ! $this->add_items_list(); ! } ! ! function add_items_list() ! { ! $obj_vars = $this->getObjVars(); ! $obj_name = $obj_vars["obj_name"]; ! $obj_count = $obj_vars["obj_count"]; ! $rs = new EditableRS($obj_name."_items"); ! ! //read the menu items ! $items_file = $this->getSVar("items_file"); ! include $items_file; ! ! //fill the recordset ! $selected = $this->getSVar("selected_item"); ! while ( list($item, $label) = each($menu_items) ) ! { ! $css_class = ($item==$selected ? "tabs2-item-selected" : "tabs2-item"); ! $rec = array( ! "item" => $item, ! "label" => $label, ! "class" => $css_class ! ); ! $rs->addRec($rec); ! } ! ! //set the recordset to the page ! global $webPage; ! $webPage->addRecordset($rs); ! } ! } ! ?> Index: tabs2.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tabs2.js 25 Aug 2003 13:18:28 -0000 1.3 --- tabs2.js 25 Aug 2003 14:37:19 -0000 1.4 *************** *** 1,7 **** ! //-*- mode: C; -*-//tells emacs to use mode C for this file ! /* This file is part of phpWebApp. */ ! ! function tabs2_select(obj_id, item) ! { ! SendEvent(obj_id, "select", "item="+item); ! } --- 1,7 ---- ! //-*- mode: C; -*-//tells emacs to use mode C for this file ! /* This file is part of phpWebApp. */ ! ! function tabs2_select(obj_id, item) ! { ! SendEvent(obj_id, "select", "item="+item); ! } Index: tabs2.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tabs2.html 23 Feb 2003 14:23:16 -0000 1.1 --- tabs2.html 25 Aug 2003 14:37:19 -0000 1.2 *************** *** 1,15 **** ! <WebClass ID="tabs2"> ! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" /> ! <table cellspacing="0" cellpadding="0" border="0" width="100%"> ! <tr> ! <Repeat rs="{{obj_name}}_items"> ! <td class="{{class}}"> ! <a href="javascript: tabs2_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td> ! </Repeat> ! <td class="tabs2-empty"> </td> ! </tr> ! </table> ! </WebClass> --- 1,15 ---- ! <WebClass ID="tabs2"> ! <Parameter name="items" default="{{./}}{{obj_name}}_items.php" /> ! <table cellspacing="0" cellpadding="0" border="0" width="100%"> ! <tr> ! <Repeat rs="{{obj_name}}_items"> ! <td class="{{class}}"> ! <a href="javascript: tabs2_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td> ! </Repeat> ! <td class="tabs2-empty"> </td> ! </tr> ! </table> ! </WebClass> Index: tabs1_items.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1_items.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabs1_items.php 25 Aug 2003 13:18:28 -0000 1.4 --- tabs1_items.php 25 Aug 2003 14:37:19 -0000 1.5 *************** *** 1,17 **** ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * The $menu_items array contains the items of the tabs1. ! * ! * @package webobjects ! * @subpackage tabs ! */ ! $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ! ); ! ?> --- 1,17 ---- ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * The $menu_items array contains the items of the tabs1. ! * ! * @package webobjects ! * @subpackage tabs ! */ ! $menu_items = array( ! "item1" => " Menu Item 1 ", ! "item2" => " Menu Item 2 ", ! "item3" => " Menu Item 3 ", ! "etc1" => " . . . ", ! "etc2" => " . . . " ! ); ! ?> Index: tabs1.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabs1.php 25 Aug 2003 13:18:28 -0000 1.4 --- tabs1.php 25 Aug 2003 14:37:19 -0000 1.5 *************** *** 1,81 **** ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! /** ! * @package webobjects ! * @subpackage tabs ! */ ! class tabs1 extends WebObject ! { ! function init() ! { ! $items_file = $this->params["items"]; ! $items_file = WebApp::replaceVars($items_file); ! $this->addSVar("items_file", $items_file); ! ! //set the first menu item as the selected item ! include $items_file; //read the menu items ! $first_item = key($menu_items); ! $this->addSVar("selected_item", $first_item); ! } ! ! function on_select($event_args) ! { ! $item = $event_args["item"]; ! $this->setSVar("selected_item", $item); ! } ! ! function onRender() ! { ! $this->add_items_list(); ! } ! ! function add_items_list() ! { ! $obj_vars = $this->getObjVars(); ! $obj_name = $obj_vars["obj_name"]; ! $obj_count = $obj_vars["obj_count"]; ! $rs = new EditableRS($obj_name."_items"); ! ! //read the menu items ! $items_file = $this->getSVar("items_file"); ! include $items_file; ! ! //fill the recordset ! $selected = $this->getSVar("selected_item"); ! while ( list($item, $label) = each($menu_items) ) ! { ! $css_class = ($item==$selected ? "tabs1-item-selected" : "tabs1-item"); ! $rec = array( ! "item" => $item, ! "label" => $label, ! "class" => $css_class ! ); ! $rs->addRec($rec); ! } ! ! //set the recordset to the page ! global $webPage; ! $webPage->addRecordset($rs); ! } ! } ! ?> --- 1,81 ---- ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! /** ! * @package webobjects ! * @subpackage tabs ! */ ! class tabs1 extends WebObject ! { ! function init() ! { ! $items_file = $this->params["items"]; ! $items_file = WebApp::replaceVars($items_file); ! $this->addSVar("items_file", $items_file); ! ! //set the first menu item as the selected item ! include $items_file; //read the menu items ! $first_item = key($menu_items); ! $this->addSVar("selected_item", $first_item); ! } ! ! function on_select($event_args) ! { ! $item = $event_args["item"]; ! $this->setSVar("selected_item", $item); ! } ! ! function onRender() ! { ! $this->add_items_list(); ! } ! ! function add_items_list() ! { ! $obj_vars = $this->getObjVars(); ! $obj_name = $obj_vars["obj_name"]; ! $obj_count = $obj_vars["obj_count"]; ! $rs = new EditableRS($obj_name."_items"); ! ! //read the menu items ! $items_file = $this->getSVar("items_file"); ! include $items_file; ! ! //fill the recordset ! $selected = $this->getSVar("selected_item"); ! while ( list($item, $label) = each($menu_items) ) ! { ! $css_class = ($item==$selected ? "tabs1-item-selected" : "tabs1-item"); ! $rec = array( ! "item" => $item, ! "label" => $label, ! "class" => $css_class ! ); ! $rs->addRec($rec); ! } ! ! //set the recordset to the page ! global $webPage; ! $webPage->addRecordset($rs); ! } ! } ! ?> Index: tabs1.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tabs1.js 25 Aug 2003 13:18:28 -0000 1.3 --- tabs1.js 25 Aug 2003 14:37:19 -0000 1.4 *************** *** 1,7 **** ! //-*- mode: C; -*-//tells emacs to use mode C for this file ! /* This file is part of phpWebApp. */ ! ! function tabs1_select(obj_id, item) ! { ! SendEvent(obj_id, "select", "item="+item); ! } --- 1,7 ---- ! //-*- mode: C; -*-//tells emacs to use mode C for this file ! /* This file is part of phpWebApp. */ ! ! function tabs1_select(obj_id, item) ! { ! SendEvent(obj_id, "select", "item="+item); ! } Index: tabs1.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tabs1.html 23 Feb 2003 14:23:16 -0000 1.1 --- tabs1.html 25 Aug 2003 14:37:19 -0000 1.2 *************** *** 1,15 **** ! <WebClass ID="tabs1"> ! <Parameter name="items" default="{{./}}tabs1_items.php" /> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <Repeat rs="{{obj_name}}_items"> ! <td class="{{class}}"> ! <a href="javascript: tabs1_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td> ! <td width="3"></td> ! </Repeat> ! </tr> ! </table> ! </WebClass> --- 1,15 ---- ! <WebClass ID="tabs1"> ! <Parameter name="items" default="{{./}}tabs1_items.php" /> ! <table cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <Repeat rs="{{obj_name}}_items"> ! <td class="{{class}}"> ! <a href="javascript: tabs1_select('{{obj_id}}', '{{item}}')"> ! {{label}} ! </a> ! </td> ! <td width="3"></td> ! </Repeat> ! </tr> ! </table> ! </WebClass> |