本文整理匯總了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