本文整理汇总了PHP中sak_display_list函数的典型用法代码示例。如果您正苦于以下问题:PHP sak_display_list函数的具体用法?PHP sak_display_list怎么用?PHP sak_display_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sak_display_list函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
<?php
include_once 'header.php';
include_once 'share/data_display.php';
$sql = <<<END
select
director,
estado,
count(*) as cantidad
from
tesis
group by
director,
estado
END;
unset($params_list);
$params_list['sql_list'] = $sql;
$params_list['sql_data'] = array();
$params_list['primary_key'] = '';
echo sak_display_list($params_list);
include_once 'footer.php';
示例2: sak_search_form
require_once 'share/field_mapping.php';
//unset($params);
$params['table'] = 'alumno';
$params['sql_list'] = <<<END
select
*
from
alumno
END;
$params['sql_where'] = '';
$params['sql_order'] = ' order by nombre ';
$params['sql_data'] = null;
$params['primary_key'] = 'id';
$params['link_view']['field_name'] = 'id';
$params['link_view']['action'] = $params['table'] . '_select';
$field_meta['search']['legajo'] = 'Legajo';
$field_meta['search']['doc_nro'] = 'Nro Doc';
$field_meta['search']['nombre'] = 'Nombre';
include_once 'header.php';
echo sak_search_form($params, $field_meta);
$insert_title = 'Agregar un alumno nuevo';
$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, $field_mapping['tpm']);
}
include_once 'footer.php';
示例3: count
$params1['sql_data'] = null;
$params1['enable_export'] = true;
$params2['sql_full'] = <<<END
select
fecha_hora::date as fecha,
count(*) as cantidad
from
inscripcion
group by
fecha_hora::date
order by
fecha
END;
$params2['sql_data'] = null;
// <query>
// <UI>
include_once 'header.php';
if (isset($params['msg'])) {
echo $params['msg'];
}
echo '<br>';
echo 'Cantidad de alumnos con inscripcion por dia:';
echo '<br>';
echo sak_display_list($params1);
echo '<br>';
echo '<br>';
echo 'Cantidad de inscripciones por dia:';
echo '<br>';
echo sak_display_list($params2);
echo '<br>';
include_once 'footer.php';
示例4: unset
break;
} else {
$msg = "El registro a sido cargado satisfactoriamente.";
}
}
unset($params_cont);
$params_cont['msg'] = $msg;
$params_cont = params_encode($params_cont);
$continue = 'action=' . $params['table'] . '¶ms=' . $params_cont;
return;
}
// <UI>
include_once 'header.php';
if (isset($params['msg'])) {
echo $params['msg'];
}
echo '<br>';
$params_alumno['sql_list'] = 'select * from alumno';
$params_alumno['sql_where'] = ' where id = ?';
$params_alumno['sql_order'] = '';
$params_alumno['sql_data'] = $_SESSION['alumno_id'];
echo sak_display_list($params_alumno);
echo '<br>';
$form->display();
echo '<br>';
if (isset($materia_id)) {
echo '<hr width="60%">';
echo $msg_comis;
$form_comis->display();
}
include_once 'footer.php';