Update of /cvsroot/phpwebapp/top10/templates/proj_details
In directory sc8-pr-cvs1:/tmp/cvs-serv28809/templates/proj_details
Modified Files:
Tag: maisp
proj_details.php proj_details.db
Log Message:
small fixes
Index: proj_details.php
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/proj_details.php,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -d -r1.2.2.1 -r1.2.2.2
*** proj_details.php 14 Jan 2004 16:25:59 -0000 1.2.2.1
--- proj_details.php 15 Jan 2004 14:53:42 -0000 1.2.2.2
***************
*** 31,34 ****
--- 31,43 ----
{
$proj_id = $event_args["proj_id"];
+
+ //check whether there is such a project
+ $rs = WebApp::openRS("get_project_data", $event_args);
+ if ($rs->EOF())
+ {
+ WebApp::message("There is no project with id '$proj_id'.");
+ return;
+ }
+
$this->setSVar("proj_id", $proj_id);
}
Index: proj_details.db
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_details/proj_details.db,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -C2 -d -r1.2 -r1.2.2.1
*** proj_details.db 24 Sep 2003 14:01:36 -0000 1.2
--- proj_details.db 15 Jan 2004 14:53:42 -0000 1.2.2.1
***************
*** 1,5 ****
<!--# -*-SQL-*- #tell emacs to use SQL mode #-->
! <Recordset ID="get_project_data">
<Query>
SELECT * FROM proj_list
--- 1,5 ----
<!--# -*-SQL-*- #tell emacs to use SQL mode #-->
! <Recordset ID="get_project_data" type="DynamicRS">
<Query>
SELECT * FROM proj_list
|