Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/istore/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/istore/topening.inc

<h2 align='left'>Tender Opening</h2>
<center>
<?php

$myTender = new iTender;
$myTender->id = $_REQUEST["id"];
$myTender->dateClosing = $_REQUEST["date_closing"];


if ($_POST["submit"] == 'SAVE') {
	$myTender->quotations = $_POST["quotations"];
	$myTender->l1quote = $_POST["l1_quote"];
	//save tender details
	$myTender->closeTender();
}

//get tender details
if ($myTender->id) $myTender->getTender();

?>

<table width='90%'><tr><th width='60%'>Quotation Details</th><th width='40%'>Offline Tenders</th></tr>
<tr valign='top'><td>
<table width='100%' border='1' style='border-collapse: collapse'>

<?php

echo "<tr><td width='15%'>Date Closing</td><td width='85%'><input type='hidden' name='id' value='$myTender->id'>";

$myCalendar = new tc_calendar("date_closing", true, false);
$myCalendar->setIcon("images/iconCalendar.gif");
$myCalendar->setDate(date('d', strtotime($myTender->dateClosing)), date('m', strtotime($myTender->dateClosing)), date('Y', strtotime($myTender->dateClosing)));
$myCalendar->setPath("calendar/");
$myCalendar->setYearInterval(2016, 2020);
$myCalendar->setAlignment('left', 'bottom');
$myCalendar->writeScript();	  

echo "</td></tr>
<tr><td>Quotations</td><td><input type='text' name='quotations' value='$myTender->quotations' size='2'></td></tr>
<tr><td>Lowest Quote</td><td><textarea name='l1quote' rows=3' cols='50'>$myTender->l1Quote</textarea></td></tr>
<tr><th></th><th><input type='submit' name='submit' value='SAVE'></th></tr>";

?>
</table>
<?php

//show tender details
echo $myTender->showTender();

?>
</td><td>
<?php

//get offline tenders
echo $myTender->listTenders('Offline', $pg);

?>
</td></tr>
</table>
</center>