
<html>
<head>
<link rel="stylesheet" href="../css/font.css" type="text/css" />

<link href="../css/pop_up style.css" rel="stylesheet" type="text/css">
<script src="../js/job_type_ajax.js"         type="text/javascript"></script>
<script src="../js/jquery/jquery.js"         type="text/javascript"></script>
<script src="../js/shortcut.js"  type="text/javascript"></script>
<script src="../js/enter_event_ajax.js"       type="text/javascript"></script>



</head>
<?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include("../include/db.php");
if($_GET['edit_id']!='')
{
$job_type_table_display_style='style="display:inline;"';
} 
else
{
$job_type_table_display_styles='style="display:none;"';
}
 $id=$_GET[edit_id];
  $sql="select * from job_type_creation where job_id='$_GET[edit_id]'";
  $rs=mysql_query($sql);
  $rscount=mysql_num_rows($rs);
 
  while($rsdata=mysql_fetch_array($rs))
  {
	  $job_type_name=$rsdata['job_type'];
    $job_type_status=$rsdata['job_type_status'];
    $printer_production_status=$rsdata['printer_production_status'];
    $fusing_production_status=$rsdata['fusing_production_status'];
	  //$job_type_remarks=$rsdata['job_type_remarks'];
  }
?>

<style type="text/css">

.style2 {color: #FF0000}
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px;}
.headings{ font-family:verdana; font-size:10px;}
.style1 {color: #FF0000}
.txt{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size:13px;}
.types_class { 
    height: 25px; 
    width: 200px; 
    background-color: transparent;  
    border-style: solid;  
    border-width: 0px 0px 1px 0px;  
    border-color:#CCC; 
    outline:0;
	font-size:14px;
  } 
  input:focus {  border-color:#87BB07; }
   select:focus {  border-color:#87BB07; } 
   textarea:focus {  border-color:#87BB07; } 
</style>
    <table width="100%" >
  <tr>
    <td height="26" colspan="6" class="txt" style="font-size:14px;"><strong>Job Type Creation</strong></td>
  </tr>
 
<tr>
  <td width="106" height="37" align="left" class="field"></td>
  <td width="494" align="left" class="txt"><span style="color:#F00"><strong>J</strong></span>ob Type  <span class="style2 style1">*</span></td>
  
  <td width="344" class="style7"><input type="text" name="job_type_name" id="job_type_name" autofocus class="types_class" tabindex="1" onKeypress="job_type_clear_validation(this.value),enterevent(event,'job_type_remarks','job_type_name')" style="height:26px;" value="<?php if($_GET['edit_id']!='') { echo $job_type_name; } ?>"><div id="job_type_validation_div" style="color:#F00"></div></td>
  <td width="344" class="style7">&nbsp;</td>
  </tr>

  <tr>
  <td width="106" height="37" align="left" class="field"></td>

  <td width="494" align="left" class="txt"><span style="color:#F00"><strong>M</strong></span>edia Entry  <span class="style2 style1">*</span></td>
  
  <td width="344" class="style7">
    <select name="job_type_status" id="job_type_status">
    <?php if($_GET['edit_id']!='') { ?>
      <option value="<?php echo $job_type_status; ?>"><?php echo $job_type_status; ?></option>
      <option value="Active">Active</option>
    <option value="Inactive">Inactive</option>
    <?php } else {?>
      <option value="Active">Active</option>
    <option value="Inactive">Inactive</option>
      <?php }?>
</select>
    </td>
  <td width="344" class="style7">&nbsp;</td>
  </tr>

  <tr>
  <td width="106" height="37" align="left" class="field"></td>

  <td width="494" align="left" class="txt"><span style="color:#F00"><strong>P</strong></span>rinter Production  <span class="style2 style1">*</span></td>
  
  <td width="344" class="style7">
    <select name="printer_production_status" id="printer_production_status">
    <?php if($_GET['edit_id']!='') { ?>
      <option value="<?php echo $printer_production_status; ?>"><?php echo $printer_production_status; ?></option>
      <option value="Active">Active</option>
    <option value="Inactive">Inactive</option>
    <?php } else {?>
      <option value="Active">Active</option>
    <option value="Inactive">Inactive</option>
      <?php }?>
</select>
    </td>
  <td width="344" class="style7">&nbsp;</td>
  </tr>

  <tr>
  <td width="106" height="37" align="left" class="field"></td>

  <td width="494" align="left" class="txt"><span style="color:#F00"><strong>F</strong></span>using Production  <span class="style2 style1">*</span></td>
  
  <td width="344" class="style7">
    <select name="fusing_production_status" id="fusing_production_status">
    <?php if($_GET['edit_id']!='') { ?>
      <option value="<?php echo $fusing_production_status; ?>"><?php echo $fusing_production_status; ?></option>
      <option value="Active">Active</option>
    <option value="Inactive">Inactive</option>
    <?php } else {?>
      <option value="Active">Active</option>
    <option value="Inactive">Inactive</option>
      <?php }?>
</select>
    </td>
  <td width="344" class="style7">&nbsp;</td>
  </tr>

<!-- <tr>
  <td align="left" valign="top" class="field"></td>
  <td align="left" valign="top" class="style7"><span style="color:#F00"><strong>R</strong></span>emarks</td>
  <td rowspan="3" valign="top"  ><span class="style7">
    <textarea name="job_type_remarks" id="job_type_remarks" cols="40" rows="4" tabindex="2" class="types_class" onKeypress="enterevent(event,'action','job_type_remarks')" ><?php if($_GET['edit_id']!='') { echo $job_type_remarks; } ?></textarea>
  </span></td>
  <td rowspan="3"  >&nbsp;</td>
  </tr> -->

    <tr>
    <td colspan="6" >
    <span style="color:#F00" class="headings">&nbsp;&nbsp;&nbsp;</span></td>
  </tr>
        <tr>  
    <td colspan="8" class="style7" align="center"><input type="button" name="action"  id="action" tabindex="3" value="<?php if($_GET['edit_id']!='') { echo "EDIT";  } else { echo "ADD"; } ?>" class="add_button" onClick="job_type_mainlist_add(job_type_name.value,job_type_status.value,printer_production_status.value,fusing_production_status.value,'<?php echo $id;?>',this.value)" style="
    background-color: #87BB07;      color: #fff;      border: 0px;      
    padding: 9px 15px 9px;
">&nbsp;&nbsp;</td>
            </tr>
  </table>   
</html>
