本文整理匯總了PHP中box::setWidth方法的典型用法代碼示例。如果您正苦於以下問題:PHP box::setWidth方法的具體用法?PHP box::setWidth怎麽用?PHP box::setWidth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類box
的用法示例。
在下文中一共展示了box::setWidth方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: request
}
$boxInst->get();
}
?>
<br>
<?php
// create box with requests
if ($loginInst->hasAccess("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);