File manager - Edit - /home/autoph/public_html/portal/includes/pms_addnewdepartment.php
Back
<html> <head> <title>THE AUTOHUB GROUP</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/screen_white.css"> <link rel="stylesheet" href="ajs/vendors/jQueryUI/jquery-ui.css"> <script src="ajs/vendors/jQueryUI/jquery-1.12.4.js"></script> <script src="ajs/vendors/jQueryUI/jquery-ui.js"></script> </head> <?php if(isset($_POST['SaveRecord'])){ $dealName =$_POST['deptName']; $deptCode =$_POST['deptCode']; $dLine =$_POST['dLine']; $dNumber=$_POST['dNumber']; $dEmail=$_POST['dEmail']; $today = date("m/d/Y"); $diff = date_diff(date_create($dateOfBirth), date_create($today)); $newAge = $diff->format('%y'); $sql="INSERT INTO `departments` (`id`,`code`,`name`,`trunk_line`,`fax_number`,`email`,`date_created`) VALUES('','$deptCode','$dealName','$dLine','$dNumber', '$dEmail','$toDate')"; if(!mysql_query($sql)){ die('Error: ' . mysql_error()); }else{ echo "<div class='ContinueMSG'>"; echo " <h3 class='lightGradient' style='width:99%;font-family:Calibri Light;font-size:18px;font-weight:bold;padding-left:5px;padding-top:2px;'>NEW RECORD SAVED...</h3>"; echo "<div style='top:3px;left:95.5%;position:absolute;z-index:3;background:transparent'> <a href='main_new.php?view=102&sid=P1&sview=100&tab=1#id-0' > <center>X</center> </a> </div>"; echo " <br><br><h2 style='margin-top:2px;text-align:center;width:100%;font-family:Calibri Light;font-size:16px;font-weight:normal'>NEW DEPARTMENT CREATED...</h2> <p style='font-family:Calibri Light;font-size:14px;color:#0B610B;font-weight:bold;padding-top:0px'> <br><br> <center><a href='main_new.php?view=102&sid=P1&sview=100&tab=1#id-0' ><input type='button' class='button' value='CLOSE' style='width:80px;'></a></center> </a> </p>"; echo "</div>"; } } ?> <body> <center> <div style='width:98%;border:1px solid white;height:25px;text-align:left;padding-left:10px;padding-top:5px;font-family:Calibri;font-size:14px;color:#000;text-shadow:1px 1px 5px #fff' class='lightGradient'>DEPARTMENT INFORMATION <div style='position:relative;float:right;font-family:Calibri;font-size:12px;margin-right:10px'> </div> </div> <div style='width:98%;border:1px solid #E6E6E6;height:320px;padding:5px'> <form action='' method='POST'> <table style='width:100%;border:1px solid white'> <tr style='background:white;border:1px solid white'> <td valign='top' style='background:white;border:1px solid white;border-right:1px solid white;width:70%'> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:gray;font-weight:normal'> <ABBR title='DEPARTMENT CODE'> <br><input REQUIRED class='textbox' type="text" placeholder="DEPARTMENT CODE" name="deptCode" style='background:white;width:20%;min-width:220px;margin-top:5px'></ABBR> </p> </div> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:gray;font-weight:normal'> <ABBR title='DEPARTMENT NAME'> <br><input REQUIRED class='textbox' type="text" placeholder="DEPARTMENT NAME" name="deptName" style='background:white;width:50%;min-width:220px;margin-top:5px'></ABBR> </p> </div> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold'> <ABBR title='TRUNKLINE NUMBER'><input REQUIRED class='textbox' type="text" placeholder="TRUNKLINE NUMBER" name="dLine" style='background:white;min-width:200px;margin-top:5px'></ABBR> <ABBR title='FAX NUMBER'><input class='textbox' type="text" placeholder="FAX NUMBER" name="dNumber" style='background:white;width:150px;margin-top:5px'></ABBR> <ABBR title='DEPT E-MAIL'><input REQUIRED class='textbox' type="text" placeholder="DEPARTMENT E-MAIL" name="dEmail" style='background:white;width:300px;margin-top:5px'></ABBR> </p> </div> </td> </tr> </table> <div align='right' class="form-group" style='padding:10px'> <input type='submit' class='submit' name='SaveRecord' value='Save Record'> <input type='reset' class='submit' name='Clear' value='Clear'> <a href='main_new.php?view=102&sid=P1&sview=100&tab=1#id-0'><input type='button' class='submit' name='Exit' value='Exit'></a> </div> </form> </div> </center> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings