本文整理汇总了PHP中Warehouse::taskMaterialsReport方法的典型用法代码示例。如果您正苦于以下问题:PHP Warehouse::taskMaterialsReport方法的具体用法?PHP Warehouse::taskMaterialsReport怎么用?PHP Warehouse::taskMaterialsReport使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Warehouse
的用法示例。
在下文中一共展示了Warehouse::taskMaterialsReport方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ts_TaskChangeForm
//.........这里部分代码省略.........
$smsDataCells = wf_TableCell(__('Message'), '', 'row2');
$smsDataCells .= wf_TableCell(zb_TranslitString($newSmsText));
$smsDataRows .= wf_TableRow($smsDataCells, 'row3');
$smsDataTable = wf_TableBody($smsDataRows, '100%', '0', 'glamour');
$smsInputs = $smsDataTable;
$smsInputs .= wf_HiddenInput('postsendemployee', $smsEmployee);
$smsInputs .= wf_HiddenInput('postsendsmstext', $newSmsText);
$smsInputs .= wf_Submit(__('Send SMS'));
$smsForm = wf_Form('', 'POST', $smsInputs, '');
$smsData = wf_modal(wf_img_sized('skins/icon_mobile.gif', __('Send SMS'), '10'), __('Send SMS'), $smsForm, '', '400', '200');
}
}
$tablecells = wf_TableCell(__('ID'), '30%');
$tablecells .= wf_TableCell($taskdata['id']);
$tablerows = wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Task creation date') . ' / ' . __('Administrator'));
$tablecells .= wf_TableCell($taskdata['date'] . ' / ' . $taskdata['admin']);
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Target date'));
$tablecells .= wf_TableCell(wf_tag('strong') . $taskdata['startdate'] . ' ' . $taskdata['starttime'] . wf_tag('strong', true));
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Task address'));
$tablecells .= wf_TableCell($addresslink);
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Login'));
$tablecells .= wf_TableCell($taskLogin . $loginType);
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Phone'));
$tablecells .= wf_TableCell($taskdata['phone']);
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Job type'));
$tablecells .= wf_TableCell(@$alljobtypes[$taskdata['jobtype']]);
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Who should do'));
$tablecells .= wf_TableCell(@$allemployee[$taskdata['employee']] . ' ' . $smsData);
$tablerows .= wf_TableRow($tablecells, 'row3');
$tablecells = wf_TableCell(__('Job note'));
$tablecells .= wf_TableCell(nl2br($taskdata['jobnote']));
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0', 'glamour');
$result .= wf_tag('div', false, '', 'style="clear:both;"') . wf_tag('div', true);
// show task preview
show_window(__('View task') . ' ' . $modform, $result);
//Salary accounting
if ($altercfg['SALARY_ENABLED']) {
if (cfr('SALARYTASKSVIEW')) {
$salary = new Salary();
show_window(__('Additional jobs done'), $salary->taskJobCreateForm($_GET['edittask']));
}
}
//warehouse integration
if ($altercfg['WAREHOUSE_ENABLED']) {
if (cfr('WAREHOUSE')) {
$warehouse = new Warehouse();
show_window(__('Additionally spent materials'), $warehouse->taskMaterialsReport($_GET['edittask']));
}
}
//if task undone
if ($taskdata['status'] == 0) {
$sup = wf_tag('sup') . '*' . wf_tag('sup', false);
$inputs = wf_HiddenInput('changetask', $taskid);
$inputs .= wf_DatePicker('editenddate') . wf_tag('label', false) . __('Finish date') . $sup . wf_tag('label', true) . wf_tag('br');
$inputs .= wf_tag('br');
$inputs .= wf_Selector('editemployeedone', $activeemployee, __('Worker done'), $taskdata['employee'], true);
$inputs .= wf_tag('br');
$inputs .= wf_tag('label', false) . __('Finish note') . wf_tag('label', true) . wf_tag('br');
$inputs .= wf_TextArea('editdonenote', '', '', true, '35x3');
$inputs .= wf_tag('br');
$inputs .= $jobgencheckbox;
$inputs .= wf_Submit(__('This task is done'));
$form = wf_Form("", 'POST', $inputs, 'glamour');
if (cfr('TASKMANDELETE')) {
show_window('', wf_JSAlertStyled('?module=taskman&deletetask=' . $taskid, web_delete_icon() . ' ' . __('Remove this task - it is an mistake'), $messages->getDeleteAlert(), 'ubButton'));
}
//show editing form
if (cfr('TASKMANDONE')) {
show_window(__('If task is done'), $form);
}
} else {
$donecells = wf_TableCell(__('Finish date'), '30%');
$donecells .= wf_TableCell($taskdata['enddate']);
$donerows = wf_TableRow($donecells, 'row3');
$donecells = wf_TableCell(__('Worker done'));
$donecells .= wf_TableCell($allemployee[$taskdata['employeedone']]);
$donerows .= wf_TableRow($donecells, 'row3');
$donecells = wf_TableCell(__('Finish note'));
$donecells .= wf_TableCell($taskdata['donenote']);
$donerows .= wf_TableRow($donecells, 'row3');
$doneresult = wf_TableBody($donerows, '100%', '0', 'glamour');
if (cfr('TASKMANDELETE')) {
$doneresult .= wf_JSAlertStyled('?module=taskman&deletetask=' . $taskid, web_delete_icon() . ' ' . __('Remove this task - it is an mistake'), $messages->getDeleteAlert(), 'ubButton');
}
if (cfr('TASKMANDONE')) {
$doneresult .= ' ';
$doneresult .= wf_JSAlertStyled('?module=taskman&setundone=' . $taskid, wf_img('skins/icon_key.gif') . ' ' . __('No work was done'), $messages->getEditAlert(), 'ubButton');
}
show_window(__('Task is done'), $doneresult);
}
}
}