Example #1
0
    if ($domadmin) {
        setVar("tpl_groups", array($domadmin["cn"][0]));
    } else {
        setVar("tpl_groups", array());
    }
} else {
    $domadmin = getAdminUsersOnShare($share);
    if ($domadmin) {
        setVar("tpl_groups", $domadmin);
    } else {
        setVar("tpl_groups", array());
    }
}
global $__TPLref;
$__TPLref["autocomplete"] = "admin";
renderTPL("groups");
?>

</table>

<?php 
if (!isset($customParameters) || empty($customParameters)) {
    $customParameters = array('');
}
$cp = new MultipleInputTpl("customparameters", _("Custom parameters"));
$cp->setRegexp('/^[a-z: _]+[ ]*=.*$/');
$cpf = new FormElement(_("Custom parameters"), $cp);
$cpf->display($customParameters);
?>

</div>
Example #2
0
File: edit.php Project: psyray/mmc
   </tr>
    
    <tr>
    <td>
    </td>
    <td>
        <?php 
echo _T("Users for this share");
?>
    </td>
   </tr>

<?php 
setVar("tpl_users", $acls[1]);
$__TPLref["autocomplete"] = "user";
renderTPL("users");
?>
</table>
</div>

<?php 
if ($_GET["action"] == "add") {
    ?>
<input name="bshareadd" type="submit" class="btnPrimary" value="<?php 
    echo _T("Create");
    ?>
" />
<?php 
} else {
    ?>
<input name="share" type="hidden" value="<?php