Example #1
0
  */
 if ($altCfg['SALARY_ENABLED']) {
     $salary = new Salary();
     //salary job deletion
     if (wf_CheckGet(array('deletejobid'))) {
         $salary->deleteJob($_GET['deletejobid']);
         rcms_redirect($salary::URL_TS . $_GET['edittask']);
     }
     //salary job editing
     if (wf_CheckPost(array('editsalaryjobid', 'editsalaryemployeeid', 'editsalaryjobtypeid'))) {
         $salary->jobEdit($_POST['editsalaryjobid'], $_POST['editsalaryemployeeid'], $_POST['editsalaryjobtypeid'], $_POST['editsalaryfactor'], $_POST['editsalaryoverprice'], $_POST['editsalarynotes']);
         rcms_redirect($salary::URL_TS . $_GET['edittask']);
     }
     //salary job creation
     if (wf_CheckPost(array('newsalarytaskid', 'newsalaryemployeeid', 'newsalaryjobtypeid'))) {
         $salary->createSalaryJob($_POST['newsalarytaskid'], $_POST['newsalaryemployeeid'], $_POST['newsalaryjobtypeid'], $_POST['newsalaryfactor'], $_POST['newsalaryoverprice'], $_POST['newsalarynotes']);
         rcms_redirect($salary::URL_TS . $_GET['edittask']);
     }
 }
 //display task change form
 ts_TaskChangeForm($_GET['edittask']);
 //photostorage integration
 if ($altCfg['PHOTOSTORAGE_ENABLED']) {
     $photoStorage = new PhotoStorage('TASKMAN', $_GET['edittask']);
     $photostorageControl = wf_Link('?module=photostorage&scope=TASKMAN&mode=list&itemid=' . $_GET['edittask'], wf_img('skins/photostorage.png') . ' ' . __('Upload images'), false, 'ubButton');
     $photostorageControl .= wf_delimiter();
     $photosList = $photoStorage->renderImagesRaw();
     show_window(__('Photostorage'), $photostorageControl . $photosList);
 }
 //additional comments
 if ($altCfg['ADCOMMENTS_ENABLED']) {