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,9 @@
{if $COMPONENT_LIST|@count > 0}
<input type="button" name="button" value="Utwórz Zamówienie do Dostawcy"
onclick="{literal}var r = confirm('Czy napewno utworzyć zamówienia do dostawcy?');if(r==true){window.open('index.php?module=EcmProducts&action=createZD&record={/literal}{$fields.id.value}{literal}');}{/literal}"><br>
{/if}
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;">
<input type="hidden" name="component_list" id="component_list" value='{$COMPONENT_LIST|@json_encode}'>
<table class="positions" style="width:100%;" id="tableComponents">
</table>
</div>

View File

@@ -0,0 +1,5 @@
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;" id="ecmactionTableDIV">
<table id="tableTimeEdit" name="tableTimeEdit" class="positions" style="width:100%">
</table>
</div>

View File

@@ -0,0 +1,38 @@
<link rel="stylesheet" type="text/css" href="modules/Accounts/MyTable.css" />
<table style="width:100%;">
<tr>
<td style="width:40%;">
<input type="hidden" name="position_list4" id="position_list4" value='{$POSITION_LIST4}'>
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:300px;overflow:auto;" id="itemsTableDIV3">
<table class="positions" style="width:100%;" id="itemsTable4">
<thead id="head">
<tr id="tr">
<td width="70%">{$MOD.LBL_PRICE_NAME}</td>
<td width="30%">{$MOD.LBL_PRICE_VALUE}</td>
<td width="30%">{$MOD.LBL_PRICE_CURRENCY}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
<br>
</td>
<td style="width:10%;"></td>
<td style="width:40%;">
<input type="hidden" name="position_list3" id="position_list3" value='{$POSITION_LIST3}'>
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:300px;overflow:auto;" id="itemsTableDIV3">
<table class="positions" style="width:100%;" id="itemsTable3">
<thead id="head">
<tr id="tr">
<td width="80%">{$MOD.LBL_CATEGORY_NAME}</td>
<td width="20%"></td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
</td>
</tr>
</table>

View File

@@ -0,0 +1,23 @@
{*<link rel="stylesheet" type="text/css" href="modules/EcmProducts/AjaxSearch/AjaxSearch.css" />
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV">
<table class="positions" style="width:100%;" id="itemsTable">
<thead id="head">
<tr id="tr">
<td width="4%">{$MOD.LBL_EDITTABLE_NO}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_CODE}</td>
<td width="58%">{$MOD.LBL_EDITTABLE_NAME}</td>
<td width="12%">{$MOD.LBL_EDITTABLE_UNIT}</td>
<td width="10%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>
<td width="6%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div >
<br>*}
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;">
<input type="hidden" name="component_list" id="component_list" value='{$COMPONENT_LIST|@json_encode}'>
<table class="positions" style="width:100%;" id="tableComponents">
</table>
</div>

View File

@@ -0,0 +1,18 @@
<div id="searchProducts" class="edit view search basic">
<br>
Wyszukaj:&nbsp;&nbsp; <input type="text" value=""
id="searchEcmActionInput" /> <img
onclick="searchActions();"
src="modules/EcmSales/images/search.gif" style="cursor: pointer;">
Kategoria:&nbsp;&nbsp; {html_options name=select_ecmaction_category options=$ecmaction_category}
</div>
<div id="ttabble">
<table id="wyszukiwanie" name="wyszukiwanie" style="width: 100%">
</table>
<br>
</div>
<div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;overflow:auto;" id="ecmactionTableDIV">
<table id="tableTimeEdit" name="tableTimeEdit" class="positions" style="width: 100%">
</table>
</div>

View File

@@ -0,0 +1,59 @@
<form name="ecmproductsQuickCreate" id="ecmproductsQuickCreate" method="POST" action="index.php">
<input type="hidden" name="module" value="EcmProducts">
<input type="hidden" name="return_action" value="{$REQUEST.return_action}">
<input type="hidden" name="return_module" value="{$REQUEST.return_module}">
<input type="hidden" name="return_id" value="{$REQUEST.return_id}">
<input type="hidden" name="action" value='Save'>
<input type="hidden" name="duplicate_parent_id" value="{$REQUEST.duplicate_parent_id}">
<input type="hidden" name="to_pdf" value='1'>
<input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{$ASSIGNED_USER_ID}" />
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" style="padding-bottom: 2px;">
<input title= "{$APP.LBL_SAVE_BUTTON_TITLE}"
accessKey= "{$APP.LBL_SAVE_BUTTON_KEY}"
class= "button"
type= "submit"
name= "button" {$saveOnclick|default:"onclick=\"return check_form('EcmProductsQuickCreate');\""} value=" {$APP.LBL_SAVE_BUTTON_LABEL} " >
<input title= "{$APP.LBL_CANCEL_BUTTON_TITLE}"
accessKey= "{$APP.LBL_CANCEL_BUTTON_KEY}"
class= "button"
type= "submit"
name= "button" {$cancelOnclick|default:"onclick=\"this.form.action.value='$RETURN_ACTION'; this.form.module.value='$RETURN_MODULE'; this.form.record.value='$RETURN_ID'\""}
value= " {$APP.LBL_CANCEL_BUTTON_LABEL} ">
<input title= "{$APP.LBL_FULL_FORM_BUTTON_TITLE}"
accessKey= "{$APP.LBL_FULL_FORM_BUTTON_KEY}"
class= "button"
type= "submit"
name= "button"
onclick= "this.form.to_pdf.value='0';this.form.action.value='EditView'; this.form.module.value='EcmProducts';"
value= " {$APP.LBL_FULL_FORM_BUTTON_LABEL} ">
</td>
<td align="right" nowrap>
<span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span>
{$APP.NTC_REQUIRED}
</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>
<th align="left" class="dataLabel" colspan="4">
<h4 class="dataLabel"><slot>{$MOD.LBL_ECMPRODUCT_INFORMATION}</slot></h4>
</th>
</tr>
<tr>
<td valign="top" class="dataLabel" width="15%"><slot>{$MOD.LBL_NAME} <span class="required">{$APP.LBL_REQUIRED_SYMBOL}</span></slot></td>
<td width="35%"><slot><textarea name='name' cols="40" tabindex='1' rows="1">{$NAME}</textarea></slot></td>
</tr>
</table>
</form>
<script>
{$additionalScripts}
</script>

View File

@@ -0,0 +1,104 @@
<script>
{literal}
$(document).ready(function(){
$("#select_all").click(function(){
var checked_status = this.checked;
$("input[name='users[]']").each(function(){
this.checked = checked_status;
});
});
});
function checkthis(){
var error=0
$("input[name='users[]']").each(function(){
if($( this ).is( ':checked' )){
error=1;
}
});
if(error==1){
return true;
} else {
alert('Zaznacz choć jedną firmę');
return false;
}
}
{/literal}
</script>
<style>
{literal}
.text-left {
text-align: left;
}
.text-right {
text-align: right !important;
}
.account_name {
background:rgba(0,0,0,0);
border:none;
text-color: black;
}
{/literal}
</style>
{if $added==1}
<h3><span style="color:green;">Produkty zostały udostępnione</span></h3>
<br><br>{/if}
<h3>Udostępnij firmie</h3>
<form action="index.php" method="POST" name="SendEmail" id="SendEmail" enctype="multipart/form-data">
<input type="hidden" name="action" value="share">
<input type="hidden" name="module" value="EcmProducts">
<input type="hidden" name="uid" value="{$uid}">
<table class="list view" width="100%" cellspacing="0" cellpadding="0" border="0" id="transactions_table">
<thead>
<tr>
<th scope="col" nowrap="nowrap" width="10%"><div style="white-space: nowrap;" width="100%" align="left">
<input type="checkbox" name="select_all" id="select_all" value=""></div></th>
<th scope="col" nowrap="nowrap" width="90%">
<div style="white-space: nowrap;" width="100%" align="left">Firma</div></th>
</tr>
<thead>
<tbody>
{foreach from=$users item=row key=k}
<tr class="evenListRowS1" row-number="">
<td class="text-left"><input type="checkbox" name="users[]" value="{$row.dbasename}">
</td>
<td class="text-left">{$row.name}</td>
</tr>
{/foreach}
</tbody>
</table>
<br>
<br>
<h3>Wybrane produkty</h3>
<table class="list view" width="100%" cellspacing="0" cellpadding="0" border="0" id="transactions_table">
<thead>
<tr>
<th scope="col" nowrap="nowrap" width="100%">
<div style="white-space: nowrap;" width="100%" align="left">Produkt</div></th>
</tr>
<thead>
<tbody>
{foreach from=$account_list item=row key=k}
<tr class="evenListRowS1" row-number="">
<td class="text-left">{$row.name}</td>
</tr>
{/foreach}
</tbody>
</table>
<br>
<br>
<input class="button primary" type="submit" value="Udostępnij" name="submit" onclick='return checkthis();' accesskey="S" title="Zapisz [Alt+S]">
</form>

View File

@@ -0,0 +1,216 @@
<table style='width: 100%'>
<tr>
<td style='width: 50%'><img src="custom/themes/default/images/company_logo.png" width="{$COMPANY_LOGO_WIDTH}" height="{$COMPANY_LOGO_HEIGHT}"></td>
<td style='width: 50%; text-align: right; vertical-align: top'>{$current_date}</td>
</tr>
</table>
<table style='width: 100%'>
<tr>
<td style="width: 70%">
<table>
<tr>
<td>
<b>Nazwa produktu:</b>
</td>
<td style='font-size: 120%'>
{$product->name}
</td>
</tr>
<tr>
<td>
<b>Indeks produktu:</b>
</td>
<td style='font-size: 120%'>
{$product->code}
</td>
</tr>
<tr>
<td>
<b>J.M:</b>
</td>
<td style='font-size: 120%'>
{foreach from=$APP_LIST_STRINGS.ecmproducts_unit_dom key=klucz item=wartosc}
{if $klucz==$product->unit_id}
{$wartosc}
{/if}
{/foreach}
</td>
</tr>
</table>
</td>
<td style="width: 30%; text-align: right">
{if $product->product_picture != ''}
<img src='modules/EcmProducts/upload/images/{$product->product_picture}'>
{/if}
{if $product->packing_front_picture!= ''}
<img src='modules/EcmProducts/upload/images/{$product->packing_front_picture}'>
{/if}
</td>
</tr>
</table>
{if isset($componentList)}
<br>
Komponenty
<table class='positions' style="width: 100%">
<thead>
<tr>
<th style='{$thcss}'>
Lp.
</th>
<th style='{$thcss}'>
Indeks
</th>
<th style='{$thcss}'>
Nazwa
</th>
<th style='{$thcss}'>
j.m.
</th>
<th style='{$thcss}'>
Ilość
</th>
<th style='{$thcss}'>
Cena
</th>
<th style='{$thcss}'>
Wartość
</th>
</tr>
</thead>
<tbody>
{assign var=sumSignle value=0}
{assign var=sumTotal value=0}
{foreach from=$componentList key=key item=value}
{assign var=sumSignle value=$sumSignle+$value.price.Single}
{assign var=sumTotal value=$sumTotal+$value.price.Summary}
<tr>
<td style='{$tbodytd} text-align: center'>
{$key+1}
</td>
<td style='{$tbodytd}'>
{$value.code}
</td>
<td style='{$tbodytd}'>
{$value.name}
</td>
<td style='{$tbodytd} text-align: right'>
{foreach from=$APP_LIST_STRINGS.ecmproducts_unit_dom key=klucz item=wartosc}
{if $klucz==$value.unit_id}
{$wartosc}
{/if}
{/foreach}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.quantity|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Single|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Summary|number_format:2:",":"."}
</td>
</tr>
{/foreach}
</tbody>
<foot>
<tr>
<td colspan="5">
Suma
</td>
<td style='text-align: right'>
{$sumSignle|number_format:2:",":"."}
</td>
<td style='text-align: right'>
{$sumTotal|number_format:2:",":"."}
</td>
</tr>
</foot>
</table>
{/if}
{if $product->action_list!= '[]'}
<br>
Czynności
<table class="positions" style="width: 100%">
<thead style=''>
<tr>
<th style='{$thcss}'>
Lp.
</th>
<th style='{$thcss}'>
Indeks
</th>
<th style='{$thcss}'>
Nazwa
</th>
<th style='{$thcss}'>
j.m.
</th>
<th style='{$thcss}'>
Ilość
</th>
<th style='{$thcss}'>
Cena
</th>
<th style='{$thcss}'>
Wartość
</th>
</tr>
</thead>
<tbody>
{assign var=sumSignle value=0}
{assign var=sumTotal value=0}
{foreach from=$product->action_list key=key item=value}
{assign var=sumSignle value=$sumSignle+$value.price.Single}
{assign var=sumTotal value=$sumTotal+$value.price.Summary}
<tr>
<td style='{$tbodytd} text-align: center'>
{$key+1}
</td>
<td style='{$tbodytd}'>
{$value.indeks}
</td>
<td style='{$tbodytd}'>
{$value.name}
</td>
<td style='{$tbodytd} text-align: right'>
{foreach from=$APP_LIST_STRINGS.ecmproducts_unit_dom key=klucz item=wartosc}
{if $klucz==$value.unit_id}
{$wartosc}
{/if}
{/foreach}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.quantity|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Single|number_format:2:",":"."}
</td>
<td style='{$tbodytd} text-align: right'>
{$value.price.Summary|number_format:2:",":"."}
</td>
</tr>
{/foreach}
</tbody>
<foot>
<tr>
<td colspan="5">
Suma
</td>
<td style='text-align: right'>
{$sumSignle|number_format:2:",":"."}
</td>
<td style='text-align: right'>
{$sumTotal|number_format:2:",":"."}
</td>
</tr>
</foot>
</table>
{/if}