Add TPL files
This commit is contained in:
4
modules/Documents/tpl/parentlist_DetailView.tpl
Normal file
4
modules/Documents/tpl/parentlist_DetailView.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
{foreach from=$PARENT_LIST key=k item=v}
|
||||
<li><a href="index.php?module={$v.parent_type}s&action=DetailView&record={$v.parent_id}">{$v.parent_name}</a></li>
|
||||
{/foreach}
|
||||
31
modules/Documents/tpl/parentlist_EditView.tpl
Normal file
31
modules/Documents/tpl/parentlist_EditView.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
<input type="hidden" name="parent_list" id="parent_list" value='{$PARENT_LIST}'>
|
||||
<input type="hidden" name="parent_type_list" id="parent_type_list" value='{$PARENT_TYPE_LIST|@json_encode}'>
|
||||
<button class="btn btn-info" type="button" id="AddMoreWWWBox" value="Dodaj">
|
||||
<img src="themes/default/images/id-ff-add.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button>
|
||||
|
||||
<table id="InputsWrapper">
|
||||
<tr><td><select id="parent_type_1" name="parent_type[]">
|
||||
{foreach from=$PARENT_TYPE_LIST key=k item=v}
|
||||
<option value="{$k}" label="{$v}">{$v}</OPTION>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="hidden" value="" id="parent_id_1" name="parent_id[]">
|
||||
<input type="hidden" value="" name="list_id[]">
|
||||
<input type="text" value="" size="30" id="parent_name_1" name="parent_name[]">
|
||||
<a class="removeclass" href="#"></td><td style="vertical-align: top;">
|
||||
<img class="id-ff-remove" name="0" src="index.php?entryPoint=getImage&themeName=Sugar5&imageName=id-ff-remove.png"></a>
|
||||
<button onclick="
|
||||
{literal} open_popup( $('#parent_type_1').val(), 600, 400, "", true, false,
|
||||
{"call_back_function":"set_return","form_name":"EditView","field_to_name_array":
|
||||
{"id":"parent_id_1","name":"parent_name_1"}}, "single", true);"
|
||||
{/literal}
|
||||
value="Wybierz" class="button firstChild" accesskey="T" title="Wybierz [Alt+T]" tabindex="101" id="btn_parent_name" name="btn_parent_name" style="vertical-align: top;" type="button">
|
||||
<img src="themes/default/images/id-ff-select.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button>
|
||||
<button value="Wyczyść" onclick="{literal} $('#parent_name_1').val(''); $('#parent_id_1').val('');{/literal}" class="button lastChild" style="vertical-align: top;" accesskey="C" title="Wyczyść[Alt+C]" tabindex="101" id="btn_clr_parent_name" name="btn_clr_parent_name" type="button">
|
||||
<img src="themes/default/images/id-ff-clear.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button></td></tr>
|
||||
<script>
|
||||
{literal}
|
||||
rebuildAutocomplete(1);
|
||||
{/literal}
|
||||
</script>
|
||||
</table>
|
||||
158
modules/Documents/tpl/userlist_DetailView.tpl
Normal file
158
modules/Documents/tpl/userlist_DetailView.tpl
Normal file
@@ -0,0 +1,158 @@
|
||||
|
||||
{foreach from=$USER_LIST key=k item=v}
|
||||
<li>
|
||||
<a href="index.php?module=Users&action=DetailView&record={$v.user_id}">{$v.user_name}</a>
|
||||
{*brak akceptacji*}
|
||||
{if $v.accepted == '0'}
|
||||
{*brak akceptacji i brak opisu i jest sie zalogowanym uzytkownikiem*}
|
||||
{if $v.accepted_description == '' && $v.user_id eq $CURRENT_USER}
|
||||
<input type="button" id="userListButton"
|
||||
value="Akceptuj" onclick="$('#userDiv').toggle('slow');">
|
||||
<div id="userDiv" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
|
||||
<select id="statusik">
|
||||
<option value='1'>Akceptuj</option>
|
||||
<option value='0'>Oczekuj</option>
|
||||
<option value='2'>Odrzuć</option>
|
||||
</select>
|
||||
<input type="button"
|
||||
id="userSaveDes"
|
||||
value="Zapisz"
|
||||
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
|
||||
>
|
||||
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{*brak akceptacji i jest opis i jest sie zalogowanym uzytkownikiem*}
|
||||
{if $v.accepted_description != '' && $v.user_id eq $CURRENT_USER}
|
||||
<input type="button" id="userListButton"
|
||||
value="Zmień status" onclick="$('#userDiv').toggle('slow');">
|
||||
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDiv" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<textarea id="userAcceptDes" rows="4" style="width: 100%"></textarea>
|
||||
<select id="statusik">
|
||||
<option value='1'>Akceptuj</option>
|
||||
<option value='0'>Oczekuj</option>
|
||||
<option value='2'>Odrzuć</option>
|
||||
</select>
|
||||
<input type="button"
|
||||
id="userSaveDes"
|
||||
value="Zapisz"
|
||||
onclick="location.href = 'index.php?module=Documents&action=accept&status=' + $('#statusik :selected').val() + '&record={$v.id}&user_id={$v.user_id}&doc_id={$v.document_id}&des=' + $('#userAcceptDes').val() + ''"
|
||||
>
|
||||
<input type="button" id="userListCancel" value="Anuluj" onclick="$('#userDiv').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{elseif $v.accepted_description != '' }
|
||||
<input type="button" id="userListButton"
|
||||
value="Pokaż opis" onclick="$('#userDiv').toggle('slow');">
|
||||
Status: Oczekuje {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDiv" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDiv').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{*Jest akceptacja bądź odrzucony*}
|
||||
{if $v.accepted == '1'}
|
||||
<input type="button" id="userShowDes"
|
||||
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
Status: Zaakceptowano {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDess_{$v.id}" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
{if $v.accepted == '2'}
|
||||
<input type="button" id="userShowDes"
|
||||
value="Pokaż opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
Status: Odrzucono {$v.date_accepted|date_format:"%d.%m.%Y %H.%M:%S"}
|
||||
<div id="userDess_{$v.id}" style="display: none;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Opis</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
{$v.accepted_description|replace:'XVZC':'<br>'}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" id="userListCancel" value="Zamknij opis" onclick="$('#userDess_{$v.id}').toggle('slow');">
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
{/if}</li>
|
||||
{/foreach}
|
||||
25
modules/Documents/tpl/userlist_EditView.tpl
Normal file
25
modules/Documents/tpl/userlist_EditView.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
<input type="hidden" name="user_list" id="user_list" value='{$USER_LIST}'>
|
||||
<input type="hidden" name="user_type_list" id="user_type_list" value='{$USER_TYPE_LIST|@json_encode}'>
|
||||
<button class="btn btn-info" type="button" id="AddMoreUSERBox" value="Dodaj">
|
||||
<img src="themes/default/images/id-ff-add.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button>
|
||||
|
||||
<table id="InputsWrapper2">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" value="" size="30" id="user_name_1" name="user_name[]">
|
||||
<input type="hidden" value="" name="listUser_id[]">
|
||||
<input type="hidden" value="" id="user_id_1" name="user_id[]">
|
||||
<input type="hidden" value="" name="accepted_description[]" id="accepted_description_1">
|
||||
<input type="hidden" value="" name="accepted[]" id="accepted_1">
|
||||
<input type="hidden" value="" name="date_accepted[]" id="date_accepted_1">
|
||||
<a class="removeclassuser" href="#"></td><td style="vertical-align: top;"><img class="id-ff-remove" name="0" src="index.php?entryPoint=getImage&themeName=Sugar5&imageName=id-ff-remove.png"></a>
|
||||
<button onclick="
|
||||
{literal} open_popup('Users', 600, 400, "", true, false,
|
||||
{"call_back_function":"set_return","form_name":"EditView","field_to_name_array":
|
||||
{"id":"user_id_1","name":"user_name_1"}}, "single", true);"
|
||||
{/literal}
|
||||
value="Wybierz" class="button firstChild" accesskey="T" title="Wybierz [Alt+T]" tabindex="101" id="btn_user_name" name="btn_user_name" style="vertical-align: top;" type="button">
|
||||
<img src="themes/default/images/id-ff-select.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button>
|
||||
<button value="Wyczyść" onclick="{literal} $('#user_name_1').val(''); $('#user_id_1').val('');{/literal}" class="button lastChild" style="vertical-align: top;" accesskey="C" title="Wyczyść[Alt+C]" tabindex="101" id="btn_clr_user_name" name="btn_clr_user_name" type="button">
|
||||
<img src="themes/default/images/id-ff-clear.png?s=bed8cd35065048ceebdc639ebe305e2c&c=1"></button></td></tr>
|
||||
</table>
|
||||
9
modules/Documents/tpl/vatlist_DetailView.tpl
Normal file
9
modules/Documents/tpl/vatlist_DetailView.tpl
Normal file
@@ -0,0 +1,9 @@
|
||||
<table style="width: 500px;"><tbody>
|
||||
<th style="text-align: right">Stawka VAT</th>
|
||||
<th style="text-align: right">Wartość Netto</th>
|
||||
<th style="text-align: right">Wartość VAT</tH>
|
||||
</tbody>
|
||||
{foreach from=$VAT_LIST key=k item=v}
|
||||
<tr><td style="text-align: right">{$v.vat_value}</td><td style="text-align: right;">{$v.netto|number_format:2:".":","}</td><td style="text-align: right;">{$v.vat|number_format:2:".":","}</td></tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
Reference in New Issue
Block a user