155 lines
8.8 KiB
HTML
155 lines
8.8 KiB
HTML
|
|
<!--
|
||
|
|
/*****************************************************************************
|
||
|
|
* 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 -->
|
||
|
|
|
||
|
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="border-top: 0px none; margin-bottom: 4px" class="tabForm">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||
|
|
<tr>
|
||
|
|
<td width="10%" valign="top" noWrap class="dataLabel">
|
||
|
|
<span sugar='slot1'>{MOD.LBL_NAME}</span sugar='slot'> </td>
|
||
|
|
<td width="20%" valign="top" class="dataField">
|
||
|
|
<span sugar='slot1b'>
|
||
|
|
<input type=text name="name_basic" class=dataField value="{NAME}" />
|
||
|
|
</span sugar='slot'> </td>
|
||
|
|
<td width="10%" valign="top" class="dataLabel"><span sugar='slot2'>{MOD.LBL_CODE}</span sugar='slot'></td>
|
||
|
|
<td width="20%" valign="top" class="dataField"><input name='code_basic' type="text" tabindex='2' title="Product index" value="{PRODUCT_INDEX}" maxlength='40' /></td>
|
||
|
|
<td width="15%" valign="top" class="dataLabel">{APP.LBL_CURRENT_USER_FILTER} </td>
|
||
|
|
<td width="15%" valign="top" class="dataField"><input name='current_user_only_basic' onchange='this.form.submit();' class="checkbox" type="checkbox" {current_user_only} /></td>
|
||
|
|
</tr>
|
||
|
|
<tr><td width="10%" valign="top" class="dataLabel">{MOD.LBL_MANUFACTURER}</td>
|
||
|
|
<td width="20%" valign="top" class="dataField"><select style="width:121px;" name="manufacturer_basic">{MANUFACTURER}</select></td>
|
||
|
|
<td width="20%" valign="top" class="dataLabel">{MOD.LBL_PRODUCT_CATEGORY}</td>
|
||
|
|
<td width="20%" valign="top" class="dataField"><select style="width:121px;" name="product_category_basic">{PRODUCT_CATEGORY}</select></td>
|
||
|
|
<td width="10%" valign="top" class="dataLabel">{MOD.LBL_UNIT_PRICE}</td>
|
||
|
|
<td width="20%" valign="top" class="dataField"><input name='unit_price_basic' type="text" tabindex='2' value="{UNIT_PRICE}" maxlength='40' /></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<!-- END: main -->
|
||
|
|
|
||
|
|
<!-- BEGIN: advanced -->
|
||
|
|
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top: 0px none; margin-bottom: 4px" class="tabForm">
|
||
|
|
<tr>
|
||
|
|
<td>
|
||
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
||
|
|
<tr>
|
||
|
|
<td width="10%" valign="top" class="dataLabel"><span sugar='slot1'>{MOD.LBL_NAME}</span sugar='slot'></td>
|
||
|
|
<td width="20%" valign="top" class="dataField"><span sugar='slot1b'><input name='name' type="text" tabindex='1' maxlength='50' value="{NAME}">
|
||
|
|
</span sugar='slot'></td>
|
||
|
|
<td width="10%" valign="top" class="dataLabel"><span sugar='slot`3`'>{MOD.LBL_CODE}</span sugar='slot'></td>
|
||
|
|
<td width="20%" valign="top" class="dataField"><span sugar='slot`3`b'>
|
||
|
|
<input name='code' type="text" tabindex='`3`' title="Product index" value="{PRODUCT_INDEX}" maxlength='40' />
|
||
|
|
</span sugar='slot'> </td>
|
||
|
|
<td width="15%" valign="top" class="dataField"><span class="dataLabel"><span sugar='slot2'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'></span></td>
|
||
|
|
<td width="15%" valign="top" class="dataField"><span sugar='slot2b'>
|
||
|
|
<select tabindex='1' style="width: 150px" size='3' name='assigned_user_id[]' multiple="multiple">{USER_FILTER}</select></span sugar='slot'></td>
|
||
|
|
<tr>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_MANUFACTURER}</td>
|
||
|
|
<td valign="top" class="dataField"><select style="width:121px;" name="manufacturer">
|
||
|
|
{MANUFACTURER}
|
||
|
|
</select></td>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_PRODUCT_CATEGORY}</td>
|
||
|
|
<td valign="top" class="dataField"><select style="width:121px;" name="product_category">
|
||
|
|
{PRODUCT_CATEGORY}
|
||
|
|
</select></td>
|
||
|
|
<td valign="top" class="dataLabel"> </td>
|
||
|
|
<td valign="top" class="dataField"> </td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_COMMISSION_RATE}</td>
|
||
|
|
<td valign="top" class="dataField"><input name='commission_rate' type="text" id="commission_rate" tabindex='1' value="{COMMISSION_RATE}" maxlength='50' /></td>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_QTYUNIT}</td>
|
||
|
|
<td valign="top" class="dataField"><input name='qty_per_unit' type="text" id="qty_per_unit" tabindex='1' value="{QTY_PER_UNIT}" maxlength='50' /></td>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_UNIT_PRICE} </td>
|
||
|
|
<td valign="top" class="dataField"><input name='unit_price' type="text" tabindex='2' value="{UNIT_PRICE}" maxlength='40' /></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_START_DATE}</td>
|
||
|
|
<td valign="top" class="dataField"><input name='sales_start_date'
|
||
|
|
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
|
||
|
|
id='jscal_fieldsales_start_date'
|
||
|
|
type="text"
|
||
|
|
tabindex='10'
|
||
|
|
size='11'
|
||
|
|
maxlength='10'
|
||
|
|
value="{SALES_START_DATE}" />
|
||
|
|
|
||
|
|
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggersales_start_date" align="absmiddle" />
|
||
|
|
<script>Calendar.setup ({inputField : 'jscal_fieldsales_start_date', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggersales_start_date', singleClick : true, step : 1});
|
||
|
|
</script></td>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_END_DATE}</td>
|
||
|
|
<td valign="top" class="dataField"><input name='sales_end_date'
|
||
|
|
onblur="parseDate(this, '{CALENDAR_DATEFORMAT}');"
|
||
|
|
id='jscal_fieldsales_end_date'
|
||
|
|
type="text"
|
||
|
|
tabindex='10'
|
||
|
|
size='11'
|
||
|
|
maxlength='10'
|
||
|
|
value="{SALES_END_DATE}" />
|
||
|
|
|
||
|
|
<img src="themes/default/images/jscalendar.gif" alt="{APP.LBL_ENTER_DATE}" id="jscal_triggersales_end_date" align="absmiddle" />
|
||
|
|
<script>Calendar.setup ({inputField : 'jscal_fieldsales_end_date', ifFormat : '{CALENDAR_DATEFORMAT}', showsTime : false, button : 'jscal_triggersales_end_date', singleClick : true, step : 1});
|
||
|
|
</script></td>
|
||
|
|
<td valign="top" class="dataLabel">{MOD.LBL_PRODUCT_ACTIVE}</td>
|
||
|
|
<td valign="top" class="dataField"><input name='product_active' onchange='this.form.submit();' class="checkbox" type="checkbox" value="1" {PRODUCT_ACTIVE} /></td>
|
||
|
|
</tr>
|
||
|
|
<tr> </tr>
|
||
|
|
</table>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
<!-- END: advanced -->
|