本文整理匯總了PHP中Datatable::getHTML方法的典型用法代碼示例。如果您正苦於以下問題:PHP Datatable::getHTML方法的具體用法?PHP Datatable::getHTML怎麽用?PHP Datatable::getHTML使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Datatable
的用法示例。
在下文中一共展示了Datatable::getHTML方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$tblsp->setName($Tablespacename);
$tblsp->getData();
$data = array();
if (is_array($tblsp->data)) {
foreach ($tblsp->data as $name => $val) {
$data[] = array("Tag" => $name, "Value" => $val);
}
}
unset($tblsp);
$tbl = new Datatable($Server);
$tbl->setSorting(0);
$tbl->setData($data);
unset($data);
$tbl->setColorToggle(1);
$tbl->renderHTML();
$html .= $tbl->getHTML();
unset($tbl);
}
// end switch submode
break;
case "datafiles":
switch ($submode) {
default:
$tbl = new DataTable($Server);
$tbl->setSql(sprintf("SELECT file_name \"Filename\", bytes / 1024 \"Kilobytes\", " . "status \"Status\" FROM dba_data_files WHERE tablespace_name = '%s' " . "ORDER BY file_name", $Tablespacename));
$tbl->setSorting(1);
$tbl->setSort($Sortfield, $Sortorder);
$tbl->loadData();
$tbl->setColorToggle(1);
if ($CF->get("ENABLE_DATAFILES")) {
$tbl->setDataLink("Filename", "datafile_detail.php?Server={$Server}&Datafilename=\$value&" . "Tablespacename={$Tablespacenameurl}&" . SID);