| Current Path : /var/www/html/mmishra/istore/ |
| Current File : /var/www/html/mmishra/istore/tformats.php |
<?php
include "session.inc";
$dated = date("d.m.Y");
$pg = $_REQUEST["pg"];
$tno = $_REQUEST["tno"];
$rs = mysql_query("select * from t_tenders where id=$tno");
while ($o = mysql_fetch_object($rs)) {
$tenderno = $o->tender_no;
$datetender = $o->date_tender;
$datetender = date('d', strtotime($datetender)).'.'.date('m', strtotime($datetender)).'.'.date('Y', strtotime($datetender));
$datesubmission = $o->date_submission;
$datesubmission = date('d', strtotime($datesubmission)).'.'.date('m', strtotime($datesubmission)).'.'.date('Y', strtotime($datesubmission));
$timesubmission = $o->time_submission;
$dateopening = $o->date_opening;
$dateopening = date('d', strtotime($dateopening)).'.'.date('m', strtotime($dateopening)).'.'.date('Y', strtotime($dateopening));
$timeopening = $o->time_opening;
$title = $o->title;
}
echo "<div width='80%' style='margin-left:50pt; margin-top: 50; margin-right:50pt'>
<div align='right'>Date: $dated</div>";
switch ($pg) {
case "openingnote":
echo "<div align='center'><h2><u>Opening of Tender Box</u></h2></div>
<p>
Tender/Enquiry was issued by <b>Ref. No. $tenderno</b> dated $datetender for <b>\"$title\"</b> for IIIT-Allahabad.
</p>
<p>
Total received sealed envelops are as under:
<ol>";
$rs = mysql_query("select * from t_quotations where tender_no=$tno");
while ($o = mysql_fetch_object($rs)) {
echo "<li>$o->firm_name</li>";
}
echo "</ol>
</p>
<p>
Tender box has been opened on $dateopening at $timeopening in presence of the following officials:
<ol>";
$rs = mysql_query("select * from t_ocommittee order by seniority");
while ($o = mysql_fetch_object($rs)) {
echo "<li>$o->member_name</li>";
}
echo "</ol>
</p>
</div>";
break;
case "summarynote":
echo "<div align='center'><h2><u>Tender Summary for Committee</u></h2></div>
<b>Tender/Enquiry Ref. No. $tenderno</b> dated $datetender</b>
<p>
1. Date of meeting of committee for opening of quotations
<dir>
<b>Date:</b> $dateopening at $timeopening<br>
<b>Venue:</b> Admin Building, IIIT-A, Jhalwa Campus
</dir>
</p>
<p>
2. <b>Subject: $title</b><br>
</p>
<p>
3. Tender/Enquiry issue date: $datetender
</p>
<p>
4. Tender/Enquiry closing date: $datesubmission ($timesubmission)
</p>
<p>
5. Bidders name:
<ol>";
$no=0;
$rs = mysql_query("select * from t_quotations where tender_no=$tno");
while ($o = mysql_fetch_object($rs)) {
$no++;
echo "<li>$o->firm_name</li>";
}
echo "</ol>
</p>
<p>
6. Total quotations received: $no
</p>
<p>
7. Presence of bidders: Mandatory / Not mandatory
</p>
<p>
8. Special conditions of Tender/Enquiry, if any:
<dir>
.........................................................................................................................
.........................................................................................................................
.........................................................................................................................
</dir>
</p>
<p>
9. Committee members present:
<dir>
...................................<br>
...................................<br>
...................................<br>
...................................<br>
...................................
</dir>
</p>";
break;
case "extensionnote":
echo "<div align='center'><h2><u>Approval of Tender Extension</u></h2></div>
<p>
Tender/Enquiry for <b>\"$title\"</b> with <b>Ref. No. $tenderno</b> dated $datetender was issued by the Institute.
Last date for tender submission was <b>$datesubmission</b> till <b>$timesubmission</b>.
</p>";
$rs = mysql_query("select * from t_corrigendums where tender_no=$tno");
if (mysql_num_rows($rs)) {
echo "<p>Corrigendum issued are as below:
<ol>";
while ($o = mysql_fetch_object($rs)) {
$datecorrigendum = $o->date_corrigendum;
$datecorrigendum = date('d', strtotime($datecorrigendum)).'.'.date('m', strtotime($datecorrigendum)).'.'.date('Y', strtotime($datecorrigendum));
echo "<li>$o->title dated $datecorrigendum</li>";
}
echo "</ol>
</p>";
}
echo "<p>
<p>
If approved, time extension may be given upto ..... /..... /........... till ..... : .....
</p>
<div align='right'><b>Asstt. Registrar (S&P)</b></div>
<u><b>Purchase Committee pl.</b></u>";
break;
case "extensionorder":
$rs = mysql_query("select * from t_extensions where tender_no=$tno");
while ($o = mysql_fetch_object($rs)) {
$datesubmission = $o->date_submission;
$timesubmission = $o->time_submission;
}
echo "<div align='right'>Ref. No.: IIIT-A/Ext/DR(S&P)/........../".date("Y")."</div>
<div align='center'><h2><u>Extension of Tender Submission Date</u></h2></div>
<p>
In continuation of tender <b>Ref. No. $tenderno</b> dated $datetender for <b>\"$title\"</b> at IIIT-Allahabad.
The last date for submission of tender has been extended upto $datesubmission till $timesubmission.
</p>
<p>
The details of the tender can be downloaded from the Institute website at <u>https://www.iiita.ac.in</u>.
</p>
<div align='right'><b>Dy. Registrar (S&P)</b></div>
</div>";
break;
}
?>
</ol>
</p>
</div>