<?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);
<?php include '../../../lib/department.class.php'; include '../../../lib/office.class.php'; $department = new Department(); $office = new Office(); $depid = $_GET['depid']; $allOfficeName = $office->GetOffices(); $rowOffice = count($allOfficeName); $objDepartment = $department->GetDepartmentsByID($depid); $depOfficeID = $objDepartment["0"]["department_office_id"]; ?> <link href="../../css/stylesheet.css" rel="stylesheet" type="text/css" /> <form id="departmentForm" name="departmentForm" method="post" action="includes/model/department_update_actions.php" > <div id="note"> </div> <div class="vertical_form"> <p> <label>Department Name:</label> <input type="text" class="inventori_txtfield" name="department_name" value="<?php echo $objDepartment["0"]["department_name"]; ?> " id="department_name" /> </p> <p>
<?php require_once "../../../lib/office.class.php"; $objOffice = new Office(); $listAllOffice = $objOffice->GetOffices(); $rowListAllOffice = count($listAllOffice); ?> <form id="listAllOffice" name="listAllOffice" method="post" action="" class="thickbox"> <div id="note"> </div> <table width="100%" border="0"> <tr> <td colspan="5"> </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>Office Name </strong></td> <td width="138" align="left" valign="top"><strong>Address </strong></td> <td width="139" align="left" valign="top"><b>Phone No. </b></td> <td align="left" valign="top"><b>E-mail</b></td> <td width="63"> </td> <td width="85"> </td> </tr> <?php for ($i = 0; $i < $rowListAllOffice; $i++) { if ($i % 2 == 0) { $bgc = "#F7F7F7"; } else { $bgc = "#F1F1F1"; } ?>