1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-26 07:44:02 +01:00
openstamanager/modules/beni/ajax/select.php

19 lines
435 B
PHP
Raw Normal View History

2018-11-15 19:06:42 +01:00
<?php
include_once __DIR__.'/../../../core.php';
switch ($resource) {
case 'aspetto-beni':
$query = 'SELECT id, descrizione FROM dt_aspettobeni |where| ORDER BY descrizione ASC';
foreach ($elements as $element) {
$filter[] = 'id='.prepare($element);
}
if (!empty($search)) {
$search_fields[] = 'descrizione LIKE '.prepare('%'.$search.'%');
}
break;
}