Example #1
0
function editDate($lDB, $uDB, $dDB, $dept_id)
{
    $dDB = new departmentDB();
    $leave_types = $lDB->getLeaveType();
    //        $dept_id=$uDB->getDepartmentId($USERID);
    $dept_name = $dDB->getDepartmentName($dept_id);
    $semStartDate = $dDB->getsemStartDate($dept_id);
    $semEndDate = $dDB->getsemEndDate($dept_id);
    $html = "";
    $html = '<h3>Semester Start Date&nbsp;&nbsp;<div id="sems_date" > <input type="text" name="s_date" id="s_date" value="' . $semStartDate . '" /></div>&nbsp;&nbsp;Semester End Date&nbsp;&nbsp;<div id="seme_date"> <input type="text" name="s_date" id="s_date" value="' . $semEndDate . '" /></div></h3>';
    $html = $html . '<input type="button" name="change" id="update" value="update" onclick="updateDate(' . $dept_id . ');" />';
    echo $html;
}
Example #2
0
<!--
    TODO: Apply client and server side apply form validation.
    To change this template, choose Tools | Templates
    and open the template in the editor.
-->
<?php 
$user_hod = 2;
$dDB = new departmentDB();
//    $department_type= $user->getDepartment();
$activation_pending = $uDB->getPendingHodActivationRequest($user_hod);
?>

<div id="pending_account_button">
     <span class="toggle_button">Pending Account Verification Requests</span>    
</div>
<?php 
if ($activation_pending) {
    ?>
<div id="pending_activation_request">
    <table border="1">
        <tr>
            <th><div class="name divCell">  Name</div></th>        
            <th><div class="dept_name divCell"> Department</div></th>
            <th><div class="user_type divCell">User Type</div></th>
            <th><div class="email divCell divCellLarge">Email</div></th>
            <th><div class="contact divCell divCellMedium">Contact Number</div></th>
            <th><div class="gender divCell divCellSmall">Gender</div></th>
            <th><div class="request_time divCell">Pending since...</div></th>
        </tr>
    <?php 
    while ($row = mysql_fetch_row($activation_pending)) {
Example #3
0
<?php

$dDB = new departmentDB();
$leave_types = $lDB->getLeaveType();
$dept_id = $uDB->getDepartmentId($USERID);
$dept_name = $dDB->getDepartmentName($dept_id);
$semStartDate = $dDB->getsemStartDate($dept_id);
$semEndDate = $dDB->getsemEndDate($dept_id);
?>
<h2 style="text-align: center;"> <?php 
echo $dept_name;
?>
</h2>
<div id="semdate">
<h3>Semester Start Date&nbsp;&nbsp;<div id="sems_date" > <?php 
echo $semStartDate;
?>
</div>&nbsp;&nbsp;Semester End Date&nbsp;&nbsp;<div id="seme_date"> <?php 
echo $semEndDate;
?>
</div></h3>
<input type="button" name="change" id="change"value="change" onclick="editDate(<?php 
echo $dept_id;
?>
);" />
</div>
<table border="1">
    <tr>
        <th>Sl No.</th>
        <th>Roll No.</th>
        <th>Name</th>