first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
function show_paczkomaty_dropdown_list($name, $selected = '', $params = array()) {
static $machines = null;
$list = stPaczkomatyMachines::getListOfMachinesByParam(isset($params['paczkomaty']) ? $params['paczkomaty'] : array());
$machines = array();
foreach ($list as $m)
{
$machines[$m['number']] = array(
'id' => $m['number'],
'name' => $m['number'].': '.$m['street'].' '.$m['house'].', '.$m['postCode'].' '.$m['city']
);
}
if ($selected && $selected != 'NONE' && isset($machines[$selected]))
{
$defaults = array(
$machines[$selected],
);
}
else
{
$defaults = array();
}
echo st_tokenizer_input_tag($name, array_values($machines), $defaults, array('tokenizer' => array('preventDuplicates' => true, 'hintText' => __('Wpisz szukany paczkomat'), 'tokenLimit' => 1)));
}