1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-08 06:31:20 +01:00
openstamanager/ajax_select.php

22 lines
395 B
PHP
Raw Normal View History

<?php
include_once __DIR__.'/core.php';
if (!isset($resource)) {
$op = empty($op) ? filter('op') : $op;
$search = filter('q');
if (!isset($elements)) {
$elements = [];
}
$elements = (!is_array($elements)) ? explode(',', $elements) : $elements;
$results = AJAX::select($op, $elements, $search);
echo json_encode($results);
}
// Casi particolari
else {
}