
<?php
    $table_name = $_SESSION['db_prefix']."_list_places";
    $position_query = "SELECT item_name FROM $table_name ORDER BY item_name ASC";
	$arrId2 = array ();
	$arrName2 = array ();
	$position_result = execsql($position_query);
	if ($position_result!="") {
	$position_num = mysql_num_rows($position_result);
	$b = 0;
	while ($b < $position_num) {
		$arrId2[$b] = mysql_result($position_result, $b, "item_name");
		$arrName2[$b] = mysql_result($position_result, $b, "item_name");
		$b++;
	}
	}
	
	$table_name = $_SESSION['db_prefix']."_list_country";
    $position_query = "SELECT item_name FROM $table_name ORDER BY item_name ASC";
	$arrId1 = array ();
	$arrName1 = array ();
	$position_result = execsql($position_query);
	if ($position_result!="") {
	$position_num = mysql_num_rows($position_result);
	$b = 0;
	while ($b < $position_num) {
		$arrId1[$b] = mysql_result($position_result, $b, "item_name");
		$arrName1[$b] = mysql_result($position_result, $b, "item_name");
		$b++;
	}
	}

?>
<!--jscript-->
<script language="JavaScript" src="../jscript/upper_case.js"  type="text/javascript"></script>
<script language="JavaScript" src="../jscript/lower_case.js"  type="text/javascript"></script>  

</head>
<?php include('../include/wait.php') ?>
<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');">


<div class="wizard_page_middle_frame">
<form id="feedbackform" method="POST" action="employeeWizbase.php?p=3&s=3" >
    <div class="wizard_frame">
            <table width="600" id="table_display_wizard">
              <tr>
                <td width="129"><label class="label_std">Postal address:</label>&nbsp;&nbsp;<label class="star">*</label></td>
                <td width="233"><select name="bag_box_select" class="select80" id="bag_box_select">
                  <option value="PO Box">PO Box</option>
                  <option value="P Bag">P Bag</option>
                  <option value="<?php echo $_SESSION['bag_box'] ?>" selected="selected"><?php echo $_SESSION['bag_box'] ?></option>
                </select>
                  
                <label class="label_std">
                  <input name="box_no_text" type="text" class="text100" id="box_no_text" value="<?php echo $_SESSION['box_no'] ?>" maxlength="10" onkeyup="ToUpper(this)"/>
                </label></td>
                <td width="86">Place:&nbsp;&nbsp;<label class="star">*</label></td>
                <td width="132"><select name="post_place_select" class="select120"  >
                  <option value="<?php echo $_SESSION['post_place'] ?>" selected="selected"><?php echo $_SESSION['post_place'] ?></option>
                  <?php
        	for ($j = 0; $j < count($arrId2); $j++) {
    		echo "<option value=" . "\"" . $arrId2[$j] . "\"" . ">" . $arrName2[$j] . "</option>";
	}
?>
                </select></td>
              </tr>
              <tr>
                <td>Physical address:</td>
                <td><input name="phys_address_text" type="text" class="text200" id="phys_address_text"  onblur="capitalize(this)" onKeyUp="ToLower(this)" value="<?php echo $_SESSION['phys_address'] ?>"/></td>
                <td>Place:</td>
                <td><select name="phys_place_select" class="select120"  >
                  <option value="<?php echo $_SESSION['phys_place'] ?>" selected="selected"><?php echo $_SESSION['phys_place'] ?></option>
                  <?php
        	for ($j = 0; $j < count($arrId2); $j++) {
    		echo "<option value=" . "\"" . $arrId2[$j] . "\"" . ">" . $arrName2[$j] . "</option>";
	}
?>
                </select></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><label class="label_std">Country:</label>&nbsp;&nbsp; </td>
                <td><select name="country_select" class="select120"  >
                  <option value="<?php echo $_SESSION['country'] ?>" selected="selected"><?php echo $_SESSION['country'] ?></option>
                  <?php
        	for ($j = 0; $j < count($arrId1); $j++) {
    		echo "<option value=" . "\"" . $arrId1[$j] . "\"" . ">" . $arrName1[$j] . "</option>";
	}
?>
                </select></td>
              </tr>
            </table>
       </div>
      
          <div class="wizard_frame">
            
            <table width="655" id="table_display_wizard">
              <tr>
                <td width="47">Phone:</td>
                <td width="144"><input name="phone_text" type="text" class="text100" id="phone_text" onKeyPress="return numbersonly(this, event)" value="<?php echo $_SESSION['phone']?>" maxlength="10" /></td>
                <td width="36">Cell:</td>
                <td width="144"><input name="cell_text" type="text" class="text100" id="cell_text" onKeyPress="return numbersonly(this, event)" value="<?php echo $_SESSION['cell'] ?>" maxlength="10"/></td>
                <td width="53"><label class="label_std">e-mail:</label></td>
                <td width="203"><input name="email_text" type="text" class="text300" id="email_text"  value="<?php echo $_SESSION['email'] ?>" maxlength="60" onkeyup="ToLower(this)"/></td>
              </tr>
            </table>
          </div>
         

<div class="wizard_frame">
      
          <table width="640" id="table_display_wizard">
            <tr>
              <td width="155">Emergency contact:</td>
              <td width="189"><input name="emergency_name_text" type="text" class="text100" id="emergency_name_text" value="<?php echo $_SESSION['emergency_name'] ?>" maxlength="25"/></td>
              <td width="116">Emergency tel:</td>
              <td width="160"><input name="emergency_phone_text" type="text" class="text100" id="emergency_phone_text" onKeyPress="return numbersonly(this, event)" value="<?php echo $_SESSION['emergency_phone']?>" maxlength="10" /></td>
            </tr>
          </table>
          </div>
           <div class="wizard_spacer_frame" style="height:15px;"></div>
            <div class="wizard_frame">
              <table width="675" height="50" align="center" id="table_button_bar">
                <tr>
                  <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onClick="needToConfirm = false;MM_goToURL('parent','employeeWizbase.php?s=&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, '../hr_module/hr_main.php?date=0');" 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>
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("feedbackform");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("bag_box_select","req","- box or bag.");
  frmvalidator.addValidation("box_no_text","req","- box or bag number.");
  frmvalidator.addValidation("post_place_select","req","- place.");
  
  
</script>
</div>

