示例#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
<?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>