? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/promice/components/com_jsjobs/views/resume/tmpl/
File Upload :
Current File : /home/admin/public_html/old/promice/components/com_jsjobs/views/resume/tmpl/formemp.php

<?php
/**
 + Created by:	Ahmad Bilal
 * Company:		Al-Barr Technologies
 + Contact:		www.al-barr.com , info@al-barr.com
 * Created on:	Jan 11, 2009
 ^
 + Project: 		Job Posting and Employment Application
 * File Name:	views/application/tmpl/formemp.php
 ^ 
 * Description: template for long employment application form
 ^ 
 * History:		NONE
 ^ 
 */

defined('_JEXEC') or die('Restricted access');

 global $mainframe;

$big_field_width = 40;
$med_field_width = 25;
$sml_field_width = 15;

?>
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $mainframe->getBasePath(); ?>components/com_jsjobs/css/<?php echo $this->config['theme']; ?>" />
<script language="javascript">
function myValidate() {
<!--
        <?php
                $editor =& JFactory::getEditor();
                echo $editor->save( 'resume' );
        ?>
//-->
	f = document.adminForm;
	if (f.application_title.value == ""){
		alert('Please enter Personal > Application Title');
		f.application_title.focus();
		return false;
	}else if (f.first_name.value == ""){
		alert('Please enter Personal > First Name');
		f.first_name.focus();
		return false;
	}else if (f.last_name.value == ""){
		alert('Please enter Personal > Last Name');
		f.last_name.focus();
		return false;
	}else if (f.email_address.value == ""){
		alert('Please enter Personal > Email Address');
		f.email_address.focus();
		return false;
	}
	if (echeck(f.email_address.value)==false){
		f.email_address.value=""
		f.email_address.focus()
		return false
	}

        return true;
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
}

</script>

<table cellpadding="0" cellspacing="0" border="0" width="100%" class="contentpane">
	<tr><td valign="top" class="<?php echo $this->theme['title']; ?>" >	
		<?php echo $this->config['title']; ?>
	</td>
	</tr>
	<tr><td height="23"></td></tr>
	<tr><td>
		<?php 
			if (sizeof($this->joblinks) != 0){	
				foreach($this->joblinks as $lnk)	{ ?>
				<?php echo $lnk; ?>
			<?php }
			} ?>
	</td></tr>
	<tr><td height="1"></td></tr>
	<tr><td>
		<?php 
			if (sizeof($this->emplinks) != 0){	
				foreach($this->emplinks as $lnk)	{ ?>
				<?php echo $lnk; ?>
			<?php } 
		}?>
	</td></tr>
	<tr><td height="13"></td></tr>
	<tr><td class="curloc">
		<?php echo JText::_('JP_CUR_LOC'); ?> : <?php echo JText::_('JP_EMP_APP_FORM'); ?>
	</td></tr>
	<tr><td class="<?php echo $this->theme['heading']; ?>" align="center">
		<?php echo JText::_('JP_EMP_APP_FORM'); ?>
	</td></tr>
	<tr><td height="3"></td></tr>
</table>
<?php
$cur_user_allow 	= $_SESSION['cur_user_allow'];
$printform = 1;
if ($cur_user_allow[1] == 1) { // Allow Emp App
	$printform = 1;
	if ((isset($this->application)) &&($this->application->id != 0)) { // not new form
		if ($this->application->status == 1) { // Employment Application is actve
			$printform = 1;
		}else if($this->application->status == 0){ // not allowed job posting
			$printform = 0;
			echo "<font color='red'><strong>" . JText::_('JP_EMP_APP_WAIT_APPROVAL') . "</strong></font>";
		} else{ // not allowed job posting
			$printform = 0;
			echo "<font color='red'><strong>" . JText::_('JP_EMP_APP_REJECT') . "</strong></font>";
		}
	}
}else{ // not allowed job posting
	$printform = 0;
	echo "<font color='red'><strong>" . JText::_('EA_YOU_ARE_NOT_ALLOWED_TO_VIEW') . "</strong></font>";
}

if ($printform == 1) {
?>

		<form action="index.php" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" class="form-validate">
				<table cellpadding="5" cellspacing="0" border="0" width="100%" class="admintable" >
					<tr>
						<td width="100" colspan="2" align="center" class="<?php echo $this->theme['sectionheading']; ?>">
							<?php echo JText::_('JP_PERSONAL_INFORMATION'); ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<label id="application_titlemsg" for="application_title"><?php echo JText::_('JP_APPLICATION_TITLE'); ?></label>&nbsp;<font color="red">*</font>:
						</td>
						<td>
							<input class="inputbox required" type="text" name="application_title" id="application_title" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->application_title;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<label id="first_namemsg" for="first_name"><?php echo JText::_('JP_FIRST_NAME'); ?></label>&nbsp;<font color="red">*</font>:
						</td>
						<td>
							<input class="inputbox required" type="text" name="first_name" id="first_name" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->first_name;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_MIDDLE_NAME'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="middle_name" id="middle_name" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->middle_name;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<label id="last_namemsg" for="last_name"><?php echo JText::_('JP_LAST_NAME'); ?></label>&nbsp;<font color="red">*</font>:
						</td>
						<td>
							<input class="inputbox required" type="text" name="last_name" id="last_name" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->last_name;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<label id="email_addressmsg" for="email_address"><?php echo JText::_('JP_EMAIL_ADDRESS'); ?></label>&nbsp;<font color="red">*</font>:
						</td>
						<td>
							<input class="inputbox required validate-email" type="text" name="email_address" id="email_address" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->email_address;?>" />
						</td>						
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_HOME_PHONE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="home_phone" id="home_phone" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->home_phone;?>" />
						</td>						
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_WORK_PHONE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="work_phone" id="work_phone" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->work_phone;?>" />
						</td>						
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_CELL'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="cell" id="cell" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->cell;?>" />
						</td>						
					</tr>
					<tr height="21"><td colspan="2"></td></tr>
					<tr>
						<td width="100" colspan="2" align="center" class="<?php echo $this->theme['sectionheading']; ?>">
							<?php echo JText::_('JP_BASIC_INFORMATION'); ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_CATEGORY');  ?>:
						</td>
						<td>
							<?php
								echo $this->empoptions['job_category'];
							?>
						</td>
					</tr>
				
					<tr>
						<td width="100"align="right" class="textfieldtitle">
							<?php echo JText::_('JP_DESIRED_SALARY'); ?>:
						</td>
						<td colspan="2" >
							<?php echo $this->empoptions['jobsalaryrange'] . JText::_('JP_PERMONTH'); ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_JOBTYPE'); ?>:
						</td>
						<td colspan="2" valign="top" >
							<?php
								echo $this->empoptions['jobtype']; 
							?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_HEIGHTESTFINISHEDEDUCATION'); ?>:
						</td>
						<td colspan="2" valign="top" >
							<?php
								//echo $this->empoptions['work_preferences'];
								echo $this->empoptions['heighestfinisheducation']; 
							?>
						</td>
					</tr>
			<?php if ($this->config['resumeaddress'] == '1') { ?>
					<tr height="21"><td colspan="2"></td></tr>
					<tr>
						<td width="100" colspan="2" align="center" class="<?php echo $this->theme['sectionheading']; ?>">
							<?php echo JText::_('JP_ADDRESS'); ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_COUNTRY'); ?>
						</td>
						<td id="address_country">
						<?php echo $this->empoptions['address_country']; ?>
							<!--<input class="textfield" type="text" name="address_country" idaddress_country" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->address_country;?>" /> -->
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_STATE'); ?>:
						</td>
						<td id="address_state">
						<?php
							if((isset($this->empoptions['address_state'])) && ($this->empoptions['address_state']!='')){
								echo $this->empoptions['address_state']; 
							} else{ ?>
							<input class="inputbox" type="text" name="address_state" id="address_state" size="<?php echo $med_field_width; ?>" maxlength="50" value = "<?php if (isset($this->application)) echo $this->application->address_state;?>" />
						<?php } ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_COUNTY'); ?>:
						</td>
						<td id="address_county">
				        <?php 
							if((isset($this->empoptions['address_county'])) && ($this->empoptions['address_county']!='')){
								echo $this->empoptions['address_county']; 
							} else{ ?>
							<input class="inputbox" type="text" name="address_county" id="address_county" size="<?php echo $med_field_width; ?>" maxlength="50" value = "<?php if (isset($this->application)) echo $this->application->address_county;?>" />
						<?php } ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_CITY'); ?>:
						</td>
				        <td id="address_city">
						<?php 
							if((isset($this->empoptions['address_city'])) && ($this->empoptions['address_city']!='')){
								echo $this->empoptions['address_city']; 
							} else{ ?>
							<input class="inputbox" type="text" name="address_city" id="address_city" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->address_city;?>" />
						<?php } ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_ZIPCODE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="address_zipcode" id="address_zipcode" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->address_zipcode;?>" />
						</td>
					</tr>
				<tr>
					<td width="100" align="right" class="textfieldtitle">
						<?php echo JText::_('JP_ADDRESS'); ?>:
					</td>
					<td>
						<input class="inputbox" type="text" name="address" id="address" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->address;?>" />
					</td>
				</tr>
			<?php } ?>
			<?php if ($this->config['resumeeducation'] == '1') { ?>
					<tr height="21"><td colspan="2"></td></tr>
					<tr>
						<td width="100" colspan="2" align="center" class="<?php echo $this->theme['sectionheading']; ?>">
							<?php echo JText::_('JP_HEIGHTESTFINISHEDEDUCATION'); ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_SCH_COL_UNI'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="institute" id="institute" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->institute;?>" />
						</td>
					</tr>
						<tr>
							<td width="100" align="right" class="textfieldtitle">
								<?php echo JText::_('JP_CRT_DEG_OTH'); ?>:
							</td>
							<td>
								<input class="inputbox" type="text" name="certificate_name" id="certificate_name" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->certificate_name;?>" />
							</td>
						</tr>
						<tr>
							<td width="100" align="right" class="textfieldtitle">
								<?php echo JText::_('JP_AREA_OF_STUDY'); ?>:
							</td>
							<td>
								<input class="inputbox" type="text" name="study_area" id="study_area" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->study_area;?>" />
							</td>
						</tr>
						<tr>
							<td width="100" align="right" class="textfieldtitle">
								<?php echo JText::_('JP_COUNTRY'); ?>:
							</td>
							<td id="institute_country">
							<?php echo $this->empoptions['institute_country']; ?>
								<!--<input class="textfield" type="text" name="institute_country" id="institute_country" size="<?php echo $sml_field_width; ?>" maxlength="50" value = "<?php if (isset($this->application)) echo $this->application->institute_country;?>" />-->
							</td>
						</tr>
						<tr>
							<td width="100" align="right" class="textfieldtitle">
								<?php echo JText::_('JP_STATE'); ?>:
							</td>
							<td id="institute_state">
							<?php
								if((isset($this->empoptions['institute_state'])) && ($this->empoptions['institute_state']!='')){
									echo $this->empoptions['institute_state']; 
								} else{ ?>
								<input class="inputbox" type="text" name="institute_state" id="institute_state" size="<?php echo $med_field_width; ?>" maxlength="50" value = "<?php if (isset($this->application)) echo $this->application->institute_state;?>" />
							<?php } ?>
							</td>
						</tr>
						<tr>
							<td width="100" align="right" class="textfieldtitle">
								<?php echo JText::_('JP_COUNTY'); ?>:
							</td>
							<td id="institute_county">
							<?php
								if((isset($this->empoptions['institute_county'])) && ($this->empoptions['institute_county']!='')){
									echo $this->empoptions['institute_county']; 
								} else{ ?>
									<input class="inputbox" type="text" name="institute_county" id="institute_county" size="<?php echo $med_field_width; ?>" maxlength="50" value = "<?php if (isset($this->application)) echo $this->application->institute_county;?>" />
							<?php } ?>
							</td>
						</tr>
						<tr>
							<td width="100" align="right" class="textfieldtitle">
								<?php echo JText::_('JP_CITY'); ?>:
							</td>
							<td id="institute_city">
							<?php
								if((isset($this->empoptions['institute_city'])) && ($this->empoptions['institute_city']!='')){
									echo $this->empoptions['institute_city']; 
								} else{ ?>
									<input class="inputbox" type="text" name="institute_city" id="institute_city" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->institute_city;?>" />
							<?php } ?>
							</td>
						</tr>
			<?php } ?>
			<?php if ($this->config['resumeemployer'] == '1') { ?>
					<tr height="21"><td colspan="2"></td></tr>
					<tr>
						<td width="100" colspan="2" align="center" class="<?php echo $this->theme['sectionheading']; ?>">
							<?php echo JText::_('JP_RECENT_EMPLOYER'); ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_EMPLOYER'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer" id="employer" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->employer;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_POSITION'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_position" id="employer_position" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->employer_position;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_RESPONSIBILITIES'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_resp" id="employer_resp" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->employer_resp;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_FROM_DATE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_from_date" id="employer_from_date" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->employer_from_date;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_TO_DATE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_to_date" id="employer_to_date" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->employer_to_date;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_LEAVING_REASON'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_leave_reason" id="employer_leave_reason" size="<?php echo $med_field_width; ?>" maxlength="250" value = "<?php if (isset($this->application)) echo $this->application->employer_leave_reason;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_COUNTRY'); ?>:
						</td>
						<td id="employer_country">
							<?php echo $this->empoptions['employer_country']; ?>
							<!--<input class="textfield" type="text" name="employer_country" id="employer_country" size="<?php echo $med_field_width; ?>" maxlength="100" value = "<?php if (isset($this->application)) echo $this->application->employer_country;?>" />-->
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_STATE'); ?>:
						</td>
						<td id="employer_state">
							<?php
								if((isset($this->empoptions['employer_state'])) && ($this->empoptions['employer_state']!='')){
									echo $this->empoptions['employer_state']; 
								} else{ ?>
									<input class="inputbox" type="text" name="employer_state" id="employer_state" size="<?php echo $med_field_width; ?>" maxlength="100" value = "<?php if (isset($this->application)) echo $this->application->employer_state;?>" />
							<?php } ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_COUNTY'); ?>:
						</td>
						<td id="employer_county">
							<?php
								if((isset($this->empoptions['employer_county'])) && ($this->empoptions['employer_county']!='')){
									echo $this->empoptions['employer_county']; 
								} else{ ?>
									<input class="inputbox" type="text" name="employer_county" id="employer_county" size="<?php echo $med_field_width; ?>" maxlength="100" value = "<?php if (isset($this->application)) echo $this->application->employer_county;?>" />
							<?php } ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_CITY'); ?>:
						</td>
						<td id="employer_city">
							<?php
								if((isset($this->empoptions['employer_city'])) && ($this->empoptions['employer_city']!='')){
									echo $this->empoptions['employer_city']; 
								} else{ ?>
									<input class="inputbox" type="text" name="employer_city" id="employer_city" size="<?php echo $med_field_width; ?>" maxlength="100" value = "<?php if (isset($this->application)) echo $this->application->employer_city;?>" />
							<?php } ?>
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_ZIPCODE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_zip" id="employer_zip" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->employer_zip;?>" />
						</td>
					</tr>
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_PHONE'); ?>:
						</td>
						<td>
							<input class="inputbox" type="text" name="employer_phone" id="employer_phone" size="<?php echo $sml_field_width; ?>" maxlength="20" value = "<?php if (isset($this->application)) echo $this->application->employer_phone;?>" />
						</td>
					</tr>
			<?php } ?>
					<tr height="21"><td colspan="2"></td></tr>
					<tr>
						<td width="100" colspan="2" align="center" class="<?php echo $this->theme['sectionheading']; ?>">
							<?php echo JText::_('JP_RESUME'); ?>
						</td>
					</tr>
				<!--	<tr><td></td><td><strong>Note: Mozilla Firefox may create problem to saving format.</strong></td></tr>-->
					<tr>
						<td colspan="2">
						    <?php
                          //print editorAreaJx( 'editor1',  $this->application->resume, 'resume', '40', '10' );
						               $editor =& JFactory::getEditor();
                                        if(isset($this->application))
											echo $editor->display('resume', $this->application->resume, '550', '400', '60', '20', false);
										else
											echo $editor->display('resume', '', '550', '400', '60', '20', false);
                                ?>

						</td>
					</tr>
					<tr height="21"><td colspan="2"></td></tr>
					<tr><td></td><td><strong><?php echo JText::_('JP_ALSO_RESUME_FILE'); ?></strong></td></tr>
					<?php if (isset($this->application)) 
								if($this->application->filename != '') {?>
									<tr><td></td><td><input type='checkbox' name='deleteresumefile' value='1'><?php echo JText::_('JP_DELETE_RESUME_FILE') .'['.$this->application->filename.']'; ?></td></tr>
					<?php } ?>				
					<tr>
						<td width="100" align="right" class="textfieldtitle">
							<?php echo JText::_('JP_RESUME_FILE'); ?>:
						</td>
						<td>
							<input type="file" class="inputbox" name="resumefile" size="20" maxlenght='30'/>
							<input type='hidden' maxlenght=''/>
						</td>
					</tr>
				</table>

				<table width="100%" >
					<tr><td colspan="2" height="10"></td></tr>
					<tr>
						<td colspan="2" align="center">
							<input type="submit" class="button validate"  name="save_app" onClick="return myValidate();"  value="<?php echo JText::_('JP_SAVE'); ?>" />

				</td>
					</tr>
				</table>
			<?php 
				if(isset($this->application)) {
					if (($this->application->create_date=='0000-00-00 00:00:00') || ($this->application->create_date==''))
						$curdate = date('Y-m-d H:i:s');
					else  
						$curdate = $this->application->create_date;
				}else
					$curdate = date('Y-m-d H:i:s');
				
			?>
			<input type="hidden" name="create_date" value="<?php echo $curdate; ?>" />
			<input type="hidden" name="id" value="<?php if (isset($this->application)) echo $this->application->id; ?>" />
			<input type="hidden" name="layout" value="empview" />
			<input type="hidden" name="uid" value="<?php echo $this->uid; ?>" />
			<input type="hidden" name="option" value="<?php echo $option; ?>" />
			<input type="hidden" name="task" value="saveempapp" />
			<input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" />

<script language=Javascript>
function dochange(curscr, myname, nextname, src, val){
	var xhr; 
	try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
	catch (e) 
	{
		try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
		catch (e2) 
		{
		  try {  xhr = new XMLHttpRequest();     }
		  catch (e3) {  xhr = false;   }
		}
	 }

	xhr.onreadystatechange = function(){
	if(xhr.readyState == 4 && xhr.status == 200){
        	document.getElementById(curscr).innerHTML=xhr.responseText; //retuen value
			cleanFields(curscr);
      }
    }

	xhr.open("GET","index2.php?option=com_jsjobs&task=listempaddressdata&name="+curscr+"&myname="+myname+"&nextname="+nextname+"&data="+src+"&val="+val,true);
	xhr.send(null);
}

function cleanFields(curscr) {
	switch(curscr){
		case "address_state":
			countyhtml = "<input class='inputbox' type='text' name='address_county' size='40' maxlength='100'  />";
			cityhtml = "<input class='inputbox' type='text' name='address_city' size='40' maxlength='100'  />";
			document.getElementById('address_county').innerHTML=countyhtml; //retuen value
			document.getElementById('address_city').innerHTML=cityhtml; //retuen value
			break;
		case "address_county":
			cityhtml = "<input class='inputbox' type='text' name='address_city' size='40' maxlength='100'  />";
			document.getElementById('address_city').innerHTML=cityhtml; //retuen value
			break;
		case "institute_state":
			countyhtml = "<input class='inputbox' type='text' name='institute_county' size='40' maxlength='100'  />";
			cityhtml = "<input class='inputbox' type='text' name='institute_city' size='40' maxlength='100'  />";
			document.getElementById('institute_county').innerHTML=countyhtml; //retuen value
			document.getElementById('institute_city').innerHTML=cityhtml; //retuen value
			break;
		case "institute_county":
			cityhtml = "<input class='inputbox' type='text' name='institute_city' size='40' maxlength='100'  />";
			document.getElementById('institute_city').innerHTML=cityhtml; //retuen value
			break;
		case "employer_state":
			countyhtml = "<input class='inputbox' type='text' name='employer_county' size='40' maxlength='100'  />";
			cityhtml = "<input class='inputbox' type='text' name='employer_city' size='40' maxlength='100'  />";
			document.getElementById('employer_county').innerHTML=countyhtml; //retuen value
			document.getElementById('employer_city').innerHTML=cityhtml; //retuen value
			break;
		case "employer_county":
			cityhtml = "<input class='inputbox' type='text' name='employer_city' size='40' maxlength='100'  />";
			document.getElementById('employer_city').innerHTML=cityhtml; //retuen value
			break;
	}
}
//window.onLoad=dochange('country', -1);         // value in first dropdown
</script>
		
		
		
		</form>
		
<?php
}?>		

T1KUS90T
  root-grov@210.1.60.28:~$