83 lines
3.8 KiB
Smarty
83 lines
3.8 KiB
Smarty
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td><img src="themes/Sugar/images/EcmProducts.gif"
|
|
style="margin-top: 3px; margin-right: 3px;" alt="EcmProducts"
|
|
width="16" border="0" height="16"></td>
|
|
<td><h2>{$MOD.LBL_LISTSALES_NAME}</h2></td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<form action="index.php?module=EcmInvoiceOuts&action=ListSales" method="post" name="SearchFormListSales"><ul class="tablist" style="width:100%;">
|
|
<li>
|
|
<a class="current" href="#">{$MOD.LBL_SEARCH}</a>
|
|
</li>
|
|
</ul>
|
|
<table style="border-top: 0px none; margin-bottom: 4px;width:100%" class="tabForm" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="5%" nowrap="" >
|
|
{$MOD.LBL_LISTSALES_YEAR}:
|
|
</td>
|
|
<td width="30%" nowrap="" >
|
|
<input type='text' id='year' name='year' value='{$POST.year}' maxlength="4"/>
|
|
</td>
|
|
<td width="5%" nowrap="" >
|
|
{$MOD.LBL_LISTSALES_CODE}:
|
|
</td>
|
|
<td width="30%" nowrap="" >
|
|
<input type='text' id='code' name='code' value='{$POST.code}'/>
|
|
</td>
|
|
<td width="5%" nowrap="" >
|
|
{$MOD.LBL_LISTSALES_QTY}:
|
|
</td>
|
|
<td width="30%" nowrap="" >
|
|
<input type='text' id='quantity' name='quantity' value='{$POST.quantity}'/>
|
|
</td>
|
|
<td width="5%" nowrap="" >
|
|
{$MOD.LBL_LISTSALES_PRICE}:
|
|
</td>
|
|
<td width="30%" nowrap="" >
|
|
<input type='text' id='price' name='price' value='{$POST.price}'/>
|
|
</td>
|
|
<td width="10%" nowrap="nowrap" class="dataLabel">{$MOD.LBL_LISTSALES_PARENT_NAME}:</td>
|
|
<td nowrap="nowrap" class="dataField">
|
|
<input type="text" title="" size="" id="account_name" tabindex="" name="account_name" value='{$POST.account_name}'>
|
|
<input type="hidden" id="account_id" name="account_id" value='{$POST.account_id}'>
|
|
<input type="button" onclick="{literal}open_popup("Accounts", 600, 400, "", true, false, {"call_back_function":"set_return","form_name":"SearchFormListSales","field_to_name_array":{"id":"account_id","name":"account_name"}}, "single", true);{/literal}" value="Wybierz" class="button" accesskey="T" title="Wybierz [Alt+T]" tabindex="" name="btn_account_name"></td>
|
|
</tr>
|
|
</table>
|
|
<input class="button" type="submit" value="{$MOD.LBL_LISTSALES_SEARCH}" name="submit">
|
|
<input class="button" type="button" onclick="location.href='index.php?module=EcmInvoiceOuts&action=ListSales';" value="{$MOD.LBL_LISTSALES_CLEAR}" name="clear">
|
|
</form>
|
|
<br>
|
|
{if !empty($POSITION_LIST)}
|
|
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;" id="myTable" class="tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th ><input type="checkbox" name="selectall" id="selectall"></th>
|
|
<th >{$MOD.LBL_LISTSALES_CODE}</th>
|
|
<th >{$MOD.LBL_LISTSALES_NAME_POS}</th>
|
|
<th >{$MOD.LBL_LISTSALES_QTY}</th>
|
|
<th >{$MOD.LBL_LISTSALES_PRICE}</th>
|
|
<th >{$MOD.LBL_LISTSALES_DOCUMENT_NO}</th>
|
|
<th >{$MOD.LBL_LISTSALES_REGISTER_DATE}</th>
|
|
</thead>
|
|
<tbody>
|
|
{foreach from=$POSITION_LIST key="key" item="item" name="components"}
|
|
{if $item.id!=''}
|
|
<tr style="vertical-align:top;">
|
|
<td style="text-align: center"><input type="checkbox" value="{$item.id}" class="make_pdf" id="make_pdf_{$item.position}" name="selectedid[]"></td>
|
|
<td >{$item.code}</td>
|
|
<td >{$item.name}</td>
|
|
<td style="text-align: right">{$item.quantity}</td>
|
|
<td data-total="{$item.price_netto}" style="text-align: right">{$item.price_netto|number_format:2:".":","}</td>
|
|
<td data-total="{$item.number}"style="text-align: right"><a href="index.php?module=EcmInvoiceOuts&action=DetailView&record={$item.fk_id}">{$item.document_no}</a></td>
|
|
<td data-total="{$item.register_date|date_format:"%Y%m%d"}"style="text-align: center">{$item.register_date|date_format:"%d.%m.%Y"}</td>
|
|
|
|
</tr>
|
|
{/if}
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{/if}
|
|
|