示例#1
0
<?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
0
<?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";
    }
    ?>
示例#3
0
<?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);
示例#4
0
<?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" />