ESH/includes/css-js/tender_populate.php
2024-10-23 18:28:06 +05:30

51 lines
1.7 KiB
PHP

<?php
include('header.php');
include_once("../includes/functions/paging.inc.php");
include_once("../includes/functions/functions.php");
include_once("../includes/css-js/dynamic_add.js");
?>
<?php
$tender_no_pop = "";
$client_name_pop ="";
$client_city_pop="";
$due_date_pop="";
$address_to_pop="";
$for_terms_pop="";
$validity_of_offer_pop="";
$earnest_money_pop="";
$payment_terms_pop="";
$other_instructions_pop="";
$remarks_pop="";
if(isset($hid_populate) && $hid_populate=='1'){
$sql="SELECT a.tender_no, a.due_date, a.cost_of_tender, a.payment_terms, a.other_instructions,a.remarks, b.client_name, c.client_city FROM tbl_tenders_list a, tbl_client_master b, client_details c where a.tender_no='".$tender_no."' and a.client_id = b.client_id and a.client_location_id=c.location_id";
$res = mysqli_query($conn,$sql);
if($rows = mysqli_fetch_array($res))
{
$tender_no_pop = $rows['tender_no'];
$client_id_pop =$rows['client_id'];
$client_location_id_pop=$rows['client_location_id'];
$due_date_pop=$rows['due_date'];
$earnest_money_pop=$rows['cost_of_tender'];
$payment_terms_pop=$rows['payment_terms'];
$other_instructions_pop=$rows['other_instructions'];
$remarks_pop=$rows['remarks'];
$client_name_pop=$rows['client_name'];
$client_city_pop=$rows['client_city'];
}
else{
echo "No Records Found";
}
}
$sql="SELECT a.tender_no, b.item_name, a.item_desc_new,a.item_qty, a.delivery_shedule, a.item_remarks FROM tbl_tender_items a, tbl_items b where a.item_id = b.item_id and tender_no='".$tender_no."'";
echo $sql;
$item_res = mysqli_query($conn,$sql);
?>
<body>
</body>
</html>