Files
2024-04-27 09:23:34 +02:00

206 lines
13 KiB
HTML
Executable File

<!--
/*****************************************************************************
* The contents of this file are subject to the RECIPROCAL 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://opensource.org/licenses/rpl.php. Software distributed under the
* License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
* either express or implied.
*
* You may:
* a) Use and distribute this code exactly as you received without payment or
* a royalty or other fee.
* b) Create extensions for this code, provided that you make the extensions
* publicly available and document your modifications clearly.
* c) Charge for a fee for warranty or support or for accepting liability
* obligations for your customers.
*
* You may NOT:
* a) Charge for the use of the original code or extensions, including in
* electronic distribution models, such as ASP (Application Service
* Provider).
* b) Charge for the original source code or your extensions other than a
* nominal fee to cover distribution costs where such distribution
* involves PHYSICAL media.
* c) Modify or delete any pre-existing copyright notices, change notices,
* or License text in the Licensed Software
* d) Assert any patent claims against the Licensor or Contributors, or
* which would in any way restrict the ability of any third party to use the
* Licensed Software.
*
* You must:
* a) Document any modifications you make to this code including the nature of
* the change, the authors of the change, and the date of the change.
* b) Make the source code for any extensions you deploy available via an
* Electronic Distribution Mechanism such as FTP or HTTP download.
* c) Notify the licensor of the availability of source code to your extensions
* and include instructions on how to acquire the source code and updates.
* d) Grant Licensor a world-wide, non-exclusive, royalty-free license to use,
* reproduce, perform, modify, sublicense, and distribute your extensions.
*
* The Original Code is: CommuniCore
* Olavo Farias
* 2006-04-7 olavo.farias@gmail.com
*
* The Initial Developer of the Original Code is CommuniCore.
* Portions created by CommuniCore are Copyright (C) 2005 CommuniCore Ltda
* All Rights Reserved.
********************************************************************************/
-->
<!-- BEGIN: main -->
<script type="text/javascript" src="include/javascript/popup_parent_helper.js?s={SUGAR_VERSION}&c={JS_CUSTOM_VERSION}"></script>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<form name="EditView" method="POST" enctype="multipart/form-data" action="index.php">
<input type="hidden" name="module" value="EcmDocumentTemplates">
<input type="hidden" name="record" value="{ID}">
<input type="hidden" name="action">
<input type="hidden" name="return_module" value="{RETURN_MODULE}">
<input type="hidden" name="return_id" value="{RETURN_ID}">
<input type="hidden" name="return_action" value="{RETURN_ACTION}">
<input type="hidden" name="contact_id" value="{CONTACT_ID}">
<input type="hidden" name="email_id" value="{EMAIL_ID}">
<input type="hidden" name="case_id" value="{CASE_ID}">
<!--// InboundEmail support //-->
<input type="hidden" name="inbound_email_id" value="{INBOUND_EMAIL_ID}">
<input type="hidden" name="start" value="{START}">
<input type="hidden" name="type" value="{TYPE}">
<td style="padding-bottom: 2px;">
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button"
onclick="this.form.action.value='Save';return check_form('EditView');"
type="submit" name="button" value=" {APP.LBL_SAVE_BUTTON_LABEL} " >
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} ">
</td>
<td align="right" nowrap><span class="required">{APP.LBL_REQUIRED_SYMBOL}</span> {APP.NTC_REQUIRED}</td>
<td align='right'>{ADMIN_EDIT}</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabForm">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%" class="dataLabel"><span sugar='slot1'>{MOD.LBL_NAME} <span class="required">{APP.LBL_REQUIRED_SYMBOL}</span></span sugar='slot'></td>
<td width="35%" class="dataField"><span sugar='slot1b'><input name='name' type="text" tabindex='1' size='35' maxlength='50' value="{NAME}"></span sugar='slot'></td>
<td class="dataLabel" ><span sugar='slot2'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'></td>
<td class="dataField"><span sugar='slot2b'>
<input class="sqsEnabled" tabindex="2" autocomplete="off" id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}">
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name='btn1' onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' /></span sugar='slot'>
</td>
</tr>
<tr>
<td valign="top" class="dataLabel"><span sugar='slot3'>{MOD.LBL_LOGO_PATH}</span sugar='slot'></td>
<td valign="top" class="dataField">
<span sugar='slot3b'>
<input name='logo_path' title="{MOD.LBL_LOGO_PATH}" type="file" type="text" tabindex='3' maxlength='255' value="{LOGO_PATH}">
</span sugar='slot'>
</td>
<td valign="top" class="dataLabel"><span sugar='slot4'>{MOD.LBL_ACCOUNT_NAME}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot4b'>
<input class="sqsEnabled" tabindex="1" autocomplete="off" id="account_name" name="account_name" type="text" onDblclick='window.open("index.php?module=Accounts&action=CreateAccountQuickWindow&to_pdf=1&account_id="+document.getElementById("account_id").value+"&account_name="+document.getElementById("account_name").value+"&assigned_user_id="+document.getElementById("assigned_user_id").value,"Account","resizable=yes,scrollbars=yes,status=no,height=450,width=600").focus();return false;' value="{ACCOUNT_NAME}" />
<input id="account_id" name="account_id" type="hidden" value="{ACCOUNT_ID}" />
<input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex="1" class="button" value="{APP.LBL_SELECT_BUTTON_LABEL}" name="bn2" onclick='open_popup("Accounts", 600, 400, "", true, false, {encoded_accounts_popup_request_data});' />
<input name="createaccount" type="button" onClick='window.open("index.php?module=Accounts&action=CreateAccountQuickWindow&to_pdf=1&assigned_user_id="+document.getElementById("assigned_user_id").value,"Account","resizable=yes,scrollbars=yes,status=no,height=450,width=600").focus();return false;' class="button" id="createaccount" value="Create" />
</span sugar='slot'>
</td>
</tr>
<tr>
<td valign="top" class="dataLabel"><span sugar='slot6'>{MOD.LBL_DOCUMENT_NUMBER_FORMAT_ID}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot6'><select name='document_number_format_id' id='document_number_format_id' onChange="doc_num_for_prev();" style="width:90px;" tabindex='1'>{DOCUMENT_NUMBER_FORMAT_OPTIONS}</select>(<span id="doc_num_for_prev"></span>)</span sugar='slot'></td>
<script language="javascript">
function doc_num_for_prev() {
this.Display = function(result) { document.getElementById('doc_num_for_prev').innerHTML = result.responseText;}
this.Fail = function() {};
YAHOO.util.Connect.asyncRequest('POST','index.php',{success:this.Display,failure:this.Fail},'module=EcmDocumentTemplates&action=formatDocumentNumber&to_pdf=1&ex=1&f='+document.getElementById('document_number_format_id').value+'&d='+document.getElementById('documents_per_day_id').value);
}
</script>
<td valign="top" class="dataLabel"><span sugar='slot6'>{MOD.LBL_DOCUMENTS_PER_DAY_ID}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot6'><select name='documents_per_day_id' id='documents_per_day_id' onChange="doc_num_for_prev();" tabindex='1'>{DOCUMENTS_PER_DAY_OPTIONS}</select></span sugar='slot'></td>
</tr>
<tr>
<td valign="top" class="dataLabel"><span sugar='slot6'>{MOD.LBL_DOCUMENT_NUMBER_LETTER}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot6'><input type="text" class="text" style="width:40px;" id="document_number_letter" name="document_number_letter" tabindex="1" lenght="1" value="{DOCUMENT_NUMBER_LETTER}"/></span sugar='slot'></td>
<td valign="top" class="dataLabel"><span sugar='slot6'>{MOD.LBL_CORRECT_NUMBER_LETTER}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot6'><input type="text" class="text" style="width:40px;" id="correct_number_letter" name="correct_number_letter" tabindex="1" lenght="1" value="{CORRECT_NUMBER_LETTER}"/></span sugar='slot'></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_FOOTER_ACCOUNT}</td>
<td valign="top" class="dataField"><input name="footer_account" type="text" id="footer_account" value="{FOOTER_ACCOUNT}" /></td>
<td valign="top" class="dataLabel"><span sugar='slot6'>{MOD.LBL_ACCOUNT_NUMBER}</span sugar='slot'></td>
<td valign="top" class="dataField"><span sugar='slot6b'>
<input name='account_number' title="{MOD.LBL_ACCOUNT_NUMBER}" type="text" tabindex='6' maxlength='255' value="{ACCOUNT_NUMBER}">
</span sugar='slot'>
</td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_FOOTER_ADDRESS}</td>
<td valign="top" class="dataField"><input name="footer_address" type="text" id="footer_address" value="{FOOTER_ADDRESS}" /></td>
<td class="dataLabel">{MOD.LBL_FOOTER_KRS}</td>
<td class="dataField"><input name="footer_krs" type="text" id="footer_krs" value="{FOOTER_KRS}" /></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_FOOTER_PHONE}</td>
<td valign="top" class="dataField"><input name="footer_phone" type="text" id="footer_phone" value="{FOOTER_PHONE}" /></td>
<td class="dataLabel">{MOD.LBL_FOOTER_REGON}</td>
<td class="dataField"><input name="footer_regon" type="text" id="footer_regon" value="{FOOTER_REGON}" /></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_FOOTER_FAX}</td>
<td valign="top" class="dataField"><input name="footer_fax" type="text" id="footer_fax" value="{FOOTER_FAX}" /></td>
<td class="dataLabel">{MOD.LBL_FOOTER_CAPITAL}</td>
<td class="dataField"><input name="footer_capital" type="text" id="footer_capital" value="{FOOTER_CAPITAL}" /></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_FOOTER_SWIFT}</td>
<td valign="top" class="dataField"><input name="footer_swift" type="text" id="footer_swift" value="{FOOTER_SWIFT}" /></td>
<td class="dataLabel">{MOD.LBL_FOOTER_MANAGEMENT}</td>
<td class="dataField"><input name="footer_management" type="text" id="footer_management" value="{FOOTER_MANAGEMENT}" /></td>
</tr>
<tr>
<td valign="top" class="dataLabel">{MOD.LBL_FOOTER_BANKNAME}</td>
<td valign="top" class="dataField"><input name="footer_bankname" type="text" id="footer_bankname" value="{FOOTER_BANKNAME}" /></td>
<td class="dataLabel">{MOD.LBL_FOOTER_NIP}</td>
<td class="dataField"><input name="footer_nip" type="text" id="footer_nip" value="{FOOTER_NIP}" /></td>
</tr>
<tr>
<td valign="top" class="dataLabel">&nbsp;</td>
<td valign="top" class="dataField">{FORMFILE}</td>
<td class="dataLabel">{MOD.LBL_FOOTER_VATID}</td>
<td class="dataField"><input name="footer_vatid" type="text" id="footer_vatid" value="{FOOTER_VATID}" /></td>
</tr>
</table>
</td>
</tr>
</table>
<div style="padding-top: 2px">
<input title="{APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save';return check_form('EditView');" type="submit" name="button" value=" {APP.LBL_SAVE_BUTTON_LABEL} " >
<input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value=" {APP.LBL_CANCEL_BUTTON_LABEL} ">
</div>
</form>
{JAVASCRIPT}
{JAVASCRIPT_VALIDATE}
<script language="javascript">
doc_num_for_prev();
PolishCorrectFormatChange();
</script>
<!-- END: main -->