New record saved
\n"; $launchid=stripslashes(pgdatatrim(relatedata($dbsocket,"Syslog_TLaunch","TLaunch_ID","TLaunch_LongDesc='$longdesc'"))); $action = "Modify"; } if ( ( $subaction == 2 ) && ( $action == "Save" ) && ( idexist($dbsocket,"Syslog_TLaunch","TLaunch_ID",$launchid) ) && ( pgdatatrim($shortdesc) != "" ) ) { updatelaunch($dbsocket,$launchid,$shortdesc,$longdesc,$program); $actiontext="Record updated
\n"; } if ( ( $DeleteID == 1 ) && ( $subaction == 3 ) && ( $action == "Delete" ) && ( idexist($dbsocket,"Syslog_TLaunch","TLaunch_ID",$launchid) ) ) { if ( droplaunch($dbsocket,$launchid) ) { $actiontext="Record deleted
\n"; } else { $actiontext="Delete FAILED!
\n"; } $action="Deleted"; } if ( $action == "Add" ) { $subaction = 1; $launchid = ""; } if ( $action == "Modify" ) { if ( idexist($dbsocket,"Syslog_TLaunch","TLaunch_ID",$launchid) ) { $subaction = 2; $shortdesc=stripslashes(pgdatatrim(relatedata($dbsocket,"Syslog_TLaunch","TLaunch_ShortDesc","TLaunch_ID=$launchid"))); $longdesc=stripslashes(pgdatatrim(relatedata($dbsocket,"Syslog_TLaunch","TLaunch_LongDesc","TLaunch_ID=$launchid"))); $program=stripslashes(pgdatatrim(relatedata($dbsocket,"Syslog_TLaunch","TLaunch_Program","TLaunch_ID=$launchid"))); } else { dbdisconnect($sec_dbsocket); dbdisconnect($dbsocket); exit; } } if ( $action == "Delete" ) { if ( idexist($dbsocket,"Syslog_TLaunch","TLaunch_ID",$launchid) ) { $subaction = 3; $shortdesc=stripslashes(pgdatatrim(relatedata($dbsocket,"Syslog_TLaunch","TLaunch_ShortDesc","TLaunch_ID=$launchid"))); } else { dbdisconnect($sec_dbsocket); dbdisconnect($dbsocket); exit; } } do_header($PageTitle, 'launch'); openform("launch.php","post",2,1,0); echo "Equipment Type
\n"; if ( $subaction != 3 ) { echo "1. Enter Short Description(ie. HP Service Desk): "; formfield("shortdesc","text",3,1,1,30,30,$shortdesc); echo "1. Enter Long Description: "; formfield("longdesc","text",3,1,1,40,250,$longdesc); echo "1. Enter Program w/ Arguments: "; formfield("program","text",3,1,1,40,128,$program); formsubmit("Save",3,1,0); formfield("subaction","hidden",3,1,0,200,200,$subaction); if ( $launchid != "" ) { formfield("launchid","hidden",3,1,0,200,200,$launchid); } closeform(); } else { if ( ( $subaction == 3 ) && ( $action == "Delete" ) ) { openform("launch.php","post",2,1,0); formfield("launchid","Hidden",3,1,0,200,200,$launchid); formfield("subaction","Hidden",3,1,0,10,10,$subaction); echo "Are you sure you want to delete $shortdesc? "; php?> Yes No
Page loaded in " . ($endtime - $begintime) . " seconds.
\n"; do_footer(); dbdisconnect($sec_dbsocket); dbdisconnect($dbsocket); php?>