<html>
<head>
<link href="../../css/pop_up style.css" rel="stylesheet" type="text/css">
<script src="../../js/jquery/jquery.js" type="text/javascript"></script>
<script src="../../js/jquery/jquery-1.8.2.js"></script>
<script src="../../js/jquery/jquery-ui.js"></script>
<script src="../../js/user_screen_name_ajax.js" type="text/javascript"></script>
<script src="../../js/enter_event_ajax.js"       type="text/javascript"></script>

<style type="text/css">
<!--
.style10 {color: #F00}
-->
</style></head>
<?php
error_reporting(0);
$edit_id=$_GET['edit_id'];
include("../../include/db.php");
  $sql="select * from sub_screen where screen_id='$_GET[edit_id]' ";
  $rs=mysql_query($sql);
  while($rsdata=mysql_fetch_array($rs))
  {
	  $screen_names=$rsdata['screen_name'];
	  $sub_screens=$rsdata['sub_screen'];
  }
?>

<style type="text/css">
.txt{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size:13px;}

.style2 {color: #FF0000}
.style7{font-family: Tahoma, Arial, Helvetica, sans-serif;font-size: 13px;}
.headings{ font-family:verdana; font-size:10px;}
.style9 {font-size: 12}
</style>
<body style="margin:0px;" bgcolor="#f7f7f7">
    <table width="100%">
  <tr>
    <td colspan="6" class="heading"><strong>User Screen</strong></td>
  </tr>
    <tr>
    <td colspan="6">&nbsp;</td>
  </tr>

<tr>

  <td width="65" align="left" valign="top" class="field">&nbsp;</td>
  <td width="173" class="txt" >User Name<span class="style2">*</span></td>
  <td width="257" align="left" class="txt"><select name="form_name" id="form_name" autofocus tabindex="1" style="width:150px; height:30px;" onChange="user_screen_clear_validate(this.value)">
    <option value="">Select</option>
    <option value="1" <?php if($screen_names == "DashBoard"){?> selected="selected" <?php }?>>DashBoard</option>
    <option value="2" <?php if($screen_names == "Master Entry"){?> selected="selected" <?php }?>>Master Entry</option>
    <option value="3" <?php if($screen_names == "JobCard Module"){?> selected="selected" <?php }?>>JobCard Module</option>
    <option value="4" <?php if($screen_names == "Delivery Module"){?> selected="selected" <?php }?>>Delivery Module</option>
    <option value="5" <?php if($screen_names == "Consumable"){?> selected="selected" <?php }?>>Consumable</option>
    <option value="6" <?php if($screen_names == "Printing"){?> selected="selected" <?php }?>>Printing</option>
    <option value="7" <?php if($screen_names == "Fusing"){?> selected="selected" <?php }?>>Fusing</option>
    <option value="8" <?php if($screen_names == "Invoice"){?> selected="selected" <?php }?>>Invoice</option>
  </select></td>
  <td width="286" align="left" class="txt">User Sub Screen<span class="style2">*</span></td>
  <td width="526" align="left" class="txt">
    <input type="text" name="sub_screen" id="sub_screen" onKeyUp="enterevent(event,'action','sub_screen'),user_screen_clear_validate(this.value)" style="width:150px; height:30px;" tabindex="2" value="<?php if($_GET['edit_id']
!=''){ echo $sub_screens; } ?>"> </td>
  </tr>
    <tr>
    <td colspan="2" ></td><td> <div id="form_name_div" style="color:#F00"></div></td><td></td><td> <div id="sub_screen_name_div" style="color:#F00"></div></td>
  </tr>

        <tr>  
    <td height="65" colspan="8" align="center" class="style7"><input type="button" name="action"  style="height:28px; width:50px" id="action" tabindex="3" value="<?php if($_GET['edit_id']!='') { echo "EDIT";  } else { echo "ADD"; } ?>"  class="add_button" onClick="user_screen_add(form_name.value,sub_screen.value,'<?php echo $edit_id; ?>',this.value)"/>&nbsp;&nbsp;</td>
            </tr>
</table>

</body>
</html>