本文整理汇总了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>";
}