Location: PHPKode > projects > PhpRechnung > phpRechnung/include/smarty/templates/offer/edit.tpl
{*
	edit.tpl

	phpRechnung - is easy-to-use Web-based multilingual accounting software.
	Copyright (C) 2001 - 2008 Edy Corak < phprechnung at ecorak dot net >

	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*}
{include file="header.tpl"}
{if $Mark}
	<body onload="document.{$Mark}.focus();">
{else}
	<body onload="document.Edit.Customer.focus();">
{/if}
{include file="htable.tpl"}
<table border="0" width="100%" cellspacing="0" cellpadding="0" summary="Tabelle 3">
<tr>
	<td id="td1_20" width="20%" valign="top">
	{* Menubar start *}
		<table border="0" width="80%" cellspacing="0" cellpadding="0" summary="Tabelle 4">
			{if $smarty.session.SuperUser and ( $smarty.session.SuperUser eq $Root )}
				<tr>
					<td align="center" class="phprechnung_menu"><a accesskey="L" title="{$Logout}"
					href="../login/suend.php?{$Session}">{$Logout}</a>
					</td>
				</tr>
			{else}
				<tr>
					<td align="center" class="phprechnung_menu"><a accesskey="L" title="{$Logout}"
					href="../login/logout.php?{$Session}">{$Logout}</a>
					</td>
				</tr>
			{/if}
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="W" title="{$Startpage}"
				href="../index.php?{$Session}">{$Startpage}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="A" title="{$Addressbook}"
				href="../addressbook/list.php?{$Session}">{$Addressbook}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="P" title="{$Position}"
				href="../position/list.php?{$Session}">{$Position}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu_sel"><a accesskey="O" title="{$Offer} - {$List}"
				href="list.php?{$Session}">{$Offer}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu_sub"><a accesskey="1" title="{$Offer} - {$New}"
				href="new.php?invoiceID={$invoiceID}&amp;{$AddCurrentPage}Order={$Order}&amp;Sort={$Sort}&amp;{$Session}">{$New}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu_sub"><a accesskey="2" title="{$Offer} - {$Search}"
				href="search.php?invoiceID={$invoiceID}&amp;{$AddCurrentPage}Order={$Order}&amp;Sort={$Sort}&amp;{$Session}">{$Search}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu_sub"><a accesskey="3" title="{$Offer} - {$Help}"
				href="help.php?{$Session}">{$Help}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="I" title="{$Invoice}"
				href="../invoice/list.php?{$Session}">{$Invoice}</a>
				</td>
			</tr>
			{* <tr>
				<td align="left" class="phprechnung_menu"><a accesskey="N" title="{$Creditnote}"
				href="../creditnote/list.php?{$Session}">{$Creditnote}</a>
				</td>
			</tr> *}
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="M" title="{$Payment}"
				href="../payment/list.php?{$Session}">{$Payment}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="C" title="{$Cashbook}"
				href="../cashbook/list.php?{$Session}">{$Cashbook}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="R" title="{$Reports}"
				href="../reports/index.php?{$Session}">{$Reports}</a>
				</td>
			</tr>
			<tr>
				<td align="left" class="phprechnung_menu"><a accesskey="S" title="{$Configuration}"
				href="../configuration.php?{$Session}">{$Configuration}</a>
				</td>
			</tr>
			{if $smarty.session.Username and ( $smarty.session.Username != $Root )}
				<tr>
					<td align="left" class="phprechnung_menu"><a accesskey="U" title="{$Superuser}"
					href="../login/sustart.php?{$Session}">{$Superuser}</a>
					</td>
				</tr>
			{/if}
		</table>
	</td>
	{* Menubar end *}
	<td id="td1_2" width="2%">
	</td>
	<td width="78%" valign="top" align="center">
		<table width="100%" border="0" cellpadding="2" cellspacing="0" summary="Tabelle 1">
			<tr>
				<td class="phprechnung_tabelle">
					<table width="100%" border="0" cellspacing="3" cellpadding="3" summary="Tabelle 2">
						{if $TaxFree neq 1}
							<tr>
								<td align="center" colspan="8"><h2>{$Offer} - {$Edit}</h2>
							</td>
							</tr>
						{else}
							<tr>
							<td align="center" colspan="7"><h2>{$Offer} - {$Edit}</h2>
							</td>
							</tr>
						{/if}
						<tr>
						{if $TaxFree neq 1}
							<td align="center" colspan="8">
						{else}
							<td align="center" colspan="7">
						{/if}
						{* Display pager *}
						{if $CurrentOfferID > $MinOfferID }
							<a href="{$smarty.server.PHP_SELF}?offerID={$MinOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/first.png" title="{$FirstPageMsg}" alt="{$FirstPageMsg}" /></a>&nbsp;
							<a href="{$smarty.server.PHP_SELF}?offerID={$PrevOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/prev.png" title="{$PrevPageMsg}" alt="{$PrevPageMsg}" /></a>&nbsp;
						{/if}
						{$Offer_No}:&nbsp;<a title="{$Offer_No}: {$CurrentOfferID} / {$MaxOfferID}" class="ninfolink" href="{$smarty.server.PHP_SELF}?offerID={$CurrentOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;myID={$myID}&amp;messageID={$MESSAGEID}&amp;OfferDate={$OFFER_DATE}&amp;MethodOfPayment={$NR_METHOD_OF_PAYMENT}&amp;MethodOfPaymentDate={$METHOD_OF_PAYMENT_DATE}&amp;Note={$NOTE}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}">{$CurrentOfferID}</a>&nbsp;/&nbsp;{$MaxOfferID}&nbsp;
						{if $CurrentOfferID < $MaxOfferID }
							<a href="{$smarty.server.PHP_SELF}?offerID={$NextOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/next.png" title="{$NextPageMsg}" alt="{$NextPageMsg}" /></a>&nbsp;
							<a href="{$smarty.server.PHP_SELF}?offerID={$MaxOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/last.png" title="{$LastPageMsg}" alt="{$LastPageMsg}" /></a>&nbsp;
						{/if}
							</td>
						</tr>
						{if $MaxRows eq 0}
							<tr>
							{if $TaxFree neq 1}
								<td align="center" colspan="8" class="redtxt">
							{else}
								<td align="center" colspan="7" class="redtxt">
							{/if}
							{$NoEntry}
								</td>
							</tr>
						{elseif $CANCELED neq 2}
							<tr>
							{if $TaxFree neq 1}
								<td align="center" colspan="8" class="redtxt">
							{else}
								<td align="center" colspan="7" class="redtxt">
							{/if}
							{$Entry_Canceled}
								</td>
							</tr>
						{else}
							<tr>
								<td>&nbsp;
								</td>
							</tr>
						<tr>
							<td align="left" valign="middle" colspan="8">&nbsp;&nbsp;&nbsp;&nbsp;
							<form id="Edit" name="Edit" action="customerlist.php?{$Session}" method="post">
								<input type="hidden" name="offerID" value="{$offerID}" />
								<input type="hidden" name="infoID" value="{$infoID}" />
								<input type="hidden" name="messageID" value="{$MESSAGEID}" />
								<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
								<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
								<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
								<input type="hidden" name="Note" value="{$NOTE}" />
								<input type="hidden" name="OfferID1" value="{$OfferID1}" />
								<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
								<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
								<input type="hidden" name="DateTill1" value="{$DateTill1}" />
								<input type="hidden" name="Total1" value="{$Total1}" />
								<input type="hidden" name="Customer1" value="{$Customer1}" />
								<input type="hidden" name="page" value="{$page}" />
								<input type="hidden" name="Order" value="{$Order}" />
								<input type="hidden" name="Sort" value="{$Sort}" />
								<input type="hidden" name="Canceled" value="{$Canceled}" />
								<input type="text" name="Customer" size="40" title="{$Find_Customer}" value="" />
								<input class="button" type="submit" title="{$Choose_Customer}" value="{$Search}" />
							</form>
							</td>
						</tr>
						{if $MYID}
							{if $PRINT_NAME != 2}
								<tr>
									<td align="left" valign="middle" colspan="8">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$PREFIX} {$TITLE}
									</td>
								</tr>
								<tr>
									<td align="left" valign="middle" nowrap="nowrap" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$FIRSTNAME} {$LASTNAME}
									</td>
									<td align="right" valign="middle" colspan="2">{$Offer_No}:
									</td>
									<td align="left" valign="middle" colspan="2">{$OfferInitials}-{$PrintDate}
									</td>
								</tr>
							{else}
								<tr>
									<td align="left" valign="middle" nowrap="nowrap" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									</td>
									<td align="right" valign="middle" colspan="2">{$Offer_No}:
									</td>
									<td align="left" valign="middle" colspan="2">{$OfferInitials}-{$PrintDate}
									</td>
								</tr>
							{/if}
							<tr>
								<td align="left" valign="middle" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$COMPANY}
								</td>
								<td align="right" valign="middle" colspan="2">{$Customer_No}:
								</td>
								<td align="left" valign="middle" colspan="2"><a title="{$AllInformation} {$Customer_No} {$CustomerNoInitials}-{$MYID}" class="nmenulink" href="../addressbook/info.php?myID={$MYID}&amp;infoID=30&amp;{$Session}" target="_blank">{$CustomerNoInitials}-{$MYID}</a>
								</td>
							</tr>
							<tr>
								<td align="left" valign="middle" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$ADDRESS}
								</td>
								<td align="right" valign="top" colspan="2">{$CustMethodOfPayment}:
								</td>
								<td align="left" valign="middle" colspan="2">
								<form name="MethodOfPay" action="{$smarty.server.PHP_SELF}?{$Session}" method="post">
									<input type="hidden" name="myID" value="{$MYID}" />
									<input type="hidden" name="offerID" value="{$offerID}" />
									<input type="hidden" name="infoID" value="{$infoID}" />
									<input type="hidden" name="tmpID" value="{$offerID}" />
									<input type="hidden" name="messageID" value="{$MESSAGEID}" />
									<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
									<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
									<input type="hidden" name="Note" value="{$NOTE}" />
									<input type="hidden" name="OfferID1" value="{$OfferID1}" />
									<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
									<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
									<input type="hidden" name="DateTill1" value="{$DateTill1}" />
									<input type="hidden" name="Total1" value="{$Total1}" />
									<input type="hidden" name="Customer1" value="{$Customer1}" />
									<input type="hidden" name="Mark" value="MethodOfPayD.MethodOfPaymentDate" />
									<input type="hidden" name="page" value="{$page}" />
									<input type="hidden" name="Order" value="{$Order}" />
									<input type="hidden" name="Sort" value="{$Sort}" />
									<input type="hidden" name="Canceled" value="{$Canceled}" />
									<select title="{$CustMethodOfPayment}" class="choice200" name="MethodOfPayment" onchange="this.form.submit();">
										<optgroup title="{$CustMethodOfPayment}" label="{$CustMethodOfPayment}">
										{foreach from=$PaymentData item=payment}
											{if $NR_METHOD_OF_PAYMENT == $payment.METHODOFPAYID}
												<option title="{$payment.DESCRIPTION}" label="{$payment.DESCRIPTION}" value="{$payment.METHODOFPAYID}" selected="selected">{$payment.DESCRIPTION}</option>
											{else}
												<option title="{$payment.DESCRIPTION}" label="{$payment.DESCRIPTION}" value="{$payment.METHODOFPAYID}">{$payment.DESCRIPTION}</option>
											{/if}
										{/foreach}
										</optgroup>
									</select>
								</form>
								</td>
							</tr>
							<tr>
								<td align="left" valign="middle" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$POSTALCODE}&nbsp;&nbsp;{$CITY}
								</td>
								<td align="right" valign="top" colspan="2">{$Payment } {$Date_Till}:
								</td>
								<td align="left" valign="middle" colspan="2">
								<form id="MethodOfPayD" name="MethodOfPayD" action="{$smarty.server.PHP_SELF}?{$Session}" method="post">
									<input type="hidden" name="myID" value="{$MYID}" />
									<input type="hidden" name="offerID" value="{$offerID}" />
									<input type="hidden" name="infoID" value="{$infoID}" />
									<input type="hidden" name="tmpID" value="{$offerID}" />
									<input type="hidden" name="messageID" value="{$MESSAGEID}" />
									<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
									<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
									<input type="hidden" name="Note" value="{$NOTE}" />
									<input type="hidden" name="OfferID1" value="{$OfferID1}" />
									<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
									<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
									<input type="hidden" name="DateTill1" value="{$DateTill1}" />
									<input type="hidden" name="Total1" value="{$Total1}" />
									<input type="hidden" name="Customer1" value="{$Customer1}" />
									<input type="hidden" name="Mark" value="OfferD.OfferDate" />
									<input type="hidden" name="page" value="{$page}" />
									<input type="hidden" name="Order" value="{$Order}" />
									<input type="hidden" name="Sort" value="{$Sort}" />
									<input type="hidden" name="Canceled" value="{$Canceled}" />
									<input type="text" name="MethodOfPaymentDate" size="20" title="{$Payment }{$Date_Till} {$DateMsg}" value="{if $METHOD_OF_PAYMENT_DATE neq 0}{$METHOD_OF_PAYMENT_DATE}{/if}" onchange="this.form.submit();" />
								</form>
								</td>
							</tr>
							<tr>
								<td align="left" valign="middle" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								{if $COUNTRY neq $Country}
									{$COUNTRY}
								{/if}
								</td>
								<td align="right" valign="top" colspan="2">{$DateMsg}:
								</td>
								<td align="left" valign="middle" colspan="2">
								<form id="OfferD" name="OfferD" action="{$smarty.server.PHP_SELF}?{$Session}" method="post">
									<input type="hidden" name="myID" value="{$MYID}" />
									<input type="hidden" name="offerID" value="{$offerID}" />
									<input type="hidden" name="infoID" value="{$infoID}" />
									<input type="hidden" name="tmpID" value="{$offerID}" />
									<input type="hidden" name="messageID" value="{$MESSAGEID}" />
									<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
									<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
									<input type="hidden" name="OfferID1" value="{$OfferID1}" />
									<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
									<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
									<input type="hidden" name="DateTill1" value="{$DateTill1}" />
									<input type="hidden" name="Total1" value="{$Total1}" />
									<input type="hidden" name="Customer1" value="{$Customer1}" />
									<input type="hidden" name="Note" value="{$NOTE}" />
									<input type="hidden" name="Mark" value="OfferD.OfferDate" />
									<input type="hidden" name="page" value="{$page}" />
									<input type="hidden" name="Order" value="{$Order}" />
									<input type="hidden" name="Sort" value="{$Sort}" />
									<input type="hidden" name="Canceled" value="{$Canceled}" />
									<input type="text" name="OfferDate" size="20" title="{$Offer} - {$DateMsg}" value="{$OFFER_DATE}" onchange="this.form.submit();" />
								</form>
								</td>
							</tr>
						{/if}
						<tr>
							<td>
							</td>
						</tr>
					</table>
					<table width="100%" border="0" cellspacing="1" cellpadding="3" summary="Tabelle 3">
						<tr class="mblueTD">
							<td nowrap="nowrap" align="left" valign="middle">{$PositionName}&nbsp;-&nbsp;[&nbsp;<a title="{$PositionNew}" class="nlink" href="posnew.php?myID={$myID}&amp;offerID={$offerID}&amp;page={$page}&amp;infoID={$infoID}&amp;messageID={$MESSAGEID}&amp;OfferDate={$OFFER_DATE}&amp;MethodOfPayment={$NR_METHOD_OF_PAYMENT}&amp;MethodOfPaymentDate={$METHOD_OF_PAYMENT_DATE}&amp;Note={$NOTE}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}">&nbsp;{$New}&nbsp;</a>&nbsp;]
							</td>
							<td nowrap="nowrap" align="left" valign="middle">{$PositionText}
							</td>
							<td nowrap="nowrap" align="right" valign="middle">{$PositionQuantity}
							</td>
							<td  nowrap="nowrap" align="right" valign="middle">{$PositionPrice} {$Offer_Currency}
							</td>
							{if $TaxFree != 1}
								<td nowrap="nowrap" align="right" valign="middle">{$Tax}
								</td>
							{/if}
							<td nowrap="nowrap" align="right" valign="middle">{$PositionAmount} {$Offer_Currency}
							</td>
							<td nowrap="nowrap" align="center" colspan="2">{$Entrys}:&nbsp;{$MaxRows}&nbsp;
							</td>
						</tr>
						{foreach from=$PosData item=offer}
							<tr class="{cycle values="grayTD,wTD"}">
								<td valign="top" align="left"><a title="{$AllInformation} {$offer.POS_NAME}" class="ninfolink" href="../position/info.php?posID={$offer.POSITIONID}&amp;infoID=30&amp;{$Session}" target="_blank">{$offer.POS_NAME}</a>
								</td>
								<td valign="top" align="left">{$offer.POS_DESC|nl2br}
								</td>
								<td nowrap="nowrap" valign="top" align="right">
								{if $offer.POS_QUANTITY != 0}
									{$offer.POS_QUANTITY}
								{/if}
								</td>
								<td nowrap="nowrap" valign="top" align="right">
								{if $offer.POS_QUANTITY != 0}
									{$offer.POS_PRICE|number_format}
								{/if}
								</td>
								{if $TaxFree != 1}
									<td nowrap="nowrap" valign="top" align="right">
									{if $offer.POS_QUANTITY != 0}
										{$offer.TAX_DESC}
									{/if}
									</td>
								{/if}
								<td nowrap="nowrap" valign="top" align="right">
								{if $offer.POS_QUANTITY != 0}
									{$offer.POS_PRICE*$offer.POS_QUANTITY|number_format}
								{/if}
								</td>
								<td valign="top" align="center"><a href="posedit.php?tmpPosID={$offer.TMP_OFFERID}&amp;myID={$MYID}&amp;offerID={$offerID}&amp;posID={$offer.POSITIONID}&amp;page={$page}&amp;infoID={$infoID}&amp;messageID={$MESSAGEID}&amp;OfferDate={$OFFER_DATE}&amp;MethodOfPayment={$NR_METHOD_OF_PAYMENT}&amp;MethodOfPaymentDate={$METHOD_OF_PAYMENT_DATE}&amp;Note={$NOTE}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/edit.png" title="{$Position} - {$Edit}" alt="{$Position} - {$Edit}" /></a>
								</td>
								<td valign="top" align="center"><a href="posdelete.php?tmpPosID={$offer.TMP_OFFERID}&amp;myID={$MYID}&amp;offerID={$offerID}&amp;page={$page}&amp;infoID={$infoID}&amp;messageID={$MESSAGEID}&amp;OfferDate={$OFFER_DATE}&amp;MethodOfPayment={$NR_METHOD_OF_PAYMENT}&amp;MethodOfPaymentDate={$METHOD_OF_PAYMENT_DATE}&amp;Note={$NOTE}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/delete.png" title="{$Position} - {$Delete}" alt="{$Position} - {$Delete}" /></a>
								</td>
							</tr>
						{/foreach}
						<tr>
							<td>&nbsp;
							</td>
						</tr>
						{if $TaxFree neq 1}
							{if $SUBTOTAL1}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Subtotal} {$TAX1_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$SUBTOTAL1|number_format}
									</td>
								</tr>
							{/if}
							{if $SUBTOTAL2}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Subtotal} {$TAX2_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$SUBTOTAL2|number_format}
									</td>
								</tr>
							{/if}
							{if $SUBTOTAL3}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Subtotal} {$TAX3_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$SUBTOTAL3|number_format}
									</td>
								</tr>
							{/if}
							{if $SUBTOTAL4}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Subtotal} {$TAX4_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$SUBTOTAL4|number_format}
									</td>
								</tr>
							{/if}
							{if $TAX1}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Tax1} {$TAX1_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$TAX1|number_format}
									</td>
								</tr>
							{/if}
							{if $TAX2}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Tax2} {$TAX2_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$TAX2|number_format}
									</td>
								</tr>
							{/if}
							{if $TAX3}
								<tr>
									<td valign="top" align="right" colspan="6">{$Offer_Tax3} {$TAX3_DESC}:
									</td>
									<td valign="top" align="right" colspan="2">{$TAX3|number_format}
									</td>
								</tr>
							{/if}
							<tr>
								<td valign="top" align="right" colspan="6"><b>{$Offer_Amount}  {$Offer_Currency}</b>:
								</td>
								<td valign="top" align="right" colspan="2"><b>{$TOTAL|number_format}</b>
								</td>
							</tr>
						{else}
							<tr>
								<td valign="top" align="right" colspan="5"><b>{$Offer_Amount}  {$Offer_Currency}</b>:
								</td>
								<td valign="top" align="right" colspan="2"><b>{$TOTAL|number_format}</b>
								</td>
							</tr>
						{/if}
						<tr>
							<td>&nbsp;
							</td>
						</tr>
						<tr>
							{if $TaxFree neq 1}
								<td colspan="8" align="center" valign="middle">
							{else}
								<td colspan="7" align="center" valign="middle">
							{/if}
							<form id="Note" name="Note" action="{$smarty.server.PHP_SELF}?{$Session}" method="post">
								<input type="hidden" name="myID" value="{$MYID}" />
								<input type="hidden" name="offerID" value="{$offerID}" />
								<input type="hidden" name="infoID" value="{$infoID}" />
								<input type="hidden" name="tmpID" value="{$offerID}" />
								<input type="hidden" name="messageID" value="{$MESSAGEID}" />
								<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
								<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
								<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
								<input type="hidden" name="OfferID1" value="{$OfferID1}" />
								<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
								<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
								<input type="hidden" name="DateTill1" value="{$DateTill1}" />
								<input type="hidden" name="Total1" value="{$Total1}" />
								<input type="hidden" name="Customer1" value="{$Customer1}" />
								<input type="hidden" name="Mark" value="Message.messageID" />
								<input type="hidden" name="page" value="{$page}" />
								<input type="hidden" name="Order" value="{$Order}" />
								<input type="hidden" name="Sort" value="{$Sort}" />
								<input type="hidden" name="Canceled" value="{$Canceled}" />
								<textarea title="{$Offer_Note}" class="form_new_textarea" name="Note" rows="3" cols="40" onchange="this.form.submit();">{$NOTE}</textarea>
							</form>
							</td>
						</tr>
						<tr>
							<td>&nbsp;
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" colspan="2">
							<form id="Message" name="Message" action="{$smarty.server.PHP_SELF}?{$Session}#NewMessage" method="post">
							<input type="hidden" name="myID" value="{$MYID}" />
							<input type="hidden" name="offerID" value="{$offerID}" />
							<input type="hidden" name="infoID" value="{$infoID}" />
							<input type="hidden" name="tmpID" value="{$offerID}" />
							<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
							<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
							<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
							<input type="hidden" name="OfferID1" value="{$OfferID1}" />
							<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
							<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
							<input type="hidden" name="DateTill1" value="{$DateTill1}" />
							<input type="hidden" name="Total1" value="{$Total1}" />
							<input type="hidden" name="Customer1" value="{$Customer1}" />
							<input type="hidden" name="Note" value="{$NOTE}" />
							<input type="hidden" name="Mark" value="Edit1.ChangeOffer" />
							<input type="hidden" name="page" value="{$page}" />
							<input type="hidden" name="Order" value="{$Order}" />
							<input type="hidden" name="Sort" value="{$Sort}" />
							<input type="hidden" name="Canceled" value="{$Canceled}" />
							<select title="{$Choose_Message}" class="choice250" name="messageID" onchange="this.form.submit();">
							<optgroup title="{$Choose_Message}" label="{$Choose_Message}">
							<option title="{$Choose_Message}" value="">--- {$Choose_Message} ---</option>
							{foreach from=$MessageData item=message}
								{if $MESSAGEID == $message.MESSAGEID}
									<option title="{$message.DESCRIPTION}" label="{$message.DESCRIPTION}" value="{$message.MESSAGEID}" selected="selected">{$message.DESCRIPTION}</option>
								{else}
									<option title="{$message.DESCRIPTION}" label="{$message.DESCRIPTION}" value="{$message.MESSAGEID}">{$message.DESCRIPTION}</option>
								{/if}
							{/foreach}
							</optgroup></select><a name="NewMessage" id="NewMessage"></a>
							</form>
							</td>
							<td align="center" valign="top" colspan="2">
							<form id="Print" name="Print" action="print_pdf.php?{$Session}" target="_blank" method="post">
								<input type="hidden" name="messageID" value="{$MESSAGEID}" />
								<input type="hidden" name="Type" value="Offer" />
								<input type="hidden" name="tmpPos" value="1" />
								<input type="hidden" name="offerID" value="{$offerID}" />
								<input type="hidden" name="myID" value="{$MYID}" />
								<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
								<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
								<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
								<input class="button" type="submit" title="{$Print_Offer}" value="{$Print}" />
							</form>
							</td>
							{if $TaxFree neq 1}
								<td align="center" colspan="2" valign="top">
							{else}
								<td align="center" valign="top">
							{/if}
							{if $infoID eq 9}
								<form id="Searchlist" name="Searchlist" action="searchlist.php?{$Session}#{$offerID}" method="post">
									<input type="hidden" name="OfferID1" value="{$OfferID1}" />
									<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
									<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
									<input type="hidden" name="DateTill1" value="{$DateTill1}" />
									<input type="hidden" name="Total1" value="{$Total1}" />
									<input type="hidden" name="Customer1" value="{$Customer1}" />
									<input type="hidden" name="Order" value="{$Order}" />
									<input type="hidden" name="Sort" value="{$Sort}" />
									<input type="hidden" name="Canceled" value="{$Canceled}" />
									<input class="button" type="submit" title="{$BackMsg} - {$Searchresult}" value="{$BackMsg} - {$Searchresult}" />
								</form>
								</td>
							{else}
								<form id="List" name="List" action="list.php?{$Session}#{$offerID}" method="post">
									<input type="hidden" name="Order" value="{$Order}" />
									<input type="hidden" name="Sort" value="{$Sort}" />
									<input type="hidden" name="Canceled" value="{$Canceled}" />
									<input class="button" type="submit" title="{$BackMsg} - {$List}" value="{$BackMsg} - {$List}" />
								</form>
								</td>
							{/if}
							<td align="center" valign="top" colspan="2">
							<form id="Edit1" name="Edit1" action="editf.php?{$Session}" method="post">
								<input type="hidden" name="myID" value="{$MYID}" />
								<input type="hidden" name="offerID" value="{$offerID}" />
								<input type="hidden" name="OfferDate" value="{$OFFER_DATE}" />
								<input type="hidden" name="MethodOfPayment" value="{$NR_METHOD_OF_PAYMENT}" />
								<input type="hidden" name="MethodOfPaymentDate" value="{$METHOD_OF_PAYMENT_DATE}" />
								<input type="hidden" name="infoID" value="{$infoID}" />
								<input type="hidden" name="CreatedBy" value="{$CreatedBy}" />
								<input type="hidden" name="OfferSubtotal1" value="{$SUBTOTAL1}" />
								<input type="hidden" name="OfferSubtotal2" value="{$SUBTOTAL2}" />
								<input type="hidden" name="OfferSubtotal3" value="{$SUBTOTAL3}" />
								<input type="hidden" name="OfferSubtotal4" value="{$SUBTOTAL4}" />
								<input type="hidden" name="Tax1Total" value="{$TAX1}" />
								<input type="hidden" name="Tax1Desc" value="{$TAX1_DESC}" />
								<input type="hidden" name="Tax2Total" value="{$TAX2}" />
								<input type="hidden" name="Tax2Desc" value="{$TAX2_DESC}" />
								<input type="hidden" name="Tax3Total" value="{$TAX3}" />
								<input type="hidden" name="Tax3Desc" value="{$TAX3_DESC}" />
								<input type="hidden" name="Tax4Total" value="{$TAX4}" />
								<input type="hidden" name="Tax4Desc" value="{$TAX4_DESC}" />
								<input type="hidden" name="OfferAmount" value="{$TOTAL}" />
								<input type="hidden" name="Note" value="{$NOTE}" />
								<input type="hidden" name="messageID" value="{$MESSAGEID}" />
								<input type="hidden" name="OfferID1" value="{$OfferID1}" />
								<input type="hidden" name="CustomerID1" value="{$CustomerID1}" />
								<input type="hidden" name="DateFrom1" value="{$DateFrom1}" />
								<input type="hidden" name="DateTill1" value="{$DateTill1}" />
								<input type="hidden" name="Total1" value="{$Total1}" />
								<input type="hidden" name="Customer1" value="{$Customer1}" />
								<input type="hidden" name="page" value="{$page}" />
								<input type="hidden" name="Order" value="{$Order}" />
								<input type="hidden" name="Sort" value="{$Sort}" />
								<input type="hidden" name="Canceled" value="{$Canceled}" />
								{if $CANCELED eq 1}
									<input disabled="disabled" class="button" name="ChangeOffer" type="submit" title="{$Change_Offer}" value="{$Change}" />
								{elseif $STATUS eq 3}
									<input disabled="disabled" class="button" name="ChangeOffer" type="submit" title="{$Change_Offer}" value="{$Change}" />
								{else}
									<input class="button" name="ChangeOffer" type="submit" title="{$Change_Offer}" value="{$Change}" />
								{/if}
							</form>
							</td>
						</tr>
						<tr>
							<td>&nbsp;
							</td>
						</tr>
						<tr>
							{if $TaxFree neq 1}
								<td align="center" colspan="8">
							{else}
								<td align="center" colspan="7">
							{/if}
							{if $MaxRows > 3}
								{* Display pager *}
								{if $CurrentOfferID > $MinOfferID }
									<a href="{$smarty.server.PHP_SELF}?offerID={$MinOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/first.png" title="{$FirstPageMsg}" alt="{$FirstPageMsg}" /></a>&nbsp;
									<a href="{$smarty.server.PHP_SELF}?offerID={$PrevOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/prev.png" title="{$PrevPageMsg}" alt="{$PrevPageMsg}" /></a>&nbsp;
								{/if}
								{$Offer_No}:&nbsp;<a title="{$Offer_No}: {$CurrentOfferID} / {$MaxOfferID}" class="ninfolink" href="{$smarty.server.PHP_SELF}?offerID={$CurrentOfferID}&amp;tmpID={$offerID}&amp;page={$page}&amp;infoID={$infoID}&amp;myID={$myID}&amp;messageID={$MESSAGEID}&amp;OfferDate={$OFFER_DATE}&amp;MethodOfPayment={$NR_METHOD_OF_PAYMENT}&amp;MethodOfPaymentDate={$METHOD_OF_PAYMENT_DATE}&amp;Note={$NOTE}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}">{$CurrentOfferID}</a>&nbsp;/&nbsp;{$MaxOfferID}&nbsp;
								{if $CurrentOfferID < $MaxOfferID }
									<a href="{$smarty.server.PHP_SELF}?offerID={$NextOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/next.png" title="{$NextPageMsg}" alt="{$NextPageMsg}" /></a>&nbsp;
									<a href="{$smarty.server.PHP_SELF}?offerID={$MaxOfferID}&amp;page={$page}&amp;infoID={$infoID}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}"><img border="0" src="../images/last.png" title="{$LastPageMsg}" alt="{$LastPageMsg}" /></a>&nbsp;
								{/if}
							{/if}
							</td>
						</tr>
						{/if}
					</table>
				</td>
			</tr>
		</table>
	</td>
</tr>
<tr>
	<td id="td2_20" width="20%"><br />
	</td>
	<td id="td2_2" width="2%">
	</td>
	<td width="78%" valign="top"><br />
	</td>
</tr>
</table>
{include file="footer.tpl"}
Return current item: PhpRechnung