本文整理汇总了PHP中ADMIN_createMenu函数的典型用法代码示例。如果您正苦于以下问题:PHP ADMIN_createMenu函数的具体用法?PHP ADMIN_createMenu怎么用?PHP ADMIN_createMenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ADMIN_createMenu函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: CLASSIFIEDS_adminMenu
/**
* Create the admin menu at the top of the list and form pages.
*
* @return string HTML for admin menu section
*/
function CLASSIFIEDS_adminMenu($mode = '', $help_text = '')
{
global $_CONF, $LANG_ADVT, $LANG01;
$menu_arr = array();
if ($help_text == '') {
$help_text = 'admin_text';
}
if ($mode == 'ad') {
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?edit=ad', 'text' => $LANG_ADVT['mnu_submit']);
$help_text = 'hlp_adlist';
} else {
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?admin=ad', 'text' => $LANG_ADVT['mnu_adlist']);
}
if ($mode == 'type') {
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?editadtype=0', 'text' => $LANG_ADVT['mnu_newtype']);
$help_text = 'hlp_adtypes';
} else {
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?admin=type', 'text' => $LANG_ADVT['mnu_types']);
}
if ($mode == 'cat') {
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?editcat=x&cat_id=0', 'text' => $LANG_ADVT['mnu_newcat']);
$help_text = 'hlp_cats';
} else {
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?admin=cat', 'text' => $LANG_ADVT['mnu_cats']);
}
$menu_arr[] = array('url' => CLASSIFIEDS_ADMIN_URL . '/index.php?admin=other', 'text' => $LANG_ADVT['mnu_other']);
if ($mode == 'other') {
$help_text = 'hlp_other';
}
$menu_arr[] = array('url' => $_CONF['site_admin_url'], 'text' => $LANG01[53]);
$retval = ADMIN_createMenu($menu_arr, $LANG_ADVT[$help_text], plugin_geticon_classifieds());
return $retval;
}
开发者ID:NewRoute,项目名称:classifieds,代码行数:38,代码来源:index.php
示例2: usersubmissions
/**
* Prints the user submission lists at the top
*
* @param string $token CSRF token
* @return string HTML for the C&C block
*
*/
function usersubmissions($token)
{
global $_CONF, $_TABLES, $LANG_ADMIN, $LANG29, $_IMAGE_TYPE;
require_once $_CONF['path_system'] . 'lib-admin.php';
$retval = '';
// writing the menu on top
$menu_arr = array(array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$retval .= COM_startBlock($LANG29[13], '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $LANG29['submissions_desc'], $_CONF['layout_url'] . '/images/icons/moderation.' . $_IMAGE_TYPE);
// IMPORTANT - If any of the below submission lists change, please
// update the function SEC_hasModerationAccess in lib-security.php to
// reflect the changes
if (SEC_hasRights('story.moderate')) {
$retval .= itemlist('story', $token);
}
if ($_CONF['listdraftstories'] == 1) {
if (SEC_hasRights('story.edit')) {
$retval .= itemlist('story_draft', $token);
}
}
if ($_CONF['commentsubmission'] == 1) {
if (SEC_hasRights('comment.moderate')) {
$retval .= itemlist('comment', $token);
}
}
if ($_CONF['usersubmission'] == 1) {
if (SEC_hasRights('user.edit') && SEC_hasRights('user.delete')) {
$retval .= userlist($token);
}
}
$retval .= PLG_showModerationList($token);
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:milk54,项目名称:geeklog-japan,代码行数:41,代码来源:moderation.php
示例3: forum_admin_list
function forum_admin_list()
{
global $_TABLES, $LANG_ADMIN, $LANG_GF00, $LANG_GF91, $LANG_GF06, $_CONF, $_FF_CONF;
USES_lib_admin();
$retval = '';
$selected = '';
$menu_arr = array();
$admin_list = new Template($_CONF['path'] . 'plugins/forum/templates/admin/');
$admin_list->set_file('admin-list', 'index.thtml');
$admin_list->set_var('block_start', COM_startBlock($LANG_GF91['gfstats']));
$menu_arr = FF_adminNav($LANG_GF06['1']);
$admin_list->set_var('admin_menu', ADMIN_createMenu($menu_arr, $LANG_GF00['instructions'], $_CONF['site_url'] . '/forum/images/forum.png'));
// CATEGORIES
$numcats = DB_query("SELECT id FROM {$_TABLES['ff_categories']}");
$totalcats = DB_numRows($numcats);
// FORUMS
$numforums = DB_query("SELECT forum_id FROM {$_TABLES['ff_forums']}");
$totalforums = DB_numRows($numforums);
// TOPICS
$numtopics = DB_query("SELECT id FROM {$_TABLES['ff_topic']} WHERE pid = 0");
$totaltopics = DB_numRows($numtopics);
// POSTS
$numposts = DB_query("SELECT id FROM {$_TABLES['ff_topic']}");
$totalposts = DB_numRows($numposts);
// VIEWS
$numviews = DB_query("SELECT SUM(views) AS TOTAL FROM {$_TABLES['ff_topic']}");
$totalviews = DB_fetchArray($numviews);
// AVERAGE POSTS
if ($totalposts != 0) {
$avgcposts = $totalposts / $totalcats;
$avgcposts = round($avgcposts);
$avgfposts = $totalposts / $totalforums;
$avgfposts = round($avgfposts);
$avgtposts = $totalposts / $totaltopics;
$avgtposts = round($avgtposts);
} else {
$avgcposts = 0;
$avgfposts = 0;
$avgtposts = 0;
}
// AVERAGE VIEWS
if ($totalviews['TOTAL'] != 0) {
$avgcviews = $totalviews['TOTAL'] / $totalcats;
$avgcviews = round($avgcviews);
$avgfviews = $totalviews['TOTAL'] / $totalforums;
$avgfviews = round($avgfviews);
$avgtviews = $totalviews['TOTAL'] / $totaltopics;
$avgtviews = round($avgtviews);
} else {
$avgcviews = 0;
$avgfviews = 0;
$avgtviews = 0;
}
$admin_list->set_var(array('statsmsg' => $LANG_GF91['statsmsg'], 'totalcatsmsg' => $LANG_GF91['totalcats'], 'totalcats' => $totalcats, 'totalforumsmsg' => $LANG_GF91['totalforums'], 'totalforums' => $totalforums, 'totaltopicsmsg' => $LANG_GF91['totaltopics'], 'totaltopics' => $totaltopics, 'totalpostsmsg' => $LANG_GF91['totalposts'], 'totalposts' => $totalposts, 'totalviewsmsg' => $LANG_GF91['totalviews'], 'totalviews' => $totalviews['TOTAL'], 'category' => $LANG_GF91['category'], 'forum' => $LANG_GF91['forum'], 'topic' => $LANG_GF91['topic'], 'avgpmsg' => $LANG_GF91['avgpmsg'], 'avgcposts' => $avgcposts, 'avgfposts' => $avgfposts, 'avgtposts' => $avgtposts, 'avgvmsg' => $LANG_GF91['avgvmsg'], 'avgcviews' => $avgcviews, 'avgfviews' => $avgfviews, 'avgtviews' => $avgtviews));
$admin_list->set_var('block_end', COM_endBlock());
$admin_list->parse('output', 'admin-list');
$retval .= $admin_list->finish($admin_list->get_var('output'));
return $retval;
}
开发者ID:spacequad,项目名称:glfusion,代码行数:59,代码来源:index.php
示例4: LIB_List
function LIB_List($pi_name)
{
global $_CONF;
global $_TABLES;
global $LANG_ADMIN;
global $LANG09;
$lang_box_admin = "LANG_" . strtoupper($pi_name) . "_ADMIN";
global ${$lang_box_admin};
$lang_box_admin = ${$lang_box_admin};
$lang_box = "LANG_" . strtoupper($pi_name);
global ${$lang_box};
$lang_box = ${$lang_box};
$table = $_TABLES[strtoupper($pi_name) . '_def_group'];
require_once $_CONF['path_system'] . 'lib-admin.php';
$retval = '';
//MENU1:管理画面
$url1 = $_CONF['site_admin_url'] . '/plugins/' . THIS_SCRIPT . '?mode=new';
$url2 = $_CONF['site_url'] . '/' . $pi_name . '/list.php';
$url5 = $_CONF['site_admin_url'] . '/plugins/' . THIS_SCRIPT . '?mode=export';
$url6 = $_CONF['site_admin_url'] . '/plugins/' . THIS_SCRIPT . '?mode=import';
$menu_arr[] = array('url' => $url1, 'text' => $lang_box_admin['new']);
$menu_arr[] = array('url' => $url2, 'text' => $lang_box['list']);
$menu_arr[] = array('url' => $url5, 'text' => $lang_box_admin['export']);
//$menu_arr[]=array('url' => $url6,'text' => $lang_box['export']);
$menu_arr[] = array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']);
$retval .= COM_startBlock($lang_box_admin['admin_list'], '', COM_getBlockTemplate('_admin_block', 'header'));
$function = "plugin_geticon_" . $pi_name;
$icon = $function();
$retval .= ADMIN_createMenu($menu_arr, $lang_box_admin['instructions'], $icon);
//ヘッダ:編集~
$header_arr[] = array('text' => $lang_box_admin['orderno'], 'field' => 'orderno', 'sort' => true);
$header_arr[] = array('text' => $LANG_ADMIN['edit'], 'field' => 'editid', 'sort' => false);
$header_arr[] = array('text' => $LANG_ADMIN['copy'], 'field' => 'copy', 'sort' => false);
$header_arr[] = array('text' => $lang_box_admin['group_id'], 'field' => 'group_id', 'sort' => true);
$header_arr[] = array('text' => $lang_box_admin['code'], 'field' => 'code', 'sort' => true);
$header_arr[] = array('text' => $lang_box_admin['name'], 'field' => 'name', 'sort' => true);
//
$text_arr = array('has_menu' => true, 'has_extras' => true, 'form_url' => $_CONF['site_admin_url'] . "/plugins/" . THIS_SCRIPT);
//Query
$sql = "SELECT ";
$sql .= " group_id";
$sql .= " ,code";
$sql .= " ,name";
$sql .= " ,orderno";
$sql .= " FROM ";
$sql .= " {$table} AS t";
$sql .= " WHERE ";
$sql .= " group_id<>0";
//
$query_arr = array('table' => $table, 'sql' => $sql, 'query_fields' => array('group_id', 'code', 'name', 'orderno'), 'default_filter' => $exclude);
//デフォルトソート項目:
$defsort_arr = array('field' => 'orderno', 'direction' => 'ASC');
//List 取得
//ADMIN_list($component, $fieldfunction, $header_arr, $text_arr,
// $query_arr, $menu_arr, $defsort_arr, $filter = '', $extra = '', $options = '')
$retval .= ADMIN_list($pi_name, "LIB_GetListField", $header_arr, $text_arr, $query_arr, $defsort_arr);
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:mistgrass,项目名称:geeklog-ivywe,代码行数:59,代码来源:lib_group.php
示例5: MG_showAdminMenu
function MG_showAdminMenu($sub_menu = '')
{
global $_CONF, $_TABLES, $_MG_CONF, $LANG_MG01, $LANG_ADMIN;
require_once $_CONF['path'] . 'system/lib-admin.php';
$menu_arr = array(array('url' => $_MG_CONF['admin_url'] . 'category.php', 'text' => $LANG_MG01['category_manage_help']), array('url' => $_MG_CONF['admin_url'] . 'index.php?s=m', 'text' => $LANG_MG01['member_albums']), array('url' => $_MG_CONF['admin_url'] . 'index.php?s=b', 'text' => $LANG_MG01['batch_sessions']), array('url' => $_MG_CONF['admin_url'] . 'index.php?s=c', 'text' => $LANG_MG01['miscellaneous']), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$menu = ADMIN_createMenu($menu_arr, '', $_MG_CONF['site_url'] . '/images/mediagallery.png');
$menu .= MG_showAdminSubMenu($sub_menu);
return $menu;
}
开发者ID:mistgrass,项目名称:geeklog-ivywe,代码行数:9,代码来源:navigation.php
示例6: fncMenu
function fncMenu()
{
global $_CONF;
global $LANG_ADMIN;
global $LANG_USERBOX_ADMIN;
$retval = '';
//
$menu_arr[] = array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']);
$retval .= ADMIN_createMenu($menu_arr, $LANG_USERBOX_ADMIN['instructions'], plugin_geticon_userbox());
return $retval;
}
开发者ID:mistgrass,项目名称:geeklog-ivywe,代码行数:11,代码来源:backuprestore.php
示例7: filemgmt_navbar
function filemgmt_navbar($selected = '')
{
global $_CONF, $LANG_FM02, $_TABLES, $LANG_ADMIN;
$retval = '';
$totalnewdownloads = DB_count($_TABLES['filemgmt_filedetail'], 'status', 0);
$totalbrokendownloads = DB_count($_TABLES['filemgmt_brokenlinks']);
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/plugins/filemgmt/index.php', 'text' => 'File Listing'), array('url' => $_CONF['site_admin_url'] . '/plugins/filemgmt/index.php?op=categoryConfigAdmin', 'text' => $LANG_FM02['nav2']), array('url' => $_CONF['site_admin_url'] . '/plugins/filemgmt/index.php?op=newfileConfigAdmin', 'text' => $LANG_FM02['nav3']), array('url' => $_CONF['site_admin_url'] . '/plugins/filemgmt/index.php?op=listNewDownloads', 'text' => sprintf($LANG_FM02['nav4'], $totalnewdownloads)), array('url' => $_CONF['site_admin_url'] . '/plugins/filemgmt/index.php?op=listBrokenDownloads', 'text' => sprintf($LANG_FM02['nav5'], $totalbrokendownloads)), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$retval .= COM_startBlock(_MD_ADMINTITLE, '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $LANG_FM02['instructions'], $_CONF['site_url'] . '/filemgmt/images/filemgmt.png');
$retval .= '<br />';
return $retval;
}
开发者ID:NewRoute,项目名称:glfusion,代码行数:12,代码来源:index.php
示例8: DBADMIN_menu
/**
* Create the main menu
*
* @param string $explanation Instruction text
* @return string HTML for menu area
*/
function DBADMIN_menu($explanation = '')
{
global $_CONF, $LANG_ADMIN, $LANG_DB_BACKUP, $LANG_LGLIB, $_IMAGE_TYPE, $token, $pi_title;
USES_lib_admin();
$retval = '';
$token = SEC_createToken();
$menu_arr = array(array('url' => LGLIB_ADMIN_URL, 'text' => $LANG_LGLIB['list_backups']), array('url' => LGLIB_ADMIN_URL . '/index.php?backup=x&' . CSRF_TOKEN . '=' . $token, 'text' => $LANG_ADMIN['create_new']), array('url' => LGLIB_ADMIN_URL . '/index.php?config=x', 'text' => 'Configure'), array('url' => $_CONF['site_admin_url'] . '/index.php', 'text' => $LANG_ADMIN['admin_home']));
//$retval .= COM_startBlock($pi_title,
$retval .= COM_startBlock(LGLIB_getGlobal('pi_title'), COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $explanation, $_CONF['layout_url'] . '/images/icons/database.' . $_IMAGE_TYPE);
return $retval;
}
开发者ID:JohnToro,项目名称:lglib,代码行数:18,代码来源:index.php
示例9: display_mailform
/**
* Shows the form the admin uses to send Geeklog members a message. Right now
* you can only email an entire group.
*
* @return string HTML for the email form
*
*/
function display_mailform()
{
global $_CONF, $LANG31, $LANG_ADMIN, $_IMAGE_TYPE;
require_once $_CONF['path_system'] . 'lib-admin.php';
$retval = '';
$retval .= COM_startBlock($LANG31[1], '', COM_getBlockTemplate('_admin_block', 'header'));
$menu_arr = array(array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$desc = '<p>' . $LANG31[19] . '</p>';
$icon = $_CONF['layout_url'] . '/images/icons/mail.' . $_IMAGE_TYPE;
$retval .= ADMIN_createMenu($menu_arr, $desc, $icon);
$mail_templates = new Template($_CONF['path_layout'] . 'admin/mail');
$mail_templates->set_file(array('form' => 'mailform.thtml'));
$mail_templates->set_var('site_url', $_CONF['site_url']);
$mail_templates->set_var('site_admin_url', $_CONF['site_admin_url']);
$mail_templates->set_var('layout_url', $_CONF['layout_url']);
$mail_templates->set_var('startblock_email', COM_startBlock($LANG31[1], '', COM_getBlockTemplate('_admin_block', 'header')));
$mail_templates->set_var('php_self', $_CONF['site_admin_url'] . '/mail.php');
$mail_templates->set_var('lang_note', $LANG31[19]);
$mail_templates->set_var('lang_to', $LANG31[18]);
$mail_templates->set_var('lang_selectgroup', $LANG31[25]);
$thisUsersGroups = SEC_getUserGroups();
uksort($thisUsersGroups, 'strcasecmp');
$group_options = '';
foreach ($thisUsersGroups as $groupName => $groupID) {
if ($groupName != 'All Users') {
$group_options .= '<option value="' . $groupID . '">' . ucwords($groupName) . '</option>';
}
}
$mail_templates->set_var('group_options', $group_options);
$mail_templates->set_var('lang_from', $LANG31[2]);
$mail_templates->set_var('site_name', $_CONF['site_name']);
$mail_templates->set_var('lang_replyto', $LANG31[3]);
$mail_templates->set_var('site_mail', $_CONF['site_mail']);
$mail_templates->set_var('lang_subject', $LANG31[4]);
$mail_templates->set_var('lang_body', $LANG31[5]);
$mail_templates->set_var('lang_sendto', $LANG31[6]);
$mail_templates->set_var('lang_allusers', $LANG31[7]);
$mail_templates->set_var('lang_admin', $LANG31[8]);
$mail_templates->set_var('lang_options', $LANG31[9]);
$mail_templates->set_var('lang_HTML', $LANG31[10]);
$mail_templates->set_var('lang_urgent', $LANG31[11]);
$mail_templates->set_var('lang_ignoreusersettings', $LANG31[14]);
$mail_templates->set_var('lang_send', $LANG31[12]);
$mail_templates->set_var('end_block', COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer')));
$mail_templates->set_var('xhtml', XHTML);
$mail_templates->set_var('gltoken_name', CSRF_TOKEN);
$mail_templates->set_var('gltoken', SEC_createToken());
$mail_templates->parse('output', 'form');
$retval .= $mail_templates->finish($mail_templates->get_var('output'));
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:hostellerie,项目名称:nexpro,代码行数:59,代码来源:mail.php
示例10: banner_list_categories
function banner_list_categories($root)
{
global $_CONF, $_TABLES, $_USER, $_IMAGE_TYPE, $LANG_ADMIN, $LANG_ACCESS, $LANG_BANNER_ADMIN, $LANG_BANNER, $_BAN_CONF;
require_once $_CONF['path_system'] . 'lib-admin.php';
$retval = '';
$header_arr = array(array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false), array('text' => $LANG_BANNER_ADMIN[44], 'field' => 'addchild', 'sort' => false), array('text' => $LANG_BANNER_ADMIN[30], 'field' => 'bannercategory', 'sort' => true), array('text' => $LANG_ACCESS['access'], 'field' => 'access', 'sort' => false), array('text' => $LANG_BANNER_ADMIN[33], 'field' => 'tid', 'sort' => true));
$defsort_arr = array('field' => 'category', 'direction' => 'asc');
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/plugins/banner/index.php', 'text' => $LANG_BANNER_ADMIN[53]), array('url' => $_CONF['site_admin_url'] . '/plugins/banner/index.php?mode=edit', 'text' => $LANG_BANNER_ADMIN[51]), array('url' => $_CONF['site_admin_url'] . '/plugins/banner/index.php?validate=enabled', 'text' => $LANG_BANNER_ADMIN[26]), array('url' => $_CONF['site_admin_url'] . '/plugins/banner/bannercategory.php', 'text' => $LANG_BANNER_ADMIN[50]), array('url' => $_CONF['site_admin_url'] . '/plugins/banner/bannercategory.php?mode=edit', 'text' => $LANG_BANNER_ADMIN[52]), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$retval .= COM_startBlock($LANG_BANNER_ADMIN[54], '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $LANG_BANNER_ADMIN[12], plugin_geticon_banner());
$text_arr = array('has_extras' => true, 'form_url' => $_CONF['site_admin_url'] . '/plugins/banner/bannercategory.php');
$dummy = array();
$data_arr = banner_list_categories_recursive($dummy, $_BAN_CONF['root'], 0);
$retval .= ADMIN_simpleList('plugin_getListField_bannercategories', $header_arr, $text_arr, $data_arr);
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:mistgrass,项目名称:geeklog-ivywe,代码行数:17,代码来源:bannercategory.php
示例11: EXP_adminList
/**
* Build the admin list of pages
* @return string HTML content
*/
function EXP_adminList()
{
global $_CONF, $_TABLES, $LANG_ADMIN, $LANG_ACCESS, $_CONF_EXP, $LANG_EX00;
USES_lib_admin();
$retval = '';
$header_arr = array(array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false), array('text' => 'Page ID', 'field' => 'exid', 'sort' => true), array('text' => 'Title', 'field' => 'title', 'sort' => true), array('text' => 'URL', 'field' => 'url', 'sort' => true), array('text' => 'Hits', 'field' => 'hits', 'sort' => true));
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/plugins/' . $_CONF_EXP['pi_name'] . '/edit.php?exid=0', 'text' => 'Add New'), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$defsort_arr = array('field' => 'exid', 'direction' => 'asc');
$header_str = $LANG_EX00['header'] . ' ' . $LANG_EX00['version'] . ' ' . $_CONF_EXP['pi_version'];
$retval .= COM_startBlock($header_str, '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, 'Administer External Pages', plugin_geticon_external());
$text_arr = array('has_extras' => true, 'form_url' => "{$_CONF['site_admin_url']}/plugins/{$_CONF_EXP['pi_name']}/index.php");
$query_arr = array('table' => 'external', 'sql' => "SELECT * FROM {$_TABLES['external']} ", 'query_fields' => array('title', 'url'), 'default_filter' => COM_getPermSql());
$retval .= ADMIN_list('external', 'EXP_getAdminListField', $header_arr, $text_arr, $query_arr, $defsort_arr, '', '', '', $form_arr);
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:JohnToro,项目名称:external,代码行数:21,代码来源:index.php
示例12: fncDisplay
function fncDisplay()
{
global $_CONF;
global $LANG_ADMIN;
global $LANG_DATABOX_ADMIN;
global $LANG_DATABOX_INFORMATION_HELP;
global $_DATABOX_CONF;
$retval = "";
$pi_name = "databox";
$menu_arr[] = array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']);
$function = "plugin_geticon_" . $pi_name;
$icon = $function();
$retval .= ADMIN_createMenu($menu_arr, $LANG_DATABOX_ADMIN['about_admin_information'], $icon);
$tmplfld = DATABOX_templatePath('admin', 'default', $pi_name);
$T = new Template($tmplfld);
$lang = COM_getLanguageName();
$path = 'admin/plugins/databox/docs/';
if (!file_exists($_CONF['path_html'] . $path . $lang . '/')) {
$lang = 'japanese';
//'english';
}
$document_url = $_CONF['site_url'] . '/' . $path . $lang . '/';
$T->set_file('admin', 'information.thtml');
$T->set_var('pi_name', $pi_name);
$T->set_var('version', $_DATABOX_CONF['version']);
$T->set_var('piname', $LANG_DATABOX_ADMIN['piname']);
$T->set_var('lang_document', $LANG_DATABOX_ADMIN['document']);
$T->set_var('document_url', $document_url);
$T->set_var('online', $LANG_DATABOX_ADMIN['online']);
$T->set_var('lang_configuration', $LANG_DATABOX_ADMIN['configuration']);
$T->set_var('lang_autotags', $LANG_DATABOX_ADMIN['autotags']);
$T->set_var('lang_templatesetvars', $LANG_DATABOX_ADMIN['templatesetvars']);
$T->set_var('lang_install', $LANG_DATABOX_ADMIN['install']);
$T->set_var('lang_autotags', $LANG_DATABOX_ADMIN['autotags']);
$T->set_var('lang_files', $LANG_DATABOX_ADMIN['files']);
$T->set_var('lang_tables', $LANG_DATABOX_ADMIN['tables']);
$T->set_var('lang_input', $LANG_DATABOX_ADMIN['input']);
$T->set_var('site_url', $_CONF['site_url']);
$T->set_var('site_admin_url', $_CONF['site_admin_url']);
$T->parse('output', 'admin');
$retval .= $T->finish($T->get_var('output'));
return $retval;
}
开发者ID:mistgrass,项目名称:geeklog-ivywe,代码行数:43,代码来源:information.php
示例13: _logoEdit
function _logoEdit()
{
global $_CONF, $_LOGO, $_TABLES, $LANG_ADMIN, $LANG_LOGO, $_IMAGE_TYPE;
$retval = '';
$menu_arr = array(array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$retval .= COM_startBlock($LANG_LOGO['logo_options'], '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $LANG_LOGO['instructions'], $_CONF['layout_url'] . '/images/icons/logo.' . $_IMAGE_TYPE);
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
if (file_exists($_CONF['path_html'] . '/images/' . $_LOGO['logo_name'])) {
$current_logo = '<img src="' . $_CONF['site_url'] . '/images/' . $_LOGO['logo_name'] . '" alt="" border="0"/>';
} else {
$current_logo = $LANG_LOGO['no_logo_graphic'];
}
$T = new Template($_CONF['path_layout'] . 'admin/logo/');
$T->set_file('admin', 'logo.thtml');
$T->set_var(array('s_form_action' => $_CONF['site_admin_url'] . '/logo.php', 'graphic_logo_selected' => $_LOGO['use_graphic_logo'] == 1 ? ' checked="checked"' : '', 'text_logo_selected' => $_LOGO['use_graphic_logo'] == 0 ? ' checked="checked"' : '', 'no_logo_selected' => $_LOGO['use_graphic_logo'] == -1 ? ' checked="checked"' : '', 'slogan_selected' => $_LOGO['display_site_slogan'] == 1 ? ' checked="checked"' : '', 'current_logo_graphic' => $current_logo));
$T->parse('output', 'admin');
$retval .= $T->finish($T->get_var('output'));
return $retval;
}
开发者ID:spacequad,项目名称:glfusion,代码行数:20,代码来源:logo.php
示例14: EVLIST_adminHeader
/**
* Create the common header for all admin functions
*
* @param string $page Current page. Used for selecting menus
* @return string HTML for admin header portion.
*/
function EVLIST_adminHeader($page)
{
global $_CONF, $LANG_ADMIN, $LANG_EVLIST, $_EV_CONF;
$retval = '';
USES_lib_admin();
$menu_arr = array();
if ($page == 'events') {
$menu_arr[] = array('url' => EVLIST_URL . '/event.php?edit=event', 'text' => $LANG_EVLIST['new_event']);
} else {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php', 'text' => $LANG_EVLIST['events']);
}
if ($page == 'calendars') {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?editcal=x', 'text' => $LANG_EVLIST['new_calendar']);
} else {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?view=calendars', 'text' => $LANG_EVLIST['calendars']);
}
if ($page == 'categories') {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?editcat=x', 'text' => $LANG_EVLIST['new_category']);
} else {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?categories=x', 'text' => $LANG_EVLIST['categories']);
}
if ($_EV_CONF['enable_rsvp']) {
if ($page == 'tickettypes') {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?editticket=0', 'text' => $LANG_EVLIST['new_ticket_type']);
} else {
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?tickettypes', 'text' => $LANG_EVLIST['ticket_types']);
}
}
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?importcalendar=x', 'text' => $LANG_EVLIST['import_calendar']);
$menu_arr[] = array('url' => EVLIST_ADMIN_URL . '/index.php?import=x', 'text' => $LANG_EVLIST['import_from_csv']);
$menu_arr[] = array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']);
$retval .= COM_startBlock('evList ' . $_EV_CONF['pi_version'], '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $LANG_EVLIST['admin_instr'][$page], plugin_geticon_evlist());
$retval .= COM_endBlock();
return $retval;
}
开发者ID:NewRoute,项目名称:evlist,代码行数:42,代码来源:index.php
示例15: display_batchAddform
/**
* Display "batch add" (import) form
*
* @return string HTML for import form
*
*/
function display_batchAddform()
{
global $_CONF, $LANG28, $LANG_ADMIN, $_IMAGE_TYPE;
require_once $_CONF['path_system'] . 'lib-admin.php';
$retval = '';
$token = SEC_createToken();
$retval .= COM_startBlock($LANG28[24], '', COM_getBlockTemplate('_admin_block', 'header'));
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/user.php', 'text' => $LANG28[11]), array('url' => $_CONF['site_admin_url'] . '/user.php?mode=batchdelete', 'text' => $LANG28[54]), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$desc = '<p>' . $LANG28[25] . '</p>';
$icon = $_CONF['layout_url'] . '/images/icons/user.' . $_IMAGE_TYPE;
$retval .= ADMIN_createMenu($menu_arr, $desc, $icon);
$retval .= '<form action="' . $_CONF['site_admin_url'] . '/user.php" method="post" enctype="multipart/form-data"><div>' . $LANG28[29] . ': <input type="file" dir="ltr" name="importfile" size="40"' . XHTML . '>' . '<input type="hidden" name="mode" value="import"' . XHTML . '>' . '<input type="submit" name="submit" value="' . $LANG28[30] . '"' . XHTML . '><input type="hidden" name="' . CSRF_TOKEN . "\" value=\"{$token}\"" . XHTML . '></div></form>' . LB;
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
$retval = COM_createHTMLDocument($retval, array('pagetitle' => $LANG28[24]));
return $retval;
}
开发者ID:milk54,项目名称:geeklog-japan,代码行数:22,代码来源:user.php
示例16: _bb_viewEntry
/**
* View details of an entry
*
* @param int $id ID of the entry to display
* @param int $page page number on the list (for the back link)
* @return string HTML for the entry details
*
*/
function _bb_viewEntry($id, $page = 1)
{
global $_CONF, $_TABLES, $LANG_ADMIN, $LANG_BAD_BEHAVIOR, $LANG_BB2_RESPONSE;
$retval = '';
$donate = $LANG_BAD_BEHAVIOR['description'];
if (DB_getItem($_TABLES['vars'], 'value', "name = 'bad_behavior2.donate'") == 1) {
$donate .= '<p>' . $LANG_BAD_BEHAVIOR['donate_msg'] . '</p>' . LB;
}
$backlink = $_CONF['site_admin_url'] . '/plugins/' . BAD_BEHAVIOR_PLUGIN . '/index.php?mode=list';
if ($page > 1) {
$backlink .= '&page=' . $page;
}
// writing the menu on top
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/plugins/bad_behavior2/index.php?mode=list', 'text' => 'Log Entries'), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$retval .= COM_startBlock($LANG_BAD_BEHAVIOR['plugin_display_name'] . ' - ' . $LANG_BAD_BEHAVIOR['block_title_entry'], '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $donate, $_CONF['site_url'] . '/bad_behavior2/images/bad_behavior2.png');
$retval .= '<br />';
$templates = new Template($_CONF['path'] . 'plugins/' . BAD_BEHAVIOR_PLUGIN . '/templates');
$templates->set_file('entry', 'entry.thtml');
$templates->set_var('id', $id);
$templates->set_var('lang_ip', $LANG_BAD_BEHAVIOR['row_ip']);
$templates->set_var('lang_user_agent', $LANG_BAD_BEHAVIOR['row_user_agent']);
$templates->set_var('lang_referer', $LANG_BAD_BEHAVIOR['row_referer']);
$templates->set_var('lang_response', $LANG_BAD_BEHAVIOR['row_response']);
$templates->set_var('lang_method', $LANG_BAD_BEHAVIOR['row_method']);
$templates->set_var('lang_protocol', $LANG_BAD_BEHAVIOR['row_protocol']);
$templates->set_var('lang_date', $LANG_BAD_BEHAVIOR['row_date']);
$templates->set_var('lang_back', $LANG_BAD_BEHAVIOR['link_back']);
$templates->set_var('lang_denied_reason', $LANG_BAD_BEHAVIOR['denied_reason']);
$templates->set_var('lang_search', $LANG_BAD_BEHAVIOR['search']);
$id = DB_escapeString($id);
$result = DB_query("SELECT ip,date,request_method,request_uri,server_protocol,http_headers,user_agent,request_entity,`key` FROM " . WP_BB_LOG . " WHERE id = '{$id}'");
$A = DB_fetchArray($result);
foreach ($A as $key => $val) {
$A[$key] = htmlspecialchars($val);
}
$templates->set_var('ip', $A['ip']);
$templates->set_var('request_method', $A['request_method']);
$templates->set_var('http_host', $A['request_uri']);
$templates->set_var('server_protocol', $A['server_protocol']);
$templates->set_var('http_referer', $A['http_headers']);
$templates->set_var('http_user_agent', $A['user_agent']);
$templates->set_var('http_response', $A['request_entity']);
$templates->set_var('date_and_time', $A['date']);
$templates->set_var('http_headers', $A['http_headers']);
$templates->set_var('denied_reason', $LANG_BB2_RESPONSE[$A['key']]);
if (!empty($_CONF['ip_lookup'])) {
$iplookup = str_replace('*', $A['ip'], $_CONF['ip_lookup']);
$templates->set_var('start_ip_lookup_anchortag', '<a href="' . $iplookup . '" title="' . $LANG_BAD_BEHAVIOR['title_lookup_ip'] . '">');
$templates->set_var('end_ip_lookup_anchortag', '</a>');
} else {
$templates->set_var('start_ip_lookup_anchortag', '');
$templates->set_var('end_ip_lookup_anchortag', '');
}
$templates->parse('output', 'entry');
$retval .= $templates->finish($templates->get_var('output'));
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:spacequad,项目名称:glfusion,代码行数:67,代码来源:index.php
示例17: listRoutes
/**
* Display a list of routes
*
* @return string HTML for the list
*/
function listRoutes()
{
global $_CONF, $_TABLES, $LANG_ADMIN, $LANG_ROUTER, $_IMAGE_TYPE, $securityToken;
require_once $_CONF['path_system'] . 'lib-admin.php';
// Writing the menu on top
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/router.php?mode=edit&rid=0', 'text' => $LANG_ADMIN['create_new']), array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']));
$notice = $LANG_ROUTER[11];
if (!isset($_CONF['url_rewrite']) || empty($_CONF['url_rewrite'])) {
$notice .= ' ' . $LANG_ROUTER[18];
}
if (!isset($_CONF['url_routing']) || $_CONF['url_routing'] == Router::ROUTING_DISABLED) {
$notice .= ' ' . $LANG_ROUTER[19];
}
$retval = COM_startBlock($LANG_ROUTER[2], '', COM_getBlockTemplate('_admin_block', 'header')) . ADMIN_createMenu($menu_arr, $notice, $_CONF['layout_url'] . '/images/icons/router.' . $_IMAGE_TYPE);
$headerArray = array(array('text' => $LANG_ADMIN['edit'], 'field' => 'rid', 'sort' => false), array('text' => $LANG_ROUTER[4], 'field' => 'method', 'sort' => true), array('text' => $LANG_ROUTER[5], 'field' => 'rule', 'sort' => true), array('text' => $LANG_ROUTER[6], 'field' => 'route', 'sort' => true), array('text' => $LANG_ROUTER[7], 'field' => 'priority', 'sort' => true));
$defaultSortArray = array('field' => 'priority', 'direction' => 'asc');
$textArray = array('has_extras' => false, 'title' => $LANG_ROUTER[1], 'form_url' => $_CONF['site_admin_url'] . '/router.php');
$queryArray = array('table' => 'routes', 'sql' => "SELECT * FROM {$_TABLES['routes']} WHERE (1 = 1) ", 'query_fields' => array('rule', 'route', 'priority'), 'default_filter' => COM_getPermSql('AND'));
$retval .= ADMIN_list('routes', 'ADMIN_getListFieldRoutes', $headerArray, $textArray, $queryArray, $defaultSortArray, '', $securityToken, '');
$retval .= COM_endBlock(COM_getBlockTemplate('_admin_block', 'footer'));
return $retval;
}
开发者ID:mystralkk,项目名称:geeklog,代码行数:27,代码来源:router.php
示例18: liststories
/**
* Provide list of stories
*
* @param string $current_topic (optional) currently selected topic
* @return string HTML for the list of stories
*
*/
function liststories($current_topic = '')
{
global $_CONF, $_TABLES, $_IMAGE_TYPE, $LANG09, $LANG_ADMIN, $LANG_ACCESS, $LANG24;
require_once $_CONF['path_system'] . 'lib-admin.php';
$retval = '';
if (empty($current_topic)) {
$current_topic = TOPIC_ALL_OPTION;
}
$seltopics = TOPIC_getTopicListSelect($current_topic, 2);
if (empty($seltopics)) {
$retval .= COM_showMessage(101);
return $retval;
}
if ($current_topic == TOPIC_ALL_OPTION) {
// Retrieve list of inherited topics
// $tid_list = TOPIC_getChildList(TOPIC_ROOT);
// Retrieve list of all topics user has access to (did not do inherit way since may not see all stories has access too)
$tid_list = TOPIC_getList(0, true, false);
if (empty($tid_list)) {
$retval .= COM_showMessage(101);
return $retval;
}
$excludetopics = " (tid IN ('" . implode("','", $tid_list) . "')) ";
} else {
// Retrieve list of inherited topics
$tid_list = TOPIC_getChildList($current_topic);
// Get list of blocks to display (except for dynamic). This includes blocks for all topics, and child blocks that are inherited
$excludetopics = " (ta.tid IN({$tid_list}) AND (ta.inherit = 1 OR (ta.inherit = 0 AND ta.tid = '{$current_topic}')))";
/*
$seltopics = COM_topicList('tid,topic', $current_topic, 1, true);
if (empty($seltopics)) {
$retval .= COM_showMessage(101);
return $retval;
}
*/
}
$filter = $LANG_ADMIN['topic'] . ': <select name="tid" style="width: 125px" onchange="this.form.submit()">' . $seltopics . '</select>';
$header_arr = array(array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false), array('text' => $LANG_ADMIN['copy'], 'field' => 'copy', 'sort' => false), array('text' => $LANG_ADMIN['title'], 'field' => 'title', 'sort' => true), array('text' => $LANG_ACCESS['access'], 'field' => 'access', 'sort' => false), array('text' => $LANG24[34], 'field' => 'draft_flag', 'sort' => true));
if ($_CONF['show_fullname'] == 1) {
$header_arr[] = array('text' => $LANG24[7], 'field' => 'fullname', 'sort' => true);
// author
} else {
$header_arr[] = array('text' => $LANG24[7], 'field' => 'username', 'sort' => true);
// author
}
$header_arr[] = array('text' => $LANG24[15], 'field' => 'unixdate', 'sort' => true);
// date
$header_arr[] = array('text' => $LANG_ADMIN['topic'], 'field' => 'tid', 'sort' => true);
$header_arr[] = array('text' => $LANG24[32], 'field' => 'featured', 'sort' => true);
if (SEC_hasRights('story.ping') && ($_CONF['trackback_enabled'] || $_CONF['pingback_enabled'] || $_CONF['ping_enabled'])) {
$header_arr[] = array('text' => $LANG24[20], 'field' => 'ping', 'sort' => false);
}
$defsort_arr = array('field' => 'unixdate', 'direction' => 'desc');
$menu_arr = array(array('url' => $_CONF['site_admin_url'] . '/story.php?mode=edit', 'text' => $LANG_ADMIN['create_new']));
$menu_arr[] = array('url' => $_CONF['site_admin_url'], 'text' => $LANG_ADMIN['admin_home']);
$form_arr = array('bottom' => '', 'top' => '');
$retval .= COM_startBlock($LANG24[22], '', COM_getBlockTemplate('_admin_block', 'header'));
$retval .= ADMIN_createMenu($menu_arr, $LANG24[23], $_CONF['layout_url'] . '/images/icons/story.' . $_IMAGE_TYPE);
$text_arr = array('has_extras' => true, 'form_url' => $_CONF['site_admin_url'] . '/story.php');
$sql = "SELECT {$_TABLES['stories']}.*, {$_TABLES['users']}.username, {$_TABLES['users']}.fullname, " . "UNIX_TIMESTAMP(date) AS unixdate FROM {$_TABLES['stories']} " . "LEFT JOIN {$_TABLES['users']} ON {$_TABLES['stories']}.uid={$_TABLES['users']}.uid " . "LEFT JOIN {$_TABLES['topic_assignments']} ta ON ta.type = 'article' AND ta.id = sid " . "WHERE 1=1 ";
if (!empty($excludetopics)) {
$excludetopics = 'AND ' . $excludetopics;
}
$query_arr = array('table' => 'stories', 'sql' => $sql, 'query_group' => "sid,{$_TABLES['users']}.username,{$_TABLES['users']}.fullname", 'query_fields' => array('title', 'introtext', 'bodytext', 'sid', 'tid'), 'default_filter' => $excludetopics . COM_getPermSQL('AND'));
// Add in topic filter so it is remembered with paging
$pagenavurl = '&tid=' . $current_topic;
$retval .= ADMIN_list('story'
|
请发表评论