コード例 #1
0
ファイル: attendence.php プロジェクト: sknagesh/divyaeng2
     $op->setValue('leaveid', $_GET['lid']);
     $op->leaveapproveUI();
 }
 if (isset($_GET['attendence'])) {
     $op->setValue('uitype', 'att');
     $op->setValue('attstatusid', 1);
     $op->saveAttendence();
 }
 if (isset($_GET['sgid'])) {
     $au = new Approval();
     $au->setValue('skillgroup', $_GET['sgid']);
     $au->setValue('tname', 'Leaves');
     $au->setValue('linkcol', 'Leave_ID');
     $au->setValue('linkid', $_GET['lid']);
     $au->setValue('remarks', $_GET['appremarks']);
     $au->saveApproval();
 }
 if (isset($_GET['plan'])) {
     if (isset($_GET['mid'])) {
         $op->setValue('operatorid', $_GET['mid']);
     }
     $op->showAttencence();
 }
 if (isset($_GET['mpdetail'])) {
     $op->setValue('attendenceid', $_GET['id']);
     $op->getAttendenceDetails();
 }
 if (isset($_GET['updateapproval'])) {
     $op->setValue('leaveid', $_GET['lid']);
     $op->updateLeaveApproval();
 }