本文整理汇总了PHP中task::getStatusName方法的典型用法代码示例。如果您正苦于以下问题:PHP task::getStatusName方法的具体用法?PHP task::getStatusName怎么用?PHP task::getStatusName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::getStatusName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
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
if ($taskInst->body != "") {
?>
<tr class="light">
<td><?php
echo $lang['common_body'];
?>
</td>
<td><?php
echo ereg_replace("\n", "<br>", $taskInst->body);
?>
</td>
</tr>
示例2: current
?>
</select></td>
</tr><tr>
<td><?php
echo $lang['common_status'];
?>
: </td>
<td><select name="statusid">
<?php
$list = $taskInst->getStatusList();
while ($element = current($list)) {
$selected = "";
if ($element == $taskInst->statusId) {
$selected = "selected";
}
echo "<option " . $selected . " value=\"" . $element . "\">" . $taskInst->getStatusName($element) . "\n";
next($list);
}
?>
</select></td>
</tr>
<tr><td> </td>
<?php
if ($recordType == "edit") {
?>
<td colspan="2"><input type="submit" value="<?php
echo $lang['common_save'];
?>
" onclick="document.form1.action.value='update'"><input type="reset" value="<?php
echo $lang['common_reset'];
?>
示例3: next
next($list);
}
ksort($listByHour);
while (list($diff, $id) = each($listByHour)) {
$taskInst->activate($id);
?>
<tr class="light" onmouseover="this.style.backgroundColor='#fafafa'" onmouseout="this.style.backgroundColor=''"><?php
$projectInst = new project($taskInst->projectId);
echo "<td><nobr><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=projectdetails.php&view=details&projectid=" . $projectInst->id) . "',width='500',height='500')\" title=\"show details for this project\">" . $projectInst->name . "</a></nobr></td>\n";
if ($loginInst->hasAccess("task.viewOther")) {
$userInst = new user($taskInst->userId);
echo "<td><nobr>" . $userInst->username . "</nobr></td>\n";
}
echo "<td><nobr><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $id) . "',width='500',height='500')\" title=\"show details for this task\">" . $taskInst->subject . "</a></nobr></td>\n";
echo "<td><nobr class=" . $taskInst->getPriorityStyle() . ">" . $taskInst->getPriorityName() . "</nobr></td>\n";
echo "<td><nobr class=" . $taskInst->getStatusStyle() . ">" . $taskInst->getStatusName() . "</nobr></td>\n";
echo "<td align=\"right\"><nobr>" . $toolInst->formatTime($taskInst->getSummary()) . "</nobr></td>\n";
echo "<td align=\"right\"><nobr>" . $taskInst->plannedHours . " h</nobr></td>\n";
if (!$taskInst->isDone()) {
$percent = $toolInst->numberRound($taskInst->getSummary() * 100 / ($taskInst->plannedHours * 60 * 60), 2);
$diffHours = $toolInst->formatTime($diff);
if ($percent > 100) {
// alert: we've exceeded the scheduled planned hours
echo "<td align=\"right\" class=\"rmred\">" . $diffHours . "</td>\n";
echo "<td align=\"right\" class=\"rmred\">" . $percent . " %</td>\n";
} elseif ($percent > 80) {
// warn: less than 3 hours left
echo "<td align=\"right\" class=\"rmyellow\">" . $diffHours . "</td>\n";
echo "<td align=\"right\" class=\"rmyellow\">" . $percent . " %</td>\n";
} else {
echo "<td align=\"right\" class=\"rmgreen\">" . $diffHours . "</td>\n";
示例4: current
</tr><tr>
<td><?php
echo $lang['common_status'];
?>
: </td>
<td><select name="filterstatusid"><option value=""><?php
echo $lang['common_notSpecified'];
?>
<?php
$list = $taskInst->getStatusList();
while ($element = current($list)) {
$selected = "";
if ($element == tool::securePost('filterstatusid')) {
$selected = "selected";
}
echo "<option " . $selected . " value=\"" . $element . "\">" . $taskInst->getStatusName($element) . "\n";
next($list);
}
?>
</select>
<input type="checkbox" name="filterinvertstatus" value="1" <?php
if (tool::securePost('filterinvertstatus')) {
echo "checked";
}
?>
class="checkbox"> <?php
echo $lang['common_invert'];
?>
</tr><tr>
<td><?php
echo $lang['common_orderBy'];