コード例 #1
0
/* $Id $ */
/**
 * @package Mediboard
 * @subpackage hl7
 * @version $Revision:$
 * @author SARL OpenXtrem
 * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 */
CCanDo::checkAdmin();
$page = intval(CValue::get('page', 0));
$table_number = CValue::getOrSession("table_number", 1);
$keywords = CValue::getOrSession("keywords", "%");
$step = 25;
$table_description = new CHL7v2TableDescription();
$tables = $table_description->seek($keywords, null, "{$page}, {$step}", true, null, "number");
foreach ($tables as $_table) {
    $_table->countEntries();
}
$total_tables = $table_description->_totalSeek;
$table_description = new CHL7v2TableDescription();
$table_description->number = $table_number;
$table_description->loadMatchingObject();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("page", $page);
$smarty->assign("tables", $tables);
$smarty->assign("total_tables", $total_tables);
$smarty->assign("keywords", $keywords);
$smarty->assign("table_description", $table_description);
$smarty->display("inc_list_hl7v2_tables.tpl");