first commit
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
{extends file="helpers/form/form.tpl"}
|
||||
|
||||
{block name="input"}
|
||||
{if $input.name == 'RUCH_API_ACTIONS'}
|
||||
{if $input.dev == 1}
|
||||
<div id="ruch_api_actions" class="form-horizontal">
|
||||
<div id="ruch_msg_container"></div>
|
||||
<table cellspacing="0" cellpadding="10" class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Test połączenia</td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_test1" type="button">Z cache WSDL</button></td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_test2" type="button">Bez cache WSDL</button></td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_test3" type="button">Curl</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var ruch_ajax_uri = '{$input.ajax_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_token = '{$input.token|escape:'htmlall':'UTF-8'}';
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#ruch_test1').live('click', function() {
|
||||
$('#ajax_running').slideDown();
|
||||
$('#ruch_msg_container').slideUp().html('');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
async: true,
|
||||
url: ruch_ajax_uri,
|
||||
dataType: "json",
|
||||
global: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify({
|
||||
'action': 'test1',
|
||||
'token': ruch_token,
|
||||
'url': $('#RUCH_API_URL').val(),
|
||||
'user': $('#RUCH_API_ID').val(),
|
||||
'pass': $('#RUCH_API_PASS').val()
|
||||
}),
|
||||
success: function(resp)
|
||||
{
|
||||
if (resp.error)
|
||||
{
|
||||
$('#ruch_get_org').hide();
|
||||
$('#ruch_msg_container').hide().html('<p class="error alert alert-danger">'+resp.error+'</p>').slideDown();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#ruch_get_org').show();
|
||||
$('#ruch_msg_container').hide().html('<p class="alert alert-success">'+resp.ok+'</p>').slideDown();
|
||||
}
|
||||
$.scrollTo('#ruch_api_actions', 400, { offset: { top: -100 }});
|
||||
|
||||
$('#ajax_running').slideUp();
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown)
|
||||
{
|
||||
if(jqXHR.status == 0) alert("{l s='Nieprawidłowa domena' mod='ruch'}");
|
||||
$('#ajax_running').slideUp();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#ruch_test2').live('click', function() {
|
||||
$('#ajax_running').slideDown();
|
||||
$('#ruch_msg_container').slideUp().html('');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
async: true,
|
||||
url: ruch_ajax_uri,
|
||||
dataType: "json",
|
||||
global: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify({
|
||||
'action': 'test2',
|
||||
'token': ruch_token,
|
||||
'url': $('#RUCH_API_URL').val(),
|
||||
'user': $('#RUCH_API_ID').val(),
|
||||
'pass': $('#RUCH_API_PASS').val()
|
||||
}),
|
||||
success: function(resp)
|
||||
{
|
||||
if (resp.error)
|
||||
{
|
||||
$('#ruch_get_org').hide();
|
||||
$('#ruch_msg_container').hide().html('<p class="error alert alert-danger">'+resp.error+'</p>').slideDown();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#ruch_get_org').show();
|
||||
$('#ruch_msg_container').hide().html('<p class="alert alert-success">'+resp.ok+'</p>').slideDown();
|
||||
}
|
||||
$.scrollTo('#ruch_api_actions', 400, { offset: { top: -100 }});
|
||||
|
||||
$('#ajax_running').slideUp();
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown)
|
||||
{
|
||||
if(jqXHR.status == 0) alert("{l s='Nieprawidłowa domena' mod='ruch'}");
|
||||
$('#ajax_running').slideUp();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#ruch_test3').live('click', function() {
|
||||
$('#ajax_running').slideDown();
|
||||
$('#ruch_msg_container').slideUp().html('');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
async: true,
|
||||
url: ruch_ajax_uri,
|
||||
dataType: "json",
|
||||
global: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify({
|
||||
'action': 'test3',
|
||||
'token': ruch_token,
|
||||
'url': $('#RUCH_API_URL').val(),
|
||||
'user': $('#RUCH_API_ID').val(),
|
||||
'pass': $('#RUCH_API_PASS').val()
|
||||
}),
|
||||
success: function(resp)
|
||||
{
|
||||
if (resp.error)
|
||||
{
|
||||
$('#ruch_get_org').hide();
|
||||
$('#ruch_msg_container').hide().html('<p class="error alert alert-danger">'+resp.error+'</p>').slideDown();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#ruch_get_org').show();
|
||||
$('#ruch_msg_container').hide().html('<p class="alert alert-success">'+resp.ok+'</p>').slideDown();
|
||||
}
|
||||
$.scrollTo('#ruch_api_actions', 400, { offset: { top: -100 }});
|
||||
|
||||
$('#ajax_running').slideUp();
|
||||
},
|
||||
error: function(jqXHR, textStatus, errorThrown)
|
||||
{
|
||||
if(jqXHR.status == 0) alert("{l s='Nieprawidłowa domena' mod='ruch'}");
|
||||
$('#ajax_running').slideUp();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{/if}
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
15
modules/ruch/views/templates/admin/_print_pdf_icon.tpl
Normal file
15
modules/ruch/views/templates/admin/_print_pdf_icon.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
<!--
|
||||
/**
|
||||
* @author Marcin Bogdański
|
||||
* @copyright OpenNet 2021
|
||||
* @license license.txt
|
||||
*/
|
||||
-->
|
||||
|
||||
<span class="btn-group-action">
|
||||
<span class="btn-group">
|
||||
<a class="btn btn-default _blank" onclick="ruchDoDownload({$tr|escape:'htmlall':'UTF-8'})">
|
||||
<i class="icon-truck" title="Drukuj etykietę"></i>
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
218
modules/ruch/views/templates/admin/adminOrder.tpl
Normal file
218
modules/ruch/views/templates/admin/adminOrder.tpl
Normal file
@@ -0,0 +1,218 @@
|
||||
<!--
|
||||
/**
|
||||
* @author Marcin Bogdański
|
||||
* @copyright OpenNet 2021
|
||||
* @license license.txt
|
||||
*/
|
||||
-->
|
||||
|
||||
<br />
|
||||
<script>
|
||||
var ruch_ajax_uri = '{$ruch_ajax_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_token = '{$ruch_token|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_data = JSON.parse('{$ruch_data|escape:'quotes':'UTF-8'}');
|
||||
var ruch_defaults = JSON.parse('{$ruch_defaults|escape:'quotes':'UTF-8'}');
|
||||
var ruch_pdf_uri = '{$ruch_pdf_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_img_uri = '{$ruch_img_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_track_url = '{$ruch_track_url|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_order_id = '{$ruch_order_id|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_typ = '';
|
||||
var ruch_point = null;
|
||||
var ruch_serv = '';
|
||||
</script>
|
||||
|
||||
<iframe id="ruch_down" style="display: none;"></iframe>
|
||||
|
||||
<div class="panel" id="ruch">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-truck"></i>
|
||||
Wysyłka Orlen
|
||||
</div>
|
||||
|
||||
<div id="ruch_shipment_creation"{if isset($smarty.get.scrollToShipment)} class="displayed-element"{/if}>
|
||||
<div id="ruch_msg_container">{if isset($errors) && $errors}{include file=$smarty.const._PS_MODULE_DIR_|cat:'ruch/views/templates/admin/errors.tpl'}{/if}</div>
|
||||
|
||||
<div class="row">
|
||||
<div id="ruch_actions" class="form-horizontal">
|
||||
<div class="col-lg-4">
|
||||
<table cellspacing="0" cellpadding="10" class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_create_label" type="button"><i class="process-icon-save"></i> {l s='Utwórz i drukuj etykietę' mod='ruch'}</button></td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_edit_label" type="button"><i class="process-icon-save"></i> {l s='Edytuj i drukuj etykietę' mod='ruch'}</button></td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_print_label" type="button" style="display: none;"><i class="process-icon-save"></i> {l s='Drukuj etykietę' mod='ruch'}</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<form id="ruch_form">
|
||||
|
||||
<div class="row" id="ruch_form_div" style="display: none;">
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-top">Odbiorca</h3>
|
||||
|
||||
<div class="form-group" id="ruch_formo1">
|
||||
<label for="ruch_form_nazwa" class="control-label col-lg-3">Nazwa</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_nazwa" name="ruch_form_nazwa" value="" maxlength="120" size="120">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group ruch_oadr" id="ruch_formo2">
|
||||
<label for="ruch_form_adres1" class="control-label col-lg-3">Ulica</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_adres1" name="ruch_form_adres1" value="" maxlength="50" size="50">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group ruch_oadr" id="ruch_formo3">
|
||||
<label for="ruch_form_adres2" class="control-label col-lg-3">Budynek i lokal</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_adres2" name="ruch_form_adres2" value="" maxlength="50" size="50">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group ruch_oadr" id="ruch_formo4">
|
||||
<label for="ruch_form_kod" class="control-label col-lg-3">Kod</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_kod" name="ruch_form_kod" value="" maxlength="8" size="8">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group ruch_oadr" id="ruch_formo5">
|
||||
<label for="ruch_form_miasto" class="control-label col-lg-3">Miasto</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_miasto" name="ruch_form_miasto" value="" maxlength="120" size="120">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_formo7">
|
||||
<label for="ruch_form_imie" class="control-label col-lg-3">Imię</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_imie" name="ruch_form_imie" value="" maxlength="50" size="50">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_formo8">
|
||||
<label for="ruch_form_nazwisko" class="control-label col-lg-3">Nazwisko</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_nazwisko" name="ruch_form_nazwisko" value="" maxlength="50" size="50">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_formo9">
|
||||
<label for="ruch_form_tel" class="control-label col-lg-3">Telefon</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_tel" name="ruch_form_tel" value="" maxlength="15" size="15">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_formo10">
|
||||
<label for="ruch_form_email" class="control-label col-lg-3">E-mail</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_email" name="ruch_form_email" value="" maxlength="80" size="80">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
|
||||
<h3 class="title-top">Paczki</h3>
|
||||
|
||||
<div class="form-group" id="ruch_forms1" style="display: none;">
|
||||
<label for="ruch_form_serv" class="control-label col-lg-3">Usługa</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<select id="ruch_form_serv" name="ruch_form_serv" size="2"><option value="S">Standard</option><option value="M">Mini</option></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file=$smarty.const._PS_MODULE_DIR_|cat:'ruch/views/templates/admin/paczki.tpl'}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
<h3 class="title-top">Usługi dodatkowe</h3>
|
||||
|
||||
<div class="form-group" id="ruch_forma1">
|
||||
<label for="ruch_form_kwota" class="control-label col-lg-3">Kwota pobrania</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_kwota" name="ruch_form_kwota" autocomplete="off" onchange="this.value = this.value.replace(/,/g, '.');" value="" maxlength="12" size="12">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_forma2">
|
||||
<label for="ruch_form_ubezp" class="control-label col-lg-3">Ubezpieczenie</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="text" id="ruch_form_ubezp" name="ruch_form_ubezp" value="" maxlength="10" size="10">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_forma3">
|
||||
<label for="ruch_form_mail" class="control-label col-lg-3">Mail</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="checkbox" id="ruch_form_mail" name="ruch_form_mail" value="1">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group" id="ruch_forma4">
|
||||
<label for="ruch_form_sms" class="control-label col-lg-3">SMS</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<input type="checkbox" id="ruch_form_sms" name="ruch_form_sms" value="1">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ruch_actions" class="form-horizontal">
|
||||
<div class="col-lg-12 clearfix">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding: 10px;"><button class="btn btn-default" id="ruch_label" type="button"><i class="process-icon-save"></i> {l s='Drukuj etykietę' mod='ruch'}</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="ruch-status-panel" class="panel-group">
|
||||
<div class="panel">
|
||||
<div id="ruch-status">
|
||||
<div class="panel-body">
|
||||
<table cellspacing="0" cellpadding="10" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="200"><span class="title_box">{l s='Akcja' mod='ruch'}</span></th>
|
||||
<th width="50"><span class="title_box">{l s='Status' mod='ruch'}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{l s='Etykieta utworzona' mod='ruch'}</td>
|
||||
<td id="ruch_status">Nie</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Link śledzenia' mod='ruch'}</td>
|
||||
<td id="ruch_track_url"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Punkt' mod='ruch'}</td>
|
||||
<td id="ruch_pkt">{$ruch_pkt_id|escape:'htmlall':'UTF-8'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
221
modules/ruch/views/templates/admin/adminOrder177.tpl
Normal file
221
modules/ruch/views/templates/admin/adminOrder177.tpl
Normal file
@@ -0,0 +1,221 @@
|
||||
<!--
|
||||
/**
|
||||
* @author Marcin Bogdański
|
||||
* @copyright OpenNet 2021
|
||||
* @license license.txt
|
||||
*/
|
||||
-->
|
||||
|
||||
<br />
|
||||
<script>
|
||||
var ruch_ajax_uri = '{$ruch_ajax_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_token = '{$ruch_token|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_data = JSON.parse('{$ruch_data|escape:'quotes':'UTF-8'}');
|
||||
var ruch_defaults = JSON.parse('{$ruch_defaults|escape:'quotes':'UTF-8'}');
|
||||
var ruch_pdf_uri = '{$ruch_pdf_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_img_uri = '{$ruch_img_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_track_url = '{$ruch_track_url|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_order_id = '{$ruch_order_id|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_typ = '{$ruch_typ|escape:'htmlall':'UTF-8'}';
|
||||
</script>
|
||||
|
||||
<iframe id="ruch_down" style="display: none;"></iframe>
|
||||
|
||||
<div class="card" id="ruch">
|
||||
<div class="card-header">
|
||||
<h3 class="card-header-title">Wysyłka Orlen</h3>
|
||||
</div>
|
||||
|
||||
<div id="ruch_shipment_creation"{if isset($smarty.get.scrollToShipment)} class="card-body"{/if}>
|
||||
<div id="ruch_msg_container">{if isset($errors) && $errors}{include file=$smarty.const._PS_MODULE_DIR_|cat:'ruch/views/templates/admin/errors.tpl'}{/if}</div>
|
||||
|
||||
<div class="card-block row"">
|
||||
<div id="ruch_actions" class="form-horizontal">
|
||||
<div class="col-lg-4">
|
||||
<table cellspacing="0" cellpadding="10" class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_create_label" type="button"><i class="process-icon-save"></i> {l s='Utwórz i drukuj etykietę' mod='ruch'}</button></td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_edit_label" type="button"><i class="process-icon-save"></i> {l s='Edytuj i drukuj etykietę' mod='ruch'}</button></td>
|
||||
<td><button class="btn btn-default pull-right" id="ruch_print_label" type="button" style="display: none;"><i class="process-icon-save"></i> {l s='Drukuj etykietę' mod='ruch'}</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<form id="ruch_form">
|
||||
|
||||
<div class="card-block row" id="ruch_form_div" style="display: none;">
|
||||
<div class="col-10">
|
||||
<h3 class="title-top">Odbiorca</h3>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_formo1">
|
||||
<label for="ruch_form_nazwa" class="form-control-label col-3">Nazwa</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_nazwa" name="ruch_form_nazwa" value="" maxlength="120" size="120" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text ruch_oadr" id="ruch_formo2">
|
||||
<label for="ruch_form_adres1" class="form-control-label col-3">Ulica</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_adres1" name="ruch_form_adres1" value="" maxlength="50" size="50" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text ruch_oadr" id="ruch_formo3">
|
||||
<label for="ruch_form_adres2" class="form-control-label col-3">Budynek i lokal</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_adres2" name="ruch_form_adres2" value="" maxlength="50" size="50" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text ruch_oadr" id="ruch_formo4">
|
||||
<label for="ruch_form_kod" class="form-control-label col-3">Kod</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_kod" name="ruch_form_kod" value="" maxlength="8" size="8" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text ruch_oadr" id="ruch_formo5">
|
||||
<label for="ruch_form_miasto" class="form-control-label col-3">Miasto</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_miasto" name="ruch_form_miasto" value="" maxlength="120" size="120" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_formo7">
|
||||
<label for="ruch_form_imie" class="form-control-label col-3">Imię</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_imie" name="ruch_form_imie" value="" maxlength="50" size="50" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_formo8">
|
||||
<label for="ruch_form_nazwisko" class="form-control-label col-3">Nazwisko</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_nazwisko" name="ruch_form_nazwisko" value="" maxlength="50" size="50" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_formo9">
|
||||
<label for="ruch_form_tel" class="form-control-label col-3">Telefon</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_tel" name="ruch_form_tel" value="" maxlength="15" size="15" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_formo10">
|
||||
<label for="ruch_form_email" class="form-control-label col-3">E-mail</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_email" name="ruch_form_email" value="" maxlength="80" size="80" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-10">
|
||||
|
||||
<h3 class="title-top">Paczki</h3>
|
||||
|
||||
<div class="form-group" id="ruch_forms1">
|
||||
<label for="ruch_form_serv" class="control-label col-lg-3">Usługa</label>
|
||||
<div class="input-group col-lg-5">
|
||||
<select id="ruch_form_serv" name="ruch_form_serv" size="2"><option id="S">Standard</option><option id="M" selected>Mini</option></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row type-text" id="ruch_forms1" style="display: none;">
|
||||
<label for="ruch_form_serv" class="form-control-label col-3">Usługa</label>
|
||||
<div class="col-7">
|
||||
<select id="ruch_form_serv" name="ruch_form_serv" size="2"><option id="S">Standard</option><option id="M" selected>Mini</option></select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file=$smarty.const._PS_MODULE_DIR_|cat:'ruch/views/templates/admin/paczki.tpl'}
|
||||
</div>
|
||||
|
||||
<div class="col-10">
|
||||
<h3 class="title-top">Usługi dodatkowe</h3>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_forma1">
|
||||
<label for="ruch_form_kwota" class="form-control-label col-3">Kwota pobrania</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_kwota" name="ruch_form_kwota" autocomplete="off" onchange="this.value = this.value.replace(/,/g, '.');" value="" maxlength="12" size="12" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row type-text" id="ruch_forma2">
|
||||
<label for="ruch_form_ubezp" class="form-control-label col-3">Ubezpieczenie</label>
|
||||
<div class="col-7">
|
||||
<input type="text" id="ruch_form_ubezp" name="ruch_form_ubezp" value="" maxlength="10" size="10" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row" id="ruch_forma3">
|
||||
<label for="ruch_form_mail" class="form-control-label col-3">Mail</label>
|
||||
<div class="col-7">
|
||||
<input type="checkbox" id="ruch_form_mail" name="ruch_form_mail" value="1">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row" id="ruch_forma4">
|
||||
<label for="ruch_form_sms" class="form-control-label col-3">SMS</label>
|
||||
<div class="col-7">
|
||||
<input type="checkbox" id="ruch_form_sms" name="ruch_form_sms" value="1">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="ruch_actions" class="form-horizontal col-10">
|
||||
<div class="col-7 clearfix">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding: 10px;"><button class="btn btn-default" id="ruch_label" type="button"><i class="process-icon-save"></i> {l s='Drukuj etykietę' mod='ruch'}</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="ruch-status-panel" class="col-10">
|
||||
<div class="panel">
|
||||
<div id="ruch-status">
|
||||
<div class="panel-body">
|
||||
<table cellspacing="0" cellpadding="10" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="200"><span class="title_box">{l s='Akcja' mod='ruch'}</span></th>
|
||||
<th width="50"><span class="title_box">{l s='Status' mod='ruch'}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{l s='Etykieta utworzona' mod='ruch'}</td>
|
||||
<td id="ruch_status">Nie</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Link śledzenia' mod='ruch'}</td>
|
||||
<td id="ruch_track_url"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{l s='Punkt' mod='ruch'}</td>
|
||||
<td id="ruch_pkt">{$ruch_pkt_id|escape:'htmlall':'UTF-8'}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
25
modules/ruch/views/templates/admin/errors.tpl
Normal file
25
modules/ruch/views/templates/admin/errors.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
<!--
|
||||
/**
|
||||
* @author Marcin Bogdański
|
||||
* @copyright OpenNet 2021
|
||||
* @license license.txt
|
||||
*/
|
||||
-->
|
||||
|
||||
{if count($errors)}
|
||||
<div class="bootstrap">
|
||||
<div class="error alert alert-danger">
|
||||
{if count($errors) == 1}
|
||||
{$errors[0]|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
{$errors|count} {l s='errors' mod='ruch'}
|
||||
<br/>
|
||||
<ol>
|
||||
{foreach $errors as $error}
|
||||
<li>{$error|escape:'htmlall':'UTF-8'}</li>
|
||||
{/foreach}
|
||||
</ol>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
9
modules/ruch/views/templates/admin/index.php
Normal file
9
modules/ruch/views/templates/admin/index.php
Normal file
@@ -0,0 +1,9 @@
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
30
modules/ruch/views/templates/admin/paczki.tpl
Normal file
30
modules/ruch/views/templates/admin/paczki.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
<!--
|
||||
/**
|
||||
* @author Marcin Bogdański
|
||||
* @copyright OpenNet 2021
|
||||
* @license license.txt
|
||||
*/
|
||||
-->
|
||||
|
||||
<div class="table-responsive">
|
||||
<table id="ruch_paczki" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="form_wg">Waga (kg)</th>
|
||||
<th class="form_dim">Wysokość (cm)</th>
|
||||
<th class="form_dim">Długość (cm)</th>
|
||||
<th class="form_dim">Szerokość (cm)</th>
|
||||
<th class="form_tpl">Szablon</th>
|
||||
<th class="form_nst">NST</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<span id="ruch_paczki_add" class="btn btn-default">
|
||||
<img src="{$ruch_img_uri|escape:'htmlall':'UTF-8'}/add_16.png"/>
|
||||
Dodaj
|
||||
</span>
|
||||
<br/><br/><br/>
|
||||
@@ -0,0 +1,9 @@
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,9 @@
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -0,0 +1,35 @@
|
||||
<!--
|
||||
/**
|
||||
* @author Marcin Bogdański
|
||||
* @copyright OpenNet 2021
|
||||
* @license license.txt
|
||||
*/
|
||||
-->
|
||||
|
||||
{extends file="helpers/list/list_header.tpl"}
|
||||
|
||||
{block name=leadin}
|
||||
<script>
|
||||
var ruch_pdf_uri = '{$ruch_pdf_uri|escape:'htmlall':'UTF-8'}';
|
||||
var ruch_token = '{$ruch_token|escape:'htmlall':'UTF-8'}';
|
||||
|
||||
function ruchDoDownload(id_label) {
|
||||
link = ruch_pdf_uri + '?printLabel=true&id_label=' + id_label + '&token=' + encodeURIComponent(ruch_token);
|
||||
ifr = window.document.getElementById('ruch_down');
|
||||
ifr.src = link;
|
||||
return true;
|
||||
}
|
||||
|
||||
</script>
|
||||
<iframe id="ruch_down" style="display: none;"></iframe>
|
||||
|
||||
{if isset($printLabels_mode) && $printLabels_mode}
|
||||
<iframe id="ruch_down_bulk" style="display: none;"></iframe>
|
||||
<script>
|
||||
link = ruch_pdf_uri + '?printLabel=true&bulk=true&ids={$ids|escape:'htmlall':'UTF-8'}&token=' + encodeURIComponent(ruch_token);
|
||||
ifr = window.document.getElementById('ruch_down_bulk');
|
||||
ifr.src = link;
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
9
modules/ruch/views/templates/admin/ruch/index.php
Normal file
9
modules/ruch/views/templates/admin/ruch/index.php
Normal file
@@ -0,0 +1,9 @@
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
Reference in New Issue
Block a user