本文整理汇总了PHP中Department::GetDepartments方法的典型用法代码示例。如果您正苦于以下问题:PHP Department::GetDepartments方法的具体用法?PHP Department::GetDepartments怎么用?PHP Department::GetDepartments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Department
的用法示例。
在下文中一共展示了Department::GetDepartments方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Department
<?php
require_once '../../lib/defination.class.php';
include '../../lib/department.class.php';
include '../../lib/office.class.php';
$deparment = new Department();
$office = new Office();
$output = options_for_select($deparment->GetDepartments(), 'department_id', 'department_name', true);
$office_output = options_for_select($office->GetOffices(), 'office_id', 'office_name', true);
?>
<link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" />
<form id="userSection" name="userSection" method="post" action="includes/model/user_section_actions.php" >
<div id="note"> </div>
<div class="vertical_form01">
<br /><br /><p></p><p></p>
<p>
<label> Section Name:</label>
<input type="text" class="txtfieldwidth" name="section_name" />
</p>
<p>
<label> Department: </label>
<select name="department" ><?php
e($output);
示例2: Office
<?php
require_once "../../../lib/department.class.php";
require_once "../../../lib/office.class.php";
$objOffice = new Office();
$objDepartment = new Department();
$listAllDepartment = $objDepartment->GetDepartments();
$rowListAllDepartment = count($listAllDepartment);
?>
<form id="listAllOffice" name="listAllOffice" method="post" action="" class="thickbox">
<div id="note"> </div>
<table width="100%" border="0">
<tr>
<td colspan="3"> </td>
<td align="right"><a class="thickbox" href="../create_office.php?height=300&width=500" title="Office List" ></a></td>
</tr>
<tr>
<td width="142" align="left" valign="top"><strong>Department Name </strong></td>
<td align="left" valign="top"><strong>Office Name </strong></td>
<td width="63"> </td>
<td width="85"> </td>
</tr>
<?php
for ($i = 0; $i < $rowListAllDepartment; $i++) {
if ($i % 2 == 0) {
$bgc = "#F7F7F7";
} else {
$bgc = "#F1F1F1";
}
?>
示例3: Department
<?php
require_once '../../lib/defination.class.php';
require_once '../../lib/department.class.php';
require_once '../../lib/office.class.php';
$department = new Department();
$office = new Office();
$output = options_for_select($office->GetOffices(), 'office_id', 'office_name', true);
$department_output = options_for_select($department->GetDepartments(), 'department_id', 'department_name', false);
?>
<div id="test">
<form id="companyForm" name="companyForm" method="post" action="includes/model/department_actions.php" >
<div class="vertical_form01">
<p></p><p></p><p></p>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10%"> </td>
<td width="90%"><p>
<label>Department Name:</label>
<input type="text" class="txtfieldwidth" name="department_name" value="" id="department_name" />
</p>
<p>
<label>Office Name:</label>
<select name='office'>
<?php
e($output);
示例4: Section
<?php
include '../../../lib/section.class.php';
include '../../../lib/department.class.php';
include '../../../lib/office.class.php';
$objSection = new Section();
$office = new Office();
$objDepartment = new Department();
$sec_id = $_GET['sec_id'];
$allOfficeName = $office->GetOffices();
$rowOffice = count($allOfficeName);
$allDepartmentName = $objDepartment->GetDepartments();
$rowAllDepartmentName = count($allDepartmentName);
$sectionInfo = $objSection->GetUserSectionById($sec_id);
$secDepID = $sectionInfo["0"]["dep_id"];
$secOfficeID = $sectionInfo["0"]["office_id"];
?>
<link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" />
<form id="sectionForm" name="sectionForm" method="post" action="includes/model/section_update_actions.php" >
<div id="note"> </div>
<div class="vertical_form">
<p>
<label>Section Name:</label>
<input type="text" class="inventori_txtfield" name="section_name" value="<?php
echo $sectionInfo["0"]["sec_name"];
?>
" id="section_name" />