当前位置: 首页>>代码示例>>PHP>>正文


PHP Department::getDeptAllInfo方法代码示例

本文整理汇总了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 
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:dept_new_show.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
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:dept_info.php


注:本文中的Department::getDeptAllInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。