本文整理匯總了PHP中HTMLTable::addColRowspan方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTMLTable::addColRowspan方法的具體用法?PHP HTMLTable::addColRowspan怎麽用?PHP HTMLTable::addColRowspan使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HTMLTable
的用法示例。
在下文中一共展示了HTMLTable::addColRowspan方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: rolesPopup
public function rolesPopup($UserID)
{
echo "<p class=\"highlight\">Die Rollen fassen mehrere Berechtigungen aus unterschiedlichen Plugins zusammen.</p><div style=\"max-height:400px;overflow:auto;\">";
$ps = $_SESSION["CurrentAppPlugins"]->getAllPlugins();
foreach ($this->roles() as $R => $O) {
$T = new HTMLTable(3, $R);
$T->weight("light");
$T->setColWidth(1, 70);
$T->setColWidth(3, 30);
$i = 0;
foreach ($O as $c => $s) {
if ($c == "cantEdit" or $c == "cantDelete" or $c == "cantCreate") {
foreach ($s as $p) {
if ($p == "WAdresse") {
continue;
}
if ($c == "cantEdit") {
$T->addRow(array($p, "Kann nicht bearbeiten"));
}
if ($c == "cantDelete") {
$T->addRow(array($p, "Kann nicht löschen"));
}
if ($c == "cantCreate") {
$T->addRow(array($p, "Kann nicht erstellen"));
}
}
continue;
}
if ($c == "hidePlugin") {
foreach ($s as $p) {
$T->addRow(array(array_search($p, $ps), "Plugin ausblenden"));
}
continue;
}
$B = new Button("Rolle aktivieren", "./plugins/Userdata/role.png", "icon");
$B->rmePCR("mUserdata", "-1", "rolesActivate", array($UserID, "'{$R}'"), OnEvent::reload("Left"));
$class = new $c();
$pSs = $class->getPluginSpecificRestrictions();
$l = "";
foreach ($s as $k => $p) {
$l .= ($k > 0 ? "<br>" : "") . $pSs[$p];
}
$T->addRow(array(array_search($c, $ps) . ":", $l, $i == 0 ? $B : ""));
if ($i == 0) {
$T->addColStyle(3, "vertical-align:top;");
$T->addColRowspan(3, 3);
}
$i++;
}
#$T->addRow(array($l, $B));
#$T->addColStyle(2, "vertical-align:top;");
echo $T;
}
echo "</div>";
}