<?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): __________________.                                                   |
// +---------------------------------------------------------------------------------------+

/**
* Client message template 
* @package TenderSystem
* @subpackage procure
* @copyright Copyright &copy; 2002, ValueCard (Pty) Ltd
* @license http://www.tendersystem.com/tpl/ TenderSystem Public License
* @version 
*/

// set the subject link
$subject = $this->lang['purchase_order_cancellation'].$purchase_order['tender']['rfq_number']." (".$purchase_order['tender']['rfq_reference'].")";
// authentication string
$link = $cfg['url']."main.php?module=procure&function=authenticate_purchase_order&language=".$this->user['language']."&tenderid=".$purchase_order['tender']['id']."&auth_string=".$purchase_order['authentication'];

$html.= "<tr>";
$html.= "<td>";
$html.= $this->lang['dear']." ".$agent_info['name'].",<br/><br/>";
$html.= $this->lang['pleasenotecancel'].$purchase_order['tender']['rfq_number']." (".$purchase_order['tender']['rfq_reference'].") ".$this->lang['hbcancelled'].".<br/><br/>";
$html.= "<b>".$this->lang['reason'].": ".$purchase_order['reason']."</b><br/><br/>";

$html.= "<a class=\"e\" href=\"".$link."\">".$this->lang['viewcancelled']."</a>.<br/><br/>";

$html.= "<table width=\"100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"0\">";
$html.= "<tr>";
$html.= "<td class=\"h1 t1\" colspan=\"4\" align=\"left\">";
$html.= $this->lang['subscriberinfo'];
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['name'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $subscriber_info['name']." ".$subscriber_info['surname'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['phonework'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $subscriber_info['phone_work'];
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['phonefax'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $subscriber_info['phone_fax'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['email'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= "<a href=\"mailto:".$subscriber_info['email']."?subject=".$subject."\">";
$html.= $subscriber_info['email'];
$html.= "</a>";
$html.= "</td>";
$html.= "</tr>";

$html.= "<tr><td><br/></td></tr>";

$html.= "<tr>";
$html.= "<td class=\"h1 t1\" colspan=\"4\" align=\"left\">";
$html.= $this->lang['companyinfo'];
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['company'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $subscriber_info['organisationname'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['branch'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $subscriber_info['branchname'];
$html.= "</td>";
$html.= "</tr>";

$html.= "<tr><td><br/></td></tr>";

$html.= "<tr>";
$html.= "<td class=\"h1 t1\" colspan=\"4\" align=\"left\">";
$html.= $this->lang['supplierinfo'];
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['supplier'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $agent_info['organisationname'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['agent'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= "<a href=\"mailto:".$agent_info['email']."?subject=".$subject."\">";
$html.= $agent_info['name']." ".$agent_info['surname'];
$html.= "</a>";
$html.= "</td>";
$html.= "</tr>";
$html.= "<tr>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['phonework'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $agent_info['phone_work'];
$html.= "</td>";
$html.= "<td class=\"t1\">";
$html.= $this->lang['phonefax'];
$html.= "</td>";
$html.= "<td class=\"t2\">";
$html.= $agent_info['phone_fax'];
$html.= "</td>";
$html.= "</tr>";
$html.= "</table>";
?>