[phpwebapp-commits] CVS: top10/templates/confirm confirm.php,1.2,1.3
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2003-12-25 15:35:50
|
Update of /cvsroot/phpwebapp/top10/templates/confirm In directory sc8-pr-cvs1:/tmp/cvs-serv22571/templates/confirm Modified Files: confirm.php Log Message: A user authorized by site admin can edit the details of a project. Index: confirm.php =================================================================== RCS file: /cvsroot/phpwebapp/top10/templates/confirm/confirm.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** confirm.php 26 Sep 2003 15:32:21 -0000 1.2 --- confirm.php 25 Dec 2003 15:35:46 -0000 1.3 *************** *** 80,85 **** { case 'expired': ! $msg = "This request is older than 24 hours and it has expired.\n" ! . "Please make your changes again and make another request."; WebApp::message($msg); break; --- 80,84 ---- { case 'expired': ! $msg = "This request is older than 24 hours and it has expired."; WebApp::message($msg); break; *************** *** 95,98 **** --- 94,98 ---- $request = $rs->Fields(); $this->complete_request($request); + WebApp::execDBCmd("close_request"); break; *************** *** 111,114 **** --- 111,120 ---- switch ($type) { + case 'edit_proj_details': + $username = $request["username"]; + $proj_id = $request["data"]; + $this->edit_project_details($username, $proj_id); + break; + case 'save_pref_list': $username = $request["username"]; *************** *** 126,129 **** --- 132,144 ---- } + function edit_project_details($username, $proj_id) + { + //display the 'edit_project' module + WebApp::setSVar("username", $username); + WebApp::setSVar("edit_project->mode", "edit"); + WebApp::setSVar("edit_project->proj_id", $proj_id); + $this->setSVar("file", "{{TPL_PATH}}edit_project/edit_project.html"); + } + /** * First update the points of the relevant projects, then *************** *** 146,152 **** //save the new list $this->save_user_prefs($username, $pref_list); - - //close the request - WebApp::execDBCmd("close_request"); //display the new preference list --- 161,164 ---- |