[phpwebapp-commits] CVS: web_app/webobjects/tabs tabs3.php,1.5,1.6 tabs2.php,1.5,1.6 tabs1.php,1.5,1
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-22 16:26:20
|
Update of /cvsroot/phpwebapp/web_app/webobjects/tabs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9224/webobjects/tabs Modified Files: tabs3.php tabs2.php tabs1.php Log Message: reformated and modified the copyleft notice Index: tabs3.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs3.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tabs3.php 25 Aug 2003 14:37:19 -0000 1.5 --- tabs3.php 22 Jul 2004 16:25:35 -0000 1.6 *************** *** 1,21 **** <?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 */ --- 1,22 ---- <?php /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! 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 */ *************** *** 28,81 **** { 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); ! } } ?> --- 29,82 ---- { 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: tabs2.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs2.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tabs2.php 25 Aug 2003 14:37:19 -0000 1.5 --- tabs2.php 22 Jul 2004 16:25:35 -0000 1.6 *************** *** 1,21 **** <?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 */ --- 1,22 ---- <?php /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! 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 */ *************** *** 28,81 **** { 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); ! } } ?> --- 29,82 ---- { 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: tabs1.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/tabs/tabs1.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** tabs1.php 25 Aug 2003 14:37:19 -0000 1.5 --- tabs1.php 22 Jul 2004 16:25:35 -0000 1.6 *************** *** 1,21 **** <?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 */ --- 1,22 ---- <?php /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! 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 */ *************** *** 28,81 **** { 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); ! } } ?> --- 29,82 ---- { 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); ! } } ?> |