[phpwebapp-commits] CVS: web_app/webobjects/dbTable dbTable.html,1.4,1.4.2.1 dbTable.js,1.3,1.3.2.1
Brought to you by:
dashohoxha
Update of /cvsroot/phpwebapp/web_app/webobjects/dbTable In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5614/webobjects/dbTable Modified Files: Tag: phpwebapp-1_0 dbTable.html dbTable.js dbTable.php editRecord.css editRecord.html editRecord.js editRecord.php Log Message: All the changes that are done after release 1.0 (but without the XML parser and XHML template requirement) are placed in the branch phpwebapp-1_0, so that old applications can get them, without having to modify their templates. Index: dbTable.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/dbTable.html,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** dbTable.html 22 Aug 2003 06:47:19 -0000 1.4 --- dbTable.html 4 Oct 2004 09:09:32 -0000 1.4.2.1 *************** *** 8,25 **** <Parameter name="editable" default="false" /> - <br> <table bgcolor="#aaaaaa" border="0" cellspacing="1" cellpadding="2"> <tr> <If condition="{{editable}}"> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_rmAll('{{obj_id}}')">X</a> </th> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_add('{{obj_id}}')">A</a> </th> </If> <If condition="{{selectable}}"> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_select('{{obj_id}}', '{{UNDEFINED}}')"><img border="0" src="{{GRAPHICS}}blue_tri.png"></a> </th> </If> --- 8,26 ---- <Parameter name="editable" default="false" /> <table bgcolor="#aaaaaa" border="0" cellspacing="1" cellpadding="2"> <tr> <If condition="{{editable}}"> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_rmAll('{{obj_id}}')">X</a> </th> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_add('{{obj_id}}')">A</a> </th> </If> <If condition="{{selectable}}"> <th bgcolor="#eeeeee"> ! <a href="javascript: dbTable_select('{{obj_id}}', '{{UNDEFINED}}')"> ! <img border="0" src="{{./}}select.png"> ! </a> </th> </If> *************** *** 33,52 **** <tr> <If condition="{{editable}}"> ! <td bgcolor="{{bgcolor}}"> ! <a href="javascript: dbTable_rm('{{obj_id}}', '{{rec_id}}')">X</a> ! </td> ! <td bgcolor="{{bgcolor}}"> ! <a href="javascript: dbTable_edit('{{obj_id}}', '{{rec_id}}')">E</a> ! </td> </If> <If condition="{{selectable}}"> ! <td bgcolor="{{bgcolor}}"> ! <a href="javascript: dbTable_select('{{obj_id}}', '{{rec_id}}')"> ! <img border="0" src="{{./}}select.png"> ! </a> ! </td> </If> <Repeat rs="{{table}}->fields"> ! <td bgcolor="{{bgcolor}}"> {{{{fld_name}}}} </td> </Repeat> </tr> --- 34,53 ---- <tr> <If condition="{{editable}}"> ! <td bgcolor="{{bgcolor}}"> ! <a href="javascript: dbTable_rm('{{obj_id}}', '{{rec_id}}')">X</a> ! </td> ! <td bgcolor="{{bgcolor}}"> ! <a href="javascript: dbTable_edit('{{obj_id}}', '{{rec_id}}')">E</a> ! </td> </If> <If condition="{{selectable}}"> ! <td bgcolor="{{bgcolor}}"> ! <a href="javascript: dbTable_select('{{obj_id}}', '{{rec_id}}')"> ! <img border="0" src="{{./}}select.png"> ! </a> ! </td> </If> <Repeat rs="{{table}}->fields"> ! <td bgcolor="{{bgcolor}}"> {{{{fld_name}}}} </td> </Repeat> </tr> Index: dbTable.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/dbTable.js,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** dbTable.js 25 Aug 2003 13:18:29 -0000 1.3 --- dbTable.js 4 Oct 2004 09:09:32 -0000 1.3.2.1 *************** *** 1,21 **** //-*- mode: C; -*-//tells emacs to use mode C for this file /* ! 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,21 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file /* ! 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 */ Index: dbTable.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/dbTable.php,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** dbTable.php 25 Aug 2003 13:18:29 -0000 1.4 --- dbTable.php 4 Oct 2004 09:09:32 -0000 1.4.2.1 *************** *** 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,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 */ Index: editRecord.css =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/editRecord.css,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -C2 -d -r1.1.1.1 -r1.1.1.1.2.1 *** editRecord.css 21 Feb 2003 08:17:06 -0000 1.1.1.1 --- editRecord.css 4 Oct 2004 09:09:33 -0000 1.1.1.1.2.1 *************** *** 4,8 **** font-size: 9pt; width: 100px; - height: 15px; border-style: solid; border-top-width: 1px; --- 4,7 ---- Index: editRecord.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/editRecord.html,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** editRecord.html 22 Aug 2003 06:47:19 -0000 1.3 --- editRecord.html 4 Oct 2004 09:09:33 -0000 1.3.2.1 *************** *** 5,14 **** <Repeat rs="{{table}}->fields"> <tr> ! <td bgcolor="#eeeeee" align="right"> ! {{fld_name}}: ! </td> <td> ! <input type="text" class="editRecord_field" ! name="{{fld_name}}" value="{{{{fld_name}}}}"> </td> <tr> --- 5,12 ---- <Repeat rs="{{table}}->fields"> <tr> ! <td bgcolor="#eeeeee" align="right">{{fld_name}}:</td> <td> ! <input type="text" class="editRecord_field" ! name="{{fld_name}}" value="{{{{fld_name}}}}"> </td> <tr> Index: editRecord.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/editRecord.js,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** editRecord.js 25 Aug 2003 13:18:29 -0000 1.3 --- editRecord.js 4 Oct 2004 09:09:33 -0000 1.3.2.1 *************** *** 1,21 **** //-*- mode: C; -*-//tells emacs to use mode C for this file /* ! 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,21 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file /* ! 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 */ Index: editRecord.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/dbTable/editRecord.php,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** editRecord.php 25 Aug 2003 13:18:29 -0000 1.4 --- editRecord.php 4 Oct 2004 09:09:33 -0000 1.4.2.1 *************** *** 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,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 */ *************** *** 131,136 **** $rec_id = str_replace("\\'", "'", $rec_id); $query = "SELECT $fields FROM $table WHERE $rec_id"; ! $rs = new Recordset; ! $rs->Open($query); WebApp::addVars($rs->Fields()); } --- 131,136 ---- $rec_id = str_replace("\\'", "'", $rec_id); $query = "SELECT $fields FROM $table WHERE $rec_id"; ! $rs = new Recordset($edTbl->params['id'].'_editRecord', $query); ! $rs->Open(); WebApp::addVars($rs->Fields()); } |