當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Department::GetDepartments方法代碼示例

本文整理匯總了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);
開發者ID:rajibahmed,項目名稱:IIMS,代碼行數:31,代碼來源:create_section.php

示例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">&nbsp;</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">&nbsp;</td>
    <td width="85">&nbsp;</td>
  </tr>
<?php 
for ($i = 0; $i < $rowListAllDepartment; $i++) {
    if ($i % 2 == 0) {
        $bgc = "#F7F7F7";
    } else {
        $bgc = "#F1F1F1";
    }
    ?>
開發者ID:rajibahmed,項目名稱:IIMS,代碼行數:31,代碼來源:list_all_department.php

示例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%">&nbsp;</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);
開發者ID:rajibahmed,項目名稱:IIMS,代碼行數:31,代碼來源:create_department.php

示例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" />
開發者ID:rajibahmed,項目名稱:IIMS,代碼行數:31,代碼來源:edit_section_info.php


注:本文中的Department::GetDepartments方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。