Esempio n. 1
0
                 $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();
             }
             if (isset($_GET['totl'])) {
                 $op->getLeaveSummary();
             }
         }
     }
 }