&val=<?php echo $_GET['val']; ?> "; </script> <?php } if (isset($_POST['Status_Submit'])) { $changed_status_result = $obj->ChangeCommonStatus($_GET['id'], $_POST['status_button'], 'tender', $tender_details['firm_status']); if ($changed_status_result == 1) { if ($_POST['status_button'] == 0) { $message = "Status changed to Uploaded"; } else { $message = "Status changed to Rate Given"; } $obj->ALertMessage($message, $changed_status_result); $obj->redirect('tender_list.php'); } else { if ($changed_status_result == 1345) { $message = "Please add firms to change in Rate Given"; $obj->ALertMessage($message, 1); } else { $message = 'There is some error'; $obj->ALertMessage($message, $changed_status_result); } } } if (isset($_POST['save_firm_printed_rate_submit']) && $_POST['key45'] == $_SESSION['key45']) { $result_bid_in_printed = $obj->BidNumberPrintedForm($_GET['id'], $_POST['select_firms'], $_POST['text_box_bid_number'], $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->redirect("tender_quot_new.php?id=" . $_GET['id'] . "&val=" . $_GET['val']); }
$list_purchaser = $obj->List_Drop_Down("create_purchaser", "purchaser_short_name", "id"); if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) { $finalName = array(); $name = array(); for ($i = 0; $i < sizeof($_POST['titles']); $i++) { $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/tender_attach_history/" . $finalName[$i]); } if (isset($_GET['val']) & $_GET['val'] != "") { $update_result = $obj->tender_registration_update_history_wale($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']); if ($update_result == 1) { $obj->ALertMessage("Tender [History] updated", $update_result); $obj->redirect("edit_history.php"); } } else { //$tender = $obj->tender_registration($_POST,$_SESSION['pin_id'],$_SESSION['pin_table']); $tender = $obj->tender_registration_history_wala($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Tender [History] registered", $tender); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="main_css/main_css.css"/>
$finalName[$i] = $newName.".".$ext; move_uploaded_file($tmp_name,"attachements/items_attach/". $finalName[$i]); } else { $name[$i]="No_Download"; $finalName[$i]="No_Download"; } } }*/ //$result = $obj->store_items_attachments($_POST,$finalName,$name,$_SESSION['pin_id'],$_SESSION['pin_table']); if (isset($_GET['val']) == 1 && $_GET['val'] != "") { $update_item = $obj->Update_Item_New($_POST, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']); $obj->ALertMessage("Item Updated Successfully", $update_item); $obj->redirect("item_update.php"); } else { $result = $obj->store_items_attachments($_POST, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Item category registered", 1); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="main_css/main_css.css"/>
$result_attachment = $obj->common_fetch_attachement('csign_attachments', 'csign_id', $_GET['val']); } if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) { $finalName = array(); $name = array(); for ($i = 0; $i < sizeof($_POST['titles']); $i++) { $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/csign_attach/" . $finalName[$i]); } if (isset($_GET['val']) & $_GET['val'] != "") { $update_result = $obj->consignee_update($_POST, $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Firm updated successfully", $update_result); $obj->redirect("firm_update.php"); } else { $consignee = $obj->consignee_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Firm registered", $consignee); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="main_includes/add_new_row.js"></script> <link rel="stylesheet" href="main_css/main_css.css"/>
$ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/officer_attach/" . $finalName[$i]); } //----ATTACHEMENTS_END----- if (isset($_GET['val']) & $_GET['val'] != "") { if ($img_final_name == "no_pic.jpg") { $img_final_name = $result['officer_photo']; } $update_result = $obj->officer_update($_POST['officer_office'], $_POST['officer_first_name'], $_POST['officer_last_name'], $_POST['officer_user_name'], $_POST['officer_password'], $_POST['officer_pin'], $img_final_name, $_POST['officer_mail'], $_POST['officer_mobile'], $_POST['officer_address'], $_POST['titles'], $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']); if ($update_result == 1) { if ($_SESSION['rb_power'] == "officer") { $obj->redirect("demo.php"); } else { $obj->ALertMessage("Officer updated successfully", $update_result); $obj->redirect("officer_update.php?pid=" . $_GET['pid']); } } } else { $opt = $obj->officer_registration($_POST['officer_office'], $_POST['officer_first_name'], $_POST['officer_last_name'], $_POST['officer_user_name'], $_POST['officer_password'], $_POST['officer_pin'], $img_final_name, $_POST['officer_mail'], $_POST['officer_mobile'], $_POST['officer_address'], $_POST['titles'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']); $obj->ALertMessage("Officer registered", $opt); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
} $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/specification/" . $finalName[$i]); } //----ATTACHEMENTS_END----- if (isset($_GET['val']) & $_GET['val'] != "") { $update_result = $obj->Specification_update($_POST['specification_no'], $_POST['part'], $_POST['revision'], $_POST['reaffirmed'], $_POST['year'], $_POST['title'], $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['issued'], $_POST['other_issued']); if ($update_result == 1) { if ($_SESSION['rb_power'] == "officer") { $obj->redirect("demo.php"); } else { $obj->ALertMessage("Specification updated successfully", $update_result); $obj->redirect("edit_specs.php"); } } } else { if (sizeof($_FILES['files']['name']) == $counterXD) { $obj->ALertMessage("Atleast upload one file to save", 1); } else { $opt = $obj->specification_registration($_POST['specification_no'], $_POST['part'], $_POST['revision'], $_POST['reaffirmed'], $_POST['year'], $_POST['title'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['issued'], $_POST['other_issued']); $obj->ALertMessage("Specification registered", $opt); } } } $_SESSION['key'] = mt_rand(1, 1000); ?>
$list_purchaser = $obj->List_Drop_Down("create_purchaser", "purchaser_short_name", "id"); if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) { $finalName = array(); $name = array(); for ($i = 0; $i < sizeof($_POST['titles']); $i++) { $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/tender_attach/" . $finalName[$i]); } if (isset($_GET['val']) & $_GET['val'] != "") { $update_result = $obj->tender_registration_update($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']); if ($update_result == 1) { $obj->ALertMessage("Tender Updated ", $update_result); $obj->redirect("edit_tender.php"); } } else { //$tender = $obj->tender_registration($_POST,$_SESSION['pin_id'],$_SESSION['pin_table']); $tender = $obj->tender_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Tender registered", $tender); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="main_css/main_css.css"/>
$ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/employee_attach/" . $finalName[$i]); } //----ATTACHEMENTS_END----- if (isset($_GET['val']) && $_GET['val'] != "") { if ($img_final_name == "no_pic.jpg") { $img_final_name = $result['employee_photo']; } $update_result = $obj->employee_update($_POST['employee_first_name'], $_POST['employee_last_name'], $_POST['employee_office'], $_POST['employee_user_name'], $_POST['employee_password'], $_POST['employee_pin'], $img_final_name, $_POST['employee_mail'], $_POST['employee_mobile'], $_POST['employee_address'], $_POST['titles'], $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']); if ($update_result == 1) { if ($_SESSION['rb_power'] == "employee") { $obj->redirect("demo.php"); } else { $obj->ALertMessage("Employee updated successfully", $update_result); $obj->redirect("employee_update.php?pid=" . $_GET['pid']); } } } else { $opt = $obj->employe_registration($_POST['employee_first_name'], $_POST['employee_last_name'], $_POST['employee_office'], $_POST['employee_user_name'], $_POST['employee_password'], $_POST['employee_pin'], $img_final_name, $_POST['employee_mail'], $_POST['employee_mobile'], $_POST['employee_address'], $_POST['titles'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_POST['text_on_others']); $obj->ALertMessage("Employee registered", $opt); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="main_includes/add_new_row.js"></script>
if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) { /*$finalName = array(); $name = array(); for($i=0;$i<sizeof($_POST['titles']);$i++) { $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName.".".$ext; move_uploaded_file($tmp_name,"attachements/main_csign_attach/".$finalName[$i]); }*/ if (isset($_GET['val']) & $_GET['val'] != "") { $update_result = $obj->main_consignee_update($_POST, $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table']); if ($update_result == 1) { $obj->ALertMessage("Consignee Updated Successfully", $update_result); $obj->redirect("main_cnsig_update.php?pid=" . $_GET['pid']); } } else { $consignee = $obj->main_consignee_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Consignee registered", $consignee); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="main_includes/add_new_row.js"></script>
$name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/tender_attach_history/" . $finalName[$i]); } if (isset($_GET['val']) & $_GET['val'] != "") { $update_result = $obj->tender_registration_update($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table'], $_GET['val']); if ($update_result == 1) { $obj->redirect("edit_tender.php"); } } else { //$tender = $obj->tender_registration($_POST,$_SESSION['pin_id'],$_SESSION['pin_table']); $tender = $obj->tender_registration_history_wala($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Tender [History] registered", $tender); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="main_css/main_css.css"/> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600' rel='stylesheet' type='text/css'> <link href="styles.css" rel="stylesheet" /> <title><?php if (isset($_GET['val'])) { echo "Update"; } else {
} if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) { $finalName = array(); $name = array(); for ($i = 0; $i < sizeof($_POST['titles']); $i++) { $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/purchaser_attach/" . $finalName[$i]); } if (isset($_GET['val']) == 1 && $_GET['val'] != "") { $update_purchaser = $obj->purchase_update($_POST, $finalName, $name, $result['id'], $_SESSION['pin_id'], $_SESSION['pin_table']); if ($update_purchaser == 1) { $obj->ALertMessage("Purchaser Updated Successfully", $update_purchaser); $obj->redirect("purchaser_update.php"); } } else { $purchaser = $obj->purchaser_registration($_POST, $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); $obj->ALertMessage("Purchaser registered", $purchaser); } } $_SESSION['key'] = mt_rand(1, 1000); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="main_includes/add_new_row.js"></script>
}*/ if (isset($_POST['submit']) && $_POST['key'] == $_SESSION['key']) { $finalName = array(); $name = array(); for ($i = 0; $i < sizeof($_FILES['files']); $i++) { $name[$i] = $_FILES['files']['name'][$i]; $tmp_name = $_FILES['files']['tmp_name'][$i]; $ext = $obj->getExtension($name[$i]); $newName = $obj->nameGen(); $finalName[$i] = $newName . "." . $ext; move_uploaded_file($tmp_name, "attachements/attachements_after_pending_status/" . $finalName[$i]); } $result_after_padding = $obj->Store_After_Pending_Status($_GET['id'], $_POST['status_after_pending'], $_POST['remark_after_pending'], $finalName, $name, $_SESSION['pin_id'], $_SESSION['pin_table']); if ($result_after_padding == 1) { $obj->ALertMessage("Remark Registered", $result_after_padding); ?> <script type="text/javascript"> window.location="tender_quot_pending.php?id=<?php echo $_GET['id']; ?> &val=<?php echo $_GET['val']; ?> "; </script> <?php } else { $obj->ALertMessage("Remark Registered", $result_after_padding); } }