</div>
    <!-- Field Content Ends -->
    
    <div class="gt-fields">
        <div class="gt-label">City<span class="error">*</span></div>
        <div class="gt-formfields"><input type="text" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['city']);
    ?>
" id="city" class="txtfield" name="city"></div>
    </div>
    <!-- Field Content Ends -->
    
    <div class="gt-fields">
        <div class="gt-label">State<span class="error">*</span></div>
        <div class="gt-formfields"><?php 
    echo todisplay($array_state, 'state', ' Please Select ', htmlspecialchars($_SESSION['myForm']['state']));
    ?>
</div>
    </div>
    <!-- Field Content Ends -->
    
    <div class="gt-fields">
        <div class="gt-label">Pincode<span class="error">*</span></div>
        <div class="gt-formfields"><input type="text" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['pincode']);
    ?>
" id="pincode" class="txtfield" name="pincode"></div>
    </div>
    <!-- Field Content Ends -->    
     
    
        ?>
</td>
          <td  height="30"><?php 
        echo $row['account_no'];
        ?>
</td>
          <td  height="30"><?php 
        echo moneyFormatIndia($row['balance']);
        ?>
 </td>          
          <td><?php 
        echo moneyFormatIndia(togetcurrentoffervalue($row['ac_id'], $row['id']));
        ?>
</td>  
          <td><?php 
        echo todisplay($array_payin, 'ad_status[' . $row['ac_id'] . ']', 'Please Select', togetpayin($row['ac_id'], "payin"));
        ?>
</td>
        
           <input name="offeraccept[<?php 
        echo $row['ac_id'];
        ?>
]" type="hidden" value="<?php 
        echo $offer;
        ?>
" />
           <input name="userid[<?php 
        echo $row['ac_id'];
        ?>
]" type="hidden" value="<?php 
        echo $row['id'];
function print_form()
{
    global $array_hearaboutus, $array_industry, $array_jobtype;
    ?>
<form method="post" action="" name="form1" enctype="multipart/form-data">
<input name="postid" type="hidden" value="<?php 
    echo $_GET["jobid"];
    ?>
" />

<div class="rws-singlerow">
<div class="inline-padding">JOB TITLE</div>
<div class="rws-rightfield"><input name="jobpostsubject" id="jobpostsubject" type="text" placeholder="*Job Title" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostsubject']);
    ?>
" tabindex="1" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">TOWN/CITY</div>
<div  class="rws-rightfield"><input name="jobpostlocationtowncity" id="jobpostlocationtowncity" type="text" placeholder="*Town/City" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostlocationtowncity']);
    ?>
" tabindex="2" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">COUNTY</div>
<div  class="rws-rightfield"><input name="jobpostlocationcounty" id="jobpostlocationcounty" type="text" placeholder="*County" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostlocationcounty']);
    ?>
" tabindex="3" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">POST CODE</div>
<div  class="rws-rightfield"><input name="jobpostpostcode" id="jobpostpostcode" type="text" placeholder="*Postcode" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostpostcode']);
    ?>
" tabindex="4" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">JOB TYPE</div>
<div  class="rws-rightfield"><?php 
    echo todisplay($array_jobtype, 'jobpostjobtype', 'Please Select', $_SESSION['myForm']['jobpostjobtype']);
    ?>
</div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">SALARY</div>
<div class="rws-rightfield"><input name="jobpostsalary" id="jobpostsalary" type="text" placeholder="*Salary" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostsalary']);
    ?>
" tabindex="6" style="height: 40px"/></div>
</div>


<div class="rws-singlerow">
<div class="inline-padding">SECTOR/INDUSTRY</div>
<div  class="rws-rightfield">

<?php 
    echo todisplay($array_industry, 'jobpostsectorindustry', 'Please Select', $_SESSION['myForm']['jobpostsectorindustry']);
    ?>
</div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">JOB DESCRIPTION </div>
<div  class="rws-rightfield">
	<textarea name="jobpostdescription" id="jobpostdescription" cols="45" class="jobpostdescription" placeholder="*Minimum 500 characters ..." tabindex="8" style="height: 379px" rows="1"><?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostdescription']);
    ?>
</textarea></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">CONTACT PERSON</div>
<div><input name="jobpostrecruitercontactperson" id="jobpostrecruitercontactperson" type="text" placeholder="*Contact Person" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostrecruitercontactperson']);
    ?>
" tabindex="10" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">CONTACT NUMBER</div>
<div>
	<input name="jobpostcontactnumber" id="jobpostcontactnumber" type="tel" placeholder="*Contact Number" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostcontactnumber']);
    ?>
" tabindex="11" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">EMAIL</div>
<div>
	<input name="jobpostrecruiteremployeremail" id="jobpostrecruiteremployeremail" type="email" placeholder="*Email" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostrecruiteremployeremail']);
    ?>
" tabindex="12" style="height: 40px"/></div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">Job Status</div>
<div>
	<input name="jobstatus" type="radio" value="1" checked="checked"  <?php 
    if (htmlspecialchars($_SESSION['myForm']['jobstatus']) == '1') {
        print 'checked ';
    }
    ?>
 /> Active
	<input name="jobstatus" type="radio" value="0"  <?php 
    if (htmlspecialchars($_SESSION['myForm']['jobstatus']) == '0') {
        print 'checked ';
    }
    ?>
 />Inactive
</div>
</div>

<div class="rws-singlerow">
<div class="inline-padding">HOW DID YOU HEAR ABOUT US?</div>
<div><?php 
    echo todisplay($array_hearaboutus, 'jobposthdyhau', 'Please Select', $_SESSION['myForm']['jobposthdyhau']);
    ?>
</div>
</div>

<div class="rws-singlerow">
<div class="jobposttermsagree">
	<input name="jobposttermsagree" id="jobposttermsagree" type="checkbox" value="AGREED!" tabindex="14" style="width: 20px; height: 16px;" checked="checked"/>*I HAVE READ AND AGREE TO EJOBS NETWORK&#39;S TERMS OF USE.</div>
</div>

<input name="jobpostdate" id="jobpostdate" type="hidden" value="<?php 
    echo date("D, d-M-Y H:i:s", strtotime("now"));
    ?>
" tabindex="15"/>
<input name="jobpostrefreshdate" id="jobpostrefreshdate" type="hidden" value="<?php 
    echo date("D, d-M-Y H:i:s", strtotime("now"));
    ?>
" tabindex="16"/>
<input name="subject" id="subject" type="hidden" class="text" value="<?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostrecruiteremployer']);
    ?>
 has posted a job for  <?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostsubject']);
    ?>
, <?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostlocationtowncity']);
    ?>
, <?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostlocationcounty']);
    ?>
 for <?php 
    echo htmlspecialchars($_SESSION['myForm']['jobpostsalary']);
    ?>
" tabindex="17"/>
<input type="submit" name="submit" id="jobpostsubmit" value="POST THIS JOB!" tabindex="18"/><input type="hidden" name="submitted"  value="true" tabindex="19" /><input name="jobpostrecruiteremployer" id="jobpostrecruiteremployer" type="hidden"  value="<?php 
    echo $_SESSION['GTUserID'];
    ?>
" tabindex="9" style="height: 40px"/></form><?php 
}
</td>
          <td width="16%" height="30"><?php 
            echo $row['account_no'];
            ?>
</td>
          <td width="14%" style="text-align:right; padding-right:20px" height="30"><?php 
            $bal = moneyFormatIndia($row['balance']);
            echo $bal;
            ?>
</td>          
          <td width="13%" style="text-align:right; padding-right:20px"><?php 
            echo togetoffervalue($row['ac_id'], $row['id']);
            ?>
</td>  
          <td width="13%"><?php 
            echo todisplay($array_statuso, 'ad_status[' . $row['ac_id'] . ']', 'Please Select', togetvalueoffermanger($row['ac_id'], $row['id'], "status"));
            ?>
</td>
          <td width="13%"><input name="counteroffer[<?php 
            echo $row['ac_id'];
            ?>
]" id="counteroffer_<?php 
            echo $row['id'];
            ?>
" type="text" class="head2" value="<?php 
            echo togetvalueoffermanger($row['ac_id'], $row['id'], "counteroffer");
            ?>
" size="10"/></td>
         <td width="11%"><input name="last_date[<?php 
            echo $row['ac_id'];
            ?>
        <div class="gt-formfields"><input type="text" value="<?php 
echo htmlspecialchars($_SESSION['myForm']['pancard']);
?>
" id="pancard" class="txtfield" name="pancard"></div>
    </div>
    <!-- Field Content Ends -->
        
</div>

<div class="gt-roundsection gt-threecolumn gt-accountsection">


<div class="gt-fields">
	<div class="gt-label">Account Type<span class="error">*</span></div>
    <div class="gt-formfields"><?php 
echo todisplay($array_product_type, 'product_type', 'Please Select', $_SESSION['myForm']['product_type']);
?>
</div>
</div>
<!-- Field Content Ends -->

<div class="gt-fields">
	<div class="gt-label">Account Number<span class="error">*</span></div>
    <div class="gt-formfields"><input type="text" value="<?php 
echo htmlspecialchars($_SESSION['myForm']['account_no']);
?>
" id="account_no" class="txtfield" name="account_no"><img src="<?php 
echo $baseurl;
?>
images/qmark.gif" title="Your Unique loan or 16 digit card number." class="gtformevent"/></div>
</div>
        $sql = "SELECT * FROM `tbl_offerdetails` WHERE `aid` = '" . $admin->ac_id . "' AND `userid` = '" . $admin->id . "' AND `offerby`='User'  ORDER BY add_date DESC";
        $rs = mysql_query_with_throw($sql);
        $row = mysql_fetch_assoc($rs);
        ?>
                
                 <tr>
                  <td height="30" align="left" class="blackbold">Offer Value</td>
                  <td align="left" class="head2"><?php 
        echo togetoffervalue($admin->ac_id, $admin->id);
        ?>
</td>
                </tr>
                <tr>
                  <td height="30" align="left" class="blackbold">Offer Status</td>
                  <td align="left" class="head2"><?php 
        echo todisplay($array_statuso, 'ad_status', 'Please Select', $row["status"]);
        ?>
</td>
                </tr>
                <?php 
        $queryfp = "SELECT * FROM `tbl_offeremi` WHERE `offerid` = " . $row["id"];
        $resultfp = mysql_query_with_throw($queryfp);
        $totalfp = mysql_num_rows($resultfp);
        if ($totalfp > 0) {
            ?>
                <tr>
                  <td align="left" class="blackbold" height="1" colspan="2"></td>
                </tr>
                <tr>
                  <td align="left" class="blackbold" style="padding:10px 0;" colspan="2">
                  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
    ?>
 </td>
          <td  height="30"><?php 
    echo moneyFormatIndia($row1['principal']);
    ?>
 </td>
          <td  height="30"><?php 
    echo todisplay($array_asource, 'ad_asource[' . $row1['id'] . ']', 'Please Select', togetfieldvalue($row1['id'], "tbl_accounts", "account_source"));
    ?>
</td>
          <td  height="30"><?php 
    echo todisplay($array_cibil, 'ad_acibil[' . $row1['id'] . ']', 'Please Select', togetfieldvalue($row1['id'], "tbl_accounts", "cibil_status"));
    ?>
</td>
          <td><?php 
    echo todisplay($array_case, 'ad_case[' . $row1['id'] . ']', 'Please Select', togetfieldvalue($row1['id'], "tbl_accounts", "case_type"));
    ?>
</td>
           <input name="rws_case[<?php 
    echo $row1['id'];
    ?>
]" type="hidden" value="<?php 
    echo $row1['case_type'];
    ?>
" />
           <input name="rws_acid[<?php 
    echo $row1['id'];
    ?>
]" type="hidden" value="<?php 
    echo $row1['id'];
    ?>
<h1 class="gt-heading">Search Jobs for Jobseekers</h1>
<?php 
if ($_GET["msg"] == 1) {
    echo '<p class="rwserror">You have successfully applied for the job. Please check your email for detailed information.</p>';
}
?>
<form id="frmsearch" name="frmsearch" method="post" action="index.php?p=search">
	<p><label for="textfield" class="rws-label">Keyword</label><input type="text" name="txtkeyword" id="txtkeyword" class="txtfield" /></p>
    
	<p><label for="select" class="rws-label">Jobtype</label><?php 
echo todisplay($array_jobtype, 'jobpostjobtype', 'ALL', $_SESSION['myForm']['jobpostjobtype']);
?>
</p>
    
    <p><label for="select" class="rws-label">Industries</label><?php 
echo todisplay($array_industry, 'jobpostsectorindustry', 'ALL', $_SESSION['myForm']['jobpostsectorindustry']);
?>
</p>
    <p><input name="Search" type="submit" id="Search" value="Search" /></p>
</form>
<p>&nbsp;</p>
<?php 
$header = '<div class="jobsdata"><div class="row header"><div class="column">Job Title</div><div class="column">Town/City</div><div class="column">County</div><div class="column">Postcode</div><div class="column">Type</div><div class="column"></div><div class="column">Status</div><div class="column">Apply</div></div>';
$repeat = '';
$j = 1;
while ($row = mysql_fetch_assoc($getquery)) {
    if ($row['jobstatus'] == '1') {
        $js = 'Active';
    } else {
        $js = 'Inactive';
    }
        $own_name = $own['name'];
        $own_id = $own['id'];
        if ($own_id == $row['owner']) {
            $selected = 'selected';
        } else {
            $selected = '';
        }
        echo "<option value='" . $own_id . "' {$selected} >{$own_name}</option>";
    }
    ?>
            </select>
              
          </td>
          
          <td><?php 
    echo todisplay($array_conmethod, 'ad_conmeth[' . $row['id'] . ']', 'Please Select', togetuserfield($row['id'], "contact_method"));
    ?>
</td>
          
          <input name="rws_source[<?php 
    echo $row['id'];
    ?>
]" type="hidden" value="<?php 
    echo $row['source'];
    ?>
" />
          <input name="rws_type[<?php 
    echo $row['id'];
    ?>
]" type="hidden" value="<?php 
    echo $row['type'];
              </tr>
              <tr>
                <td>Current Vacancies</td>
                <td><?php 
echo todisplay($array_vacancy, 'rwsvacancies', 'Please Select', $row["registercurrentvacancies"]);
?>
</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>Account Duration/Plan</td>
                <td>
				<?php 
echo todisplay($array_accountplan, 'rwsplan', 'Please Select', $row["registeraccountduration"]);
?>
				</td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>Paystatus</td>
                <td>
					<select name="paystatus" id="paystatus">
                    	<option value=""> Please Select </option>
                        <option value="1"> Clear </option>
                        <option value="0"> Pending </option>
                    </select>
				</td>