本文整理汇总了PHP中Fisharebest\Webtrees\Functions\FunctionsEdit::editFieldAccessLevel方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionsEdit::editFieldAccessLevel方法的具体用法?PHP FunctionsEdit::editFieldAccessLevel怎么用?PHP FunctionsEdit::editFieldAccessLevel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fisharebest\Webtrees\Functions\FunctionsEdit
的用法示例。
在下文中一共展示了FunctionsEdit::editFieldAccessLevel方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pageBody
private function pageBody(PageController $controller)
{
?>
<!-- ADMIN PAGE CONTENT -->
<ol class="breadcrumb small">
<li><a href="admin.php"><?php
echo I18N::translate('Control panel');
?>
</a></li>
<li><a href="admin_modules.php"><?php
echo I18N::translate('Module administration');
?>
</a></li>
<li class="active"><?php
echo $controller->getPageTitle();
?>
</li>
</ol>
<h2><?php
echo $controller->getPageTitle();
?>
</h2>
<form class="form-inline" method="post">
<?php
echo Filter::getCsrf();
?>
<input type="hidden" name="save" value="1">
<!-- SHOW PDF -->
<div class="form-group">
<label class="control-label">
<?php
echo I18N::translate('Access level');
?>
</label>
<?php
echo FunctionsEdit::editFieldAccessLevel('NEW_FTV_PDF_ACCESS_LEVEL', $this->getSetting('FTV_PDF_ACCESS_LEVEL'), 'class="form-control"');
?>
</div>
<!-- BUTTONS -->
<button class="btn btn-primary" type="submit">
<i class="fa fa-check"></i>
<?php
echo I18N::translate('save');
?>
</button>
</form>
<?php
}
示例2: edit
//.........这里部分代码省略.........
">
<input type="checkbox" name="lang_<?php
echo $locale->languageTag();
?>
" <?php
echo in_array($locale->languageTag(), $accepted_languages) ? 'checked' : '';
?>
><?php
echo $locale->endonym();
?>
</label>
</div>
<?php
}
?>
</div>
</div>
<h3><?php
echo webtrees\I18N::translate('Visibility and Access');
?>
</h3>
<div class="form-group">
<label class="control-label col-sm-3" for="block_order">
<?php
echo webtrees\I18N::translate('Menu position');
?>
</label>
<div class="col-sm-9">
<input
class="form-control"
id="position"
name="block_order"
size="3"
required
type="number"
value="<?php
echo webtrees\Filter::escapeHtml($block_order);
?>
"
>
</div>
<span class="help-block col-sm-9 col-sm-offset-3 small text-muted">
<?php
echo webtrees\I18N::translate('This field controls the order in which the menu items are displayed.'), '<br><br>', webtrees\I18N::translate('You do not have to enter the numbers sequentially. If you leave holes in the numbering scheme, you can insert other menu items later. For example, if you use the numbers 1, 6, 11, 16, you can later insert menu items with the missing sequence numbers. Negative numbers and zero are allowed, and can be used to insert menu items in front of the first one.'), '<br><br>', webtrees\I18N::translate('When more than one menu item has the same position number, only one of these menu items will be visible.');
?>
</span>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="block_order">
<?php
echo webtrees\I18N::translate('Menu visibility');
?>
</label>
<div class="col-sm-9">
<?php
echo webtrees\Functions\FunctionsEdit::selectEditControl('gedcom_id', webtrees\Tree::getIdList(), webtrees\I18N::translate('All'), $WT_TREE->getTreeId(), 'class="form-control"');
?>
</div>
<span class="help-block col-sm-9 col-sm-offset-3 small text-muted">
<?php
echo webtrees\I18N::translate('You can determine whether this menu item will be visible regardless of family tree, or whether it will be visible only to the current family tree.');
?>
</span>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="menu_access">
<?php
echo webtrees\I18N::translate('Access level');
?>
</label>
<div class="col-sm-9">
<?php
echo webtrees\Functions\FunctionsEdit::editFieldAccessLevel('menu_access', $menu_access, 'class="form-control"');
?>
</div>
</div>
<div class="row col-sm-9 col-sm-offset-3">
<button class="btn btn-primary" type="submit">
<i class="fa fa-check"></i>
<?php
echo webtrees\I18N::translate('save');
?>
</button>
<button class="btn" type="button" onclick="window.location='<?php
echo $this->getConfigLink();
?>
';">
<i class="fa fa-close"></i>
<?php
echo webtrees\I18N::translate('cancel');
?>
</button>
</div>
</form>
<?php
}
}
示例3: foreach
"></td>
<td class="col-xs-5">
<table class="table">
<tbody>
<?php
foreach (Tree::getAll() as $tree) {
?>
<tr>
<td>
<?php
echo $tree->getTitleHtml();
?>
</td>
<td>
<?php
echo FunctionsEdit::editFieldAccessLevel('access-' . $module->getName() . '-' . $tree->getTreeId(), $module->getAccessLevel($tree, 'sidebar'));
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例4: renderContent
//.........这里部分代码省略.........
<h3><?php
echo I18N::translate('Header');
?>
</h3>
<!-- MAJ_ADD_HTML_HEADER -->
<div class="form-group">
<label class="control-label col-sm-3" for="MAJ_ADD_HTML_HEADER">
<?php
echo I18N::translate('Include additional HTML in header');
?>
</label>
<div class="col-sm-9">
<?php
echo FunctionsEdit::editFieldYesNo('MAJ_ADD_HTML_HEADER', $module->getSetting('MAJ_ADD_HTML_HEADER', 0), 'class="radio-inline"');
?>
<p class="small text-muted">
<?php
echo I18N::translate('Enable this option to include raw additional HTML in the header of the page.');
?>
</p>
</div>
</div>
<!-- MAJ_SHOW_HTML_HEADER -->
<div class="form-group">
<label class="control-label col-sm-3" for="MAJ_SHOW_HTML_HEADER">
<?php
echo I18N::translate('Hide additional header');
?>
</label>
<div class="col-sm-9">
<?php
echo FunctionsEdit::editFieldAccessLevel('MAJ_SHOW_HTML_HEADER', $module->getSetting('MAJ_SHOW_HTML_HEADER', Auth::PRIV_HIDE), 'class="form-control"');
?>
<p class="small text-muted">
<?php
echo I18N::translate('Select the access level until which the additional header should be displayed. The <em>Hide from everyone</em> should be used to show the header to everybody.');
?>
</p>
</div>
</div>
<!-- MAJ_HTML_HEADER -->
<div class="form-group">
<label for="MAJ_HTML_HEADER" class="col-sm-3 control-label">
<?php
echo I18N::translate('Additional HTML in header');
?>
</label>
<div class="col-sm-9">
<textarea class="form-control html-edit" rows="10" dir="auto" id="MAJ_HTML_HEADER" name="MAJ_HTML_HEADER" ><?php
echo Filter::escapeHtml($module->getSetting('MAJ_HTML_HEADER'));
?>
</textarea>
<p class="small text-muted">
<?php
echo I18N::translate('If the option has been enabled, the saved HTML will be inserted in the header.');
?>
<br>
<?php
echo I18N::translate('In edit mode, the HTML characters might have been transformed to their HTML equivalents (for instance &gt; for >), it is however possible to insert HTML characters, they will be automatically converted to their equivalent values.');
?>
</p>
</div>
</div>
示例5: pageBody
//.........这里部分代码省略.........
<input
name="pid"
type="hidden"
value=""
>
<input
name="sort"
type="hidden"
value=""
>
<span></span>
</td>
<?php
if (!$this->options('use_fullname')) {
?>
<!-- SURNAME IN PAGE TITLE -->
<td id="surn">
<label class="showname"></label>
<input
class="form-control editname"
name="surname"
type="text"
value=""
>
</td>
<?php
}
?>
<!-- PAGE TITLE -->
<td id="title"></td>
<!-- ACCESS LEVEL -->
<td>
<?php
echo FunctionsEdit::editFieldAccessLevel('access_level', 2, 'class="form-control"');
?>
</td>
<!-- ADD BUTTON -->
<td>
<button type="submit" name="add" class="btn btn-success btn-sm" title="<?php
I18N::translate('Add');
?>
">
<i class="fa fa-plus"></i>
</button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<?php
echo $this->addMessage("error", "danger", true);
?>
<?php
echo $this->addMessage('update-settings', 'success', true, I18N::translate('The settings for this tree are succesfully updated'));
?>
<div id="fancy-treeview-form" class="form-group">
<?php
if (!empty($FTV_SETTINGS) && $this->searchArray($FTV_SETTINGS, 'TREE', $this->tree_id)) {
?>
<form class="form-horizontal" method="post" name="form4">
<!-- TABLE -->
<table id="fancy-treeview-table" class="table table-hover">
<thead>
<tr>
<th><?php
示例6: renderContent
/**
* {@inhericDoc}
* @see \MyArtJaub\Webtrees\Mvc\View\AbstractView::renderContent()
*/
protected function renderContent()
{
/** @var AbstractModule $module */
$module = $this->data->get('module');
?>
<ol class="breadcrumb small">
<li><a href="admin.php"><?php
echo I18N::translate('Control panel');
?>
</a></li>
<li><a href="admin_modules.php"><?php
echo I18N::translate('Module administration');
?>
</a></li>
<li class="active"><?php
echo $this->data->get('title');
?>
</li>
</ol>
<h1><?php
echo $this->data->get('title');
?>
</h1>
<form method="post" class="form-horizontal">
<?php
echo Filter::getCsrf();
?>
<input type="hidden" name="action" value="update">
<h3><?php
echo I18N::translate('General');
?>
</h3>
<!-- MAJ_CERT_ROOTDIR -->
<div class="form-group">
<label class="control-label col-sm-3" for="MAJ_CERT_ROOTDIR">
<?php
echo I18N::translate('Certificates directory');
?>
</label>
<div class="col-sm-9">
<div class="input-group">
<span class="input-group-addon">
<?php
echo WT_DATA_DIR;
?>
</span>
<input
class="form-control"
dir="ltr"
id="MAJ_CERT_ROOTDIR"
maxlength="255"
name="MAJ_CERT_ROOTDIR"
type="text"
value="<?php
echo Filter::escapeHtml($module->getSetting('MAJ_CERT_ROOTDIR', 'certificates/'));
?>
"
required
>
</div>
<p class="small text-muted">
<?php
echo I18N::translate('This folder will be used to store the certificate files.');
?>
<?php
echo I18N::translate('If you select a different folder, you must also move any certificate files from the existing folder to the new one.');
?>
</p>
</div>
</div>
<!-- MAJ_SHOW_CERT -->
<div class="form-group">
<label class="control-label col-sm-3" for="MAJ_SHOW_CERT">
<?php
echo I18N::translate('Show certificates');
?>
</label>
<div class="col-sm-9">
<?php
echo FunctionsEdit::editFieldAccessLevel('MAJ_SHOW_CERT', $module->getSetting('MAJ_SHOW_CERT', Auth::PRIV_HIDE), 'class="form-control"');
?>
<p class="small text-muted">
<?php
echo I18N::translate('Define access level required to display certificates in facts sources. By default, nobody can see the certificates.');
?>
</p>
</div>
</div>
<h3><?php
//.........这里部分代码省略.........