<?php
     $PageSecurity = 3;
$title = _('View/Search Items') ;
include('includes/SQL_CommonFunctions.inc');
$_SESSION['modid']=$_REQUEST['modid'];
$_SESSION['frmid']=$_REQUEST['frmid'];
$frmpermission= $px->GetFileAccess($_SESSION['modid'],$_SESSION['frmid'],$_SESSION['ACGRoleId']);
?>
<?php 
  if($_REQUEST['Save'])
  {
  $contractor_sql="insert  into contractor_master SET contractor_name='".$_REQUEST['contractor']."',remarks='".$_REQUEST['remarks']."'";
  $contractor_res=DB_query( $contractor_sql,$db);
  
  $_SESSION['success_msg']="Saved Successfully";
  echo "<script>location.href='index.php?route=Inventory/maintenance/Contractor_Master_index&modid=".$_REQUEST['modid']."&frmid=".$_REQUEST['frmid']."'</script>";
  }
  ?>
<p><h2 align="center">CONTRACTOR MASTER</h2></p>
<form action="" method="post">
<table width="60%" border="0" cellspacing="1" cellpadding="2" align="center">
  <tr>
    <th><strong>CONTRACTOR NAME</strong></th>
    <td><input name="contractor" type="text" id="contractor">
    <th><strong> REMARKS </strong></th>
    <td><input type="text" name="remarks" id="remarks" /></td>
  </tr>
 </table>
   <div>&nbsp;</div>
   <div>&nbsp;</div>
 <table align="center">
  <tr>
  <td><input type="submit" name="Save" value="Save" /></td>
  </tr>
  </table>
  