当前位置: 首页>>代码示例>>PHP>>正文


PHP FormOther::selectProjectTasks方法代码示例

本文整理汇总了PHP中FormOther::selectProjectTasks方法的典型用法代码示例。如果您正苦于以下问题:PHP FormOther::selectProjectTasks方法的具体用法?PHP FormOther::selectProjectTasks怎么用?PHP FormOther::selectProjectTasks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormOther的用法示例。


在下文中一共展示了FormOther::selectProjectTasks方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

 if (empty($withproject)) {
     print '<tr><td>' . $langs->trans("Project") . '</td><td colspan="3">';
     print $projectstatic->getNomUrl(1);
     print '</td></tr>';
     // Third party
     print '<td>' . $langs->trans("ThirdParty") . '</td><td colspan="3">';
     if ($projectstatic->societe->id) {
         print $projectstatic->societe->getNomUrl(1);
     } else {
         print '&nbsp;';
     }
     print '</td></tr>';
 }
 // Task parent
 print '<tr><td>' . $langs->trans("ChildOfTask") . '</td><td>';
 print $formother->selectProjectTasks($object->fk_task_parent, $projectstatic->id, 'task_parent', $user->admin ? 0 : 1, 0, 0, 0, $object->id);
 print '</td></tr>';
 // Date start
 print '<tr><td>' . $langs->trans("DateStart") . '</td><td>';
 print $form->select_date($object->date_start, 'dateo', 1, 1);
 print '</td></tr>';
 // Date end
 print '<tr><td>' . $langs->trans("DateEnd") . '</td><td>';
 print $form->select_date($object->date_end ? $object->date_end : -1, 'datee', 1, 1);
 print '</td></tr>';
 // Planned workload
 print '<tr><td>' . $langs->trans("PlannedWorkload") . '</td><td>';
 print $form->select_duration('planned_workload', $object->planned_workload, 0, 'text');
 print '</td></tr>';
 // Progress declared
 print '<tr><td>' . $langs->trans("ProgressDeclared") . '</td><td colspan="3">';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:task.php

示例2:

	print '<form action="'.$_SERVER['PHP_SELF'].'" method="POST">';
	print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
	print '<input type="hidden" name="action" value="createtask">';
	if ($_GET['id'])   print '<input type="hidden" name="id" value="'.$_GET['id'].'">';
	if ($_GET['mode']) print '<input type="hidden" name="mode" value="'.$_GET['mode'].'">';

	print '<table class="border" width="100%">';

	print '<tr><td class="fieldrequired">'.$langs->trans("Label").'</td><td>';
	print '<input type="text" size="25" name="label" class="flat" value="'.$_POST["label"].'">';
	print '</td></tr>';

	// List of projects
	print '<tr><td class="fieldrequired">'.$langs->trans("ChildOfTask").'</td><td>';
	print $formother->selectProjectTasks('',$projectid?$projectid:$_GET["id"], 'task_parent', 0, 0, 1, 1);
	print '</td></tr>';

	print '<tr><td>'.$langs->trans("AffectedTo").'</td><td>';
	print $form->select_users($user->id,'userid',1);
	print '</td></tr>';

	// Date start
	print '<tr><td>'.$langs->trans("DateStart").'</td><td>';
	print $form->select_date(($date_start?$date_start:''),'dateo',0,0,0,'',1,1);
	print '</td></tr>';

	// Date end
	print '<tr><td>'.$langs->trans("DateEnd").'</td><td>';
	print $form->select_date(($date_end?$date_end:-1),'datee',0,0,0,'',1,1);
	print '</td></tr>';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:tasks.php

示例3:

     require_once DOL_DOCUMENT_ROOT . "/core/modules/project/task/" . $conf->global->PROJECT_TASK_ADDON . '.php';
     $modTask = new $obj();
     $defaultref = $modTask->getNextValue($soc, $object);
 }
 if (is_numeric($defaultref) && $defaultref <= 0) {
     $defaultref = '';
 }
 // Ref
 print '<input type="hidden" name="ref" value="' . ($_POST["ref"] ? $_POST["ref"] : $defaultref) . '">';
 print '<tr><td><span class="fieldrequired">' . $langs->trans("Ref") . '</span></td><td>' . ($_POST["ref"] ? $_POST["ref"] : $defaultref) . '</td></tr>';
 print '<tr><td class="fieldrequired">' . $langs->trans("Label") . '</td><td>';
 print '<input type="text" size="25" name="label" class="flat" value="' . $label . '">';
 print '</td></tr>';
 // List of projects
 print '<tr><td class="fieldrequired">' . $langs->trans("ChildOfTask") . '</td><td>';
 print $formother->selectProjectTasks(GETPOST('task_parent'), $projectid ? $projectid : $object->id, 'task_parent', 0, 0, 1, 1);
 print '</td></tr>';
 print '<tr><td>' . $langs->trans("AffectedTo") . '</td><td>';
 $contactsofproject = !empty($object->id) ? $object->getListContactId('internal') : '';
 $form->select_users($user->id, 'userid', 0, '', 0, '', $contactsofproject);
 print '</td></tr>';
 // Date start
 print '<tr><td>' . $langs->trans("DateStart") . '</td><td>';
 print $form->select_date($date_start ? $date_start : '', 'dateo', 1, 1, 0, '', 1, 1);
 print '</td></tr>';
 // Date end
 print '<tr><td>' . $langs->trans("DateEnd") . '</td><td>';
 print $form->select_date($date_end ? $date_end : -1, 'datee', 1, 1, 0, '', 1, 1);
 print '</td></tr>';
 // planned workload
 print '<tr><td>' . $langs->trans("PlannedWorkload") . '</td><td>';
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:tasks.php

示例4: _get

function _get(&$db, $case)
{
    global $conf;
    switch ($case) {
        case 'logged-status':
            echo 'ok';
            break;
        case 'tasks':
            $onlyUseGrid = isset($_REQUEST['gridMode']) && $_REQUEST['gridMode'] == 1 && empty($conf->global->SCRUM_ALLOW_ALL_TASK_IN_GRID) ? true : false;
            $var = explode('|', GETPOST('status'));
            $Tab = array();
            foreach ($var as $statut) {
                $Tab = array_merge($Tab, _tasks($db, (int) GETPOST('id_project'), $statut, $onlyUseGrid));
            }
            print json_encode($Tab);
            break;
        case 'task-ordo-simulation':
            if ($conf->workstation->enabled) {
                define('INC_FROM_DOLIBARR', true);
                dol_include_once('/workstation/config.php');
                $PDOdb = new TPDOdb();
                $TWorkstation = TWorkstation::getWorstations($PDOdb, true);
            } else {
                print 'module non configuré';
                exit;
            }
            $type_object = GETPOST('type_object');
            $TTaskObject = $type_object == 'propal' ? _task_propal($db, GETPOST('fk_object')) : _task_commande($db, GETPOST('fk_object'));
            $Tab = ordonnanceur(array_merge(_tasks_ordo($db, $TWorkstation, 'inprogress|todo', 0), $TTaskObject), $TWorkstation, 0, false);
            $time_max = 0;
            foreach ($Tab['tasks'] as &$task) {
                if ($task['time_estimated_end'] > $time_max) {
                    $time_max = (int) $task['time_estimated_end'];
                }
            }
            if ($type_object == 'propal') {
                print dol_print_date($time_max + $conf->global->SCRUM_TIME_MORE_PREVISION_PROPAL * 86400, 'day');
            } else {
                print dol_print_date($time_max + $conf->global->SCRUM_TIME_MORE_PREVISION * 86400, 'day');
            }
            break;
        case 'tasks-ordo':
            $TWorkstation = array(0 => array('nb_ressource' => 1, 'velocity' => 1, 'background' => 'linear-gradient(to right,white, #ccc)', 'name' => 'Non ordonnancé'));
            if ($conf->workstation->enabled) {
                define('INC_FROM_DOLIBARR', true);
                dol_include_once('/workstation/config.php');
                $PDOdb = new TPDOdb();
                $TWorkstation = TWorkstation::getWorstations($PDOdb, true, false, $TWorkstation);
            }
            //     var_dump($TWorkstation);
            $Tab = ordonnanceur(_tasks_ordo($db, $TWorkstation, GETPOST('status'), GETPOST('fk_workstation')), $TWorkstation, (int) GETPOST('fk_workstation'));
            if (!empty($conf->global->SCRUM_LINK_EVENT_TO_TASK)) {
                ordonnanceur_link_event($Tab);
            }
            print json_encode($Tab);
            break;
        case 'task':
            print json_encode(_task($db, (int) GETPOST('id')));
            break;
        case 'velocity':
            print json_encode(_velocity($db, (int) GETPOST('id_project')));
            break;
        case 'select-task':
            dol_include_once('/core/class/html.formother.class.php');
            $formother = new FormOther($db);
            //selectProjectTasks($selectedtask='', $projectid=0, $htmlname='task_parent', $modeproject=0, $modetask=0, $mode=0, $useempty=0, $disablechildoftaskid=0)
            echo $formother->selectProjectTasks(GETPOST('fk_task'), GETPOST('fk_project'), 'fk_project_task', 0, 1, 0, 1);
            break;
    }
}
开发者ID:ATM-Consulting,项目名称:dolibarr_module_scrumboard,代码行数:70,代码来源:interface.php


注:本文中的FormOther::selectProjectTasks方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。