本文整理汇总了PHP中Portlet::renderContent方法的典型用法代码示例。如果您正苦于以下问题:PHP Portlet::renderContent方法的具体用法?PHP Portlet::renderContent怎么用?PHP Portlet::renderContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Portlet
的用法示例。
在下文中一共展示了Portlet::renderContent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderViewForAgreementWithAgmntProduct
protected function renderViewForAgreementWithAgmntProduct(Portlet $portlet)
{
if ($this->params['relationModel']->modelClassNameToBean['Agreement']->id != null) {
$id = $this->params['relationModel']->modelClassNameToBean['Agreement']->id;
$data = $this::getAllAgreementProducts($this->params['relationModel']->modelClassNameToBean['Agreement']->id);
if (count($data) > 0) {
$content = $portlet->renderContent();
$tableCreation = '<div class="view-toolbar-container clearfix"><div class="panel"><div class="panelTitle">Agreement Products</div>';
//$tableCreation .= '<div><table style="padding-left: 3%; text-align: right; vertical-align: top;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="pbTitle"> </td><td id="thePage:theTable:theSelectedBlock:j_id3" class="pbButton "><input type="submit" name="thePage:theTable:theSelectedBlock:j_id3:j_id5" value="Estimator Summary" onclick="top.location.replace(\'/apex/OpportunitProductsSummary?id=006j000000Ljedx\');return false;" class="btn"></td></tr></tbody></table></div>';
//$tableCreation .= '<div class="form-toolbar clearfix"><a id="addProduct" name="Add Products" class="attachLoading z-button" href="/app/index.php/agreementProducts/default/AddProductsInAgreement?optId='.$id.'"><span class="z-spinner"></span><span class="z-icon"></span><span class="z-label">Add Product</span></a><div class="post-to-profile clearfix"> <a id="estimateSummary" name="Estimate Summary" class="attachLoading z-button" onclick="/" href="#"><span class="z-spinner"></span><span class="z-icon"></span><span class="z-label">Estimate Summary</span></a></div></div>';
$tableCreation .= '<table style="padding-left: 3%; text-align: right; vertical-align: top;" border="0" cellpadding="2" cellspacing="0" width="100%">
<colgroup span="5"></colgroup>';
$tableCreation .= '<thead style="font-weight: bold; background-color:#E6E6E6; color: #999; vertical-align: inherit; padding: 5px;"><th style="font-weight: bold;">Product Code</th><th style="font-weight: bold;">Product</th><th style="font-weight: bold;">Quantity</th><th style="font-weight: bold;">Frequency</th><th style="font-weight: bold;">Unit of Measure</th></thead><tbody>';
foreach ($data as $row) {
$tableCreation .= '<tr><td style="width: 20%; padding-top: 2px; text-align: left;">' . $row['name'] . '</td><td style="width: 40%; padding-top: 2px; text-align: left;">' . $row['name'] . '</td><td style="width: 13%; padding-top: 2px; text-align: center;">' . $row['quantity'] . '</td><td style="width: 13%; padding-top: 2px; text-align: center;">' . $row['frequency'] . '</td><td style="width: 14%; padding-top: 2px; text-align: center;">' . $row['total_mhr'] . '</td></tr>';
}
$tableCreation .= '</tbody></table></div></div>';
$content .= $tableCreation;
return $content;
} else {
return $portlet->renderContent();
}
} else {
return $portlet->renderContent();
}
}