session_start();
//include '../conn.php';
include '../function.php';
function findrank1($pno){
if($pno == '') return $pno;
//echo "select rank_hin from rank_master where rank_id=(select confirmation_rank from employee_master where personal_number=".$pno.")";
$results=mysql_query("select rank_hin from rank_master where rank_id=(select rank from employee_master where personal_number=".$pno.")");
if($x = mysql_fetch_array($results)) return $x['rank_hin'];
}
if(isset($_REQUEST["B1"]))
{
/*print_r($_REQUEST);
exit(0);*/
$temp = explode('/',$_REQUEST['fdate']);
$fdate = $temp[2].'-'. $temp[1].'-'. $temp[0];
$temp = explode('/',$_REQUEST['tdate']);
$tdate = $temp[2].'-'. $temp[1].'-'. $temp[0];
$ltype = $_REQUEST["ltype"];
$from_date = $fdate;
//$to_date = $tdate;
if($tdate=='--')
$to_date='0000-00-00';
else
$to_date = $tdate;
$punishment_detail = $_REQUEST['detail'];
$reason_english = $_REQUEST['reason'];
$details_eng = $_REQUEST['S1'];
$temp1 = explode('/',$_REQUEST['suspension_date']);
$suspension_date = $temp1[2].'-'. $temp1[1].'-'. $temp1[0];
mysql_query("update suspended_detail set reason_english='$reason_english', from_date='$from_date',To_date='$to_date', punishment_detail = '$punishment_detail',crime_detail='".$_POST['crime_detail']."',suspension_date='$suspension_date' WHERE serial_number = ".$_REQUEST['soid']);
updatecrkrecotd($_SESSION['login_pno'], $_REQUEST['personalno'], suspension_transdate);
header("Location: confirm_so_EDIT.php?id=".$_REQUEST['personalno']);
}
function findrank($id = null)
{
$results=mysql_query("select * from rank_master where rank_id=".$id);
if($x = mysql_fetch_array($results))
{
return $x['rank_eng'];
} else {
return 'N/A';
}
}
$results=mysql_query("select * from new_posting_detail where personal_number='".$_REQUEST['id']."' ");
$arow=mysql_fetch_array($results);
extract($arow);
?>
Uttar Pradesh Police Nominol Roll System
|
|
|
जनपद/इकाई का नाम
echo ' - '.strToUpper($_SESSION['Unit1']); ?> |
|
बैक |
होम |
लॉग आऊट |
|
|
|
|