本文整理汇总了PHP中CAdminList::Display方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList::Display方法的具体用法?PHP CAdminList::Display怎么用?PHP CAdminList::Display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminList
的用法示例。
在下文中一共展示了CAdminList::Display方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unserialize
<?
if(strlen($arResult["modules"]["#"]["navData"][0]["#"]) > 0)
{
$dat = unserialize($arResult["modules"]["#"]["navData"][0]["#"]);
if(IntVal($dat["NavPageCount"]) > 1)
{
$dbRes = new CDBResult;
foreach($dat as $k => $v)
$dbRes->{$k} = $v;
$dbResultList = new CAdminResult($dbRes, $sTableID);
$dbResultList->NavRecordCountChangeDisable = true;
$dbResultList->NavPrint(GetMessage("USM_NAV"));
}
}
$lAdmin->EndCustomContent();
if($_REQUEST["mode"]=='list' || $_REQUEST["mode"]=='frame')
{
$APPLICATION->RestartBuffer();
$lAdmin->Display();
define("ADMIN_AJAX_MODE", true);
require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_admin_after.php");
die();
}
$lAdmin->DisplayList();
}
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
?>
示例2: ShowTable
function ShowTable($aMenu)
{
$sTableID = "module_index_table";
// List init
$lAdmin = new CAdminList($sTableID);
// List headers
$lAdmin->AddHeaders(array(
array("id"=>"NAME", "content"=>GetMessage("admin_lib_index_name"), "default"=>true),
array("id"=>"DESCRIPTION", "content"=>GetMessage("admin_lib_index_desc"), "default"=>true),
));
$n = 0;
foreach($aMenu["items"] as $submenu)
{
// Populate list with data
if(!$submenu)
continue;
$row = &$lAdmin->AddRow(0, null, $submenu["url"], GetMessage("admin_lib_index_go"));
$row->AddField("NAME", '<a href="'.$submenu["url"].'" title="'.$submenu["title"].'">'.$submenu["text"].'</a>');
$row->AddField("DESCRIPTION", $submenu["title"]);
$n++;
}
$lAdmin->Display();
echo '
<script>
'.$sTableID.'.InitTable();
</script>
';
}
示例3: ShowTable
function ShowTable($aMenu)
{
$sTableID = "module_index_table";
// List init
$lAdmin = new CAdminList($sTableID);
// List headers
$lAdmin->AddHeaders(array(
array("id"=>"NAME", "content"=>GetMessage("admin_lib_index_name"), "default"=>true),
array("id"=>"DESCRIPTION", "content"=>GetMessage("admin_lib_index_desc"), "default"=>true),
));
$n = 0;
foreach($aMenu["items"] as $submenu)
{
// Populate list with data
if(!$submenu)
continue;
$row = &$lAdmin->AddRow(0, null, $submenu["url"], GetMessage("admin_lib_index_go"));
$row->AddField("NAME", '<div class="index-table" id="'.($submenu["icon"]<>""? $submenu["icon"]:$aMenu["icon"]).'"><a href="'.$submenu["url"].'" title="'.$submenu["title"].'">'.$submenu["text"].'</a></div>');
$row->AddField("DESCRIPTION", $submenu["title"]);
$n++;
}
// List footer
$lAdmin->AddFooter(
array(
array(
"title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"),
"value" => $n
)
)
);
$lAdmin->Display();
echo '
<script>
'.$sTableID.'.InitTable();
</script>
';
}