<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--jscript-->  
<script type="text/javascript" src="../jscript/jquery.1.4.2.js"></script>
<script language="JavaScript" src="../jscript/gen_validatorv4_2.js"  type="text/javascript" xml:space="preserve"></script>
<script language="JavaScript" src="../jscript/numbers_only.js"  type="text/javascript"></script>  
<script language="JavaScript" src="../jscript/go_to_url.js"  type="text/javascript"></script> 

<link rel="stylesheet" href="../window/dhtmlwindow.css" type="text/css" />
<link rel="stylesheet" href="../window/modal.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/pop_up.css" />

<script type="text/javascript" src="../window/dhtmlwindow.js"></script>
<script type="text/javascript" src="../window/modal.js"></script>
<?php

//include('../include/db.php');
include('../include/session.php');	



$table_name = $_SESSION['db_prefix']."_list_late"; 
$type_1_query = "SELECT item_name FROM $table_name ORDER BY item_name ASC";
$arrId1 = array ();
$arrName1 = array ();
$type_1_result = execsql($type_1_query);
$type_1_num = mysql_num_rows($type_1_result);
$a = 0;
while ($a < $type_1_num) {
		$arrId1[$a] = mysql_result($type_1_result, $a, "item_name");
		$arrName1[$a] = mysql_result($type_1_result, $a, "item_name");
		$a++;
	}
	
?>

</head>
<body style="width:340px;" >
<form action="../production/trussesJobWizbase.php" method="get" name="form1" target="_top" id="form1">

<table width="330" border="0" align="center" cellpadding="0" cellspacing="0" class="list2">
  <tr>
    <td align="center">     
      <table width="325" border="0">
        <tr>
          <td width="444" height="46" align="center"><label class="label_std">Late reason:</label>
            <label class="star">*</label>
<select name="type_1_text" id="type_1_text" class="select200" autofocus>
  <option value=""></option>
              <?php
    	for ($i = 0; $i < count($arrId1); $i++) {
		echo "<option value=" . "\"" . $arrId1[$i] . "\"" . ">" . $arrName1[$i] . "</option>";
		
		}
     ?>
    </select>
          <br /><br />
          
            Permission? &nbsp;&nbsp;
              <input type="radio" name="permission_group" value="yes" id="permission_group_0" />
              yes
            
              <input type="radio" name="permission_group" value="no" id="permission_group_1" />
              no
            <br />          </p></td>
          </tr>
        </table>
         
      <input name="p" type="hidden" value="3" />
      <input name="s" type="hidden" value="" />
      </td>
  </tr>
  <tr>
    <td height="45" align="center"><br />
      <input name="finish_add_button" type="submit" id="finish_add_button" value="Record" class="imagebutton"  />
      <input name="cancel_button" type="button" class="imagebutton" id="cancel_button" onclick="MM_goToURL('parent','../hr_module/recordTimesWizbase.php?p=3&s=');return document.MM_returnValue"  value="Cancel" />      
    </td>
  </tr>
</table>
</form>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("type_1_text","req","Please enter truss type.");
  frmvalidator.addValidation("type_2_text","req","Please enter truss type.");
  frmvalidator.addValidation("qty_text","req","Please enter number of trusses."); 
  frmvalidator.addValidation("press_points_text","req","Please enter number of FT."); 
  frmvalidator.addValidation("span_text","req","Please enter span.");    
</script>
</body>
</html>