Add TPL files

This commit is contained in:
2025-05-12 15:46:37 +00:00
parent 4a4ed02e8a
commit b4d54ba40b
894 changed files with 120580 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<table class="list view" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th nowrap="nowrap" scope="col" style="width:40%">Produkt</th>
<th nowrap="nowrap" scope="col" style="text-align:right;width:20%">Ilość</th>
<th nowrap="nowrap" scope="col" style="text-align:right;width:20%">Cena</th>
<th nowrap="nowrap" scope="col" style="text-align:right;width:20%">Wartość</th>
</tr>
</thead>
<tbody>
{foreach from=$fields.items_list.value key=indeks item=pozycja}
<tr class="evenListRowS1">
<td>
{$pozycja.ecmproduct_name}
</td>
<td style="text-align:right;">
{$pozycja.quantity|number_format:$pozycja.ecmproduct_unit_precision:",":"."}
</td>
<td style="text-align:right;">
{$pozycja.price|number_format:2:",":"."}
</td>
<td style="text-align:right;">
{$pozycja.total|number_format:2:",":"."}
</td>
<tr>
{/foreach}
</tbody>
</table>

View File

@@ -0,0 +1,47 @@
{if $fields.history.value==""}
Brak historii
{else}
<table class="list view">
{foreach from=$fields.history.value key=k item=record}
<tr>
<td style="width:115px">
{$k}
</td>
<td>
<table class="list view" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th nowrap="nowrap" scope="col" style="width:20%">Zmienione pole</th>
<th nowrap="nowrap" scope="col" style="width:40%">Było</th>
<th nowrap="nowrap" scope="col" style="width:40%">Jest</th>
</tr>
</thead>
<tbody>
{foreach from=$record key=indeks item=pozycja}
<tr class="evenListRowS1">
<td>
{$pozycja.field_name}
</td>
<td>
{if $pozycja.data_type == 'enum' || $pozycja.data_type == 'varchar'}
{$pozycja.before_value_string}<br>
{else}
{$pozycja.before_value_text}
{/if}
</td>
<td>
{if $pozycja.data_type == 'enum' || $pozycja.data_type == 'varchar'}
{$pozycja.after_value_string}
{else}
{$pozycja.after_value_text}
{/if}
</td>
<tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
{/foreach}
</table>
{/if}

View File

@@ -0,0 +1,29 @@
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
<div id="searchProducts" class="edit view search basic">
<br>
<input type="hidden" id="searchStart" name="searchStart" value="0">
<input type="hidden" id="searchCount" name="searchCount" value="">
<input type="hidden" id="searchSort" name="searchSort" value="1">
{$MOD.LBL_SEARCH}:&nbsp;&nbsp;
<input type="text" value="" id="searchProductsInput"/>
<img onclick="$('#searchProductsInput').val('%');searchProducts();" src="modules/EcmSales/images/search.gif" style="cursor: pointer;">
{$MOD.LBL_CATEGORY}:&nbsp;&nbsp;
<select id="productSearchCategory"></select>
{$MOD.LBL_SEARCH_STOCK}:&nbsp;&nbsp;
<select id="productSearchStock" onchange="searchProducts();">
<option value="1">{$MOD.LBL_SEARCH_STOCK_OPT_NO}</option>
<option value="2" selected="selected">{$MOD.LBL_SEARCH_STOCK_OPT_YES}</option>
<option value="3">{$MOD.LBL_SEARCH_STOCK_OPT_NOT_NULL}</option>
</select>
&nbsp;&nbsp;
<button onclick="createProduct();" class="button" type="button"><img src="themes/default/images/id-ff-add.png"></button>
<input type="hidden" id="newProductId" value=""/>
</div>
<div id="searchResultDiv"/></div>
<br>
<br>
<div id="itemsTable"></div>
<input id='position_list' name='position_list' type='hidden'>
{*<input value='{$fields.items_list.value|@json_encode}' id='itemsList' type='hidden'>
<table id="itemsTable" class="positions" style="width: 100%"></table>*}

View File

@@ -0,0 +1,152 @@
<div style="font-size:12;">
<table style="width:100%;font-size:12;">
<tr>
<td>
<b>{$MOD.LBL_REGISTER_DATE}:</b> {$EcmServiceNew->register_date}
</td>
<td>
<b>{$MOD.LBL_DOCUMENT_NO}:</b> {$EcmServiceNew->document_no}
</td>
<td>
<b>{$MOD.LBL_NAME}:</b> {$EcmServiceNew->name}
</td>
</tr>
<tr>
<td>
<b>{$MOD.LBL_PARENT_NAME}:</b> {$EcmServiceNew->parent_name}
</td>
<td>
<b>{$MOD.LBL_PARENT_CONTACT_NAME}:</b> {$EcmServiceNew->parent_contact_name}
</td>
<td>
<b>{$MOD.LBL_PARENT_CONTACT_PHONE_FAX}:</b> {$EcmServiceNew->parent_contact_phone_fax}
</td>
</tr>
<tr>
<td>
{assign var='tmp' value = $EcmServiceNew->repair_status}
<b>{$MOD.LBL_REPAIR_STATUS}:</b> {$APP_LIST_STRINGS.ecmservicenews_repair_status_list.$tmp}
</td>
<td>
{assign var='tmp' value = $EcmServiceNew->service_type}
<b>{$MOD.LBL_TYPE}:</b> {$APP_LIST_STRINGS.ecmservicenews_type_list.$tmp}
</td>
<td>
{assign var='tmp' value = $EcmServiceNew->status}
<b>{$MOD.LBL_STATUS}:</b> {$APP_LIST_STRINGS.ecmservicenews_status_list.$tmp}
</td>
</tr>
<tr>
<td>
<b>{$MOD.LBL_PRODUCT_NAME}:</b> {$EcmServiceNew->product_name}
</td>
<td>
<b>{$MOD.LBL_PRODUCT_SERIAL_NUMBER}:</b> {$EcmServiceNew->product_serial_number}
</td>
<td>
<b>{$MOD.LBL_PRODUCT_MODEL}:</b> {$EcmServiceNew->product_model}
</td>
</tr>
<tr>
<td>
<b>{$MOD.LBL_PRODUCT_YEAR}:</b> {$EcmServiceNew->product_year}
</td>
<td>
<b>{$MOD.LBL_PRODUCT_VALUE}:</b> {$EcmServiceNew->product_value}
</td>
<td>
<b>{$MOD.LBL_ESTIMATED_COST}:</b> {$EcmServiceNew->estimated_cost}
</td>
</tr>
</table>
<b>{$MOD.LBL_PARENT_COMMENT}:</b><br>{$EcmServiceNew->parent_comment}<br>
<b>{$MOD.LBL_SERVICE_COMMENT}:</b><br>{$EcmServiceNew->service_comment}<br>
<b>{$MOD.LBL_FAULT_COMMENT}:</b><br>{$EcmServiceNew->fault_comment}<br>
<br>
<b>{$MOD.LBL_COSTS}</b>:<br>
{if $EcmServiceNew->items_list==""}
Brak kosztów
{else}
<table style="width:100%;font-size:12;">
<thead>
<tr>
<th nowrap="nowrap" scope="col" style="width:40%">{$MOD.LBL_PRODUCT_NAME}</th>
<th nowrap="nowrap" scope="col" style="text-align:right;width:20%">{$MOD.LBL_QUANTITY}</th>
<th nowrap="nowrap" scope="col" style="text-align:right;width:20%">{$MOD.LBL_PRICE}</th>
<th nowrap="nowrap" scope="col" style="text-align:right;width:20%">{$MOD.LBL_VALUE}</th>
</tr>
</thead>
<tbody>
{foreach from=$EcmServiceNew->items_list key=indeks item=pozycja}
<tr class="evenListRowS1">
<td>
{$pozycja.ecmproduct_name}
</td>
<td style="text-align:right;">
{$pozycja.quantity|number_format:$pozycja.ecmproduct_unit_precision:",":"."}
</td>
<td style="text-align:right;">
{$pozycja.price|number_format:2:",":"."}
</td>
<td style="text-align:right;">
{$pozycja.total|number_format:2:",":"."}
</td>
<tr>
{/foreach}
</tbody>
</table>
{/if}
<br><br>
<b>{$MOD.LBL_HISTORY}</b>:<br>
{if $EcmServiceNew->history==""}
{$MOD.LBL_PDF_NO_HISTORY}
{else}
<table style="width:100%;font-size:12;">
{foreach from=$EcmServiceNew->history key=k item=record}
<tr>
<td style="width:115px">
{$k}
</td>
<td>
<table class="list view" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th nowrap="nowrap" scope="col" style="width:20%">{$MOD.LBL_HISTORY_CHANGED_FIELD}</th>
<th nowrap="nowrap" scope="col" style="width:40%">{$MOD.LBL_HISTORY_WAS}</th>
<th nowrap="nowrap" scope="col" style="width:40%">{$MOD.LBL_HISTORY_IS}</th>
</tr>
</thead>
<tbody>
{foreach from=$record key=indeks item=pozycja}
<tr class="evenListRowS1">
<td>
{$pozycja.field_name}
</td>
<td>
{if $pozycja.data_type == 'enum' || $pozycja.data_type == 'varchar'}
{$pozycja.before_value_string}<br>
{else}
{$pozycja.before_value_text}
{/if}
</td>
<td>
{if $pozycja.data_type == 'enum' || $pozycja.data_type == 'varchar'}
{$pozycja.after_value_string}
{else}
{$pozycja.after_value_text}
{/if}
</td>
<tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
{/foreach}
</table>
{/if}
</div>