本文整理汇总了PHP中admin_tools::InlineEditArea方法的典型用法代码示例。如果您正苦于以下问题:PHP admin_tools::InlineEditArea方法的具体用法?PHP admin_tools::InlineEditArea怎么用?PHP admin_tools::InlineEditArea使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类admin_tools
的用法示例。
在下文中一共展示了admin_tools::InlineEditArea方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AdminHtml
static function AdminHtml()
{
global $page, $gp_admin_html;
ob_start();
admin_tools::InlineEditArea();
echo '<div class="nodisplay" id="gp_hidden"></div>';
if (isset($page->admin_html)) {
echo $page->admin_html;
}
admin_tools::GetAdminPanel();
admin_tools::CheckStatus();
admin_tools::ScheduledTasks();
$gp_admin_html = ob_get_clean() . $gp_admin_html;
}
示例2: GetAdminPanel
/**
* Output the main admin toolbar
* @param array $new_versions Data about newly available versions of gpEasy and addons
* @static
*/
function GetAdminPanel($new_versions)
{
global $page, $gpAdmin, $config;
//don't send the panel when it's a gpreq=json request
if (!empty($_REQUEST['gpreq'])) {
return;
}
$class = '';
if (isset($gpAdmin['gpui_cmpct']) && $gpAdmin['gpui_cmpct']) {
$class = ' compact';
if ($gpAdmin['gpui_cmpct'] === 2) {
$class = ' compact min';
} elseif ($gpAdmin['gpui_cmpct'] === 3) {
$class = ' minb';
}
}
$class = ' class="keep_viewable' . $class . '"';
$position = ' style="top:' . max(-10, $gpAdmin['gpui_ty']) . 'px;left:' . max(-10, $gpAdmin['gpui_tx']) . 'px"';
echo "\n\n";
echo '<div id="simplepanel"' . $class . $position . '><div>';
//toolbar
echo '<div class="toolbar cf">';
echo '<a href="#" class="toggle_panel" name="toggle_panel" ></a>';
echo common::Link('Admin_Main', '', '', 'class="icon_admin_home"');
echo '<span class="extra admin_arrow_out"></span>';
echo '</div>';
admin_tools::AdminPanelLinks(true, $new_versions);
echo '</div></div>';
//end simplepanel
echo "\n\n";
admin_tools::InlineEditArea();
}