[phpwebapp-commits] CVS: top10/templates module.php,1.2,1.3
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-09-30 07:06:06
|
Update of /cvsroot/phpwebapp/top10/templates In directory sc8-pr-cvs1:/tmp/cvs-serv19008/templates Modified Files: module.php Log Message: Adding a new project and modifying the data of an existing project. Index: module.php =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/module.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** module.php 24 Sep 2003 14:01:37 -0000 1.2 --- module.php 30 Sep 2003 07:06:02 -0000 1.3 *************** *** 31,34 **** --- 31,35 ---- } + /** Handles event 'proj_details' sent by proj_list. */ function on_proj_details($event_args) { *************** *** 40,43 **** --- 41,55 ---- } + /** Handles event 'add_new_project' sent by list_footer (of proj_list). */ + function on_add_new_project($event_args) + { + WebApp::setSVar("module", "edit_project"); + WebApp::setSVar("menu->selected", "proj_details"); + + WebApp::setSVar("edit_project->mode", "add"); + WebApp::setSVar("edit_project->proj_id", UNDEFINED); + } + + /** Handles event 'preference_list' sent by proj_details. */ function on_preference_list($event_args) { *************** *** 67,70 **** --- 79,85 ---- case "proj_details": $module_file = "proj_details/proj_details.html"; + break; + case "edit_project": + $module_file = "edit_project/edit_project.html"; break; case "preference_list": |