if(block_muni=="") { document.getElementById("msg").innerHTML="Enter Block/Municipality Name"; document.getElementById("block_muni").focus(); return false; } } </script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/master_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $subdivision = $_POST['subdivision']; $block_muni = clean_spl($_POST['block_muni']); $block_muni_type = $_POST['block_muni_type']; $block_muni_code = $_POST['hid_block_muni_code']; //=============== Getting Block_Muni Code ================== if ($block_muni_code == '') { $rsmaxcode = fatch_block_muni_maxcode($subdivision); $rowmaxcode = getRows($rsmaxcode); if ($rowmaxcode['blockmuni_cd'] == null) { $block_muni_code = $subdivision . "01"; } else { $block_muni_code = sprintf("%06d", $rowmaxcode['blockmuni_cd'] + 1); } } $usercd = $user_cd; $c_block_muni = duplicate_block_muni($block_muni_code, $block_muni); if ($c_block_muni == 0) {
document.getElementById("msg").innerHTML="Enter Branch Address"; document.getElementById("branch_address").focus(); return false; } } </script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/master_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $bank = $_POST['bank']; $ifsc = clean_spl($_POST['ifsc']); $branch_name = clean_spl($_POST['branch_name']); $branch_address = clean_spl($_POST['branch_address']); $branch_code = $_POST['hid_branch_code']; //=============== Getting Block_Muni Code ================== if ($branch_code == '') { $rsmaxcode = fatch_branch_maxcode($bank); $rowmaxcode = getRows($rsmaxcode); if ($rowmaxcode['branch_cd'] == null) { $branch_code = "001"; } else { $branch_code = sprintf("%03d", $rowmaxcode['branch_cd'] + 1); } } $usercd = $user_cd; $c_branch = duplicate_branch($bank, $branch_code, $branch_name); if ($c_branch == 0) { if (isset($_REQUEST['branch_cd'])) {
$r_no = clean_alpha($_POST['r_no']); $m_no = clean_alpha($_POST['m_no']); $qualification = $_POST['qualification']; $language = $_POST['language']; $bank = $_POST['bank']; $branch = $_POST['branch']; $acc_no = clean_alpha($_POST['acc_no']); $voterof = $_POST['voterof']; $partno = $_POST['partno']; $sl_no = $_POST['sl_no']; $epic_no = $_POST['epic_no']; $ac_pre = $_POST['ac_pre']; $ac_per = $_POST['ac_per']; $ac_posting = $_POST['ac_posting']; $posting_status = $_POST['posting_status']; $remarks = clean_spl($_POST['remarks']); $group = $_POST['group']; $upload_file = ""; if (empty($_FILES['file']['name'])) { $upload_file = $_POST['hid_file']; } else { if ($_FILES['file']['size'] >= 10240 && $_FILES['file']['size'] <= 30720) { if ($_FILES['file']['error'] > 0) { echo "Error " . $_FILES['file']['error']; exit; } else { $file_name = $_FILES['file']['name']; $random_digit = rand(0, 999999999); $new_file_name = $random_digit . "_" . $file_name; move_uploaded_file($_FILES['file']['tmp_name'], "employee_photo/" . $new_file_name); //$upload_path1 = "profile_photo/".$new_file_name;
} } </script> <script language="JavaScript" src="js/gen_validatorv4.js" type="text/javascript" xml:space="preserve"></script> </head> <?php include_once 'inc/db_trans.inc.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $officename = clean_spl($_POST['officename']); $designationOic = $_POST['designationOic']; $Street = clean_spl($_POST['Street']); $Town = clean_spl($_POST['Town']); $PostOffice = clean_spl($_POST['PostOffice']); $Subdivision = $_POST['Subdivision']; $PoliceStation = $_POST['PoliceStation']; $Municipality = $_POST['Municipality']; $Pincode = only_num($_POST['Pincode']); $Statusofoffice = $_POST['Statusofoffice']; $Natureofoffice = $_POST['Natureofoffice']; $email = $_POST['email']; $Ph_no = clean_alpha($_POST['Ph_no']); $Mb_no = clean_alpha($_POST['Mb_no']); $FAX_no = clean_alpha($_POST['FAX_No']); $MaleStaff = only_num($_POST['MaleStaff']); $FemaleStaff = only_num($_POST['FemaleStaff']); $ExistingStaff = only_num($_POST['ExistingStaff']); $OfficeID = $_POST['OfficeID']; $dist_code = $dist_cd;
if(subdivision=="") { document.getElementById("msg").innerHTML="Enter Subdivision Name"; document.getElementById("subdivision").focus(); return false; } } </script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/master_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $subdivision = clean_spl($_POST['subdivision']); $subdivision_code = $_POST['hid_subdivision_code']; //=============== Getting Training Code ================== if ($subdivision_code == '') { $rsmaxcode = fatch_subdivision_maxcode($dist_cd); $rowmaxcode = getRows($rsmaxcode); if ($rowmaxcode['subdivision_cd'] == null) { $subdivision_code = $dist_cd . "01"; } else { $subdivision_code = sprintf("%04d", $rowmaxcode['subdivision_cd'] + 1); } } $usercd = $user_cd; $ret; $c_subdivision = duplicate_subdivision($subdivision_code, $subdivision); if ($c_subdivision == 0) {
} } </script> <script language="JavaScript" src="js/gen_validatorv4.js" type="text/javascript" xml:space="preserve"></script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/training_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $subdiv_cd = $_POST['Subdivision']; $venuename = clean_spl($_POST['venuename']); $venueaddress1 = clean_spl($_POST['venueaddress1']); $venueaddress2 = clean_spl($_POST['venueaddress2']); $maximumcapacity = $_POST['maximumcapacity']; $usercd = $user_cd; $venue_cd = $_POST['hid_venue_code']; if ($venue_cd == '') { $rsmaxcode = fatch_venue_maxcode($subdiv_cd); $rowmaxcode = getRows($rsmaxcode); if ($rowmaxcode[0] == null) { $venue_cd = $subdiv_cd . "01"; } else { $venue_cd = sprintf("%06d", $rowmaxcode[0] + 1); } } if (isset($_REQUEST['venue_cd'])) { $dt = new DateTime(); $posted_date = $dt->format('Y-m-d H:i:s');
<?php include_once 'inc/db_trans.inc.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $offcode = $_POST['offcode']; $empname = clean_spl($_POST['empname']); $designation = $_POST['designation']; $dob = $_POST['dob']; $sex = $_POST['sex']; $scale = clean_alpha($_POST['scale']); $basicpay = only_num($_POST['basicpay']); $gradepay = only_num($_POST['gradepay']); $preaddress1 = clean_spl($_POST['preaddress1']); $preaddress2 = clean_spl($_POST['preaddress2']); $peraddress1 = clean_spl($_POST['peraddress1']); $peraddress2 = clean_spl($_POST['peraddress2']); $workingstatus = $_POST['workingstatus']; $email = $_POST['email']; $r_no = clean_alpha($_POST['r_no']); $m_no = clean_alpha($_POST['m_no']); $qualification = $_POST['qualification']; $language = $_POST['language']; $bank = $_POST['bank']; $branch = isset($_POST['branch']) ? $_POST['branch'] : ""; $acc_no = clean_alpha($_POST['acc_no']); $voterof = $_POST['voterof']; $partno = $_POST['partno']; $sl_no = $_POST['sl_no']; $epic_no = $_POST['epic_no']; $ac_pre = $_POST['ac_pre']; $ac_per = $_POST['ac_per'];
} } </script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/master_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $psno = $_POST['psno']; $postfix = $_POST['postfix']; $subdivision = $_POST['subdivision']; $assembly = $_POST['assembly']; $dcrc = $_POST['dcrc']; $member = $_POST['member']; $psname = clean_spl($_POST['psname']); $usercd = $user_cd; $cnt = duplicate_polling_stn($psno, $assembly, $psname); if (isset($_GET['psno']) && isset($_GET['assembly'])) { $cnt = 0; } if ($cnt == 0) { if (isset($_GET['psno']) && isset($_GET['assembly'])) { $dt = new DateTime(); $posted_date = $dt->format('Y-m-d H:i:s'); $ret = update_polling_stn($psno, $postfix, $assembly, $psname, $usercd, $posted_date); if ($ret == 1) { redirect("polling-station.php?msg=success"); } } else { $ret = save_polling_stn($psno, $postfix, $subdivision, $assembly, $dcrc, $member, $psname, $usercd);
if(training_desc=="") { document.getElementById("msg").innerHTML="Enter Training Description"; document.getElementById("training_desc").focus(); return false; } } </script> </head> <?php include_once 'inc/db_trans.inc.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { include_once 'function/training_fun.php'; $training_desc = clean_spl($_POST['training_desc']); $training_code = $_POST['hid_training_code']; //=============== Getting Training Code ================== if ($training_code == '') { $rsmaxcode = fatch_training_type_maxcode(); $rowmaxcode = getRows($rsmaxcode); if ($rowmaxcode['training_code'] == null) { $training_code = "01"; } else { $training_code = sprintf("%02d", $rowmaxcode['training_code'] + 1); } } $usercd = $user_cd; //str_pad($invID, 2, '0', STR_PAD_LEFT) $ret; $c_training_type = duplicate_training_type($training_code, $training_desc);
if(bank=="") { document.getElementById("msg").innerHTML="Enter Bank Name"; document.getElementById("bank").focus(); return false; } } </script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/master_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $bank = clean_spl($_POST['bank']); $bank_code = $_POST['hid_bank_code']; //=============== Getting Training Code ================== if ($bank_code == '') { $rsmaxcode = fatch_bank_maxcode($dist_cd); $rowmaxcode = getRows($rsmaxcode); if ($rowmaxcode['bank_cd'] == null) { $bank_code = $dist_cd . "001"; } else { $bank_code = sprintf("%05d", $rowmaxcode['bank_cd'] + 1); } } $usercd = $user_cd; $ret; $c_bank = duplicate_bank($bank_code, $bank); if ($c_bank == 0) {
} if(parliament=="") { document.getElementById("msg").innerHTML="Enter Parliament Name"; document.getElementById("parliament").focus(); return false; } } </script> </head> <?php include_once 'inc/db_trans.inc.php'; include_once 'function/master_fun.php'; $action = isset($_REQUEST['submit']) ? $_REQUEST['submit'] : ""; if ($action == 'Save') { $parliament = clean_spl($_POST['parliament']); $parliament_code = $_POST['pccode']; $subdivisioncd = $_POST['Subdivision']; //=============== Getting Training Code ================== if ($parliament_code == '') { $rspmaxcode = fatch_parliament_maxcode(); $rowpmaxcode = getRows($rspmaxcode); if ($rowpmaxcode['pc_cd'] == NULL) { $parliament_code = "01"; } else { $parliament_code = sprintf("%02d", $rowpmaxcode['pc_cd'] + 1); } } $usercd = $user_cd; $ret; $c_parliament = duplicate_parliament($parliament_code, $parliament, $subdivisioncd);