Location: PHPKode > projects > PhpRechnung > phpRechnung/include/smarty/templates/addressbook/new.tpl
{*	new.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.New.{$Mark}.focus();">
{else}
	<body onload="document.New.Prefix.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} - {$List}"
href="list.php?{$Session}">{$Addressbook}</a></td></tr>
<tr><td align="left" class="phprechnung_menu_sel"><a accesskey="1" title="{$Addressbook} - {$New}"
href="new.php?{$AddCurrentPage}Order={$Order}&amp;Sort={$Sort}&amp;{$Session}">{$New}</a></td></tr>
<tr><td align="left" class="phprechnung_menu_sub"><a accesskey="2" title="{$Addressbook} - {$Search}"
href="search.php?{$AddCurrentPage}Order={$Order}&amp;Sort={$Sort}&amp;{$Session}">{$Search}</a></td></tr>
<tr><td align="left" class="phprechnung_menu_sub"><a accesskey="3" title="{$Addressbook} - {$DetailSearch}"
href="search_e.php?{$AddCurrentPage}Order={$Order}&amp;Sort={$Sort}&amp;{$Session}">{$DetailSearch}</a></td></tr>
<tr><td align="left" class="phprechnung_menu_sub"><a accesskey="4" title="{$Addressbook} - {$Help}"
href="help.php?{$Session}">{$Help}</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"><a accesskey="O" title="{$Offer}"
href="../offer/list.php?{$Session}">{$Offer}</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">
<form id="New" name="New" action="newf.php?{$Session}" method="post">
<table width="100%" class="phprechnung_tabelle" border="0" cellspacing="0" cellpadding="2" summary="Tabelle 1">
{* Display back button *}
<tr>
	<td valign="middle" align="left" colspan="4">
	{if $infoID eq 9}
		[&nbsp;<a title="{$BackMsg} - {$Addressbook} - {$Searchresult}" class="ninfolink" href="searchlist.php?page={$page}&amp;Order={$Order}&amp;Sort={$Sort}&amp;Customer={$Customer}&amp;{$Session}">{$BackMsg}</a>&nbsp;]
	{elseif $infoID eq 10}
		[&nbsp;<a title="{$BackMsg} - {$Addressbook} - {$Searchresult}" class="ninfolink" href="searchlist_e.php?page={$page}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Searchstring}&amp;{$Session}">{$BackMsg}</a>&nbsp;]
	{else}
		[&nbsp;<a title="{$BackMsg} - {$Addressbook} - {$List}" class="ninfolink" href="list.php?page={$page}&amp;Order={$Order}&amp;Sort={$Sort}&amp;{$Session}">{$BackMsg}</a>&nbsp;]
	{/if}
	</td>
</tr>
<tr><td align="center" colspan="4"><h2>{$Addressbook} - {$New}</h2></td></tr>
{if $smarty.session.NewID and ( $smarty.session.NewID eq 1 )}
	<tr><td align="center" colspan="4" class="greentxt">{$NewEntry} {$Customer_No} {$MyID}</td></tr>
{/if}
<tr><td>&nbsp;</td></tr>
<tr><td align="center" colspan="4" class="dbTxt">[ {$Customer_No} {$MyID+1} ]</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left" width="25%"></td><td class="dbTxt" valign="middle" align="left" width="25%"></td><td valign="middle" align="left" width="25%"></td><td class="dbTxt" valign="middle" align="left" width="25%"></td></tr>
<tr><td valign="middle" align="left" width="25%">{$Print_Name}</td><td class="dbTxt" valign="middle" align="left" width="25%">
<select class="choice200" name="PrintName" title="{$Print_Name}">
<optgroup label="{$Print_Name}" title="{$Print_Name}">
{foreach item=yes_no from=$choice_yes_no}
	{foreach key=key item=item from=$yes_no}
		{if $PRINT_NAME and ( $PRINT_NAME == $key)}
			<option label="{$item}" title="{$item}" value="{$key}" selected="selected">{$item}</option>
		{else}
			<option label="{$item}" title="{$item}" value="{$key}">{$item}</option>
		{/if}
	{/foreach}
{/foreach}
</optgroup></select></td><td width="25%"></td><td width="25%"></td></tr>
<tr><td valign="middle" align="left" width="25%"><b>{$Prefix}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="Prefix" size="22" value="{$PREFIX}" /></td><td valign="middle" align="left" width="25%">{$CTitle}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="Title1" size="22" value="{$TITLE}" /></td></tr>
<tr><td valign="middle" align="left"><b>{$Firstname}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Firstname" size="22" value="{$FIRSTNAME}" /></td><td valign="middle" align="left">{$Initials}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Initials" size="22" value="{$INITIALS}" /></td></tr>
<tr><td valign="middle" align="left"><b>{$Lastname}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Lastname" size="22" value="{$LASTNAME}" /></td><td valign="middle" align="left">{$Phonehome}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Phonehome" size="22" value="{$PHONEHOME}" /></td></tr>
<tr><td valign="middle" align="left">{$Salutation}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Salutation" size="22" value="{$SALUTATION}" /></td><td valign="middle" align="left">{$Mobile}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Mobile" size="22" value="{$MOBILE}" /></td></tr>
<tr><td valign="middle" align="left"><b>{$Address}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Address" size="22" value="{$ADDRESS}" /></td><td valign="middle" align="left">{$Fax}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Fax" size="22" value="{$FAX}" /></td></tr>
<tr><td valign="middle" align="left"><b>{$Country}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Country" size="22" value="{if $COUNTRY}{$COUNTRY}{else}{$CompanyCountry}{/if}" /></td><td valign="middle" align="left">{$Stateprov}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Stateprov" size="22" value="{$STATEPROV}" /></td></tr>
<tr><td valign="middle" align="left"><b>{$Postalcode}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Postalcode" size="22" value="{$POSTALCODE}" /></td><td valign="middle" align="left"><b>{$City}</b>&nbsp;</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="City" size="22" value="{$CITY}" /></td></tr>
<tr><td valign="middle" align="left">{$Email}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Email" size="22" value="{$EMAIL}" /></td><td valign="middle" align="left">{$Url}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Url" size="22" value="{$URL}" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left">{$Company}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Company" size="22" value="{$COMPANY}" /></td><td valign="middle" align="left">{$Phonework}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Phonework" size="22" value="{$PHONEWORK}" /></td></tr>
<tr><td valign="middle" align="left">{$Department}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Department" size="22" value="{$DEPARTMENT}" /></td><td valign="middle" align="left">{$Phoneoffi}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Phoneoffi" size="22" value="{$PHONEOFFI}" /></td></tr>
<tr><td valign="middle" align="left">{$CPosition}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Position1" size="22" value="{$POSITION}" /></td><td valign="middle" align="left">{$Phoneothe}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Phoneothe" size="22" value="{$PHONEOTHE}" /></td></tr>
<tr><td valign="middle" align="left">{$Birthday}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Birthday" size="22" value="{if $BIRTHDAY != 0}{$BIRTHDAY}{/if}" /></td><td valign="middle" align="left">{$Pager}</td><td class="dbTxt" valign="middle" align="left"><input type="text" name="Pager" size="22" value="{$PAGER}" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left"><b>{$Category}</b></td>
<td class="dbTxt" valign="middle" align="left">
<select class="choice200" name="Category" title="{$Category}">
<optgroup label="{$Category}" title="{$Category}">
{foreach from=$CategoryData item=category}
	{if $NR_CATEGORY == $category.CATEGORYID}
		<option label="{$category.DESCRIPTION}" title="{$category.DESCRIPTION}" value="{$category.CATEGORYID}" selected="selected">{$category.DESCRIPTION}</option>
	{else}
		<option label="{$category.DESCRIPTION}" title="{$category.DESCRIPTION}"  value="{$category.CATEGORYID}">{$category.DESCRIPTION}</option>
	{/if}
{/foreach}
</optgroup></select></td><td valign="middle" align="left" width="25%"></td></tr>
<tr><td valign="middle" align="left" width="25%"><b>{$CustMethodOfPayment}</b></td>
<td class="dbTxt" valign="middle" align="left" width="25%">
<select class="choice200" name="MethodOfPayment" title="{$CustMethodOfPayment}">
<optgroup label="{$CustMethodOfPayment}" title="{$CustMethodOfPayment}">
{foreach from=$PaymentData item=payment}
	{if $NR_METHOD_OF_PAYMENT == $payment.METHODOFPAYID}
		<option label="{$payment.DESCRIPTION}" title="{$payment.DESCRIPTION}" value="{$payment.METHODOFPAYID}" selected="selected">{$payment.DESCRIPTION}</option>
	{else}
		<option label="{$payment.DESCRIPTION}" title="{$payment.DESCRIPTION}"  value="{$payment.METHODOFPAYID}">{$payment.DESCRIPTION}</option>
	{/if}
{/foreach}
</optgroup></select></td><td valign="middle" align="left" width="25%"></td></tr>
<tr><td valign="middle" align="left" width="25%">{$CustMessage}</td>
<td class="dbTxt" valign="middle" align="left" width="25%">
<select class="choice200" name="Message" title="{$CustMessage}">
<optgroup label="{$CustMessage}" title="{$CustMessage}">
<option title="{$Choose_Message}" value="">--- {$Choose_Message} ---</option>
{foreach from=$MessageData item=message}
	{if $MESSAGE == $message.MESSAGEID}
		<option label="{$message.DESCRIPTION}" title="{$message.DESCRIPTION}" value="{$message.MESSAGEID}" selected="selected">{$message.DESCRIPTION}</option>
	{else}
		<option label="{$message.DESCRIPTION}" title="{$message.DESCRIPTION}"  value="{$message.MESSAGEID}">{$message.DESCRIPTION}</option>
	{/if}
{/foreach}
</optgroup></select></td><td valign="middle" align="left" width="25%"></td></tr>
<tr><td valign="middle" align="left" width="25%">{$Note}</td><td class="dbTxt" valign="middle" align="left" width="75%" colspan="3"><textarea name="Note" rows="5" cols="20">{$NOTE}</textarea></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left" width="25%">{$Email2}</td>
<td class="dbTxt" valign="middle" align="left"><input type="text" name="Email2" size="22" value="{$EMAIL2}" /></td>
<td valign="middle" align="left" width="25%">{$Url2}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="Url2" size="22" value="{$URL2}" /></td></tr>
<tr><td valign="middle" align="left" width="25%">{$AltField1}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="AltField1" size="22" value="{$ALTFIELD1}" /></td><td valign="middle" align="left" width="25%">{$AltField2}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="AltField2" size="22" value="{$ALTFIELD2}" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left" width="25%">{$Bank_Name}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="BankName" size="22" value="{$BANKNAME}" /></td><td valign="middle" align="left" width="25%"></td><td class="dbTxt" valign="middle" align="left" width="25%"></td></tr>
<tr><td valign="middle" align="left" width="25%">{$Bank_Account}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="BankAccount" size="22" value="{$BANKACCOUNT}" /></td><td valign="middle" align="left" width="25%">{$Bank_Number}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="BankNumber" size="22" value="{$BANKNUMBER}" /></td></tr>
<tr><td valign="middle" align="left" width="25%">{$Bank_Iban}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="BankIban" size="22" value="{$BANKIBAN}" /></td><td valign="middle" align="left" width="25%">{$Bank_Bic}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="BankBic" size="22" value="{$BANKBIC}" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left" width="25%">{$Tax_Free}</td><td class="dbTxt" valign="middle" align="left" width="25%">
<select disabled="disabled" class="choice200" name="TaxFree" title="{$Tax_Free}">
<optgroup label="{$Tax_Free}" title="{$Tax_Free}">
{foreach item=tax_free from=$choice_yes_no}
	{foreach key=key item=item from=$tax_free}
		{if $TAXFREE and ( $TAXFREE eq $key )}
			<option label="{$item}" title="{$item}" value="{$key}" selected="selected">{$item}</option>
		{elseif $TAXFREE and ( $TAXFREE neq $key )}
			<option label="{$item}" title="{$item}" value="{$key}">{$item}</option>
		{else}
			<option label="{$item}" title="{$item}" value="2" selected="selected">{$item}</option>
		{/if}
	{/foreach}
{/foreach}
</optgroup></select>
</td></tr>
<tr><td valign="middle" align="left" width="25%">{$Tax_No}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="Taxnr" size="22" value="{$TAXNR}" /></td><td valign="middle" align="left" width="25%">{$Business_Tax_No}</td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="BusinessTaxnr" size="22" value="{$BUSINESSTAXNR}" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="middle" align="left" width="25%">{$User_Active}</td><td class="dbTxt" valign="middle" align="left" width="25%">
<select class="choice200" name="UserActive" title="{$User_Active}">
<optgroup label="{$User_Active}" title="{$User_Active}">
{foreach item=user_active from=$choice_yes_no}
	{foreach key=key item=item from=$user_active}
		{if $USERACTIVE and ( $USERACTIVE eq $key)}
			<option label="{$item}" title="{$item}" value="{$key}" selected="selected">{$item}</option>
		{elseif $USERACTIVE and ( $USERACTIVE neq $key )}
			<option label="{$item}" title="{$item}" value="{$key}">{$item}</option>
		{else}
			<option label="{$item}" title="{$item}" value="2" selected="selected">{$item}</option>
		{/if}
	{/foreach}
{/foreach}
</optgroup></select>
</td></tr>
<tr><td class="dbTxt" valign="middle" align="left" width="25%" colspan="2"></td></tr>
<tr><td valign="middle" align="left" width="25%"><b>{$Username}</b></td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="text" name="UserName" size="22" value="{$USERNAME}" /></td><td valign="middle" align="left" width="25%">{$Language}</td><td class="dbTxt" valign="middle" align="left" width="25%">
<select class="choice200" name="UserLanguage" title="{$Language}">
<optgroup label="{$Language}" title="{$Language}">
{foreach item=language from=$choose_language}
	{foreach key=key item=item from=$language}
		{if $LANGUAGE and ( $LANGUAGE == $key)}
			<option label="{$item}" title="{$item}" value="{$key}" selected="selected">{$item}</option>
		{else}
			<option label="{$item}" title="{$item}" value="{$key}">{$item}</option>
		{/if}
	{/foreach}
{/foreach}
</optgroup></select>
</td></tr>
<tr><td valign="middle" align="left" width="25%"><b>{$Password}</b></td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="password" name="Password1" size="22" value="" /></td><td valign="middle" align="left" width="25%"><b>{$Repeat_Password}</b></td><td class="dbTxt" valign="middle" align="left" width="25%"><input type="password" name="Password2" size="22" value="" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td valign="top" align="center" colspan="4">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="infoID" value="{$infoID}" />
<input type="hidden" name="Customer" value="{$Customer}" />
<input type="hidden" name="Order" value="{$Order}" />
<input type="hidden" name="Sort" value="{$Sort}" />
{include file="addressbook/userinput.tpl"}
<input type="submit" class="button" title="{$InsertMsg}" value="{$InsertMsg}" /></td>
</tr>
</table>
</form>
</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