Beispiel #1
0
    </td>
    <td>
        <?php 
echo _T("Permissions");
?>
    </td>
    </tr>
        <?php 
if ($permAll) {
    $checked = "checked";
} else {
    $checked = "";
}
$param = array("value" => $checked, "extraArg" => 'onclick="toggleVisibility(\'grouptable\');"');
$test = new TrFormElement(_T("Access for all"), new CheckboxTpl("permAll"));
$test->setCssError("permAll");
$test->display($param);
?>
</table>

<?php 
if ($permAll) {
    echo '<div id="grouptable" style="display:none">';
} else {
    echo '<div id="grouptable">';
}
?>
<table>
<?php 
if ($_GET["action"] == "add") {
    $acls = array(array(), array());
Beispiel #2
0
if ($_GET["action"] == "add") {
    $input = new InputTpl("shareName");
} else {
    $input = new HiddenTpl("shareName");
}
$table->add(new TrFormElement(_T("Name"), $input), array("value" => $shareName));
// $table->add(new TrFormElement(_T("Path"), new InputTpl("sharePath")),array("value" => $sharePath));
$table->add(new TrFormElement(_T("Description"), new InputTpl("shareDescription")), array("value" => $shareDescription));
$table->display();
?>

<table cellspacing="0">
<?php 
$param = array("value" => $shareGuest, "extraArg" => 'onclick="toggleVisibility(\'grouptable\');"');
$test = new TrFormElement(_T("Guest access"), new CheckboxTpl("shareGuest"));
$test->setCssError("shareGuest");
$test->display($param);
$param = array("value" => $shareEnabled);
$test = new TrFormElement(_T("Share enabled"), new CheckboxTpl("shareEnabled"));
$test->display($param);
?>
</table>

<?php 
if ($shareGuest) {
    echo '<div id="grouptable" style="display:none">';
} else {
    echo '<div id="grouptable">';
}
?>
<table>