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


PHP task::treeName方法代码示例

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


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

示例1: implode

    <th><?php 
echo $lang['common_project'];
?>
</th>
    <th><?php 
echo $projectInst->name;
?>
</th>
  </tr><tr>
    <th><?php 
echo $lang['tasks_depends'];
?>
</th>
    <th>/<?php 
if ($taskInst->mountId != "0") {
    echo "<a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $taskInst->mountId) . "\" title=\"" . $lang['tasks_parentTask'] . "\">" . implode("/", $taskInst->treeName($taskInst->mountId)) . "</a>\n";
}
?>
    </th>
  </tr>
  <?php 
$childs = $taskInst->childs();
if (count($childs) > 0) {
    echo "<tr><th valign=\"top\" rowspan=\"" . count($childs) . "\">child tasks</th><th>\n";
    $childTask = new task(current($childs));
    echo "<a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $childTask->id) . "\" title=\"" . $lang['tasks_childTask'] . " 1\">" . substr($childTask->subject, 0, 40) . "</a></th></tr>\n";
    next($childs);
    $i = 2;
    while ($element = current($childs)) {
        $childTask = new task(current($childs));
        echo "<tr><th><a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $childTask->id) . "\" title=\"" . $lang['tasks_childTask'] . " " . $i . "\">" . substr($childTask->subject, 0, 40) . "</a></th></tr>\n";
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:taskdetails.php

示例2: implode

                echo "<option value=\"" . $element . "\">/ " . implode(" / ", $taskInst->treeName($element)) . "\n";
            }
        }
        next($list);
    }
    if (!in_array("0", $seen)) {
        echo "<option value=\"0\"> /\n";
    }
} else {
    ?>
<option value="0">/<?php 
    $taskInst2 = new task();
    $taskInst2->filterProjectId = $projectMount;
    $list = $taskInst2->getList();
    while ($element = current($list)) {
        echo "<option value=\"" . $element . "\">/ " . implode(" / ", $taskInst2->treeName($element)) . "\n";
        next($list);
    }
}
?>
          </select>
          </td>
        </tr><tr>
          <td><?php 
echo $lang['common_subject'];
?>
:&nbsp;</td>
          <td><input type="text" name="subject" value="<?php 
echo $taskInst->subject;
?>
" size="<?php 
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:tasks.php


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