示例#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;
}
示例#2
0
    ?>
<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)) {
        $fname = $row[0] . ' ' . $row[1];
        $department_name = $dDB->getDepartmentName($row[7]);
        ?>
    <tr id="pendingAppInfoRow<?php 
        echo $row[8];
        ?>
">
        <td><div class="name divCell">  <?php 
        echo $fname;
        ?>
</div></td>        
        <td><div class="dept_name divCell"><?php 
        echo $department_name;
        ?>
</div></td>
        <td><div class="user_type divCell">Head of Department</div></td>
        <td><div class="email divCell divCellLarge"><?php 
示例#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>