0byt3m1n1
Path:
C:
/
GEOMATICS 23-01-2021
/
LAN
/
CPMS code
/
CPMS
/
USER
/
[
Home
]
File: create_project.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>create project |online project financial management system for CWRDM</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../style.css" rel="stylesheet" type="text/css" /> <link rel="icon" href="../images/icon.ico" /> <style type="text/css"> <!-- #apDiv1 { position:absolute; width:67px; height:41px; z-index:1; left: 671px; top: 659px; } #apDiv2 { position:absolute; width:490px; height:383px; z-index:2; left: 207px; top: 303px; } #apDiv3 { position:absolute; width:64px; height:36px; z-index:3; left: 746px; top: 304px; } .style2 {font-size: 14px} .style3 {font-size:12px; font-weight:bold; font-family: Arial;} --> </style> </head> <body> <p> <!--<div id="headerbg"> <div id="headerblank">--> <?php require_once "createproject_ctrl.php"; include("include/first_userheader.php"); require_once"../lib/config.php"; ?> <p> <p> <p> <p> <p> <p><span class="msgText"> <?php if (isset($message)) echo $message;?> </span> <form action="createproject_ctrl.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> </p> <p align="center" class="projectboldtxt style2"> </p> <p align="center" class="projectboldtxt style2">Add Project Details </p> <div align="center"></div> <table width="486" align="center"> <tr> <th width="145" height="25" scope="row"><div align="left" class="projectboldtxt">Project Code</div></th> <td width="218"><label> <input type="text" name="txtprojectcode" id="txtprojectcode" value="<?php if ($projectcode!="") { echo $projectcode; } ?>" /> </label></td> <td width="107"><span class="valText"> <?php if(isset($error['code_null'])) { echo $error['code_null']; } if(isset($error['project_exist'])) { echo $error['project_exist']; } ?> </span></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Project Title</div></th> <td><label> <input type="text" name="txtprojecttitle" id="txtprojecttitle" value="<?php if ($projecttitle!="") { echo $projecttitle; } ?>" /> </label></td> <td class="valText"><?php if(isset($error['projecttitle'])) { echo $error['projecttitle']; }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Principle Investigator</div></th> <td><label> <select name="cmbpi" id="cmbpi"> <?php for($j=1;$j<=$pi_loop_var;$j++) {?> <option value="<?php echo $j; ?>"><?php echo $acc_name_array[$j]; ?></option> <?php } ?> </select> </label></td> <td class="valText"><?php if(isset($error['pinvestigator'])) { echo $error['pinvestigator']; }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Investigators</div></th> <td><label><textarea name="txtinvestigator" id="txtinvestigator" cols="22" rows="3"><?php if($investigators!="")echo $investigators;?></textarea></label></td> <td class="valText"><?php if(isset($error['investigators'])) { echo $error['investigators']; } ?> </td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Fund Type</div></th> <td><select name="cmbfundtype" id="cmbfundtype"> <?php for($j=0;$j<=$fund_array_count;$j++) {?> <option value="<?php echo $j; ?>"<?php if(@$fund_type==$j) { echo "selected='selected'"; } ?> ><?php echo $fund_array[$j]; ?></option><?php } ?> </select></td> <td class="valText"> </td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Fund Agency</div></th> <td><label> <input type="text" name="txtfund" id="txtfund" value="<?php if ($fund!="") { echo $fund; } ?>" /> </label></td> <td class="valText"><?php if(isset($error['fundagency'])) { echo $error['fundagency']; }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Duration</div></th> <td><label> <input type="text" name="txtduration" id="txtduration" value="<?php if ($duration!="") { echo $duration; } ?>"/> </label></td> <td class="valText"><?php if(isset($error['duration'])) { echo $error['duration']; }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Start Date</div></th> <td><label></label> <label></label> <table width="200" border="0"> <tr> <td><select name="cmbStartdd" id="cmbStartdd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$start_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select></td> <td><select name="cmbStartmm" id="cmbStartmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$start_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select></td> <td><input name="txtStartyy" type="text" id="txtStartyy" value="<?php if ($start_yy!="") { echo $start_yy; } ?>" size="5" maxlength="4" /></td> </tr> </table></td> <td class="valText"><?php if(isset($error['startd_null'])) { echo $error['startd_null']; } else if(isset($error['sd_numeric'])) { echo $error['sd_numeric']; } ?> </td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Date of Completion</div></th> <td><table width="200" border="0"> <tr> <td><select name="cmbEnddd" id="cmbEnddd"> <?php for ($i=1; $i<=31; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$end_dd==$i) { echo "selected='selected'"; } ?> ><?php echo $i ?></option> <?php } ?> </select></td> <td><select name="cmbEndmm" id="cmbEndmm"> <?php for($i=1; $i<=12; $i++) { ?> <option value="<?php echo $i; ?>"<?php if(@$end_mm==$i) { echo "selected='selected'"; } ?> ><?php echo $month[$i]; ?></option> <?php } ?> </select></td> <td><input name="txtEndyy" type="text" id="txtEndyy" value="<?php if ($end_yy!="") { echo $end_yy; } ?>" size="5" maxlength="4" /></td> </tr> </table></td> <td class="valText"><?php if(isset($error['end_year_null'])) { echo $error['end_year_null']; } else if(isset($error['ed_numeric'])) { echo $error['ed_numeric']; } ?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Abstract</div></th> <td><label><textarea name="txtabstract" id="txtabstract" cols="30" rows="3"><?php if ($abstract!="") { echo $abstract; } ?></textarea></label></td> <td class="valText"><?php // // if(isset($error['abstract'])) // { // echo $error['abstract']; // }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Objective</div></th> <td><label><textarea name="txtobjective" id="txtobjective" cols="30" rows="3"><?php if ($objective!="") { echo $objective; } ?></textarea></label></td> <td class="valText"><?php // if(isset($error['objective'])) // { // echo $error['objective']; // }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left">Project Outlay</div></th> <td><label> <input type="text" name="txtproject_overlay" id="txtproject_overlay" value="<?php if ($project_overlay!="") { echo $project_overlay; } ?>" /> </label></td> <td class="valText"><?php if(isset($error['project_overlay_null'])) { echo $error['project_overlay_null']; }?></td> </tr> <tr> <th class="projectboldtxt" scope="row"><div align="left" class="">Project Proposel</div></th> <td><label> <input type="file" name="projectfilefield" id="projectfilefield" /> </label> <label></label></td> <td class="valText"><?php // if(isset($error['fileformat'])) // { // echo $error['fileformat']; // } // ?> </td> </tr> <tr> <th scope="row"> </th> <td><label> <span class="projectboldtxt"> <input type="submit" name="save" id="save" value="SAVE" /> </span></label> <label class="projectboldtxt"><span class="style3"><a href="search_project.php" class="projectboldtxt"> EDIT or Delete </a></span></label> <span class="projectboldtxt"> <label></label> </span> <label class="projectboldtxt"><a href="Register.php" class="projectboldtxt style2">Back</a></label></td> <td> </td> </tr> </table> <p> </p> </form> <p> <?php include "include/footer.php"; ?> </p> </body> </html>