コード例 #1
0
ファイル: dept_new_show.php プロジェクト: patmark/care2x-tz
// load color preferences
$breakfile = 'nursing.php?sid=' . $sid . '&lang=' . $lang;
if ($pday == '') {
    $pday = date('d');
}
if ($pmonth == '') {
    $pmonth = date('m');
}
if ($pyear == '') {
    $pyear = date('Y');
}
$t_date = $pday . '.' . $pmonth . '.' . $pyear;
$dept_obj = new Department();
$deptarray = $dept_obj->getAll();
$depttypes = $dept_obj->getTypes();
$dept = $dept_obj->getDeptAllInfo($dept_nr);
while (list($x, $v) = each($dept)) {
    ${$x} = $v;
}
$dept_info = $dept_obj->getTypeInfo($dept['type']);
?>


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<HTML>
<HEAD>
<?php 
echo setCharSet();
?>

<?php 
コード例 #2
0
ファイル: dept_info.php プロジェクト: patmark/care2x-tz
$breakfile = 'dept_manage.php' . URL_APPEND;
if ($pday == '') {
    $pday = date('d');
}
if ($pmonth == '') {
    $pmonth = date('m');
}
if ($pyear == '') {
    $pyear = date('Y');
}
$t_date = $pday . '.' . $pmonth . '.' . $pyear;
# Get department infos
$dept_obj = new Department();
$deptarray = $dept_obj->getAll();
$depttypes = $dept_obj->getTypes();
$dept = $dept_obj->getDeptAllInfo($dept_nr);
$dept_info = $dept_obj->getTypeInfo($dept['type']);
# Get department phone infos
$phone = $dept_obj->getPhoneInfo($dept_nr);
# Prepare title
$sTitle = "{$LDDepartment} :: ";
if (isset(${$dept}['LD_var']) && !empty(${$dept}['LD_var'])) {
    $sTitle = $sTitle . ${$dept}['LD_var'];
} else {
    $sTitle = $sTitle . $dept['name_formal'];
}
# Start Smarty templating here
/**
 * LOAD Smarty
 */
# Note: it is advisable to load this after the inc_front_chain_lang.php so