Preview: request.php
Size: 4.18 KB
/home/jambtst2015/public_html/giraffeng.com/admin/request.php
<?php include("includes/other_header.php"); ?>
<?php
//echo base64_decode($_REQUEST['reqid']);
if($_REQUEST['button']!=''){
if($_REQUEST['accept']!='' && $_REQUEST['reqid']!=''){
if($_REQUEST['accept']=='yes'){
mysql_query("update abs_tech_screener_request set status='Available', accept=1, accept_time='".time()."', interview_date_tech='".change_dateformat($_REQUEST['interview_date'])."', interview_time_tech='".$_REQUEST['interview_time']."' where id='".base64_decode($_REQUEST['reqid'])."'");
}else{
mysql_query("update abs_tech_screener_request set status='Not Available', accept=2, accept_time='".time()."', interview_date_tech='".change_dateformat($_REQUEST['interview_date'])."', interview_time_tech='".$_REQUEST['interview_time']."' where id='".base64_decode($_REQUEST['reqid'])."'");
}
//$msg='Your request saved successfully. Administrator will contact you soon.';
header("location:request.php?success=1&reqid=".$_REQUEST['reqid']);
}
}
//echo 'aaaaa'.$_REQUEST['success'];
//exit;
if($_REQUEST['success']!=1){
$qry = mysql_query("select * from abs_tech_screener_request where id='".base64_decode($_REQUEST['reqid'])."'");
$arrchk = mysql_fetch_assoc($qry);
if($arrchk['accept']==0){
/*if($_REQUEST['accept']!='' && $_REQUEST['reqid']!=''){
if($_REQUEST['accept']=='yes'){
mysql_query("update abs_tech_screener_request set status='Available', accept=1, accept_time='".time()."' where id='".base64_decode($_REQUEST['reqid'])."'");
}else{
mysql_query("update abs_tech_screener_request set status='Not Available', accept=2, accept_time='".time()."' where id='".base64_decode($_REQUEST['reqid'])."'");
}
$msg='Your request saved successfully. Administrator will contact you soon.';
}*/
}
else{
//$msg='Sorry, you have already submitted your response. The link is no more alive.';
header("location:request.php?error=2");
}
}
?>
<script>
jQuery.noConflict();
(function($) {jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
jQuery("#form1").validationEngine();
});})(jQuery);
</script>
<div class="container_bottom_section">
<div class="login_panel_section login_top">
<div class="bottom_section_box login_panel">
<div class="section_box_top"><h1 style="font-weight:bold;">Request</h1></div>
<div class="section_box_bottom">
<?php
if(empty($_REQUEST['error'])){$_REQUEST['error']='';}
if($_REQUEST['success']==1){ $show = '1'; ?>
<div class="error" style="color:#093; padding:0 !important; font-size:14px;">Your request saved successfully. Administrator will contact you soon.</div>
<?php } ?>
<?php if($_REQUEST['error']==2){ $show = '1'; ?>
<div class="error" style="color:#093; padding:0 !important; font-size:14px;">Sorry, you have already submitted your response. The link is no more alive.</div>
<?php } ?>
<?php if($show==''){ ?>
<form id="form1" name="form1" method="post" action="request.php">
<input type="hidden" name="reqid" value="<?php echo $_REQUEST['reqid']; ?>" />
<input type="hidden" name="accept" value="<?php echo $_REQUEST['accept']; ?>" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><font color="#FF0000">*</font>Interview Date: </td>
<td width="50%">
<input name="interview_date" id="interview_date" type="text" class="validate[required] datepicker textfield require_field require-txt" value="<?php echo change_dateformat_reverse($arrchk['interview_date']); ?>" />
<script>
$(function() {
$( "#interview_date" ).datepicker({
dateFormat:"<?php echo $dateFormat; ?>"
});
});
</script>
</td>
</tr>
<tr>
<td width="24%"><font color="#FF0000">*</font>Interview Time: </td>
<td width="76%">
<input name="interview_time" id="interview_time" type="text" class="validate[required] textfield require_field require-txt" value="<?php echo $arrchk['interview_time']; ?>" />
</td>
</tr>
<tr>
<td colspan="2" valign="top" height="10"></td></tr>
<tr>
<td valign="top"> </td>
<td valign="top" align="left"><input type="submit" name="button" id="button" value="Submit" class="submit2" style="margin-left:0px;" /></td>
</tr>
</table>
</form>
<?php } ?>
</div>
</div>
</div>
<div class="clear"></div>
</div>
<?php include("includes/other_footer.php"); ?>
Directory Contents
Dirs: 17 × Files: 180