<?php 
error_reporting(0);
if($_POST[user_screen]=="Admin") 
{

?>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="4">Form Access</th>
  </tr>
  <tr>
    <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="user_creation" onclick="get_user_form(this.value);" />&nbsp;User Creation</td>
    <td width="19%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="user_type_creation" onclick="get_user_form(this.value)" />&nbsp;User Rights Creation</td>
  </tr>
  
 
</table>
<?php }
if($_POST[user_screen]=="Master Entry") 
{
?>



<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="5">Form Access</th>
  </tr>
  <tr>
    <td width="17%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="country_creation" onclick="get_user_form(this.value);" />
    &nbsp;Country Creation</td>
     <td width="15%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="continent_creation" onclick="get_user_form(this.value);" />
    &nbsp;Continent Creation</td>
    <td width="14%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="staff_creation" onclick="get_user_form(this.value)" />
    &nbsp;Staff Creation</td>
    <td width="15%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="customer_creation" onclick="get_user_form(this.value);" />
    &nbsp;Customer Creation</td>
    <td width="17%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="courier_creation" onclick="get_user_form(this.value);" />
    &nbsp;Courier Creation</td>
    <td width="22%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="measurement_creation" onclick="get_user_form(this.value);" />
    &nbsp;Unit Creation</td>
  </tr>
    <tr>
    <td width="17%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="category_creation" onclick="get_user_form(this.value)" />
    &nbsp;Category Creation</td>
    <td width="15%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="product_creation" onclick="get_user_form(this.value)" />
    &nbsp;Product Creation</td>
    <td width="14%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="invoice_creation" onclick="get_user_form(this.value)" />
    &nbsp;Invoice Type Creation</td>
      <td width="15%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="currency_creation" onclick="get_user_form(this.value)" />
    &nbsp;Currency Creation</td>
     <td width="17%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="payment_terms_creation" onclick="get_user_form(this.value)" />
    &nbsp;Payment Terms Creation</td>
      <td width="22%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="delivery_terms_creation" onclick="get_user_form(this.value)" />
    &nbsp;Delivery Terms Creation</td>
  </tr>
   <tr>
    <td width="17%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="group_creation" onclick="get_user_form(this.value)" />&nbsp;Group Creation</td>
  </tr>
</table>
<?php }
if($_POST[user_screen]=="Sales Person") 
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="5">Form Access</th>
  </tr>
  <tr>
    <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="sample_order" onclick="get_user_form(this.value);" />
    &nbsp;Sample Order Creation</td>
    <td width="9%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="commercial_order" onclick="get_user_form(this.value)" />
    &nbsp;Commercial Order Creation</td>
    <td width="10%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="order_status" onclick="get_user_form(this.value);" />
    &nbsp;Order Status</td>
  </tr>
</table>
<?php }

if($_POST[user_screen]=="Sales Manager") 
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="5">Form Access</th>
  </tr>
  <tr>
    <td width="10%"  class="label_name">
    <input type="checkbox" name="user_forms" id="user_forms" value="work_order_approval_list" onclick="get_user_form(this.value);" />
    &nbsp;Work Order Approval List</td>
    
    
    <td width="11%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="work_order_status" onclick="get_user_form(this.value);" />
    &nbsp;Work Order Status</td></td>
  </tr>
</table>
<?php }
if($_POST[user_screen]=="Factory") 
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="3">Form Access</th>
  </tr>
  <tr>
    <td width="50%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="work_order_status_list" onclick="get_user_form(this.value);" />
    &nbsp;Work Order Status List</td>
    <td width="50%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="purchase_request_entry_list" onclick="get_user_form(this.value)" />
    &nbsp;Purchase Request List</td>
  </tr>
</table>
<?php }

if($_POST[user_screen]=="Tastee Masala") 
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="4">Form Access</th>
  </tr>
  <tr>
    <td width="21%"  class="label_name"><input type="hidden" name="user_forms" id="user_forms" value="purchase_request_list" onclick="get_user_form(this.value);" />
    <input type="checkbox" name="user_forms" id="user_forms" value="purchase_request_list" onclick="get_user_form(this.value);" />
    &nbsp;Purchase Request List</td>
    
  </tr>
  
 
</table>
<?php }
if($_POST[user_screen]=="Invoice") 
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="4">Form Access</th>
  </tr>
  <tr>
    <td width="21%"  class="label_name"><input type="hidden" name="user_forms" id="user_forms" value="invoice" onclick="get_user_form(this.value);" />
    <input type="checkbox" name="user_forms" id="user_forms" value="invoice" onclick="get_user_form(this.value);" />
    &nbsp;Invoice</td>
    
  </tr>
  
 
</table>
<?php }

if($_POST[user_screen]=="Report") 
{
?>

<table width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <th colspan="4">Form Access</th>
  </tr>
  <tr>
    <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="work_order_lead_time_report" onclick="get_user_form(this.value);" />&nbsp;Work Order Lead Time Report</td>  
    <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="sales_report" onclick="get_user_form(this.value);" />&nbsp; Sales Report</td>  
     <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="Invoice_type" onclick="get_user_form(this.value);" />&nbsp; Invoice Type Report</td> 
     <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="product_wise_report" onclick="get_user_form(this.value);" />
     &nbsp;Product Wise  Report</td> 
       <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="continent_wise_report" onclick="get_user_form(this.value);" />
     &nbsp;Continent Wise  Report</td> </br>
       </tr> 
       <tr>
       <td width="21%"  class="label_name"><input type="checkbox" name="user_forms" id="user_forms" value="country_wise_report" onclick="get_user_form(this.value);" />
     &nbsp;Country Wise  Report</td> 
       </tr>
</table>
<?php }
?>