[phpwebapp-commits] CVS: books/templates/books book_list.php,NONE,1.1 books.php,1.1.1.1,1.2 books.ht
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2005-11-03 10:43:42
|
Update of /cvsroot/phpwebapp/books/templates/books In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4955/templates/books Modified Files: books.php books.html Added Files: book_list.php Log Message: --- NEW FILE: book_list.php --- <?php /** * This file contains an array with the list of books and their titles. */ $arr_books = array( "phpwebapp_manual" => "WebApp Manual", "phpwebapp_tutorial" => "WebApp Tutorial", "phpwebapp_design" => "WebApp Design", "docbookwiki_guide" => "DocBookWiki", ); ?> Index: books.php =================================================================== RCS file: /cvsroot/phpwebapp/books/templates/books/books.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** books.php 3 Nov 2005 08:11:51 -0000 1.1.1.1 --- books.php 3 Nov 2005 10:43:32 -0000 1.2 *************** *** 26,33 **** { $rs = new EditableRS("books"); ! include TPL.'menu/book_list.php'; ! while (list($id, $title) = each($arr_books)) { ! $rs->addRec(compact('id', 'title')); } --- 26,33 ---- { $rs = new EditableRS("books"); ! include dirname(__FILE__).'/book_list.php'; ! while (list($id, $label) = each($arr_books)) { ! $rs->addRec(compact('id', 'label')); } Index: books.html =================================================================== RCS file: /cvsroot/phpwebapp/books/templates/books/books.html,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** books.html 3 Nov 2005 08:11:51 -0000 1.1.1.1 --- books.html 3 Nov 2005 10:43:32 -0000 1.2 *************** *** 1,8 **** <webbox id="books"> ! <select name="books" onchange="select_book(this)"> ! <repeat rs="books"> ! <var name="sel">('{{id}}'=='{{doocbook->book_id}}' ? 'selected' : '')</var> ! <option value="{{id}}" selected="{{sel}}">{{title}}</option> ! </repeat> ! </select> </webbox> --- 1,7 ---- <webbox id="books"> ! <include src="{{LISTBOX_PATH}}listbox.html" /> ! <webobject class="listbox" name="books" rs="books" ! value="{{docbook->book_id}}" ! width="-------------------------" ! onchange="select_book(this)" /> </webbox> |