Preview: edit_green_card.php
Size: 31.43 KB
/home/jambtst2015/public_html/giraffeng.com/admin/edit_green_card.php
<?php include("includes/head.php"); ?>
<?php include("includes/header.php"); ?>
<script>
// Retrieve last key pressed. Works in IE and Netscape.
// Returns the numeric key code for the key pressed.
function getKey(e)
{
if (window.event)
return window.event.keyCode;
else if (e)
return e.which;
else
return null;
}
function restrictChars(e, obj)
{
var CHAR_AFTER_DP = 2; // number of decimal places
var validList = "0123456789."; // allowed characters in field
var key, keyChar;
var char=0;
key = getKey(e);
if (key == null) return true;
// control keys
// null, backspace, tab, carriage return, escape
if ( key==0 || key==8 || key==9 || key==13 || key==27 )
return true;
// get character
keyChar = String.fromCharCode(key);
// check valid characters
if (validList.indexOf(keyChar) != -1)
{
// check for existing decimal point
var dp = 0;
/* if(obj.value.indexOf( ".")==-1){
// room for more after decimal point?
if( obj.value.length - dp <= char) {
return true; }
else{
if(keyChar == ".")
return true;
else
return false;
}
}*/
if((dp = obj.value.indexOf( ".")) > -1)
{
if(keyChar == ".")
return false; // only one allowed
else
{
// room for more after decimal point?
if( obj.value.length - dp <= CHAR_AFTER_DP)
return true;
}
}
else {return true};
}
// not a valid character
return false;
}
</script>
<?php
/*---For Add---*/
$query = mysql_query("select * from `sat_staff_view` where
staff_view_id='".$_REQUEST['edit_id']."'");
$result=mysql_fetch_array($query);
if(empty($_POST['submit'])){ $_POST['submit']=''; }
if($_POST['submit'] == 'Save'){
//insert//
$time = date("Y-m-d");
$insSql = "UPDATE `sat_staff_view` set ";
//$insSql .= "employee_name='".$_REQUEST['userid']."', ";
$insSql .= "gc_count='".mysql_real_escape_string(trim($_POST['gc_count']))."', ";
$insSql .= "gc_status='".mysql_real_escape_string(trim($_POST['gc_status']))."', ";
$insSql .= "employee_status='".mysql_real_escape_string(trim($_POST['employee_status']))."', ";
$insSql .= "case1='".mysql_real_escape_string(trim($_POST['case']))."', ";
$insSql .= "filed_by='".mysql_real_escape_string(trim($_POST['filed_by']))."', ";
$insSql .= "type='".mysql_real_escape_string(trim($_POST['type']))."', ";
$insSql .= "category='".mysql_real_escape_string(trim($_POST['category']))."', ";
$insSql .= "labor_status='".mysql_real_escape_string(trim($_POST['labor_status']))."', ";
$insSql .= "I_140_status='".mysql_real_escape_string(trim($_POST['I_140_status']))."', ";
$insSql .= "I_485_sts='".mysql_real_escape_string(trim($_POST['I_485_sts']))."', ";
$insSql .= "gc_jon_title='".mysql_real_escape_string(trim($_POST['gc_jon_title']))."', ";
$insSql .= "gc_qualifications='".mysql_real_escape_string(trim($_POST['gc_qualifications']))."', ";
$insSql .= "gc_experience='".mysql_real_escape_string(trim($_POST['gc_experience']))."', ";
$insSql .= "labor_filing_date='".change_dateformat($_POST['labor_filing_date'])."', ";
$insSql .= "labor_case_number='".mysql_real_escape_string(trim($_POST['labor_case_number']))."', ";
$insSql .= "labor_approval_date='".change_dateformat($_POST['labor_approval_date'])."', ";
$insSql .= "labor_salary='".mysql_real_escape_string(trim($_POST['labor_salary']))."', ";
$insSql .= "priority_date='".change_dateformat($_POST['priority_date'])."', ";
$insSql .= "I_140_filing_date='".change_dateformat($_POST['I_140_filing_date'])."', ";
$insSql .= "I_140_receipt_no='".mysql_real_escape_string(trim($_POST['I_140_receipt_no']))."', ";
$insSql .= "I_140_approval_date='".change_dateformat($_POST['I_140_approval_date'])."', ";
$insSql .= "I_485_filing_date='".change_dateformat($_POST['I_485_filing_date'])."', ";
$insSql .= "I_485_receipt_no='".mysql_real_escape_string(trim($_POST['I_485_receipt_no']))."', ";
$insSql .= "W2_2005='".mysql_real_escape_string(trim($_POST['W2_2005']))."', ";
$insSql .= "W2_2006='".mysql_real_escape_string(trim($_POST['W2_2006']))."', ";
$insSql .= "W2_2007='".mysql_real_escape_string(trim($_POST['W2_2007']))."', ";
$insSql .= "W2_2008='".mysql_real_escape_string(trim($_POST['W2_2008']))."', ";
$insSql .= "W2_2009='".mysql_real_escape_string(trim($_POST['W2_2009']))."', ";
$insSql .= "W2_2010='".mysql_real_escape_string(trim($_POST['W2_2010']))."', ";
$insSql .= "note='".mysql_real_escape_string(trim($_POST['note']))."', ";
$insSql .= "I_765_receipt='".mysql_real_escape_string(trim($_POST['I_765_receipt']))."', ";
$insSql .= "I_131_receipt='".mysql_real_escape_string(trim($_POST['I_131_receipt']))."', ";
$insSql .= "I_485_receipt='".mysql_real_escape_string(trim($_POST['I_485_receipt']))."', ";
$insSql .= "I_765_receipt_spouse='".mysql_real_escape_string(trim($_POST['I_765_receipt_spouse']))."', ";
$insSql .= "I_131_receipt_spouse='".mysql_real_escape_string(trim($_POST['I_131_receipt_spouse']))."', ";
$insSql .= "I_485_receipt_spouse='".mysql_real_escape_string(trim($_POST['I_485_receipt_spouse']))."', ";
$insSql .= "USCIS_conf='".mysql_real_escape_string(trim($_POST['USCIS_conf']))."', ";
$insSql .= "notes='".mysql_real_escape_string(trim($_POST['notes']))."', ";
$insSql .= "action_plan='".mysql_real_escape_string(trim($_POST['action_plan']))."', ";
//$insSql .= "created_by='".$_SESSION['sat_login_id']."', ";
//$insSql .= "created_date='".$time."', ";
$insSql .= "last_update_by='".$_SESSION['sat_login_id']."', ";
$insSql .= "last_update_date='".$time."'";
$insSql .= " WHERE `staff_view_id`='".$_REQUEST['edit_id']."'";
//$insSql .= "effective_date=now(), ";
//
// $insSql .= "street='".$_POST['street']."', ";
//
// $insSql .= "city='".$_POST['city']."', ";
//
// $insSql .= "state='".$_POST['state']."', ";
//
// $insSql .= "zip='".$zip."', ";
//
// $insSql .= "main_skills='".$_POST['main_skills']."', ";
//
// $insSql .= "cell_phone='".$cell_phone."', ";
//
// $insSql .= "home_phone='".$home_phone."', ";
//
// $insSql .= "work_phone='".$work_phone."', ";
//
// $insSql .= "extension='".$_POST['extension']."', ";
//
// $insSql .= "preferred_phone='".$_POST['preferred_phone']."', ";
//
// $insSql .= "add_date=now(), ";
//
// $insSql .= "email1='".$_POST['email1']."', ";
//
// $insSql .= "email2='".$_POST['email2']."', ";
//
// $insSql .="date_o_birth='".$_POST['month']."/".$_POST['day']."', ";
//
// $insSql .="available_date='".change_dateformat($_POST['avail_date'])."', ";
//
// $insSql .= "skpeid='".$_POST['skpeid']."', ";
//
// $insSql .= "msnid='".$_POST['msnid']."', ";
//
// $insSql .= "gtalk='".$_POST['gtalk']."', ";
//
// $insSql .= "visa_type='".mysql_real_escape_string($_POST['visa_type'])."', ";
//
// $insSql .= "primary_skills='".mysql_real_escape_string($primary_skill)."', ";
//
// $insSql .= "secondary_skills='".mysql_real_escape_string($secondary_skill)."', ";
//
// $insSql .= "vendor_name='".mysql_real_escape_string($_POST['vendor_name'])."', ";
//
// $insSql .= "hotlist='".$_POST['hotlist']."', ";
//
// $insSql .= "send_emails='".$_POST['send_emails']."', ";
//
// $insSql .= "comm_skills='".$_POST['comm_skills']."', ";
//
// $insSql .= "tech_skills='".$_POST['tech_skills']."', ";
//
// //$insSql .= "added_user='".$_POST['added_user']."', ";
//
// $insSql .= "added_user='".$_SESSION['sat_login_id']."', ";
//
// $insSql .= "notes='".$_POST['notes']."', ";
//
// //$insSql .= "change_authority='".$change_authority."', ";
//
// $insSql .= "owner='".$_SESSION['sat_login_id']."', ";
//
// $insSql .= "last_conversation_date='".$last_conversation_date."', ";
//
// $insSql .= "candidate_type='".$_POST['candidate_type']."', ";
//
// $insSql .= "candidate_type_other='".$_POST['candidate_type_other']."', ";
//
// $insSql .= "resume_id='".$last_cv_id."', ";
//
// $insSql .= "resume_subject='".$subject."', ";
//
// $insSql .= "ever_submitted='".$_POST['ever_submitted']."', ";
//
// $insSql .= "relocation='".$_POST['relocation']."', ";
//
// $insSql .= "visa_validity='".$visa_validity."', ";
//
// $insSql .= "blacklisted='".$_POST['blacklisted']."', ";
//
// $insSql .= "blacklisted_desc='".mysql_real_escape_string($_POST['blacklisted_desc'])."', ";
//
// $insSql .= "record_status='".$_POST['record_status']."',";
//
// $insSql .= "source='".$_POST['source']."',";
//
// $insSql .= "salary='".$_POST['salary']."',";
//
// $insSql .="notes_desc='".mysql_real_escape_string($_POST['notes_desc'])."'";
//
// //echo $insSql;
//
// //exit();
$insSql;
mysql_query($insSql);
//header("location:view_green_card.php?userid=$_REQUEST[userid]&success=2");
?>
<script>
window.location = "view_green_card.php?userid=<?=$_REQUEST['userid'];?>&success=2&page=<?php echo $_REQUEST['page']; ?>&name=<?=$_REQUEST['name']?>&email=<?=$_REQUEST['email']?>&associate_type=<?=$_REQUEST['associate_type']?>&visa_status=<?=$_REQUEST['visa_status']?>&account_manager=<?=$_REQUEST['account_manager']?>&hr_manager=<?=$_REQUEST['hr_manager']?>&sales_manager=<?=$_REQUEST['sales_manager']?>&hotlist=<?=$_REQUEST['hotlist']?>&blacklisted=<?=$_REQUEST['blacklisted']?>&send_emails=<?=$_REQUEST['send_emails']?>&relocation=<?=$_REQUEST['relocation']?>&record_status=<?=$_REQUEST['record_status']?>&submit2=<?=$_REQUEST['submit2']?>&state=<?=$_REQUEST['state']?>&city=<?=$_REQUEST['city']?>&primary_skills_src=<?=$primary_skills?>&secondary_skills_src=<?=$secondary_skills?>&first=<?=$_REQUEST['first']?>&last=<?=$_REQUEST['last']?>";
</script>
<?php
}
/*---End Add---*/
?>
<script>
jQuery.noConflict();
(function($) {jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
jQuery("#formID").validationEngine();
});})(jQuery);
function addSkills(catid)
{
window.open('addSkill.php?catid='+catid,'Add Skill','height=250, width=600, resizable=yes, scrollbars=yes');
}
function addSkillsse(catid)
{
window.open('addSkillsecond.php?catid='+catid,'Add Skill','height=250, width=600, resizable=yes, scrollbars=yes');
}
function addVendors()
{
window.open('addVendor.php','Add Skill','height=250, width=600, resizable=yes, scrollbars=yes');
}
</script>
<script type="text/javascript">
function checkMessenger(themail)
{
var tomatch = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!tomatch.test(themail))
{
window.alert('This is not a valid email id');
return false;
}
return true;
}
function validecan(){
var name = document.myfrm.name.value;
var email1 = document.myfrm.email1.value;
var email2 = document.myfrm.email2.value;
var candidate_type = document.myfrm.candidate_type.value;
var visa_type = document.myfrm.visa_type.value;
var main_skills = document.myfrm.main_skills.value;
var city = document.myfrm.city.value;
var state = document.myfrm.state.value;
var hotlist = document.getElementById('');
var send_emails = document.myfrm.send_emails;
var notes = document.myfrm.notes;
var relocation = document.myfrm.relocation;
if(name == ''){
alert("Please enter name.");
document.myfrm.name.focus();
return false;
}
if(email1 == ''){
alert("Please enter email.");
document.myfrm.email1.focus();
return false;
}
if((email1!="") && (checkMessenger(email1)==false))
{
document.myfrm.email1.value="";
document.myfrm.email1.focus();
return false;
}
if((email2!="") && (checkMessenger(email2)==false))
{
document.myfrm.email2.value="";
document.myfrm.email2.focus();
return false;
}
if(candidate_type == ''){
alert("Please select candidate type.");
document.myfrm.candidate_type.focus();
return false;
}
/*if(candidate_type == 'other' && document.myfrm.candidate_type_other.value==''){
alert("Please enter candidate type other.");
document.myfrm.candidate_type_other.focus();
return false;
}*/
if(visa_type == ''){
alert("Please select visa type.");
document.myfrm.visa_type.focus();
return false;
}
if(main_skills == ''){
alert("Please select main skills.");
document.myfrm.main_skills.focus();
return false;
}
if(city == ''){
alert("Please enter city.");
document.myfrm.city.focus();
return false;
}
if(state == ''){
alert("Please select state.");
document.myfrm.state.focus();
return false;
}
if(document.getElementById('hotlist1').checked == false && document.getElementById('hotlist2').checked == false){
alert("Please select hotlist.");
//document.myfrm.hotlist.focus();
return false;
}
if(document.getElementById('send_emails1').checked == false && document.getElementById('send_emails2').checked == false){
alert("Please select send emails.");
//document.myfrm.send_emails.focus();
return false;
}
if(document.getElementById('notes').checked == false && document.getElementById('notes1').checked == false){
alert("Please select notes.");
//document.myfrm.notes.focus();
return false;
}
if(document.getElementById('notes').checked == true && document.myfrm.notes_desc.value==''){
alert("Please enter notes.");
document.myfrm.notes_desc.focus();
return false;
}
if(document.getElementById('relocation1').checked == false && document.getElementById('relocation2').checked == false){
alert("Please select relocation.");
//document.myfrm.relocation.focus();
return false;
}
return true;
}
</script>
<script type="text/javascript">
function getkey(e)
{
if (window.event)
return window.event.keyCode;
else if (e)
return e.which;
else
return null;
}
function goodchars(e, goods)
{
var key, keychar;
key = getkey(e);
if (key == null) return true;
keychar = String.fromCharCode(key);
keychar = keychar.toLowerCase();
goods = goods.toLowerCase();
if (goods.indexOf(keychar) != -1)
return true;
if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 )
return true;
return false;
}
function open_notes()
{
if(document.getElementById('notes').checked==true)
{
document.getElementById('notes_div').style.display='block';
}
if(document.getElementById('notes1').checked==true)
{
document.getElementById('notes_desc').value='';
document.getElementById('notes_div').style.display='none';
}
}
function open_blacklisted()
{
if(document.getElementById('blacklisted1').checked==true)
{
document.getElementById('blacklisted_div').style.display='block';
}
if(document.getElementById('blacklisted2').checked==true)
{
document.getElementById('blacklisted_desc').value='';
document.getElementById('blacklisted_div').style.display='none';
}
}
function candidatetypeother(val){
if(val == 'other'){
document.getElementById('candidatetype_other').style.display='block';
}
else{
document.getElementById('candidate_type_other').value='';
document.getElementById('candidatetype_other').style.display='none';
}
}
</script>
<script language="javascript">
function ChangeFocuszip(cur,nex)
{
var value=document.getElementById(cur).value;
if(value.length==5)
{
document.getElementById(nex).focus();
}
}
function ChangeFocus1(cur,nex)
{
var value=document.getElementById(cur).value;
if(value.length==3)
{
document.getElementById(nex).focus();
}
}
function ChangeFocus(cur,nex)
{
var value=document.getElementById(cur).value;
if(value.length==3)
{
document.getElementById(nex).focus();
}
}
function ChangeFocus1(cur,nex)
{
var value=document.getElementById(cur).value;
if(value.length==2)
{
document.getElementById(nex).focus();
}
}
</script>
<div class="container_bottom_section tbl_cls_new">
<form name="myfrm" action="" method="post" id="formID" enctype="multipart/form-data" <?php /*?>onsubmit="return validecan();"<?php */?>>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php if(empty($error)){$error='';}
if($error!=''){
?>
<tr>
<td colspan="7">
<div class="error"><?php echo $error; ?></div>
</td>
</tr>
<?php } ?>
<tr>
<td width="30%" valign="top">
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="56%"> </td>
<td width="44%"> </td>
</tr>
<script>
$(document).ready(function(){
$("#name").change(function(){
if( $(this).val() == ''){
//alert(000);
}else{
//window.open('view_candidate.php?userid='+userid,'news view','height=600, width=1000, resizable=yes, scrollbars=yes');
var name = $(this).val();
$.ajax({
url : 'same_candidate.php',
type : 'POST',
data : 'name=' + name,
//dataType : 'json',
beforeSend : function(jqXHR, settings ){
//alert(1);
},
success : function( data, textStatus, jqXHR){
//alert(data);
window.open('same_candidate.php?name='+name,'news view','height=600, width=1000, resizable=yes, scrollbars=yes');
},
error : function( jqXHR, textStatus, errorThrown){
}
});
}
});
});
</script>
<tr>
<td align="right" valign="top">GC Count</td>
<td><input name="gc_count" type="text" class="validate[custom[integer],minSize[2],maxSize[2]] textfield require_field" value="<?php echo $result['gc_count']; ?>" maxlength="2"/></td>
</tr>
<tr>
<td align="right" id="gc_id" valign="top"></td>
</tr>
<tr>
<td align="right" valign="top">GC Status </td>
<td><input name="gc_status" type="text" class="textfield require_field" value="<?php echo $result['gc_status']; ?>" /></td>
</tr>
<tr>
<td align="right" valign="top">Employee Status</td>
<td><input name="employee_status" type="text" class="textfield require_field" value="<?php echo $result['employee_status']; ?>" /></td>
</tr>
<tr>
<td align="right" valign="top">Case</td>
<td><input name="case" type="text" class="textfield require_field" value="<?php echo $result['case1']; ?>" /></td>
</tr>
<tr>
<td align="right" valign="top">Filed By</td>
<td>
<select id="filed_by" class="selectfield require_select" name="filed_by">
<option value="">Select</option>
<option value="John" <?php if($result['filed_by']=="John"){?> selected <?php } ?>>JOHN</option>
<option value="Slowik" <?php if($result['filed_by']=="Slowik"){?> selected <?php } ?>>SLOWIK</option>
<option value="Boudia" <?php if($result['filed_by']=="Boudia"){?> selected <?php } ?>>BOUDIA</option>
<option value="Georges" <?php if($result['filed_by']=="Georges"){?> selected <?php } ?>>GEORGE</option>
<option value="James" <?php if($result['filed_by']=="James"){?> selected <?php } ?>>JAMES</option>
<option value="Leblang" <?php if($result['filed_by']=="Leblang"){?> selected <?php } ?>>LEBLANG</option>
<option value="Andrew" <?php if($result['filed_by']=="Andrew"){?> selected <?php } ?>>ANDREW</option>
<option value="Absi" <?php if($result['filed_by']=="Absi"){?> selected <?php } ?>>ABSI</option>
<option value="Murthy" <?php if($result['filed_by']=="Murthy"){?> selected <?php } ?>>MURTHY</option>
<option value="N/A" <?php if($result['filed_by']=="N/A"){?> selected <?php } ?>>N/A</option>
</select>
</td>
</tr>
<tr>
<td align="right" valign="top">Type</td>
<td><input name="type" id="type" type="text" class="textfield require_field" value="<?php echo $result['type']?>" /></td>
</tr>
<tr>
<td align="right" valign="top">Category</td>
<td width="100%">
<input name="category" id="category" type="text" class="textfield require_field" value="<?php echo $result['category'];?>" />
</td>
</tr>
<tr>
<td align="right" valign="top">Labor Status </td>
<td> <input name="labor_status" id="labor_status" type="text" class="textfield require_field" value="<?php echo $result['labor_status']?>" /></td>
</tr>
<tr>
<td align="right" valign="top">I-140 Status</td>
<td><input name="I_140_status" id="I_140_status" type="text" class="textfield require_field" value="<?php echo $result['I_140_status']?>" /></td>
</tr>
<tr>
<td align="right" valign="top">I-485 Status</td>
<td><input name="I_485_sts" id="I_485_sts" type="text" class="textfield require_field" value="<?php echo $result['I_485_sts']; ?>" />
</td>
</tr>
<tr>
<td align="right">W2 2005</td>
<td><input name="W2_2005" id="W2_2005" type="text" class="textfield require_field" value="<?php echo $result['W2_2005']; ?>" /></td>
</tr>
<tr>
<td align="right">W2 2006 </td>
<td><input name="W2_2006" id="W2_2006" type="text" class="textfield require_field" value="<?php echo $result['W2_2006']; ?>" /></td>
</tr>
<tr>
<td align="right">W2 2007 </td>
<td><input name="W2_2007" id="W2_2007" type="text" class="textfield require_field" value="<?php echo $result['W2_2007']; ?>" /></td>
</tr>
<tr>
<td align="right">W2 2008 </td>
<td><input name="W2_2008" id="W2_2008" type="text" class="textfield require_field" value="<?php echo $result['W2_2008']; ?>" /></td>
</tr>
</table>
</td>
<td width="0%" valign="top"> </td>
<td width="26%" valign="top">
<table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="59%"> </td>
<td width="41%"> </td>
</tr>
<tr>
<td align="right">W2 2009 </td>
<td><input name="W2_2009" id="W2_2009" type="text" class="textfield require_field" value="<?php echo $result['W2_2009']; ?>" /></td>
</tr>
<tr>
<td align="right">W2 2010 </td>
<td><input name="W2_2010" id="W2_2010" type="text" class="textfield require_field" value="<?php echo $result['W2_2010']; ?>" /></td>
</tr>
<tr>
<script>
$(function() {
$( "#labor_filing_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
//$( "#post_date" ).datepicker( "dd-mm-yy", "dateFormat" );
});
</script>
<td align="right" valign="top">Labor Filing Date</td>
<td><input name="labor_filing_date" id="labor_filing_date" type="text" class="textfield require_field" value="<?php if($result['labor_filing_date']!='0000-00-00'){ echo change_dateformat_reverse($result['labor_filing_date']);} ?>" /></td>
</tr>
<tr>
<td align="right" valign="top">Labor Case Number</td>
<td>
<input name="labor_case_number" id="labor_case_number" type="text" class="textfield require_field" value="<?php echo $result['labor_case_number']; ?>" />
</td>
</tr>
<tr>
<script>
$(function() {
$( "#labor_approval_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
//$( "#post_date" ).datepicker( "dd-mm-yy", "dateFormat" );
});
</script>
<td align="right" valign="top">Labor Approval Date </td>
<td><input name="labor_approval_date" id="labor_approval_date" type="text" class="textfield require_field" value="<?php if($result['labor_approval_date']!='0000-00-00'){ echo change_dateformat_reverse($result['labor_approval_date']); } ?>" />
</td>
</tr>
<tr>
<td align="right" valign="top">Labor Salary</td>
<td>
<input name="labor_salary" id="labor_salary" type="text" onKeyPress="return restrictChars(event, this)" class="textfield require_field" value="<?php if($result['labor_salary']!='0.00'){ echo $result['labor_salary']; }?>" />
</td>
</tr>
<tr>
<script>
$(function() {
$( "#priority_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
//$( "#post_date" ).datepicker( "dd-mm-yy", "dateFormat" );
});
</script>
<td align="right">Priority Date </td>
<td><input name="priority_date" id="priority_date" type="text" class="textfield require_field" value="<?php if($result['priority_date']!='0000-00-00'){ echo change_dateformat_reverse($result['priority_date']); } ?>" /></td>
</tr>
<tr>
<script>
$(function() {
$( "#I_140_filing_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
//$( "#post_date" ).datepicker( "dd-mm-yy", "dateFormat" );
});
</script>
<td align="right">I-140 Filing Date </td>
<td><input name="I_140_filing_date" id="I_140_filing_date" type="text" class="textfield require_field" value="<?php if($result['I_140_filing_date']!='0000-00-00'){ echo change_dateformat_reverse($result['I_140_filing_date']); }?>" /></td>
</tr>
<tr>
<td align="right">I-140 Receipt No. </td>
<td><input name="I_140_receipt_no" id="I_140_receipt_no" type="text" class="textfield require_field" value="<?php echo $result['I_140_receipt_no']; ?>" /></td>
</tr>
<tr>
<script>
$(function() {
$( "#I_140_approval_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
//$( "#post_date" ).datepicker( "dd-mm-yy", "dateFormat" );
});
</script>
<td align="right">I-140 Approval Date </td>
<td><input name="I_140_approval_date" id="I_140_approval_date" type="text" class="textfield require_field" value="<?php if($result['I_140_approval_date']!='0000-00-00'){ echo change_dateformat_reverse($result['I_140_approval_date']); } ?>" /></td>
</tr>
<tr>
<script>
$(function() {
$( "#I_485_filing_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
//$( "#post_date" ).datepicker( "dd-mm-yy", "dateFormat" );
});
</script>
<td align="right">I-485 Filing Date </td>
<td><input name="I_485_filing_date" id="I_485_filing_date" type="text" class="textfield require_field" value="<?php if($result['I_485_filing_date']!='0000-00-00'){ echo change_dateformat_reverse($result['I_485_filing_date']);} ?>" /></td>
</tr>
<tr>
<td align="right">I-485 Receipt No </td>
<td><input name="I_485_receipt_no" id="I_485_receipt_no" type="text" class="textfield require_field" value="<?php echo $result['I_485_receipt_no']; ?>" /></td>
</tr>
<tr>
<td align="right" valign="top">GC Job Title </td>
<td id="main_skills">
<input name="gc_jon_title" id="gc_jon_title" type="text" class="textfield require_field" value="<?php echo $result['gc_jon_title']; ?>" />
</td>
</tr>
<tr>
<td align="right" valign="top">GC Qualifications </td>
<td id="primary_skills">
<input name="gc_qualifications" id="gc_qualifications" type="text" class="textfield require_field" value="<?php echo $result['gc_qualifications']; ?>" />
</td>
</tr>
<tr>
<td align="right" valign="top">GC Experience</td>
<td id="secondary_skills">
<input name="gc_experience" id="gc_experience" type="text" class="textfield require_field" value="<?php echo $result['gc_experience']; ?>" />
</td>
</tr>
</table>
</td>
<td width="0%" valign="top"> </td>
<td width="30%" valign="top">
<table width="350" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="36%"> </td>
<td width="64%"> </td>
</tr>
<tr>
<td align="right">Note </td>
<td><textarea name="note" class="textfield require_field" id="note" style="height:62px">
<?php echo $result['note']; ?>
</textarea>
</td>
</tr>
<tr>
<td align="right">I-765 Receipt# </td>
<td><input name="I_765_receipt" id="I_765_receipt" type="text" class="textfield require_field" value="<?php echo $result['I_765_receipt']; ?>" /></td>
</tr>
<tr>
<td align="right">I-131 Receipt# </td>
<td><input name="I_131_receipt" id="I_131_receipt" type="text" class="textfield require_field" value="<?php echo $result['I_131_receipt']; ?>" /></td>
</tr>
<tr>
<td align="right">I-485 Receipt# </td>
<td><input name="I_485_receipt" id="I_485_receipt" type="text" class="textfield require_field" value="<?php echo $result['I_485_receipt']; ?>" /></td>
</tr>
<tr>
<td align="right">I-765 Receipt# Spouse </td>
<td><input name="I_765_receipt_spouse" id="I_765_receipt_spouse" type="text" class="textfield require_field" value="<?php echo $result['I_765_receipt_spouse']; ?>" /></td>
</tr>
<tr>
<td align="right">I-131 Receipt# Spouse </td>
<td><input name="I_131_receipt_spouse" id="I_131_receipt_spouse" type="text" class="textfield require_field" value="<?php echo $result['I_131_receipt_spouse']; ?>" /></td>
</tr>
<tr>
<td align="right">I-485 Receipt# Spouse </td>
<td><input name="I_485_receipt_spouse" id="I_485_receipt_spouse" type="text" class="textfield require_field" value="<?php echo $result['I_485_receipt_spouse']; ?>" /></td>
</tr>
<tr>
<td align="right">USCIS Conf </td>
<td><input name="USCIS_conf" id="USCIS_conf" type="text" class="textfield require_field" value="<?php echo $result['USCIS_conf']; ?>" /></td>
</tr>
<tr>
<td align="right">Notes </td>
<td><p>
<textarea name="notes" class="textfield require_field" id="notes" style="height:62px">
<?php echo $result['notes']; ?>
</textarea>
</td>
</tr>
<tr>
<td align="right">Action Plan </td>
<td><input name="action_plan" id="action_plan" type="text" class="textfield require_field" value="<?php echo $result['action_plan']; ?>" /></td>
</tr>
</table>
</td>
<td width="1%" valign="top"> </td>
</tr>
<tr>
<td colspan="7" align="center"><input name="submit" type="submit" value="Save" class="submit" style=" margin-bottom:10px;" />
<a href="view_green_card.php?userid=<?=$_REQUEST['userid'];?>&success=1&page=<?php echo $_REQUEST['page']; ?>&name=<?=$_REQUEST['name']?>&email=<?=$_REQUEST['email']?>&associate_type=<?=$_REQUEST['associate_type']?>&visa_status=<?=$_REQUEST['visa_status']?>&account_manager=<?=$_REQUEST['account_manager']?>&hr_manager=<?=$_REQUEST['hr_manager']?>&sales_manager=<?=$_REQUEST['sales_manager']?>&hotlist=<?=$_REQUEST['hotlist']?>&blacklisted=<?=$_REQUEST['blacklisted']?>&send_emails=<?=$_REQUEST['send_emails']?>&relocation=<?=$_REQUEST['relocation']?>&record_status=<?=$_REQUEST['record_status']?>&submit2=<?=$_REQUEST['submit2']?>&state=<?=$_REQUEST['state']?>&city=<?=$_REQUEST['city']?>&primary_skills_src=<?=$primary_skills?>&secondary_skills_src=<?=$secondary_skills?>&first=<?=$_REQUEST['first']?>&last=<?=$_REQUEST['last']?>">
<input name="cancel" type="button" value="Cancel" class="submit" style=" margin-bottom:10px;" /></a>
</td>
</tr>
</table>
<div class="clear"></div>
</form>
</div>
<?php include("includes/footer.php"); ?>
Directory Contents
Dirs: 17 × Files: 180