當前位置: 首頁>>代碼示例>>PHP>>正文


PHP task::getTypeName方法代碼示例

本文整理匯總了PHP中task::getTypeName方法的典型用法代碼示例。如果您正苦於以下問題:PHP task::getTypeName方法的具體用法?PHP task::getTypeName怎麽用?PHP task::getTypeName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在task的用法示例。


在下文中一共展示了task::getTypeName方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

echo $taskInst->getPriorityStyle();
?>
"><?php 
echo $taskInst->getPriorityName();
?>
</span></td>
  </tr><tr class="light">
    <td><?php 
echo $lang['common_type'];
?>
</td>
    <td><span class="<?php 
echo $taskInst->getTypeStyle();
?>
"><?php 
echo $taskInst->getTypeName();
?>
</span></td>
  </tr><tr class="light">
    <td><?php 
echo $lang['common_status'];
?>
</td>
    <td><span class="<?php 
echo $taskInst->getStatusStyle();
?>
"><?php 
echo $taskInst->getStatusName();
?>
</span></td>
  <?php 
開發者ID:pmtool,項目名稱:pmtool,代碼行數:31,代碼來源:taskdetails.php

示例2: current

          </select></td>
        </tr>
        <tr>
          <td><?php 
echo $lang['common_type'];
?>
:&nbsp;</td>
          <td><select name="typeid">
            <?php 
$list = $taskInst->getTypeList();
while ($element = current($list)) {
    $selected = "";
    if ($element == $taskInst->typeId) {
        $selected = "selected";
    }
    echo "<option " . $selected . " value=\"" . $element . "\">" . $taskInst->getTypeName($element) . "\n";
    next($list);
}
?>
          </select></td>
        </tr><tr>
          <td><?php 
echo $lang['common_status'];
?>
:&nbsp;</td>
          <td><select name="statusid">
            <?php 
$list = $taskInst->getStatusList();
while ($element = current($list)) {
    $selected = "";
    if ($element == $taskInst->statusId) {
開發者ID:pmtool,項目名稱:pmtool,代碼行數:31,代碼來源:tasks.php

示例3: while

 echo "<th><a href=\"" . $toolInst->encodeUrl("index.php?content=projectdetails.php&view=details&projectid=" . $projectInst->id . "&order=priority&desc=" . $desc) . "\" title=\"" . $lang['common_orderByPriority'] . "\">" . $lang['common_priority'] . "</a></th>\n";
 echo "<th><a href=\"" . $toolInst->encodeUrl("index.php?content=projectdetails.php&view=details&projectid=" . $projectInst->id . "&order=type&desc=" . $desc) . "\" title=\"" . $lang['common_orderByType'] . "\">" . $lang['common_type'] . "</a></th>\n";
 echo "<th><a href=\"" . $toolInst->encodeUrl("index.php?content=projectdetails.php&view=details&projectid=" . $projectInst->id . "&order=status&desc=" . $desc) . "\" title=\"" . $lang['common_orderByStatus'] . "\">" . $lang['common_status'] . "</a></th>\n";
 echo "<th>" . $lang['common_usedTime'] . "</th>\n";
 $sum = 0;
 $sum_private = 0;
 $costs = 0;
 $costs_private = 0;
 $customerSum = 0;
 $customerCosts = 0;
 while ($element = current($list)) {
     $taskInst->activate($element);
     echo "<tr class=\"light\"><td class=list><nobr><a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $taskInst->id) . "\" title=\"" . $lang['common_showTaskdetails'] . "\">" . substr($taskInst->subject, 0, 15) . "</a></nobr></td>\n";
     echo "<td class=list><nobr>" . $toolInst->getTime("d.m.Y, H:i", $taskInst->time) . "</nobr></td>\n";
     echo "<td><nobr class=" . $taskInst->getPriorityStyle() . ">" . $taskInst->getPriorityName() . "</nobr></td>\n";
     echo "<td><nobr class=" . $taskInst->getTypeStyle() . ">" . $taskInst->getTypeName() . "</nobr></td>\n";
     echo "<td><nobr class=" . $taskInst->getStatusStyle() . ">" . $taskInst->getStatusName() . "</nobr></td>\n";
     echo "<td class=list align=right><nobr>" . $toolInst->formatTime($taskInst->getSummary()) . "</nobr></td></tr>\n";
     $sum += $taskInst->getSummary();
     $sum_private += $taskInst->getSummary(true);
     $costs += $taskInst->getCosts();
     $costs_private += $taskInst->getCosts(true);
     $customerCosts += $taskInst->getCustomerCosts();
     $customerSum += $taskInst->getCustomerSummary();
     next($list);
 }
 echo "<tr><td class=list colspan=6>&nbsp;</td></tr>\n";
 echo "<tr>\n";
 echo "<td class=list colspan=4 align=right><b>" . $lang['common_summaryTime'] . " : </b></td>\n";
 echo "<td class=list colspan=2 align=right><nobr><b>" . $toolInst->formatTime($sum) . "</b></nobr></td>\n";
 echo "</tr>\n";
開發者ID:pmtool,項目名稱:pmtool,代碼行數:31,代碼來源:projectdetails.php

示例4: box

    $taskInst->filterInvertStatus = 1;
    $taskInst->filterUserId = $loginInst->id;
    $list = $taskInst->getList("priority", "DESC");
    $boxInst = new box();
    $boxInst->setTitle($lang['home_myOpenTasks']);
    $boxInst->setBgColor("#f8f8f8");
    if ($taskInst->matches > 0) {
        $boxInst->addContent("<table border=0 cellpadding=2 cellspacing=0 width=100%>");
        $boxInst->addContent("<tr><th>" . $lang['common_priority'] . "</th><th>" . $lang['common_type'] . "</th><th>" . $lang['common_subject'] . "</th></tr>");
        while ($element = current($list)) {
            $taskInst->activate($element);
            $projectInst = new project($taskInst->projectId);
            if ($projectInst->isAvailable()) {
                $projectInst = new project($taskInst->projectId);
                $boxInst->addContent("<tr><td valign=top class=" . $taskInst->getPriorityStyle() . ">" . $taskInst->getPriorityName() . "</td>");
                $boxInst->addContent("<td valign=top class=" . $taskInst->getTypeStyle() . ">" . $taskInst->getTypeName() . "</td>");
                $boxInst->addContent("<td class=list><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $element) . "',width='500',height='500')\" title=\"" . $lang['common_showTaskdetails'] . "\">");
                $boxInst->addContent(substr($projectInst->name . ": " . $taskInst->subject, 0, 50));
                $boxInst->addContent("...</a></td></tr>");
            }
            next($list);
        }
        $boxInst->addContent("</table>");
    } else {
        $boxInst->addContent("<b>" . $lang['home_myOpenTasksNoMatches'] . "<br>&nbsp;");
    }
    $boxInst->get();
}
?>
      <br>
開發者ID:pmtool,項目名稱:pmtool,代碼行數:30,代碼來源:home.php

示例5: current

        </tr><tr>
          <td><?php 
echo $lang['common_type'];
?>
:&nbsp;</td>
          <td><select name="filtertypeid"><option value=""><?php 
echo $lang['common_notSpecified'];
?>
            <?php 
$list = $taskInst->getTypeList();
while ($element = current($list)) {
    $selected = "";
    if ($element == tool::securePost('filtertypeid')) {
        $selected = "selected";
    }
    echo "<option " . $selected . " value=\"" . $element . "\">" . $taskInst->getTypeName($element) . "\n";
    next($list);
}
?>
          </select></td>
        </tr><tr>
          <td><?php 
echo $lang['common_status'];
?>
:&nbsp;</td>
          <td><select name="filterstatusid"><option value=""><?php 
echo $lang['common_notSpecified'];
?>
            <?php 
$list = $taskInst->getStatusList();
while ($element = current($list)) {
開發者ID:pmtool,項目名稱:pmtool,代碼行數:31,代碼來源:reports.php


注:本文中的task::getTypeName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。