Ejemplo n.º 1
0
    }
}
//if ( (!isset($_REQUEST['btnSubmit']))
//      or
//     ($_REQUEST['btnSubmit'] != 'Guardar') )
//{
include_once 'header.php';
require_once 'share/data_display.php';
unset($params['sql_where']);
unset($params['sql_data']);
$params_fs = $params;
unset($params_fs['msg']);
if (isset($_REQUEST['btnSubmit']) and $_REQUEST['btnSubmit'] == 'Mas opciones') {
    $params_fs['conditions'] += 1;
}
$form_search = sak_search_form($params_fs);
if ($params['conditions'] > 0) {
    echo $form_search;
}
echo "<a href=\"{$url_insert}\">{$title_insert}</a>";
echo '<br>';
if (isset($params['msg'])) {
    echo $params['msg'];
    unset($params['msg']);
}
echo '<br>';
$buscar = (bool) isset($_REQUEST['btnSubmit']) && $_REQUEST['btnSubmit'] == 'Buscar';
//    $buscar = $buscar ||
if ($buscar) {
    $params = sak_search_form_process($params);
    echo sak_display_list($params);
Ejemplo n.º 2
0
$Id: premio.php,v 1.2 2007/10/17 18:03:18 develop Exp $
*/
if ($_SESSION['u'] != 'admin') {
    return;
}
require_once 'share/data_display.php';
//unset($params);
$params['table'] = 'usuario';
$params['primary_key'] = $params['table'];
$params['sql_list'] = 'select usuario from ' . $params['table'];
$params['sql_where'] = '';
$params['sql_order'] = '';
$params['sql_data'] = null;
$params['link_view']['field_name'] = $params['primary_key'];
$params['link_view']['action'] = $params['table'] . '_select';
$params['display_record_count'] = true;
//$params['enable_export'] = true;
$field_meta['search']['usuario'] = 'Usuario';
include_once 'header.php';
echo sak_search_form($params, $field_meta);
$insert_title = 'Agregar registro';
$insert_url = 'index.php?action=' . $params['table'] . '_insert';
echo "<a href=\"{$insert_url}\">{$insert_title}</a>";
echo '<br>';
echo '<br>';
$buscar = (bool) isset($_REQUEST['btnSubmit']) && $_REQUEST['btnSubmit'] == 'Buscar';
if ($buscar) {
    $params = sak_search_form_process($params);
    echo sak_display_list($params);
}
include_once 'footer.php';