本文整理汇总了PHP中Department::getDeptAllInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Department::getDeptAllInfo方法的具体用法?PHP Department::getDeptAllInfo怎么用?PHP Department::getDeptAllInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Department
的用法示例。
在下文中一共展示了Department::getDeptAllInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setCharSet
// 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: date
$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