
<?php 

require_once ('../include/tc_calendar.php');


$table_name = $_SESSION['db_prefix']."_list_service_interval";
    $position_query = "SELECT item_name FROM $table_name ORDER BY item_name ASC";
	$arrId5 = array ();
	$arrName5 = array ();
	$position_result = execsql($position_query);
	if ($position_result!="") {
	$position_num = mysql_num_rows($position_result);
	$n = 0;
	while ($n < $position_num) {
		$arrId5[$n] = mysql_result($position_result, $n, "item_name");
		$arrName5[$n] = mysql_result($position_result, $n, "item_name");
		$n++;
	}
	}
?>
<!--jscript-->
<script language="javascript" src="../jscript/calendar.js"></script>
<script language="JavaScript" src="../jscript/upper_case.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/numbers_only.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/no_spaces.js"  type="text/javascript"></script>   
<?php include('../include/wait.php') ?>
</head>

<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');">

<div class="wizard_page_middle_frame">
<form id="feedbackform" method="get"  >
   
       
       <div class="wizard_frame">
            <table width="600" id="table_wizard_frame">
              <tr>
                <td width="151">Chassis number:</td>
                <td width="437"><input name="chassis_no_text" type="text" class="text200" id="chassis_no_text"   value="<?php echo $_SESSION['chassis_no'] ?>"  onKeyUp="ToUpper(this)" autocomplete="off"/></td>
              </tr>
              <tr>
                <td>Engine number:</td>
                <td><input name="engine_no_text" type="text" class="text200" id="engine_no_text"   value="<?php echo $_SESSION['engine_no'] ?>"  onKeyUp="ToUpper(this)" /></td>
              </tr>
            </table>
       </div>
       
    <div class="wizard_frame">
            <table width="600" id="table_wizard_frame">
              <tr>
                <td width="151">Service interval:&nbsp;</td>
                <td><select name="service_interval_select" class="select80"  >
                  <option value="<?php echo $_SESSION['service_interval'] ?>" selected="selected"><?php echo $_SESSION['service_interval'] ?></option>
                  <?php
        	for ($n = 0; $n < count($arrId5); $n++) {
    		echo "<option value=" . "\"" . $arrId5[$n] . "\"" . ">" . $arrName5[$n] . "</option>";
	}
?>
                </select></td>
              </tr>
              <tr>
                <td>Initial Clock reading:&nbsp;</td>
                <td><input name="clock_reading_text" type="text" class="text200" id="clock_reading_text" onKeyPress="return numbersonly(this, event)"  value="<?php echo $_SESSION['clock_reading'] ?>" autocomplete="off"/></td>
              </tr>
           </table>
       </div>
 <div class="wizard_spacer_frame" style="height:10px;"></div>      
       <div class="wizard_frame">
        
              <table width="645" height="50" align="center" id="tableButtonBar">
                <tr>
                  <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false; MM_showHideLayers('wait','','show'); MM_goToURL('parent','vehicleWizbase.php?s=&amp;p=2');return document.MM_returnValue" /></td>
                  <td width="115">&nbsp;</td>
                  <td width="99"><span class="wizard">
                    <input name="s" type="hidden" id="s" value="3" />
                    <input name="p" type="hidden" id="p" value="3" />
                  </span></td>
                  <td width="125" align="right"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../store/store_main.php');" value="Cancel" /></td>
                  <td width="110" align="right"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');" /></td>
                </tr>
              </table>
              </div>
  </form>
  </div>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("feedbackform");
  frmvalidator.EnableMsgsTogether();
  //frmvalidator.addValidation("service_interval_select","req","- service interval.");
  
    
</script>



