Exemplo n.º 1
0
* See the file "copy_notice.txt" for the licence notice
*/
$lang_tables = array('chemlab_groups.php', 'chemlab_params.php');
define('LANG_FILE', 'lab.php');
$local_user = '******';
require_once $root_path . 'include/inc_front_chain_lang.php';
$thisfile = basename($_SERVER['PHP_SELF']);
///$db->debug=true;
# Create lab object
require_once $root_path . 'include/care_api_classes/class_lab.php';
$lab_obj = new Lab();
# Load the date formatter */
include_once $root_path . 'include/inc_date_format_functions.php';
if (isset($mode) && !empty($mode)) {
    $lab_obj->moveUp($_GET['nrFirst'], $_GET['sortnrFirst']);
    $lab_obj->moveDown($_GET['nrSecond'], $_GET['sortnrSecond']);
}
# Get the test test groups
$tgroups =& $lab_obj->TestGroups();
$breakfile = "labor.php" . URL_APPEND;
// echo "from table ".$linecount;
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDTestGroups);