<?php
// +---------------------------------------------------------------------------------------+
// | TenderSystem                                                                          |
// +---------------------------------------------------------------------------------------+
// | The contents of this file are subject to the TenderSystem Public License Version 1.1  |
// | ("License"); you may not use this file except in compliance with the License. You may |
// | obtain a copy of the License at http://www.tendersystem.com/tpl/                      |
// |                                                                                       |
// | Software distributed under the License is distributed on an "AS IS" basis, WITHOUT    |
// | WARRANTY OF ANY KIND, either express or implied. See the License for the specific     |
// | language governing rights and limitations under the License.                          |
// |                                                                                       |
// | All copies of the Covered Code must include the "Powered by TenderSystem" logo and    |
// | ValueCard copyright notice on every user interface screen and in every outgoing       |
// | email in the same form as they appear in the distribution.                            |
// |                                                                                       |
// | The Original Code is: TenderSystem                                                    |
// | The Initial Developer of the Original Code is ValueCard (Pty) Limited.                |
// | Portions created by ValueCard are Copyright (C) 2002 ValueCard (Pty) Limited.         |
// | All Rights Reserved.                                                                  |
// | Contributor(s): __________________.                                                   |
// +---------------------------------------------------------------------------------------+

///////////////////////////////////////////////////////////////////////////////////////////
//  Purpose of file: Error Row
///////////////////////////////////////////////////////////////////////////////////////////
// set the subject link
$subject = $this->lang['error_subject']." ".$this->tender['rfq_number']." (".$this->tender['rfq_reference'].")";

// set the body
$html = "<tr id=\"<!--emailtype-->tender<!--/emailtype-->\">";
$html.= "<td id=\"<!--id-->".$this->tender['id']."<!--/id--><!--user-->".$this->tender['user']['id']."<!--/user-->\">";
$html.= $this->lang['dear']." ".$this->tender['user']['name'].",";
$html.= "<br/><br/>";
$html.= $this->lang['error_header'];
$html.= "<br/><br/>";
// Information Table
$html.= "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\">";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['rfq'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $this->tender['rfq_number']." (".$this->tender['rfq_reference'].")";
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['subscriber'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= "<a href=\"mailto:".$this->tender['requester']['email']."?subject=".$subject."\">";
$html.= $this->tender['requester']['name']." ".$this->tender['requester']['surname'];
$html.= "</a>";
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['contact'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $this->tender['requester']['phone_work'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['company'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $this->tender['requester']['organisationname']." (".$this->tender['requester']['branchname'].")";
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['location'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $this->tender['statename']." : ".$this->tender['areaname'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['closing'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $this->tender['close_date'];
$html.= "</td>";
$html.= "</tr>";
$html.= "</table>";
$html.= "<br/>";
// model update message
$html.= $this->lang['pleasenote'];
$html.= "<a href=\"".$cfg['url']."language/".$this->user['language']."/manual/demo_message.html\">".$this->lang['clicktoview']."</a>";
// attachment
if ($this->tender['rfq_attachment']) {
	$html.= "<br/><br/>";
	$html.= "<a href=\"".$cfg['url']."main.php?module=report&function=attachment&user_id=".$this->tender['user']['id']."&language=".$this->tender['user']['language']."&id=".$this->tender['rfq_attachment']['id']."&authentication=".$this->tender['rfq_attachment']['authentication']."\" class=\"error\">".$this->lang['clicktodownload']." <b>".$this->tender['rfq_attachment']['name']."</b>".$this->lang['additionalinfo']."</a>";
}
$html.= "<br/><br/>";
// Tender tables
$html.= "<table width=\"100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"0\">";
$html.= "<tr>";
$html.= "<td class=\"h t1\">";
$html.= $this->lang['item'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['error'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['brand'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['model'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['description'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['validity'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['stock'];
$html.= "</td>";
$html.= "<td class=\"ha t1\">";
$html.= $this->lang['quote'];
$html.= "</td>";
$html.= "<td>";
$html.= "</td>";
$html.= "</tr>";
// Populate rows
$html.= $this->tender['user']['row'];
// Close the table
$html.= "</table>";
$html.= "<br/>";
// User manual
$html.= $this->lang['tosubmitreply'];
$html.= "<ol>";
foreach($this->lang['completeinst'] as $value) {
	if($value) {
		$html.= "<li>".$value."</li>";
	}
}
$html.= "</ol>";

$html.= "<b>".$this->lang['note']."</b> : ".$this->lang['minperiod']." ".$cfg['tender']['validity']['minimum']." ".$this->lang['days'].".<br/>";
$html.= "<b>".$this->lang['note']."</b> : ".$this->lang['onlylarger']." ".$cfg['local']['precurrency']."0.00".$cfg['local']['postcurrency']." ".$this->lang['canbeincluded'].".<br/><br/>";
$html.= $this->lang['aftercompleting']." ";
$html.= "<a href=\"".$cfg['url']."language/".$this->user['language']."/manual/demo_message.html\">".$this->lang['clicktoview']."</a>";
$html.= "<br/><br/>";
// URL to complete online
$html.= $this->lang['youcanalso']." <a href=\"".$cfg['url']."index.php\">".$this->lang['completelogin']."</a>.";
$html.= "<br/><br/>";
// VAT
$html.= $this->lang['includesvat'];
$html.= "<br/><br/>";
// help
$html.= $this->lang['problemswith'];
$html.= " <a href=\"".$cfg['url']."language/".$this->user['language']."/manual/supplier_manual.zip\">".$this->lang['downloadmanual']."</a>.";
$html.= "<br/><br/>";
// Disclaimer 1
$html.= $this->lang['disclaimer1'];
?>
