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


PHP request::getTypeStyle方法代码示例

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


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

示例1:

?>
</td>
    <td class="<?php 
echo $requestInst->getPriorityStyle();
?>
"><?php 
echo $requestInst->getPriorityName();
?>
</td>
  </tr><tr>
    <td class="list"><?php 
echo $lang['common_type'];
?>
</td>
    <td class="<?php 
echo $requestInst->getTypeStyle();
?>
"><?php 
echo $requestInst->getTypeName();
?>
</td>
  </tr><tr>
    <td class="list"><?php 
echo $lang['common_posted'];
?>
</td>
    <td class="list"><?php 
echo $toolInst->getTime("", $requestInst->time);
?>
</td>
  </tr>
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:requestdetails.php

示例2: substr

    echo "<td>" . $projectInst->name . "</td>\n";
    echo "<td><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=requestdetails.php&view=details&requestid=" . $element) . "',width='500',height='500')\" title=\"" . $lang['common_showDetailsForThisRequest'] . "\">" . $requestInst->subject . "</a></td>\n";
    echo "<td>";
    if ($requestInst->body) {
        echo substr($requestInst->body, 0, 100);
    }
    echo "&nbsp;</td>\n";
    echo "<td>\n";
    while ($r = current($requestInst->attachments)) {
        $attachment = new attachment($r);
        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($requestInst->attachments);
    }
    echo "</td>\n";
    echo "<td><nobr class=" . $requestInst->getPriorityStyle() . ">" . $requestInst->getPriorityName() . "</td>\n";
    echo "<td><nobr class=" . $requestInst->getTypeStyle() . ">" . $requestInst->getTypeName() . "</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>
开发者ID:pmtool,项目名称:pmtool,代码行数:30,代码来源:requests.php

示例3: request

    $requestInst = new request();
    $list = $requestInst->getList("priority", "DESC");
    if ($requestInst->matches > 0) {
        $count = 0;
        $boxInst = new box();
        $boxInst->setTitle($lang['home_unassignedRequests']);
        $boxInst->setWidth("300");
        $boxInst->setBgColor("#f8f8f8");
        $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)) {
            $requestInst->activate($element);
            $projectInst = new project($requestInst->projectId);
            if ($loginInst->id == $projectInst->managerId) {
                $boxInst->addContent("<tr><td valign=top class=" . $requestInst->getPriorityStyle() . ">" . $requestInst->getPriorityName() . "</td>");
                $boxInst->addContent("<td valign=top class=" . $requestInst->getTypeStyle() . ">" . $requestInst->getTypeName() . "</td>");
                $boxInst->addContent("<td class=list><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=requestdetails.php&view=details&requestid=" . $element) . "',width='500',height='500')\" title=\"" . $lang['common_showDetailsForThisRequest'] . "\">");
                $boxInst->addContent(substr($projectInst->name . ": " . $requestInst->subject, 0, 50));
                $boxInst->addContent("...</a></td></tr>");
                $count++;
            }
            next($list);
        }
        $boxInst->addContent("</table>");
        if ($count == 0) {
            $boxInst->clearContent();
            $boxInst->addContent($lang['home_unassignedRequestsNoMatches']);
        }
        $boxInst->get();
    }
}
开发者ID:pmtool,项目名称:pmtool,代码行数:31,代码来源:home.php


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