本文整理汇总了PHP中task::getTypeStyle方法的典型用法代码示例。如果您正苦于以下问题:PHP task::getTypeStyle方法的具体用法?PHP task::getTypeStyle怎么用?PHP task::getTypeStyle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::getTypeStyle方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</td>
<td><span class="<?php
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();
示例2: 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> ");
}
$boxInst->get();
}
?>
<br>
示例3: while
echo " </td>\n";
echo "<td>\n";
while ($a = current($taskInst->attachments)) {
$attachment = new attachment($a);
echo "<a href=\"" . tool::encodeUrl("fileget.php?created=" . $attachment->created . "&filename=" . $attachment->name) . "\" title=\"" . $lang['common_open'] . " " . $attachment->name . " " . $lang['common_inANewWindow'] . "\">" . $attachment->name . "</a><br>\n";
next($taskInst->attachments);
}
echo "</td>\n";
echo "<td><nobr>" . $toolInst->getTime("d.m.Y, H:i", $taskInst->time) . "</nobr></td>\n";
$finish = "";
if ($taskInst->finish != 0) {
$finish = $toolInst->getTime("d.m.Y, H:i", $taskInst->finish);
}
echo "<td><nobr>" . $finish . "</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 align=center><input type=submit value=" . $lang['common_delete'] . " onclick=\"document.form1.id.value='" . $element . "';document.form1.action.value='delete';return Check()\"></td>\n";
echo "<td align=center><input type=submit value=" . $lang['common_edit'] . " onclick=\"document.form1.id.value='" . $element . "';document.form1.action.value='edit'\"></td>\n";
echo "</tr>\n";
next($list);
if ($style == "light") {
$style = "dark";
} else {
$style = "light";
}
}
?>
</table>
</form>
示例4: project
}
// is >= 0 because we need to display task even if no job (maybe hidden
// private jobs
if ($jobInst->matches >= 0 || $fixed) {
$projectInst = new project($taskInst->projectId);
// write task details to xml file
$reportInst->append(" <task>");
$reportInst->append($toolInst->encodeXml(" <project>" . $projectInst->name . "</project>"));
$reportInst->append($toolInst->encodeXml(" <subject>" . substr($taskInst->subject, 0, 50) . "</subject>"));
$reportInst->append($toolInst->encodeXml(" <body>" . substr($taskInst->body, 0, 200) . "</body>"));
$reportInst->append(" <user>" . $userInst->username . "</user>");
$reportInst->append(" <time>" . $toolInst->getTime("d.m.Y, H:i", $taskInst->time) . "</time>");
$reportInst->append(" <priority>" . $taskInst->getPriorityName() . "</priority>");
$reportInst->append(" <prioritystyle>" . $taskInst->getPriorityStyle() . "</prioritystyle>");
$reportInst->append(" <type>" . $taskInst->getTypeName() . "</type>");
$reportInst->append(" <typestyle>" . $taskInst->getTypeStyle() . "</typestyle>");
$reportInst->append(" <status>" . $taskInst->getStatusName() . "</status>");
$reportInst->append(" <statusstyle>" . $taskInst->getStatusStyle() . "</statusstyle>");
echo "<tr class=\"light\">";
if ($loginInst->hasAccess("report.viewOther")) {
$userInst = new user($taskInst->userId);
echo "<td class=list>" . $userInst->username . "</td>";
}
echo "<td class=list>" . $projectInst->name . "</td>";
echo "<td class=list>" . substr($taskInst->subject, 0, 50) . "...</td>";
echo "<td class=list>";
if ($taskInst->body) {
echo substr($taskInst->body, 0, 200) . "...";
}
echo " </td>";
echo "<td class=list><nobr>" . $toolInst->getTime("d.m.Y, H:i", $taskInst->time) . "</nobr></td>";