$sharePathText = sprintf(_T("Share path (leave empty for a default path in %s)"), default_shares_path()); $input = new IA5InputTpl("sharePath"); } else { $sharePath = $shareInfos["sharePath"]; $sharePathText = "Path"; $input = new IA5InputTpl("sharePath"); } $d->add(new TrFormElement(_T($sharePathText), $input), array("value" => $sharePath)); if ($browseable) { $param = array("value" => "CHECKED"); } else { $param = array("value" => ""); } $d->add(new TrFormElement(_T("This share is visible on the domain"), new CheckboxTpl("browseable")), $param); $d->pop(); $d->display(); ?> <table cellspacing="0"> <tr> <td> </td> <td> <?php echo _T("Permissions"); ?> </td> </tr> <?php if ($permAll) { $checked = "checked";