
<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="customer_status_creation_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>

<script>
shortcut.add("Alt+m",function() 
{ 
	document.getElementById("customer_status").focus();
});

shortcut.add("Alt+r",function() 
{
	document.getElementById("designer_remarks").focus();
});


</script>

</head>
<?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include("../include/db.php");
$user_id = 1;
if($_GET['edit_id']!='')
{
$customer_status_table_display_styles='style="display:inline;"';
} 
else
{
$customer_status_table_display_styles='style="display:none;"';
}
 $id=$_GET[edit_id];
  $sql="select * from customer_status_creation where id='$_GET[edit_id]'";
  $rs=mysql_query($sql);
  $rscount=mysql_num_rows($rs);
 
  while($rsdata=mysql_fetch_array($rs))
  {
	    $customer_status=$rsdata['customer_status'];
   $status_type=$rsdata['status_type'];
  }
?>
<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>Customer Status Creation</strong></td>
  </tr>
  <tr>

  </tr>
 <tr>
  <td align="left" valign="top" class="field"></td>
  <td align="left" valign="top" class="style7"><span style="color:#F00"><strong>C</strong></span>ustomer Status Days <span class="txt"> <span class="style2 style1">*</span></span></td>
  <td valign="top"><span class="style7">
<input type="text" name="customer_status" id="customer_status"  class="types_class" tabindex="1" onKeypress="enterevent(event,'customer_status'),customer_status_validation_clear(this.value)" style="height:26px;" value="<?php if($_GET['edit_id']!='') { echo $customer_status; } ?>">
  </span><div id="customer_status_particulas_validation_div" style="color:#F00"></div></td>
  <td rowspan="3"  >&nbsp;</td>
  </tr>
<tr>
<tr>
<?php if($user_id==1){ ?>

    <td height="36">&nbsp;</td>
    <td><span class="txt"><span class="style2"><strong>S</strong></span>tatus Type</span></td>
    <td>
    <select id="status_type" name="status_type" tabindex="2"  autofocus class="types_class" > 
    <option value="">select</option>
    <option value="Active"<?php if($status_type=='Active'){echo "Selected";}?>>Active</option>
    <option value="In-active"<?php if($status_type=='In-active'){echo "Selected";}?>>In-active</option>
    </select>

    </td>
  
<?php }else{ ?>

<td height="36">&nbsp;</td>
    <td><span class="txt"><span class="style2"><strong>S</strong></span>tatus Type</span></td>
    <td>
    <select id="status_type" name="status_type" tabindex="2"  autofocus class="types_class" > 
    <option value="">select</option>
</select>
</td>
<?php } ?>
</tr>
  </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="4" value="<?php if($_GET['edit_id']!='') { echo "EDIT";  } else { echo "ADD"; } ?>" class="add_button" onClick="customer_status_add(customer_status.value,status_type.value,'<?php echo $id;?>',this.value)" style="
    background-color: #87BB07;      color: #fff;      border: 0px;      
    padding: 9px 15px 9px;
">&nbsp;&nbsp;</td>
            </tr>
  </table>   
</html>