كود PHP:
<?php include(DIR_LANGUAGES.$language."/".FILENAME_ADMIN_FORM);?>
<?php
$action="details";
if($_POST['type']) {
$type=$_POST['type'];
}
elseif ($_GET['type']){
$type = $_GET['type'];
}
else {
$type = '';
}
if (($type=="comp_email") or ($type=="comp_name") or ($type=="comp_location")) {
$l_colspan=3;
if(USE_FEATURED_COMPANIES == "yes") {
$l_colspan++;
}
if(USE_FEATURED_JOBS == "yes" && USE_ONLY_FEATURED_JOBS=="no") {
$l_colspan++;
}
?>
<script language="Javascript" type="text/javascript" src="admin_bulk_action.js"></script>
<form name="frmbulk" action="<?php echo HTTP_SERVER_ADMIN;?>validation.php" method="post" onSubmit="return check_bulk_form(document.frmbulk['compid[]'],document.frmbulk.bulk_todo);">
<input type="hidden" name="action" value="bulk_compaction">
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="<?php echo $l_colspan;?>" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF"><td colspan="6"><b>Display: <input type="radio" name="comp_status" value="" class="radio" id="id_resall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=0&comp_status=";?>';"<?php if(!isset($_GET['comp_status']) || $_GET['comp_status']==""){ echo " checked";}?>><label for="id_resall">All</label> <input type="radio" name="comp_status" value="active" class="radio" id="id_resa"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=0&comp_status=active";?>';"<?php if(isset($_GET['comp_status']) && $_GET['comp_status']=="active"){ echo " checked";}?>><label for="id_resa">Active</label> <input type="radio" name="comp_status" value="suspended" class="radio" id="id_ressus" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=0&comp_status=suspended";?>';"<?php if(isset($_GET['comp_status']) && $_GET['comp_status']=="suspended"){ echo " checked";}?>><label for="id_ressus">Suspended</label><?php if(USE_ACTIVATION_CODE=="yes"){?> <input type="radio" name="comp_status" value="wait_activation" class="radio" id="id_reswait" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=0&comp_status=wait_activation";?>';"<?php if(isset($_GET['comp_status']) && $_GET['comp_status']=="wait_activation"){ echo " checked";}?>><label for="id_reswait">Waiting Activation</label><?php }?> <input type="checkbox" name="show" value="all" class="radio" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=0&comp_status=".($_GET['comp_status']?$_GET['comp_status']:$_POST['comp_status']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall">Show all in one page</label></b></td>
<td colspan="<?php echo $l_colspan;?>" align="right" class="searchhead">Search Employers - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="<?php echo $l_colspan;?>" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="2%"><input type="checkbox" name="sel_all" value="" onClick="make_check(document.frmbulk['compid[]'], this.checked);" class="radio"></td>
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<?php if(USE_FEATURED_COMPANIES == "yes" || ASK_COMP_TYPE=="yes") {?>
<td width="5%" align="center"> <?php echo TEXT_TYPE;?> </td>
<?php }?>
<td width="35%" align="center"> <?php echo TEXT_COMPANY_NAME;?> </td>
<td width="15%" align="center"> <?php echo TEXT_SIGNUP_DATE;?> </td>
<td width="5%" align="center"> <?php echo TEXT_AVAILABLE_JOBS;?> </td>
<?php if(USE_FEATURED_JOBS == "yes" && USE_ONLY_FEATURED_JOBS=="no") {?>
<td width="5%" align="center"> <?php echo TEXT_AVAILABLE_FJOBS;?> </td>
<?php }?>
<td width="5%" align="center"> <?php echo TEXT_AVAILABLE_RESUMES;?> </td>
<td width="5%" align="center"> <?php echo TEXT_EMAIL;?> </td>
<td width="10%" align="center"> <?php echo TEXT_STATUS;?> </td>
<td width="10%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($company_result=bx_db_fetch_array($company_query)) {
$rows++;
$credits_query=bx_db_query("SELECT * FROM ".$bx_table_prefix."_companycredits WHERE compid='".$company_result['main_compid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
$credits_result=bx_db_fetch_array($credits_query);
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td nowrap><input type="checkbox" name="compid[]" value="<?php echo $company_result['compid'];?>" class="radio"></td>
<td><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $company_result['compid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&comp_status=".($_GET['comp_status']?$_GET['comp_status']:$_POST['comp_status'])."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> <?php echo $company_result['compid'];?></a></td>
<?php if(USE_FEATURED_COMPANIES == "yes" || ASK_COMP_TYPE=="yes") {?>
<td align="center"><?php if(USE_FEATURED_COMPANIES == "yes"){if($company_result['featured']=="1") {echo bx_image("images/fjob.gif",0,"Featured Company");} else {echo bx_image("images/njob.gif",0,"Normal Company");}}
if(ASK_COMP_TYPE == "yes"){if($company_result['comp_type']=="E") {echo bx_image("images/empl.gif",0,"Employer");} else {echo bx_image("images/rec.gif",0,"Recruiter");}}
if(ALLOW_EMPLOYER_SUBACCOUNT=="yes"){ if ($company_result['compid']==$company_result['main_compid']) {echo bx_image("images/mainacc.gif",0,"Main Account");}else{echo bx_image("images/subacc.gif",0,"SubAccount");}}
?></td>
<?php }?>
<td><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $company_result['compid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&comp_status=".($_GET['comp_status']?$_GET['comp_status']:$_POST['comp_status'])."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=".$item_from);?>" class="action"><?php echo $company_result['company'];?></a></td>
<td align="center" nowrap><?php echo bx_format_date($company_result['signupdate'], DATE_FORMAT);?></td>
<td align="center"><?php if($credits_result['jobs'] == '9999') {
echo TEXT_UNLIMITED;
}
else {
echo $credits_result['jobs'];
}?></td>
<?php if(USE_FEATURED_JOBS == "yes" && USE_ONLY_FEATURED_JOBS=="no") {?>
<td align="center"><?php if($credits_result['featuredjobs'] == '9999') {
echo TEXT_UNLIMITED;
}
else {
echo $credits_result['featuredjobs'];
}?></td>
<?php }?>
<td align="center"><?php if($credits_result['contacts'] == '9999') {
echo TEXT_UNLIMITED;
}
else {
echo $credits_result['contacts'];
}?></td>
<td><a href="mailto:<?php echo $company_result['email'];?>" class="email" onmouseover="window.status='Send mail'; return true;" onmouseout="window.status=''; return true;"><?php echo $company_result['email'];?></a></td>
<td align="center"><b><?php if($company_result['company_suspended']=="1"){echo TEXT_SUSPENDED;} else { if($company_result['comp_akey_status']=="0" && USE_ACTIVATION_CODE=="yes"){echo TEXT_WAIT_ACTIVATION;}else{echo TEXT_ACTIVE;}}?></b></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?company_id=<?php echo $company_result['compid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=640,height=520,screenX=50,screenY=50,left=50,top=50');" class="action"><img src="images/preview.gif" title="Preview" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $company_result['compid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&comp_status=".($_GET['comp_status']?$_GET['comp_status']:$_POST['comp_status'])."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"".($l_colspan+6)."\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<?php if($rows!=0){?>
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr>
<td valign="middle" nowrap> <a href="javascript: ;" onClick="make_check(document.frmbulk['compid[]'], true); return false;" class="action">Check All</a> / <a href="javascript: ;" onClick="make_check(document.frmbulk['compid[]'], false); return false;" class="action">UnCheck All</a> <select name="bulk_todo"><option value=""> With Selected Employer(s) </option><option value="archive">Archive Employer(s)</option><option value="suspend">Suspend Employer Account(s)</option><option value="unsuspend">Un-Suspend Employer Account(s)</option><option value="resend_aemail">Resend Activation Key in E-mail</option><option value="send_fpassword_email">Send Forgot Password By Email</option><option value="delete">Delete Employer(s)</option></select> <input type="submit" class="isubmit" name="go_bulk" value="Go"></td>
<td align="right"><?php include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&comp_status=".($_GET['comp_status']?$_GET['comp_status']:$_POST['comp_status'])."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc']));?></td>
</tr>
</table>
<input type="hidden" name="back_url" value="<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&comp_status=".($_GET['comp_status']?$_GET['comp_status']:$_POST['comp_status'])."&comp_name=".($_GET['comp_name']?$_GET['comp_name']:$_POST['comp_name'])."&comp_email=".($_GET['comp_email']?$_GET['comp_email']:$_POST['comp_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&add_sc=".($_GET['add_sc']?$_GET['add_sc']:$_POST['add_sc'])."&from=".$item_back_from);?>">
<?php }?>
</form>
<?php
}//end if ($_GET['table']=="company")
if (($type=="pers_email") or ($type=="pers_name") or ($type=="pers_location")){
?>
<script language="Javascript" type="text/javascript" src="admin_bulk_action.js"></script>
<form name="frmbulk" action="<?php echo HTTP_SERVER_ADMIN;?>validation.php" method="post" onSubmit="return check_bulk_form(document.frmbulk['persid[]'],document.frmbulk.bulk_todo);">
<input type="hidden" name="action" value="bulk_persaction">
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="9" bgcolor="#FFFFFF" width="100%"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF"><td colspan="5"><b>Display: <input type="radio" name="pers_status" value="" class="radio" id="id_resall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=0&pers_status=";?>';"<?php if(!isset($_GET['pers_status']) || $_GET['pers_status']==""){ echo " checked";}?>><label for="id_resall">All</label> <input type="radio" name="pers_status" value="active" class="radio" id="id_resa"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=0&pers_status=active";?>';"<?php if(isset($_GET['pers_status']) && $_GET['pers_status']=="active"){ echo " checked";}?>><label for="id_resa">Active</label> <input type="radio" name="pers_status" value="suspended" class="radio" id="id_ressus" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=0&pers_status=suspended";?>';"<?php if(isset($_GET['pers_status']) && $_GET['pers_status']=="suspended"){ echo " checked";}?>><label for="id_ressus">Suspended</label><?php if(USE_ACTIVATION_CODE=="yes"){?> <input type="radio" name="pers_status" value="wait_activation" class="radio" id="id_reswait" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=0&pers_status=wait_activation";?>';"<?php if(isset($_GET['pers_status']) && $_GET['pers_status']=="wait_activation"){ echo " checked";}?>><label for="id_reswait">Waiting Activation</label><?php }?> <input type="checkbox" name="show" value="all" class="radio" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=0&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall">Show all in one page</label></b></td>
<td colspan="4" align="right" class="searchhead" nowrap>Search Jobseekers - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="8" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="2%"><input type="checkbox" name="sel_all" value="" onClick="make_check(document.frmbulk['persid[]'], this.checked);" class="radio"></td>
<td width="10%" align="center"> <?php echo TEXT_ID;?> </td>
<td width="30%" align="center"> <?php echo TEXT_JOBSEEKER_NAME;?> </td>
<td width="15%" align="center"> <?php echo TEXT_SIGNUP_DATE;?> </td>
<td width="35%" align="center"> <?php echo TEXT_ADDRESS;?> </td>
<td width="20%" align="center"> <?php echo TEXT_EMAIL;?> </td>
<td width="10%" align="center"> <?php echo TEXT_STATUS;?> </td>
<td width="35%" align="center"> <?php echo ucfirst(TEXT_RESUME);?> </td>
<td width="10%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($person_result=bx_db_fetch_array($person_query))
{
$rows++;
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center" nowrap><input type="checkbox" name="persid[]" value="<?php echo $person_result['apersid'];?>" class="radio"></td>
<td align="center"><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $person_result['apersid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status'])."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> <?php echo $person_result['apersid'];?></a></td>
<td><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $person_result['apersid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status'])."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=".$item_from);?>" class="action"><?php echo $person_result['name'];?></a></td>
<td align="center" nowrap><?php echo bx_format_date($person_result['signupdate'], DATE_FORMAT);?></td>
<td><?php echo short_string($person_result['address'],50);?></td>
<td><a href="mailto:<?php echo $person_result['email'];?>" class="email" onmouseover="window.status='Send mail'; return true;" onmouseout="window.status=''; return true;"><?php echo $person_result['email'];?></a></td>
<td align="center"><b><?php if($person_result['person_suspended']=="1"){echo TEXT_SUSPENDED;} else { if($person_result['pers_akey_status']=="0" && USE_ACTIVATION_CODE=="yes"){ if ($jobseeker_result['reg_status']=="0") { echo TEXT_ADM_REGISTRATION_NOTFINISHED;}else{ echo TEXT_WAIT_ACTIVATION;}}elseif($jobseeker_result['reg_status']=="0"){ echo TEXT_ADM_REGISTRATION_NOTFINISHED;}else{echo TEXT_ACTIVE;} }?></b></td>
<td><?php
$resume_query=bx_db_query("SELECT resumeid,resume_cv FROM ".$bx_table_prefix."_resumes WHERE ".$bx_table_prefix."_resumes.persid='".$person_result['apersid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if(bx_db_num_rows($resume_query)>0) {
$resume_result=bx_db_fetch_array($resume_query);
echo "<a href=\"".HTTP_SERVER_ADMIN."details.php?action=details&resumeid=".$resume_result['resumeid']."&back_url=".urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status'])."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=".$item_from)."\">".TEXT_YES."</a>";
if($resume_result['resume_cv']!=""){
?> <a href="<?php echo HTTP_SERVER_ADMIN."admin_download_resume.php?resumeid=".$resume_result['resumeid'];?>" class="action"><img src="images/word.gif" border="0"></a><?php
}
}
else {
echo TEXT_NO;
}?></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?person_id=<?php echo $person_result['apersid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=640,height=520,screenX=50,screenY=50,left=50,top=50');"><img src="images/preview.gif" title="Preview" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $person_result['apersid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status'])."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"9\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<?php if($rows!=0){?>
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr>
<td valign="middle" nowrap> <a href="javascript: ;" onClick="make_check(document.frmbulk['persid[]'], true); return false;" class="action">Check All</a> / <a href="javascript: ;" onClick="make_check(document.frmbulk['persid[]'], false); return false;" class="action">UnCheck All</a> <select name="bulk_todo"><option value=""> With Selected Jobseeker(s) </option><option value="archive">Archive Jobseeker(s)</option><option value="suspend">Suspend Jobseeker Account(s)</option><option value="unsuspend">Un-Suspend Jobseeker Account(s)</option><?php if(ADMIN_VALIDATE_JREGISTRATION=="yes"){?><option value="validate">Validate Jobseeker Account(s)</option><?php }?><option value="resend_aemail">Resend Activation Key in E-mail</option><option value="send_fpassword_email">Send Forgot Password By Email</option><option value="delete">Delete Jobseeker(s)</option></select> <input type="submit" class="isubmit" name="go_bulk" value="Go"></td>
<td align="right"><?php include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status'])."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location']));?></td>
</tr>
</table>
<input type="hidden" name="back_url" value="<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&pers_status=".($_GET['pers_status']?$_GET['pers_status']:$_POST['pers_status'])."&pers_name=".($_GET['pers_name']?$_GET['pers_name']:$_POST['pers_name'])."&pers_email=".($_GET['pers_email']?$_GET['pers_email']:$_POST['pers_email'])."&location=".($_GET['location']?$_GET['location']:$_POST['location'])."&from=".$item_back_from);?>">
<?php }?>
</form>
<?php
}//end if ($_GET['table']=="persons")
if (($type=="job_title") or ($type=="job_category") or ($type=="job_employer")) {
$l_colspan=3;
if(USE_FEATURED_JOBS == "yes" && USE_ONLY_FEATURED_JOBS=="no") {
$l_colspan++;
}
?>
<script language="Javascript" type="text/javascript" src="admin_bulk_action.js"></script>
<form name="frmbulk" action="<?php echo HTTP_SERVER_ADMIN;?>validation.php" method="post" onSubmit="return check_bulk_form(document.frmbulk['jobid[]'],document.frmbulk.bulk_todo);">
<input type="hidden" name="action" value="bulk_jobaction">
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="<?php echo ($l_colspan+7);?>" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF"><td colspan="6"><b>Display: <input type="radio" name="job_status" value="" class="radio" id="id_resall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=";?>';"<?php if(!isset($_GET['job_status']) || $_GET['job_status']==""){ echo " checked";}?>><label for="id_resall">All</label> <input type="radio" name="job_status" value="active" class="radio" id="id_resa"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=active";?>';"<?php if(isset($_GET['job_status']) && $_GET['job_status']=="active"){ echo " checked";}?>><label for="id_resa">Active</label> <input type="radio" name="job_status" value="inactive" class="radio" id="id_resi"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=inactive";?>';"<?php if(isset($_GET['job_status']) && $_GET['job_status']=="inactive"){ echo " checked";}?>><label for="id_resi">InActive</label> <input type="radio" name="job_status" value="expired" class="radio" id="id_resexp"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=expired";?>';"<?php if(isset($_GET['job_status']) && $_GET['job_status']=="expired"){ echo " checked";}?>><label for="id_resexp">Expired</label> <input type="radio" name="job_status" value="suspended" class="radio" id="id_ressus" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=suspended";?>';"<?php if(isset($_GET['job_status']) && $_GET['job_status']=="suspended"){ echo " checked";}?>><label for="id_ressus">Suspended</label><?php if(ADMIN_JOB_VALIDATE!="1"){?> <input type="radio" name="job_status" value="wait_admin" class="radio" id="id_reswait" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=wait_admin";?>';"<?php if(isset($_GET['job_status']) && $_GET['job_status']=="wait_admin"){ echo " checked";}?>><label for="id_reswait">Waiting Validation</label><?php }?> <input type="checkbox" name="show" value="all" class="radio" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=0&job_status=".($_GET['job_status']?$_GET['job_status']:$_POST['job_status']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall">All in one page</label></b></td>
<td colspan="<?php echo $l_colspan;?>" align="right" class="searchhead">Search jobs - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="<?php echo ($l_colspan+7);?>" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="2%"><input type="checkbox" name="sel_all" value="" onClick="make_check(document.frmbulk['jobid[]'], this.checked);" class="radio"></td>
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<?php if(USE_FEATURED_JOBS == "yes" && USE_ONLY_FEATURED_JOBS=="no") {?>
<td width="2%" align="center"> <?php echo TEXT_TYPE;?> </td>
<?php }?>
<td width="2%" align="center"> Job Ref. </td>
<td width="35%" align="center"> <?php echo TEXT_SEARCH_JOB_TITLE;?> </td>
<td width="25%" align="center"> <?php echo TEXT_COMPANY_NAME;?> </td>
<td width="10%" align="center"> <?php echo TEXT_DATE_ADDED;?> </td>
<td width="10%" align="center"> <?php echo TEXT_EXPIRE;?> </td>
<td width="10%" align="center"> <?php echo TEXT_STATUS;?> </td>
<td width="20%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($company_result=bx_db_fetch_array($company_query))
{
$rows++;
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center" nowrap><input type="checkbox" name="jobid[]" value="<?php echo $company_result['jobid'];?>" class="radio"></td>
<td align="center"><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&jobid=<?php echo $company_result['jobid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&job_status=".($_GET['job_status']?$_GET['job_status']:$_POST['job_status'])."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> <?php echo $company_result['jobid'];?></a></td>
<?php if(USE_FEATURED_JOBS == "yes" && USE_ONLY_FEATURED_JOBS=="no") {?>
<td align="center"><?php if($company_result['featuredjob']=="Y") {echo bx_image("images/fjob.gif",0,"Featured Job");} else {echo bx_image("images/njob.gif",0,"Normal Job");}?></td>
<?php }?>
<td><?php echo $company_result['job_reference'];?></td>
<td><?php echo $company_result['jobtitle'];?></td>
<td><?php if($company_result['compid']!=0){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $company_result['compid'];?>"><?php echo $company_result['job_company'];?></a><?php }else{ if($company_result['job_company']){echo $company_result['job_company'];}else{echo " Default Company ";}}?></td>
<td align="center"><?php echo bx_format_date($company_result['jobdate'], DATE_FORMAT);?></td>
<td align="center"><?php echo bx_format_date($company_result['jobexpire'], DATE_FORMAT);if($company_result['jobexp']<0){ echo "<font class=\"errortd\">- Expired</font>";}?></td>
<td align="center"><b><?php if(ADMIN_JOB_VALIDATE!="1" && $company_result['job_suspended']=="1" && $company_result['job_active']=="0"){echo "<font class=\"warning\">".TEXT_NOTVALIDATED."</font>";}else{if($company_result['job_suspended']=="1"){echo TEXT_SUSPENDED;} else { if($company_result['job_active']=='1'){ echo TEXT_ACTIVE;} else {echo TEXT_INACTIVE;}}}?></b></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?job_id=<?php echo $company_result['jobid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=640,height=520,screenX=50,screenY=50,left=50,top=50');"><img src="images/preview.gif" title="Preview" border="0"></a><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?job=add&jobid=<?php echo $company_result['jobid'];?>"><img src="images/duplicate.gif" title="Duplicate" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&jobid=<?php echo $company_result['jobid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&job_status=".($_GET['job_status']?$_GET['job_status']:$_POST['job_status'])."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"".($l_colspan+7)."\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<?php if($rows!=0){?>
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr>
<td valign="middle" nowrap> <a href="javascript: ;" onClick="make_check(document.frmbulk['jobid[]'], true); return false;" class="action">Check All</a> / <a href="javascript: ;" onClick="make_check(document.frmbulk['jobid[]'], false); return false;" class="action">UnCheck All</a> <select name="bulk_todo"><option value=""> With Selected Job(s) </option><option value="archive">Archive Job(s)</option><option value="suspend">Suspend Job(s)</option><option value="unsuspend">Un-Suspend Job(s)</option><option value="renew">Renew Job(s)</option><option value="renew_credit">Renew Job(s) - Substract Credit from Account</option><option value="refresh">Refresh Job(s) PostDate</option><?php if(ADMIN_VALIDATE_JOB!="1"){?><option value="validate">Validate Job(s)</option><?php }?><option value="delete">Delete Job(s)</option></select> <input type="submit" class="isubmit" name="go_bulk" value="Go"></td>
<td align="right"><?php include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&job_status=".($_GET['job_status']?$_GET['job_status']:$_POST['job_status'])."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid']));?></td>
</tr>
</table>
<input type="hidden" name="back_url" value="<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&job_status=".($_GET['job_status']?$_GET['job_status']:$_POST['job_status'])."&type=".$type."&job_title=".($_GET['job_title']?$_GET['job_title']:$_POST['job_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&from=".$item_back_from;?>">
<?php }?>
</form>
<?php
}//end if ($_GET['table']=="jobs")
if (($type=="resume_title") or ($type=="resume_category") or ($type=="resume_persid")){?>
<script language="Javascript" type="text/javascript" src="admin_bulk_action.js"></script>
<form name="frmbulk" action="<?php echo HTTP_SERVER_ADMIN;?>validation.php" method="post" onSubmit="return check_bulk_form(document.frmbulk['resumeid[]'],document.frmbulk.bulk_todo);">
<input type="hidden" name="action" value="bulk_resaction">
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="9" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF"><td colspan="5"><b>Display: <input type="radio" name="res_status" value="" class="radio" id="id_resall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=";?>';"<?php if(!isset($_GET['res_status']) || $_GET['res_status']==""){ echo " checked";}?>><label for="id_resall">All</label> <input type="radio" name="res_status" value="active" class="radio" id="id_resa"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=active";?>';"<?php if(isset($_GET['res_status']) && $_GET['res_status']=="active"){ echo " checked";}?>><label for="id_resa">Active</label> <input type="radio" name="res_status" value="inactive" class="radio" id="id_resi"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=inactive";?>';"<?php if(isset($_GET['res_status']) && $_GET['res_status']=="inactive"){ echo " checked";}?>><label for="id_resi">InActive</label><?php if(RESUME_EXPIRE == "yes"){?> <input type="radio" name="res_status" value="expired" class="radio" id="id_resexp"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=expired";?>';"<?php if(isset($_GET['res_status']) && $_GET['res_status']=="expired"){ echo " checked";}?>><label for="id_resexp">Expired</label><?php }?> <input type="radio" name="res_status" value="suspended" class="radio" id="id_ressus" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=suspended";?>';"<?php if(isset($_GET['res_status']) && $_GET['res_status']=="suspended"){ echo " checked";}?>><label for="id_ressus">Suspended</label><?php if(ADMIN_RESUME_VALIDATE!="1"){?> <input type="radio" name="res_status" value="wait_admin" class="radio" id="id_reswait" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=wait_admin";?>';"<?php if(isset($_GET['res_status']) && $_GET['res_status']=="wait_admin"){ echo " checked";}?>><label for="id_reswait">Waiting Validation</label><?php }?> <input type="checkbox" name="show" value="all" class="radio" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=0&res_status=".($_GET['res_status']?$_GET['res_status']:$_POST['res_status']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall">All in one page</label></b></td>
<td colspan="4" align="right" class="searchhead">Search resumes - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="9" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="2%"><input type="checkbox" name="sel_all" value="" onClick="make_check(document.frmbulk['resumeid[]'], this.checked);" class="radio"></td>
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<td width="20%" align="center"> <?php echo TEXT_NAME;?> </td>
<td width="20%" align="center"> <?php echo TEXT_SEARCH_RESUME_TITLE;?> </td>
<td width="20%" align="center"> <?php echo TEXT_SKILLS;?> </td>
<td width="15%" align="center"> <?php echo TEXT_DATE_ADDED;?> </td>
<td width="10%" align="center"> <?php echo TEXT_STATUS;?> </td>
<td width="2%" align="center"> </td>
<td width="20%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($resume_result=bx_db_fetch_array($resume_query)) {
$rows++;
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center" nowrap><input type="checkbox" name="resumeid[]" value="<?php echo $resume_result['resumeid'];?>" class="radio"></td>
<td align="center"><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&resumeid=<?php echo $resume_result['resumeid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&res_status=".($_GET['res_status']?$_GET['res_status']:$_POST['res_status'])."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> <?php echo $resume_result['resumeid'];?></a></td>
<td><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $resume_result['persid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&res_status=".($_GET['res_status']?$_GET['res_status']:$_POST['res_status'])."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_from);?>"><?php echo $resume_result['name'];?></a></td>
<td><?php echo short_string($resume_result['summary'],35);?></td>
<td><?php echo short_string($resume_result['skills'],35);?></td>
<td align="center"><?php echo bx_format_date($resume_result['resumedate'], DATE_FORMAT);?></td>
<td align="center"><b><?php if(ADMIN_RESUME_VALIDATE!="1" && $resume_result['resume_suspended']=="1" && $resume_result['resume_active']=="0"){echo "<font class=\"warning\">".TEXT_NOTVALIDATED."</font>";}else{if($resume_result['resume_suspended']=="1"){echo TEXT_SUSPENDED;} else { if($resume_result['resume_active']=='1'){ echo TEXT_ACTIVE;} else {echo TEXT_INACTIVE;}}} if($resume_result['resexp']<0){ echo "<font class=\"errortd\">- Expired</font>";}?></b></td>
<td align="center"><?php if($resume_result['resume_cv']!=""){?><a href="<?php echo HTTP_SERVER_ADMIN."admin_download_resume.php?resumeid=".$resume_result['resumeid'];?>" class="action"><img src="images/word.gif" border="0"></a><?php }?></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?resume_id=<?php echo $resume_result['resumeid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=640,height=520,screenX=50,screenY=50,left=50,top=50');"><img src="images/preview.gif" title="Preview" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&resumeid=<?php echo $resume_result['resumeid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&res_status=".($_GET['res_status']?$_GET['res_status']:$_POST['res_status'])."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"9\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<?php if($rows!=0){?>
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr>
<td valign="middle" nowrap> <a href="javascript: ;" onClick="make_check(document.frmbulk['resumeid[]'], true); return false;" class="action">Check All</a> / <a href="javascript: ;" onClick="make_check(document.frmbulk['resumeid[]'], false); return false;" class="action">UnCheck All</a> <select name="bulk_todo"><option value=""> With Selected Resume(s) </option><option value="archive">Archive Resume(s)</option><option value="suspend">Suspend Resume(s)</option><option value="unsuspend">Un-Suspend Resume(s)</option><?php if(RESUME_EXPIRE == "yes") {?><option value="reactivate">Reactivate Resume(s)</option><?php }?><option value="refresh">Refresh Resume(s) PostDate</option><?php if(ADMIN_VALIDATE_RESUME!="1"){?><option value="validate">Validate Resume(s)</option><?php }?><option value="delete">Delete Resume(s)</option></select> <input type="submit" class="isubmit" name="go_bulk" value="Go"></td>
<td align="right"><?php include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&res_status=".($_GET['res_status']?$_GET['res_status']:$_POST['res_status'])."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']));?></td>
</tr>
</table>
<input type="hidden" name="back_url" value="<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&show=".($_GET['show']?$_GET['show']:$_POST['show'])."&res_status=".($_GET['res_status']?$_GET['res_status']:$_POST['res_status'])."&resume_title=".($_GET['resume_title']?$_GET['resume_title']:$_POST['resume_title'])."&jobcategoryid=".($_GET['jobcategoryid']?$_GET['jobcategoryid']:$_POST['jobcategoryid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_back_from);?>">
<?php }?>
</form>
<?php
}//end if ($_GET['table']=="resumes")
if (($type=="invoice_id") || ($type=="invoice_pricing") || ($type=="invoice_employer") || ($type=="invoice_date") || ($type=="invoice_other")){
include(DIR_CONFIG.'cc_payment_settings.php');
?>
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="9" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF"><td colspan="4"><b>Display: <input type="radio" name="invoice_status" value="" class="radio" id="id_invall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=0&invoice_status=";?>';"<?php if(!isset($_GET['invoice_status']) || $_GET['invoice_status']==""){ echo " checked";}?>><label for="id_invall">All</label> <input type="radio" name="invoice_status" value="paid" class="radio" id="id_invp"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=0&invoice_status=paid";?>';"<?php if(isset($_GET['invoice_status']) && $_GET['invoice_status']=="paid"){ echo " checked";}?>><label for="id_invp">Paid</label> <input type="radio" name="invoice_status" value="not_paid" class="radio" id="id_invnp"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=0&invoice_status=not_paid";?>';"<?php if(isset($_GET['invoice_status']) && $_GET['invoice_status']=="not_paid"){ echo " checked";}?>><label for="id_invnp">Not Paid</label> <input type="radio" name="invoice_status" value="wait_admin" class="radio" id="id_invwa"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=0&invoice_status=wait_admin";?>';"<?php if(isset($_GET['invoice_status']) && $_GET['invoice_status']=="wait_admin"){ echo " checked";}?>><label for="id_invwa">Waiting Validation</label> <input type="radio" name="invoice_status" value="canceled" class="radio" id="id_invc"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=0&invoice_status=canceled";?>';"<?php if(isset($_GET['invoice_status']) && $_GET['invoice_status']=="canceled"){ echo " checked";}?>><label for="id_invc">Canceled</label> <input type="checkbox" name="show" value="all" class="radio" id="idshowall"onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=0&invoice_status=".($_GET['invoice_status']?$_GET['invoice_status']:$_POST['invoice_status'])."&".(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall">All in one page</label></b></td><td colspan="5" align="right" class="searchhead">Search invoices - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="9" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<td width="35%" align="center"> <?php echo TEXT_COMPANY_NAME;?> </td>
<td width="10%" align="center"> <?php echo TEXT_PRICING_TYPE;?> </td>
<td width="15%" align="center"> <?php echo TEXT_DATE_ADDED;?> </td>
<td width="5%" align="center"> <?php echo TEXT_UPGRADE_VALUE;?> </td>
<?php if(USE_DISCOUNT == "yes") {?>
<td width="10%" align="center"> <?php echo TEXT_DISCOUNT_VALUE;?> </td>
<?php }?>
<td width="10%" align="center"> <?php echo TEXT_PAYMENT_VALUE;?> </td>
<td width="10%" align="center"> <?php echo TEXT_STATUS;?> </td>
<td width="10%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($invoice_result=bx_db_fetch_array($invoice_query)) {
$rows++;
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center"><?php echo $invoice_result['opid'];?></td>
<td><?php
$comp_check_query=bx_db_query("SELECT compid FROM ".$bx_table_prefix."_companies WHERE compid='".$invoice_result['compid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($comp_check_query)>0) {
?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $invoice_result['compid'];?>"><?php echo $invoice_result['comp_name'];?></a><?php }else{ echo $invoice_result['comp_name']; }?></td>
<td><?php echo $invoice_result['invoice_title'];?></td>
<td align="center"><?php echo bx_format_date($invoice_result['date_added'], DATE_FORMAT);?></td>
<td align="center"><?php echo bx_format_price($invoice_result['listprice'],$invoice_result['currency']);?></td>
<?php if(USE_DISCOUNT == "yes") {?>
<td align="center"><?php echo bx_format_price((($invoice_result['listprice']*$invoice_result['discount'])/100),$invoice_result['currency']);?></td>
<?php }?>
<td align="center"><?php echo bx_format_price($invoice_result['totalprice'],$invoice_result['currency']);?></td>
<td><?php if($invoice_result['canceled']=="Y"){echo TEXT_CANCELED;}elseif($invoice_result['paid']=="N"){echo TEXT_NOTPAID;}elseif($invoice_result['paid']=="Y" && $invoice_result['validated']=="Y" && $invoice_result['updated']=="N"){echo TEXT_NOTUPDATED;}elseif($invoice_result['paid']=="Y" && $invoice_result['validated']=="N" && $invoice_result['updated']=="N"){echo TEXT_NOTVALIDATED;}elseif($invoice_result['paid']=="Y" && $invoice_result['validated']=="N" && $invoice_result['updated']=="Y"){echo TEXT_NOTVALIDATED;}elseif($invoice_result['paid']=="Y" && $invoice_result['validated']=="Y" && $invoice_result['updated']=="Y"){echo "<img src=\"images/ok.gif\" border=\"0\" title=\"".TEXT_PAID."\"> ".TEXT_PAID.(($invoice_result['payment_mode_text']=="")?"":"<br>with ".$invoice_result['payment_mode_text']);}?></td>
<td nowrap>
<?php if(LOG_INVOICE_PROCESS=="yes"){?><a href="javascript: ;" onmouseOver="window.status='<?php echo TEXT_VIEW_LOG;?>'; return true;" onmouseOut="window.status=''; return true;" onClick="newwind = window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN."details.php";?>?action=details&opid=<?php echo $invoice_result['opid'];?>&printit=yes&view_log=yes'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=700,height=600,screenX=0,screenY=0,left=0,top=0');"><img src="images/log.gif" border="0" alt="View Log"></a><?php }?><a href="javascript: ;" onmouseOver="window.status='<?php echo TEXT_PRINTER_FRIENDLY;?>'; return true;" onmouseOut="window.status=''; return true;" onClick="newwind = window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN."details.php";?>?action=details&opid=<?php echo $invoice_result['opid'];?>&printit=yes'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=700,height=600,screenX=0,screenY=0,left=0,top=0');"><img src="images/print.gif" border="0" title="Print"></a><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&opid=<?php echo $invoice_result['opid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&invoice_status=".($_GET['invoice_status']?$_GET['invoice_status']:$_POST['invoice_status'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" title="Details" border="0"> Details »</a>
<?php
if($invoice_result['canceled']=="N" && $invoice_result['paid']=="Y" && $invoice_result['validated']=="N" && $invoice_result['updated']=="N"){echo "<br><a href=\"".HTTP_SERVER_ADMIN."details.php?action=upgrades&compid=".$invoice_result['compid']."&opid=".$invoice_result['opid']."\" class=\"action\"><img src=\"images/validate.gif\" border=0>Validate</a><br><a href=\"".HTTP_SERVER_ADMIN."novalidation.php?action=upgrades&compid=".$invoice_result['compid']."&opid=".$invoice_result['opid']."\" class=\"action\"><img src=\"images/delete.gif\" border=\"0\" title=\"Decline\"> Decline</a>";
}
elseif($invoice_result['canceled']=="N" && $invoice_result['paid']=="N"){echo "<br><a href=\"".HTTP_SERVER_ADMIN."details.php?action=upgrades&compid=".$invoice_result['compid']."&opid=".$invoice_result['opid']."\" class=\"action\"><img src=\"images/validate.gif\" border=0> Validate</a><br><a href=\"".HTTP_SERVER_ADMIN."novalidation.php?action=upgrades&compid=".$invoice_result['compid']."&opid=".$invoice_result['opid']."\" class=\"action\"><img src=\"images/delete.gif\" border=\"0\" title=\"Decline\"> Decline</a>";}
?>
</td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"9\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<br>
<?php
include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&invoice_id=".($_GET['invoice_id']?$_GET['invoice_id']:$_POST['invoice_id'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&start=".($_GET['start']?$_GET['start']:$_POST['start'])."&end=".($_GET['end']?$_GET['end']:$_POST['end'])."&invoice_status=".($_GET['invoice_status']?$_GET['invoice_status']:$_POST['invoice_status'])."&invoice_other_type=".($_GET['invoice_other_type']?$_GET['invoice_other_type']:$_POST['invoice_other_type'])."&invoice_kwd=".($_GET['invoice_kwd']?$_GET['invoice_kwd']:$_POST['invoice_kwd'])."&pricingid=".($_GET['pricingid']?$_GET['pricingid']:$_POST['pricingid']));?>
<?php }
if (($type=="apply_employer") || ($type=="apply_person") || ($type=="apply_jobid") ) {?>
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="5" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF">
<td colspan="2"><form><font face="Verdana, Arial" color="#000000" size="1"><input type="checkbox" class="radio" name="showall" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall"> Show all in one page.</label></font></td></form>
<td colspan="3" align="right" class="searchhead">Search Job Applies - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="5" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<td width="20%" align="center"> <?php echo TEXT_JOBSEEKER_NAME;?> </td>
<td width="25%" align="center"> <?php echo TEXT_COMPANY_NAME;?> </td>
<td width="15%" align="center"> <?php echo TEXT_DATE_ADDED;?> </td>
<td width="10%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($apply_result=bx_db_fetch_array($apply_query)) {
$rows++;
$compcheck_query=bx_db_query("SELECT compid FROM ".$bx_table_prefix."_companies WHERE compid='".$apply_result['compid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($compcheck_query)>0) {
$comp_exists=true;
}
else{
$comp_exists=false;
}
$perscheck_query=bx_db_query("SELECT persid FROM ".$bx_table_prefix."_persons WHERE persid='".$apply_result['persid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($perscheck_query)>0) {
$pers_exists=true;
}
else{
$pers_exists=false;
}
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center"><?php echo $apply_result['applyid'];?></td>
<td><?php if($pers_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $apply_result['persid'];?>"><?php echo $apply_result['apply_name'];?></a><?php }else{echo $apply_result['apply_name'];}?></td>
<td><?php if($comp_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $apply_result['compid'];?>"><?php echo $apply_result['apply_company'];?></a><?php }else{echo $apply_result['apply_company'];}?></td>
<td align="center"><?php echo bx_format_date($apply_result['apply_date'], DATE_FORMAT);?></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?apply_id=<?php echo $apply_result['applyid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=600,height=520,screenX=50,screenY=50,left=50,top=50');"><img src="images/preview.gif" title="Preview" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&applyid=<?php echo $apply_result['applyid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"5\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<br>
<?php
include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']));?>
<?php }
if (($type=="pm_employer") || ($type=="pm_apply")) {?>
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="6" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF">
<td colspan="2"><form><font face="Verdana, Arial" color="#000000" size="1"><input type="checkbox" class="radio" name="showall" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall"> Show all in one page.</label></font></td></form>
<td colspan="4" align="right" class="searchhead">Search Private Messages - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td></tr>
<tr><td colspan="6" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<td width="20%" align="center"> <?php echo TEXT_SUBJECT;?> </td>
<td width="20%" align="center"> <?php if($type=="pm_employer"){?>From <?php echo TEXT_JOBSEEKER_NAME;?><?php }else{?>To <?php echo TEXT_COMPANY_NAME;?><?php }?> </td>
<td width="20%" align="center"> <?php if($type=="pm_employer"){?>To <?php echo TEXT_COMPANY_NAME;?><?php }else{?>From <?php echo TEXT_JOBSEEKER_NAME;?><?php }?> </td>
<td width="15%" align="center"> <?php echo TEXT_DATE_ADDED;?> </td>
<td width="10%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($apply_result=bx_db_fetch_array($apply_query)) {
$rows++;
$compcheck_query=bx_db_query("SELECT compid FROM ".$bx_table_prefix."_companies WHERE compid='".$apply_result['compid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($compcheck_query)>0) {
$comp_exists=true;
}
else{
$comp_exists=false;
}
$perscheck_query=bx_db_query("SELECT persid FROM ".$bx_table_prefix."_persons WHERE persid='".$apply_result['persid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($perscheck_query)>0) {
$pers_exists=true;
}
else{
$pers_exists=false;
}
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center"><?php echo $apply_result['applyid'];?></td>
<td><?php echo $apply_result['apply_subject'];?></td>
<td><?php if($type=="pm_employer"){?><?php if($pers_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $apply_result['persid'];?>"><?php echo $apply_result['apply_name'];?></a><?php }else{echo $apply_result['apply_name'];}?><?php }else{?><?php if($comp_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $apply_result['compid'];?>"><?php echo $apply_result['apply_title'];?></a><?php }else{echo $apply_result['apply_title'];}?><?php }?></td>
<td><?php if($type=="pm_employer"){?><?php if($comp_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $apply_result['compid'];?>"><?php echo $apply_result['apply_title'];?></a><?php }else{echo $apply_result['apply_title'];}?><?php }else{?><?php if($pers_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $apply_result['persid'];?>"><?php echo $apply_result['apply_name'];?></a><?php }else{echo $apply_result['apply_name'];}?><?php }?></td>
<td align="center"><?php echo bx_format_date($apply_result['apply_date'], DATE_FORMAT);?></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?papply_id=<?php echo $apply_result['applyid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=600,height=520,screenX=50,screenY=50,left=50,top=50');"><img src="images/preview.gif" title="Preview" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&papplyid=<?php echo $apply_result['applyid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"6\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<br>
<?php
include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']));?>
<?php }
if ($type=="pm_jobseeker" || $type=="pm_person") {?>
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtable">
<tr><td colspan="6" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<TR bgcolor="#FFFFFF">
<td colspan="2"><form><font face="Verdana, Arial" color="#000000" size="1"><input type="checkbox" class="radio" name="showall" id="idshowall" onClick="document.location.href='<?php echo HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&jobid=".($_GET['jobid']?$_GET['jobid']:$_POST['jobid'])."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']).(empty($_GET['show'])?"&show=all';\"":"';\" checked");?>><label for="idshowall"> Show all in one page.</label></font></td></form>
<td colspan="4" align="right" class="searchhead">Search Private Messages - (Display <?php echo (($no_of_res!=0)?($item_from+1):"0")." to ".((empty($_GET['show']) && empty($_POST['show']) && $item_to<$no_of_res)?$item_to:$no_of_res)." from ".$no_of_res.")";?></td>
</tr>
<tr><td colspan="6" bgcolor="#FFFFFF"><?php echo bx_image_width("images/pix-t.gif",1,5,0,"");?></td></tr>
<tr class="listhead">
<td width="5%" align="center"> <?php echo TEXT_ID;?> </td>
<td width="20%" align="center"> <?php echo TEXT_SUBJECT;?> </td>
<td width="20%" align="center"> <?php if($type=="pm_jobseeker"){?>To <?php echo TEXT_JOBSEEKER_NAME;?><?php }else{?>From <?php echo TEXT_COMPANY_NAME;?><?php }?> </td>
<td width="20%" align="center"> <?php if($type=="pm_jobseeker"){?>From <?php echo TEXT_COMPANY_NAME;?><?php }else{?>To <?php echo TEXT_JOBSEEKER_NAME;?><?php }?> </td>
<td width="15%" align="center"> <?php echo TEXT_DATE_ADDED;?> </td>
<td width="10%" align="center"> <?php echo TEXT_ACTION;?> </td>
</tr>
<?php
$rows=0;
while ($apply_result=bx_db_fetch_array($apply_query)) {
$rows++;
$compcheck_query=bx_db_query("SELECT compid FROM ".$bx_table_prefix."_companies WHERE compid='".$apply_result['compid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($compcheck_query)>0) {
$comp_exists=true;
}
else{
$comp_exists=false;
}
$perscheck_query=bx_db_query("SELECT persid FROM ".$bx_table_prefix."_persons WHERE persid='".$apply_result['persid']."'");
SQL_CHECK(0,__FILE__.":".(__LINE__-1));
if (bx_db_num_rows($perscheck_query)>0) {
$pers_exists=true;
}
else{
$pers_exists=false;
}
?>
<tr <?php if(floor($rows/2) == ($rows/2)) {echo 'class="trbgColor1"';} else {echo 'class="trbgColor2"';}?>>
<td align="center"><?php echo $apply_result['msgid'];?></td>
<td><?php echo $apply_result['msg_subject'];?></td>
<td><?php if($type=="pm_jobseeker"){?><?php if($pers_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $apply_result['persid'];?>"><?php echo $apply_result['msg_name'];?></a><?php }else{echo $apply_result['msg_name'];}?><?php }else{?><?php if($comp_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $apply_result['compid'];?>"><?php echo $apply_result['msg_company'];?></a><?php }else{echo $apply_result['msg_company'];}?><?php }?></td>
<td><?php if($type=="pm_jobseeker"){?><?php if($comp_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&compid=<?php echo $apply_result['compid'];?>"><?php echo $apply_result['msg_company'];?></a><?php }else{echo $apply_result['msg_company'];}?><?php }else{?><?php if($pers_exists==true){?><a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&persid=<?php echo $apply_result['persid'];?>"><?php echo $apply_result['msg_name'];?></a><?php }else{echo $apply_result['msg_name'];}?><?php }?></td>
<td align="center"><?php echo bx_format_date($apply_result['msg_date'], DATE_FORMAT);?></td>
<td align="center" nowrap><a href="javascript: ;" onClick="window.open('<?php echo HTTP_SERVER;?>print_version.php?url='+escape('<?php echo HTTP_SERVER_ADMIN;?>admin_preview.php?msg_id=<?php echo $apply_result['msgid'];?>'),'_blank','scrollbars=yes,menubar=no,resizable=yes,location=no,width=600,height=520,screenX=50,screenY=50,left=50,top=50');"><img src="images/preview.gif" title="Preview" border="0"></a> <a href="<?php echo HTTP_SERVER_ADMIN;?>details.php?action=details&msgid=<?php echo $apply_result['msgid'];?>&back_url=<?php echo urlencode(HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid'])."&from=".$item_from);?>" class="action"><img src="images/details.gif" border="0" title="Details"> Details »</a></td>
</tr>
<?php
} //end while $referer_result
$item_back_from=$item_from;
$item_from=$item_to;
$item_to=$item_from+NR_ADMIN_DISPLAY;
if (!$rows) {
echo "<tr><td colspan=\"6\" align=\"center\" class=\"errortd\">Nothing found</td></tr>";
}
?>
</table>
<br>
<?php
include_once(DIR_ADMIN."admin_pagination.php");
bx_admin_pagination($no_of_res,$item_back_from,(($_GET['show'])?$_GET['show']:$_POST['show']),HTTP_SERVER_ADMIN."admin_search.php?action=".$action."&type=".$type."&compid=".($_GET['compid']?$_GET['compid']:$_POST['compid'])."&persid=".($_GET['persid']?$_GET['persid']:$_POST['persid']));?>
<?php }
if($use_extra_modules==true && isset($mod_include[210])){
include($mod_include[210]);
}
?>
فعند الضغط على اي استعراض details يكون الخطاء فلا تسير الامور على مايرام