本文整理汇总了PHP中infotooltip_js函数的典型用法代码示例。如果您正苦于以下问题:PHP infotooltip_js函数的具体用法?PHP infotooltip_js怎么用?PHP infotooltip_js使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了infotooltip_js函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
public function display()
{
//Sort
$sort = $this->in->get('sort');
$sort_suffix = '&sort=' . $sort;
//redirect on member management
if ($this->in->exists('manage_b') && $this->in->get('manage_b') == $this->user->lang('manage_items')) {
$manage_link = './admin/listitems.php';
redirect($manage_link);
}
$start = $this->in->get('start', 0);
$pagination_suffix = $start ? '&start=' . $start : '';
//Output
$view_list = $filtered_list = $this->pdh->get('item', 'id_list');
if ($this->in->exists('search')) {
$mySearch = $this->in->get('search');
$searchType = $this->in->get('search_type') ? $this->in->get('search_type') : 'itemname';
$filtered_list = $this->filter($view_list, $searchType, $mySearch);
}
$item_count = count($filtered_list) > 0 ? count($filtered_list) : count($view_list);
$footer_text = sprintf($this->user->lang('listitems_footcount'), $item_count, $this->user->data['user_ilimit']);
//init infotooltip
infotooltip_js();
$hptt_page_settings = $this->pdh->get_page_settings('listitems', 'hptt_listitems_itemlist');
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $filtered_list, array('%link_url%' => 'viewitem.php', '%link_url_suffix%' => '', '%raid_link_url%' => 'viewraid.php', '%raid_link_url_suffix%' => '', '%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0));
$this->tpl->assign_vars(array('SEARCH_LINK' => '<input type="image" src="' . $this->root_path . 'images/glyphs/view.png" name="search_b" value="1" alt="' . $this->user->lang('Itemsearch_searchby') . '" title="' . $this->user->lang('Itemsearch_searchby') . '" class="absmiddle" />', 'MANAGE_LINK' => $this->user->check_auth('a_item_', false) ? '<a href="admin/manage_items.php' . $this->SID . '" title="' . $this->user->lang('manage_items') . '"><img src="' . $this->root_path . 'images/glyphs/edit.png" alt="' . $this->user->lang('manage_items') . '" /></a>' : '', 'PAGE_OUT' => $hptt->get_html_table($sort, $pagination_suffix, $start, $this->user->data['user_ilimit'], $footer_text), 'ITEM_PAGINATION' => generate_pagination('listitems.php' . $this->SID . $sort_suffix, $item_count, $this->user->data['user_ilimit'], $start)));
$this->core->set_vars(array('page_title' => $this->user->lang('listitems_title'), 'template_file' => 'listitems.html', 'display' => true));
}
示例2: display
public function display()
{
$isort = $this->in->get('isort');
$rsort = $this->in->get('rsort');
$ipools = $this->pdh->get('event', 'itempools', array($this->url_id));
$raid_hptt_settings = $this->pdh->get_page_settings('viewevent', 'hptt_viewevent_raidlist');
$item_hptt_settings = $this->pdh->get_page_settings('viewevent', 'hptt_viewevent_itemlist');
$raid_ids = $this->pdh->get('raid', 'raidids4eventid', array($this->url_id));
$raid_hptt = $this->get_hptt($raid_hptt_settings, $raid_ids, $raid_ids, array('%link_url%' => 'viewraid.php', '%link_url_suffix%' => ''), $this->url_id, 'rsort');
$item_ids = $this->pdh->get('item', 'itemids4eventid', array($this->url_id));
$item_hptt = $this->get_hptt($item_hptt_settings, $item_ids, $item_ids, array('%link_url%' => 'viewitem.php', '%link_url_suffix%' => '', '%raid_link_url%' => 'viewraid.php', '%raid_link_url_suffix%' => '', '%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0), $this->url_id, 'isort');
infotooltip_js();
$this->tpl->assign_vars(array('RAID_LIST' => $raid_hptt->get_html_table($rsort, '&event_id=' . $this->url_id), 'ITEM_LIST' => $item_hptt->get_html_table($isort, '&event_id=' . $this->url_id), 'EVENT_ICON' => $this->game->decorate('events', array($this->url_id, 64)), 'EVENT_NAME' => $this->pdh->get('event', 'name', array($this->url_id)), 'MDKPPOOLS' => $this->pdh->geth('event', 'multidkppools', array($this->url_id)), 'ITEMPOOLS' => $this->pdh->geth('event', 'itempools', array($this->url_id))));
$this->core->set_vars(array('page_title' => sprintf($this->user->lang('viewevent_title'), $this->pdh->get('event', 'name', array($this->url_id))), 'template_file' => 'viewevent.html', 'display' => true));
}
示例3: output
public function output()
{
if ($this->config->get('default_game') == 'wow') {
if ($this->config->get('servername') && $this->config->get('uc_server_loc')) {
$this->game->new_object('bnet_armory', 'armory', array($this->config->get('uc_server_loc'), $this->config->get('uc_data_lang')));
$guilddata = $this->game->obj['armory']->guild($this->config->get('guildtag'), $this->config->get('servername'));
$maxItems = $this->config('maxitems') ? $this->config('maxitems') : 5;
infotooltip_js();
chartooltip_js();
//Guildnews
$arrNews = $this->pdc->get('portal.module.guildnews.' . $this->user->lang_name);
if (!$arrNews) {
if ($this->config('options')) {
$arrOptions = $this->config('options');
if (count($arrOptions) < 1) {
$arrOptions = false;
}
} else {
$arrOptions = false;
}
$arrNews = $this->game->callFunc('parseGuildnews', array($guilddata['news'], $maxItems, $arrOptions));
$this->pdc->put('portal.module.guildnews.' . $this->user->lang_name, $arrNews, 3600);
}
if (is_array($arrNews) && count($arrNews) > 0) {
if (count($arrNews) > $maxItems) {
$arrNews = array_slice($arrNews, 0, $maxItems);
}
$out = '<table class="table fullwidth noborder colorswitch hoverrows">';
foreach ($arrNews as $news) {
if ($this->position == 'middle' || $this->position == 'bottom') {
$out .= '<tr><td width="30"><div style="text-align:center;"><img src="' . $news['icon'] . '" alt="" /></div></td><td>' . $news['text'] . '</td><td width="80" class="nowrap">' . $this->time->nice_date($news['date'], 60 * 60 * 24 * 7) . '</td></tr>';
} else {
$out .= '<tr><td width="30"><div style="text-align:center;"><img src="' . $news['icon'] . '" alt="" /></div></td><td>' . $news['text'] . '<div class="small italic">' . $this->time->nice_date($news['date'], 60 * 60 * 24 * 7) . '</div></td></tr>';
}
}
$out .= '</table>';
} else {
$out = $this->user->lang('guildnews_no_news');
}
}
} else {
$out = $this->user->lang('guildnews_wrong_game');
}
return $out;
}
示例4: display_event
public function display_event()
{
$this->url_id = $this->in->get('e', 0);
$isort = $this->in->get('isort');
$rsort = $this->in->get('rsort');
$ipools = $this->pdh->get('event', 'itempools', array($this->url_id));
$raid_hptt_settings = $this->pdh->get_page_settings('viewevent', 'hptt_viewevent_raidlist');
$item_hptt_settings = $this->pdh->get_page_settings('viewevent', 'hptt_viewevent_itemlist');
$raid_ids = $this->pdh->get('raid', 'raidids4eventid', array($this->url_id));
$raid_hptt = $this->get_hptt($raid_hptt_settings, $raid_ids, $raid_ids, array('%link_url%' => $this->routing->simpleBuild('raids'), '%link_url_suffix%' => '', '%use_controller%' => true), $this->url_id, 'rsort');
$raid_hptt->setPageRef($this->strPath);
$item_ids = $this->pdh->get('item', 'itemids4eventid', array($this->url_id));
$item_hptt = $this->get_hptt($item_hptt_settings, $item_ids, $item_ids, array('%link_url%' => $this->routing->simpleBuild('items'), '%link_url_suffix%' => '', '%raid_link_url%' => $this->routing->simpleBuild('raids'), '%raid_link_url_suffix%' => '', '%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0, '%use_controller%' => true), $this->url_id, 'isort');
$item_hptt->setPageRef($this->strPath);
infotooltip_js();
$this->tpl->assign_vars(array('RAID_LIST' => $raid_hptt->get_html_table($rsort, ''), 'ITEM_LIST' => $item_hptt->get_html_table($isort, ''), 'EVENT_ICON' => $this->game->decorate('events', $this->url_id, array(), 64), 'EVENT_NAME' => $this->pdh->get('event', 'name', array($this->url_id)), 'MDKPPOOLS' => $this->pdh->geth('event', 'multidkppools', array($this->url_id)), 'ITEMPOOLS' => $this->pdh->geth('event', 'itempools', array($this->url_id))));
$this->set_vars(array('page_title' => $this->pdh->get('event', 'name', array($this->url_id)), 'template_file' => 'viewevent.html', 'display' => true));
}
示例5: output
public function output()
{
$limit = $this->config->get('pk_last_items_limit') > 0 ? $this->config->get('pk_last_items_limit') : '5';
$allitems = $this->pdh->aget('item', 'date', 0, array($this->pdh->get('item', 'id_list')));
arsort($allitems);
$items = array_keys(array_slice($allitems, 0, $limit, true));
if (is_array($items) && count($items) > 0) {
$out = '<table width="100%" border="0" cellspacing="1" cellpadding="2" class="noborder colorswitch hoverrows">';
infotooltip_js();
foreach ($items as $item) {
$buyer = $this->pdh->get('item', 'buyer', array($item));
$out .= '<tr class="nowrap">' . "<td>\n\t\t\t\t\t\t\t\t\t" . $this->pdh->get('item', 'link_itt', array($item, 'viewitem.php')) . ' <br />' . $this->pdh->get('member', 'html_memberlink', array($buyer, $this->root_path . 'viewcharacter.php', '', false, false, true)) . ' (' . $this->pdh->get('item', 'html_value', array($item)) . " " . $this->config->get('dkp_name') . ")\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>";
}
$out .= '</table>';
} else {
$out = '<table width="100%" border="0" cellspacing="1" cellpadding="2" class="colorswitch"><tr><td>' . $this->user->lang('pk_last_items_noitems') . "</td></tr></table>";
}
return $out;
}
示例6: output
public function output()
{
infotooltip_js();
$limit = $this->config('limit') > 0 ? $this->config('limit') : 5;
$show_loot = $this->config('showloot');
$loot_limit = $this->config('lootLimit') > 0 ? $this->config('lootLimit') : 7;
$lastraids = $this->pdh->maget('raid', array('event', 'date', 'note', 'value'), 0, array($this->pdh->sort($this->pdh->get('raid', 'id_list'), 'raid', 'date', 'desc')));
$lastraids = array_slice($lastraids, 0, $limit, true);
foreach ($lastraids as $raid_id => $raid) {
$raid_items = $this->pdh->get('item', 'itemsofraid', array($raid_id));
$raid_items = array_slice($raid_items, 0, $loot_limit, true);
$this->tpl->assign_block_vars('pm_lr_event', array('ID' => $raid['event'], 'NAME' => $this->pdh->get('raid', 'event_name', array($raid_id)), 'DATE' => $this->time->user_date($raid['date']), 'NOTE' => strlen($raid['note']) > 40 ? substr($raid['note'], 0, 37) . '...' : $raid['note'], 'VALUE' => $raid['value'], 'ICON' => $this->game->decorate('events', $raid['event'], array(), 40), 'LINK' => $this->pdh->get('raid', 'raidlink', array($raid_id, $this->routing->simpleBuild('raids'), '', true))));
foreach ($raid_items as $item_id) {
$this->tpl->assign_block_vars('pm_lr_event.item', array('ICON' => $this->pdh->get('item', 'link_itt', array($item_id, $this->routing->simpleBuild('items'), '', false, 0, 16, false, 'icon', true)) . ' '));
}
}
$this->tpl->assign_vars(array('PM_LR_CNF_LIMIT' => $limit, 'PM_LR_CNF_SHOWLOOT' => $show_loot, 'PM_LR_CNF_LOOT_LIMIT' => $loot_limit, 'PM_LR_RAIDS' => count($lastraids)));
return 'Error: Template file is empty.';
}
示例7: output
public function output()
{
infotooltip_js();
$output = $this->pdc->get('dkp.portal.modul.lastraids.' . $this->root_path, false, true);
if (!$output) {
$output = '<table width="100%" border="0" cellspacing="1" cellpadding="2" class="colorswitch">';
$limit = $this->config->get('pk_last_raids_limit') > 0 ? $this->config->get('pk_last_raids_limit') : 5;
$lastraids = $this->pdh->maget('raid', array('event', 'date', 'note', 'value'), 0, array($this->pdh->sort($this->pdh->get('raid', 'id_list'), 'raid', 'date', 'desc')));
$lastraids = array_slice($lastraids, 0, $limit, true);
if (!is_array($lastraids) || count($lastraids) < 1) {
$output .= '<tr><td>' . $this->user->lang('lastraids_no_raids') . '</td></tr>';
$lastraids = array();
}
foreach ($lastraids as $raid_id => &$raid) {
//Items
$raid['items'] = '';
if (!$this->config->get('pk_set_lastraids_showloot')) {
$loot_limit = $this->config->get('pk_lastraids_lootLimit') > 0 ? $this->config->get('pk_lastraids_lootLimit') : 7;
$raid_items = $this->pdh->get('item', 'itemsofraid', array($raid_id));
if (is_array($raid_items)) {
$num = 0;
foreach ($raid_items as $item_id) {
if ($num > $loot_limit) {
break;
}
$raid['items'] .= $this->pdh->get('item', 'link_itt', array($item_id, '{ROOT_PATH}viewitem.php', '', false, 0, 16, false, 'icon')) . ' ';
$num++;
}
}
}
$img = str_replace($this->root_path, '{ROOT_PATH}', $this->game->decorate('events', array($raid['event'], 40)));
$link = $this->pdh->get('raid', 'raidlink', array($raid_id, '{ROOT_PATH}viewraid.php'));
$html_link = $this->pdh->geth('raid', 'raidlink', array($raid_id, '{ROOT_PATH}viewraid.php'));
$raid['note'] = strlen($raid['note']) > 40 ? substr($raid['note'], 0, 37) . '...' : $raid['note'];
$output .= '<tr><td width="42"><a href="' . $link . '">' . $img . '</a></td>';
$output .= '<td>' . $html_link . '<br />' . $this->time->user_date($raid['date']) . '<br />' . $raid['note'] . '<br />' . $raid['items'] . '</td></tr>';
}
$output .= '</table>';
$this->pdc->put('dkp.portal.modul.lastraids.' . $this->root_path, $output, 86400, false, true);
}
return str_replace('{ROOT_PATH}', $this->root_path, $output);
}
示例8: display
public function display()
{
// We want to view items by name and not id, so get the name
$item_name = $this->pdh->get('item', 'name', array($this->url_id));
if (empty($item_name)) {
message_die($this->user->lang('error_invalid_item_provided'));
}
#search for the gameid
$game_id = $this->pdh->get('item', 'game_itemid', array($this->url_id));
//Sort
$sort = $this->in->get('sort');
$item_ids = array();
if ($game_id > 1) {
$item_ids = $this->pdh->get('item', 'ids_by_ingameid', array($game_id));
} else {
$item_ids = $this->pdh->get('item', 'ids_by_name', array($item_name));
}
$counter = sizeof($item_ids);
//default now col
$colspan = $this->config->get('infotooltip_use') ? 1 : 0;
#Itemhistory Diagram
if ($this->config->get('pk_itemhistory_dia')) {
$colspan++;
}
//Comments
$comm_settings = array('attach_id' => md5(stripslashes($item_name)), 'page' => 'items');
$this->comments->SetVars($comm_settings);
$COMMENT = $this->config->get('pk_enable_comments') == 1 ? $this->comments->Show() : '';
//init infotooltip
infotooltip_js();
$hptt_page_settings = $this->pdh->get_page_settings('viewitem', 'hptt_viewitem_buyerslist');
$hptt = $this->get_hptt($hptt_page_settings, $item_ids, $item_ids, array('%raid_link_url%' => 'viewraid.php', '%raid_link_url_suffix%' => ''), $this->url_id);
//linechart data
if ($this->config->get('pk_itemhistory_dia')) {
$a_items = array();
foreach ($item_ids as $item_id) {
$a_items[] = array('name' => $this->time->date("Y-m-d H:i:s", $this->pdh->get('item', 'date', array($item_id))), 'value' => $this->pdh->get('item', 'value', array($item_id)));
}
}
$this->tpl->assign_vars(array('ITEM_STATS' => $this->pdh->get('item', 'itt_itemname', array($this->url_id, 0, 1)), 'ITEM_CHART' => $this->config->get('pk_itemhistory_dia') && count($a_items) > 1 ? $this->jquery->LineChart('item_chart', $a_items, '', 200, 500, '', false, true, 'date') : '', 'ITEM_MODEL' => isset($model3d) ? $model3d : false, 'COMMENT' => $COMMENT, 'SHOW_ITEMSTATS' => $this->config->get('infotooltip_use') ? true : false, 'SHOW_ITEMHISTORYA' => $this->config->get('pk_itemhistory_dia') == 1 ? true : false, 'SHOW_COLSPAN' => $colspan, 'BUYERS_TABLE' => $hptt->get_html_table($sort, '&i=' . $this->url_id, 0, 100, sprintf($this->user->lang('viewitem_footcount'), $counter)), 'L_PURCHASE_HISTORY_FOR' => sprintf($this->user->lang('purchase_history_for'), stripslashes($item_name))));
$this->core->set_vars(array('page_title' => sprintf($this->user->lang('viewitem_title'), stripslashes($item_name)), 'template_file' => 'viewitem.html', 'display' => true));
}
示例9: output
public function output()
{
$limit = $this->config('limit') > 0 ? $this->config('limit') : '5';
$allitems = $this->pdh->aget('item', 'date', 0, array($this->pdh->get('item', 'id_list')));
arsort($allitems);
$items = array_keys(array_slice($allitems, 0, $limit, true));
if (is_array($items) && count($items) > 0) {
$out = '<table class="table fullwidth colorswitch hoverrows">';
infotooltip_js();
foreach ($items as $item) {
$buyer = $this->pdh->get('item', 'buyer', array($item));
$out .= '<tr>' . "<td>\n\t\t\t\t\t\t\t\t\t" . $this->pdh->get('item', 'link_itt', array($item, $this->routing->simpleBuild('items'), '', false, false, false, false, false, true)) . ' <br />' . $this->pdh->get('member', 'html_memberlink', array($buyer, $this->routing->simpleBuild('character'), '', false, false, true, true));
if ($this->config->get('enable_points')) {
$out .= ' (' . $this->pdh->get('item', 'html_value', array($item)) . " " . $this->config->get('dkp_name') . ")";
}
$out .= "\t\t\t</td>\n\t\t\t\t\t\t\t</tr>";
}
$out .= '</table>';
} else {
$out = $this->user->lang('pk_last_items_noitems');
}
return $out;
}
示例10: display
public function display($messages = false)
{
if ($messages) {
$this->pdh->process_hook_queue();
$this->core->messages($messages);
}
infotooltip_js();
$this->pdh->get('guildbank_auctions', 'counterJS');
require_once $this->root_path . 'plugins/guildbank/includes/systems/guildbank.esys.php';
$view_auctions = $this->pdh->get('guildbank_auctions', 'id_list', array(false));
$hptt_auctions = $this->get_hptt($systems_guildbank['pages']['hptt_guildbank_admin_auctions'], $view_auctions, $view_auctions, array('%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0));
$page_suffix = '&start=' . $this->in->get('start', 0);
$sort_suffix = '&sort=' . $this->in->get('sort');
$auctions_count = count($view_auctions);
$auctions_footer = sprintf($this->user->lang('gb_footer_auction'), $auctions_count, $this->user->data['user_ilimit']);
$redirect_url = 'manage_auctions.php' . $this->SID;
$transactions_url = 'manage_auctions.php' . $this->SID . '&simple_head=true&addedit=true';
$this->jquery->dialog('add_auction', $this->user->lang('gb_auction_head_add'), array('url' => $transactions_url, 'width' => 600, 'height' => 440, 'onclose' => $redirect_url));
$this->jquery->dialog('edit_auction', $this->user->lang('gb_auction_head_edit'), array('url' => $transactions_url . "&auction='+id+'", 'width' => 600, 'height' => 500, 'onclose' => $redirect_url, 'withid' => 'id'));
$this->confirm_delete($this->user->lang('gb_confirm_delete_auctions'));
$this->tpl->assign_vars(array('AUCTION_LIST' => $hptt_auctions->get_html_table($this->in->get('sort'), $page_suffix, $this->in->get('start', 0), $this->user->data['user_ilimit'], $auctions_footer), 'PAGINATION_AUCTION' => generate_pagination('manage_auctions.php' . $this->SID . $sort_suffix, $auctions_count, $this->user->data['user_ilimit'], $this->in->get('start', 0))));
$this->core->set_vars(array('page_title' => $this->user->lang('gb_manage_auctions'), 'template_path' => $this->pm->get_data('guildbank', 'template_path'), 'template_file' => 'admin/manage_auctions.html', 'display' => true));
}
示例11: infotooltip_js
<?php
infotooltip_js();
// init infotooltip
// das kommt später raus, wenn alles sauber aufgeteilt und verabeitet ist......
$this->tpl->css_file($this->root_path . 'games/wow_assasinen/profiles/templates/profile.css');
$this->tpl->css_file($this->root_path . 'games/wow_assasinen/profiles/templates/summary.css');
$this->tpl->css_file($this->root_path . 'games/wow_assasinen/profiles/templates/pet.css');
$this->tpl->css_file($this->root_path . 'games/wow_assasinen/profiles/templates/zone.css');
//---------
// fetch and prepare arsenal data
$arrData = $this->pdh->get('arsenal_character', 'data', array($this->url_id));
$arrData['stats'] = json_decode($arrData['stats'], true);
$arrData['titles'] = json_decode($arrData['titles'], true);
$arrData['reputation'] = json_decode($arrData['reputation'], true);
$arrData['currencies'] = json_decode($arrData['currencies'], true);
$arrData['talents'] = json_decode($arrData['talents'], true);
$arrData['professions'] = json_decode($arrData['professions'], true);
$arrData['mounts'] = json_decode($arrData['mounts'], true);
// sollte doch eig als "companions" mit critters gemerged sein??!!
$arrData['critters'] = json_decode($arrData['critters'], true);
$arrData['inventory'] = json_decode($arrData['inventory'], true);
$arrData['faction'] = in_array($arrData['race'], array(0, 5, 6, 7, 8, 10, 12)) ? 'horde' : 'alliance';
// Arsenal Page Controller
switch ($page_name = $this->in->get('page')) {
case 'professions':
break;
default:
$content = $this->arsenal->character_main_page($arrData);
$page_name = 'overview';
}
示例12: display
public function display()
{
if (!$this->url_id) {
$strReferer = $this->env->get_referer();
if (stripos($strReferer, "ref=mc") !== 0) {
redirect($this->routing->build('MyCharacters', false, false, true, true));
} else {
if ($this->config->get('disable_points')) {
redirect($this->routing->build('roster', false, false, true, true));
} else {
redirect($this->routing->build('points', false, false, true, true));
}
}
}
$member_name = $this->pdh->get('member', 'name', array($this->url_id));
if ($member_name == '') {
message_die($this->user->lang('error_invalid_name_provided'));
}
$withTwinksDKP = $this->in->exists('with_twinks') ? $this->in->get('with_twinks') : !$this->config->get('show_twinks');
// Raid Attendance
$view_list = $this->pdh->get('raid', 'raidids4memberid', array($this->url_id));
$hptt_page_settings = $this->pdh->get_page_settings('viewmember', 'hptt_viewmember_raidlist');
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%link_url%' => $this->routing->simpleBuild('raids'), '%link_url_suffix%' => '', '%with_twink%' => false, '%use_controller%' => true), $this->url_id, 'rsort');
$hptt->setPageRef($this->strPath);
$this->tpl->assign_vars(array('RAID_OUT' => $hptt->get_html_table($this->in->get('rsort', ''), $this->vc_build_url('rsort'), $this->in->get('rstart', 0), $this->user->data['user_rlimit']), 'RAID_PAGINATION' => generate_pagination($this->vc_build_url('rstart', true), count($view_list), $this->user->data['user_rlimit'], $this->in->get('rstart', 0), 'rstart')));
// Item History
infotooltip_js();
$view_list = $this->pdh->get('item', 'itemids4memberid', array($this->url_id));
$hptt_page_settings = $this->pdh->get_page_settings('viewmember', 'hptt_viewmember_itemlist');
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%link_url%' => $this->routing->simpleBuild('items'), '%link_url_suffix%' => '', '%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0, '%raid_link_url%' => $this->routing->simpleBuild('raids'), '%raid_link_url_suffix%' => '', '%use_controller%' => true), $this->url_id, 'isort');
$hptt->setPageRef($this->strPath);
$this->tpl->assign_vars(array('ITEM_OUT' => $hptt->get_html_table($this->in->get('isort', ''), $this->vc_build_url('isort'), $this->in->get('istart', 0), $this->user->data['user_ilimit']), 'ITEM_PAGINATION' => generate_pagination($this->vc_build_url('istart', true), count($view_list), $this->user->data['user_ilimit'], $this->in->get('istart', 0), 'istart')));
// Individual Adjustment History
$view_list = $this->pdh->get('adjustment', 'adjsofmember', array($this->url_id));
$hptt_page_settings = $this->pdh->get_page_settings('viewmember', 'hptt_viewmember_adjlist');
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%raid_link_url%' => $this->routing->simpleBuild('raids'), '%raid_link_url_suffix%' => '', '%use_controller%' => true), $this->url_id, 'asort');
$hptt->setPageRef($this->strPath);
$this->tpl->assign_vars(array('ADJUSTMENT_OUT' => $hptt->get_html_table($this->in->get('asort', ''), $this->vc_build_url('asort'), $this->in->get('astart', 0), $this->user->data['user_alimit']), 'ADJUSTMENT_PAGINATION' => generate_pagination($this->vc_build_url('astart', true), count($view_list), $this->user->data['user_alimit'], $this->in->get('astart', 0), 'astart')));
//Event-Attendance
$view_list = $this->pdh->get('event', 'id_list');
$hptt_page_settings = $this->pdh->get_page_settings('viewmember', 'hptt_viewmember_eventatt');
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%member_id%' => $this->url_id, '%link_url%' => $this->routing->simpleBuild('events'), '%link_url_suffix%' => '', '%with_twinks%' => false, '%use_controller%' => true), $this->url_id, 'esort');
$hptt->setPageRef($this->strPath);
$this->tpl->assign_vars(array('EVENT_ATT_OUT' => $hptt->get_html_table($this->in->get('esort', ''), $this->vc_build_url('esort'))));
// Load member Data to an array
$member = $this->pdh->get('member', 'array', array($this->url_id));
$last_update = $this->time->user_date($member['last_update'] ? $member['last_update'] : 0, true);
// load profile files in the game folder if available
$profilefolder = $this->root_path . 'games/' . $this->game->get_game() . '/profiles/';
$profile_tplfile = 'profile_view.html';
$profile_owntpl = false;
if (is_file($profilefolder . 'profile_additions.php') || is_file($profilefolder . 'profile_view.html')) {
if (is_file($profilefolder . 'profile_additions.php')) {
include $profilefolder . 'profile_additions.php';
}
if (is_file($profilefolder . 'profile_view.html')) {
$profile_tplfile = $profilefolder . 'profile_view.html';
}
$profile_owntpl = true;
}
$this->comments->SetVars(array('ntfy_user' => array($this->pdh->get('member', 'user', array($this->url_id)))));
$this->jquery->Tab_header('profile_information', true);
//Member DKP
$view_list = $this->pdh->get('multidkp', 'id_list');
$hptt_page_settings = $this->pdh->get_page_settings('viewmember', 'hptt_viewmember_points');
if (!$withTwinksDKP) {
$hptt_page_settings['show_detail_twink'] = false;
}
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%member_id%' => $this->url_id, '%with_twink%' => $withTwinksDKP, '%use_controller%' => true), $this->url_id . '.' . $withTwinksDKP, 'msort');
$hptt->setPageRef($this->strPath);
$profile_out = array('PROFILE_OUTPUT' => $profile_tplfile, 'COMMENT' => $this->config->get('enable_comments') == 1 ? $this->comments->Show() : '', 'LAST_UPDATE' => $last_update, 'MEMBER_POINTS' => $hptt->get_html_table($this->in->get('msort', 0), $this->vc_build_url('msort')), 'L_DKP_NAME' => !$this->config->get('disable_points') ? $this->config->get('dkp_name') . " " . $this->user->lang('information') : $this->user->lang('tab_attendance'), 'U_VIEW_MEMBER' => $this->vc_build_url('', true) . '&', 'DATA_GUILDTAG' => $this->config->get('guildtag'), 'CHARDATA_NAME' => $member_name, 'S_CHARDATA_PICTURE' => $this->pdh->get('member', 'picture', array($this->url_id)) != "" ? true : false, 'CHARDATA_PICTURE' => $this->pdh->geth('member', 'picture', array($this->url_id)), 'DATA_CLASSNAME' => $this->pdh->get('member', 'classname', array($this->url_id)), 'NOTES' => isset($member['notes']) && $member['notes'] != '' ? $member['notes'] : $this->user->lang('no_notes'), 'S_WITH_TWINK_DKP' => $withTwinksDKP ? true : false, 'IMG_CLASSICON' => $this->game->decorate('primary', $member[$this->game->get_primary_class(true)], $this->pdh->get('member', 'profiledata', array($this->url_id))), 'IMG_FULLYDECORATED' => $this->game->decorate_character($this->url_id, $char_id));
// Add the game-specific Fields...
foreach ($member as $profile_id => $profile_value) {
$profile_out['DATA_ID_' . strtoupper($profile_id)] = $profile_value;
$profile_out['DATA_NAME_' . strtoupper($profile_id)] = $this->pdh->geth('member', 'profile_field', array($this->url_id, $profile_id, true));
$profile_out['DATA_' . strtoupper($profile_id)] = $this->pdh->geth('member', 'profile_field', array($this->url_id, $profile_id));
$profile_out['L_' . strtoupper($profile_id)] = $this->game->glang($profile_id);
}
// the profile fields
if (!$profile_owntpl) {
$pfields = $this->pdh->get('profile_fields', 'fields');
$category = array();
$this->jquery->Tab_header('profile_field_data', true);
if (is_array($pfields) && count($pfields) > 0) {
foreach ($pfields as $pfid => $pfoption) {
$pfname = $pfoption['name'];
// only relevant data!
$category[$pfoption['category']][$pfname] = $pfoption;
}
foreach ($category as $catname => $catvalues) {
$this->tpl->assign_block_vars('cat_data', array('NAME' => $this->game->glang('uc_cat_' . $catname) ? $this->game->glang('uc_cat_' . $catname) : $this->user->lang('uc_cat_' . $catname), 'ID' => 'id_' . $catname));
foreach ($catvalues as $pfname => $pfoption) {
if ($pfoption['category'] == $catname && $pfoption['enabled'] == '1' && $pfoption['type'] != 'hidden') {
$this->tpl->assign_block_vars('cat_data.pfield_data', array('NAME' => $this->pdh->get('member', 'html_caption_profile_field', array($pfname)), 'VALUE' => $this->pdh->get('member', 'html_profile_field', array($this->url_id, $pfname))));
}
}
}
$this->tpl->assign_var('S_PFIELDS', true);
} else {
$this->tpl->assign_var('S_PFIELDS', false);
//.........这里部分代码省略.........
示例13: parse_shorttags
public function parse_shorttags($text, $filter = array())
{
$tags = preg_split('/{{([^}]+)}}/', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
$strBuffer = '';
for ($rit = 0; $rit < count($tags); $rit = $rit + 2) {
$strBuffer .= $tags[$rit];
if (!isset($tags[$rit + 1])) {
break;
}
$strTag = $tags[$rit + 1];
$arrCache = array();
// Load value from cache array
if (isset($arrCache[$strTag])) {
$strBuffer .= $arrCache[$strTag];
continue;
}
$elements = explode('::', $strTag);
//Check Filter
if (is_array($filter) && count($filter) > 0 && !in_array(strtolower($elements[0]), $filter)) {
continue;
}
// Replace tag
switch (strtolower($elements[0])) {
case 'article_url':
$strPath = $this->controller_path . $this->pdh->get('articles', 'path', array($elements[1]));
$arrCache[$strTag] = $strPath ? $strPath : '';
break;
case 'article_url_plain':
$strPath = $this->controller_path_plain . $this->pdh->get('articles', 'path', array($elements[1]));
$arrCache[$strTag] = $strPath ? $strPath : '';
break;
case 'category_url':
$strPath = $this->controller_path . $this->pdh->get('article_categories', 'path', array($elements[1]));
$arrCache[$strTag] = $strPath ? $strPath : '';
break;
case 'category_url_plain':
$strPath = $this->controller_path_plain . $this->pdh->get('article_categories', 'path', array($elements[1]));
$arrCache[$strTag] = $strPath ? $strPath : '';
break;
case 'server':
switch ($elements[1]) {
case 'name':
$arrCache[$strTag] = $this->config->get('servername');
break;
case 'location':
$arrCache[$strTag] = $this->config->get('uc_server_loc');
break;
}
break;
case 'user':
switch ($elements[1]) {
case 'name':
$this->username = !$this->user->is_signedin() ? $this->user->lang('guest') : $this->pdh->get('user', 'name', array($this->user->data['user_id']));
$arrCache[$strTag] = $this->username;
break;
}
break;
case 'guild':
switch ($elements[1]) {
case 'name':
$arrCache[$strTag] = $this->config->get('guildtag');
break;
}
break;
case 'char':
if (is_numeric($elements[1])) {
$member_id = intval($elements[1]);
} else {
$member_id = $this->pdh->get('member', 'id', array($elements[1]));
}
if ($member_id) {
$arrCache[$strTag] = $this->pdh->get('member', 'memberlink_decorated', array($member_id, $this->routing->simpleBuild('character'), '', true));
}
break;
case 'itemid':
infotooltip_js();
$item = "";
$game_id = strip_tags($elements[1]);
$str = infotooltip($item, $game_id);
$arrCache[$strTag] = $str;
break;
case 'item':
infotooltip_js();
$item = strip_tags($elements[1]);
if (strpos('id:', $item) === 0) {
$game_id = substr($item, 3);
$str = infotooltip("", $game_id);
$arrCache[$strTag] = $str;
} else {
$game_id = is_numeric($item) ? intval($item) : 0;
$str = infotooltip($item, $game_id);
$arrCache[$strTag] = $str;
}
break;
}
$strBuffer .= $arrCache[$strTag];
}
return $strBuffer;
}
示例14: display
public function display($messages = false, $banker = false)
{
$bankerID = $banker > 0 ? $banker : $this->in->get('g', 0);
$banker_name = $this->pdh->get('guildbank_banker', 'name', array($bankerID));
//init infotooltip
infotooltip_js();
$this->money->loadMoneyClass();
require_once $this->root_path . 'plugins/guildbank/includes/systems/guildbank.esys.php';
// -- display entries ITEMS ------------------------------------------------
$view_items = $this->pdh->get('guildbank_items', 'id_list', array($bankerID));
$hptt_items = $this->get_hptt($systems_guildbank['pages']['hptt_guildbank_admin_items'], $view_items, $view_items, array('%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0));
$page_suffix = '&start=' . $this->in->get('start', 0);
$sort_suffix = '&sort=' . $this->in->get('sort');
$item_count = count($view_items);
$item_footer = sprintf($this->user->lang('listitems_footcount'), $item_count, $this->user->data['user_ilimit']);
// -- display entries TRANSACTIONS -----------------------------------------
$ta_list = $this->pdh->get('guildbank_transactions', 'id_list', array($bankerID));
$hptt_transa = $this->get_hptt($systems_guildbank['pages']['hptt_guildbank_admin_transactions'], $ta_list, $ta_list, array('%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0));
$ta_count = count($ta_list);
$footer_transa = sprintf($this->user->lang('listitems_footcount'), $ta_count, $this->user->data['user_ilimit']);
// start ouptut
$this->jquery->Tab_header('guildbank_tab');
// build the url for the dialogs
$redirect_url = 'manage_bank_details.php' . $this->SID . '&g=' . $bankerID . '&details=true';
$transactions_url = 'manage_bank_details.php' . $this->SID . '&simple_head=true&addedit=true&g=' . $bankerID;
$payout_url = 'manage_bank_details.php' . $this->SID . '&simple_head=true&g=' . $bankerID;
$this->jquery->dialog('add_transaction', $this->user->lang('gb_manage_bank_transa'), array('url' => $transactions_url . '&mode=1', 'width' => 600, 'height' => 450, 'onclose' => $redirect_url));
$this->jquery->dialog('edit_transaction', $this->user->lang('gb_manage_bank_transa'), array('url' => $transactions_url . "&mode=1&t='+id+'", 'width' => 600, 'height' => 450, 'onclose' => $redirect_url, 'withid' => 'id'));
$this->jquery->dialog('add_item', $this->user->lang('gb_ta_head_item'), array('url' => $transactions_url . '&mode=0', 'width' => 600, 'height' => 580, 'onclose' => $redirect_url));
$this->jquery->dialog('edit_item', $this->user->lang('gb_ta_head_item'), array('url' => $transactions_url . "&mode=0&i='+id+'", 'width' => 600, 'height' => 580, 'onclose' => $redirect_url, 'withid' => 'id'));
$this->jquery->dialog('payout_item', $this->user->lang('gb_ta_head_payout'), array('url' => $payout_url . "&payout=true", 'width' => 600, 'height' => 400, 'onclose' => $redirect_url));
$this->confirm_delete($this->user->lang('confirm_delete_items'));
$this->tpl->assign_vars(array('BANKID' => $bankerID, 'SID' => $this->SID, 'BANKNAME' => $this->pdh->get('guildbank_banker', 'name', array($bankerID)), 'ITEM_LIST' => $hptt_items->get_html_table($this->in->get('sort'), $page_suffix, $this->in->get('start', 0), $this->user->data['user_ilimit'], $item_footer), 'PAGINATION_ITEMS' => generate_pagination('manage_bank_details.php' . $this->SID . '&g=' . $bankerID . $sort_suffix, $item_count, $this->user->data['user_ilimit'], $this->in->get('start', 0)), 'ITEMS_COLUMN_COUNT' => $hptt_items->get_column_count(), 'TRANSA_LIST' => $hptt_transa->get_html_table($this->in->get('sort'), $page_suffix, $this->in->get('start', 0), $this->user->data['user_ilimit'], $footer_transa), 'TRANSA_PAGINATION' => generate_pagination('manage_bank_details.php' . $this->SID . '&g=' . $bankerID . $sort_suffix, $ta_count, $this->user->data['user_ilimit'], $this->in->get('start', 0)), 'TRANSA_COLUMN_COUNT' => $hptt_transa->get_column_count(), 'L_BC_CURRENTPAGE' => sprintf($this->user->lang('gb_manage_bank_items_title'), $banker_name)));
$this->core->set_vars(array('page_title' => sprintf($this->user->lang('gb_manage_bank_items_title'), $banker_name), 'template_file' => 'admin/manage_banker_items.html', 'template_path' => $this->pm->get_data('guildbank', 'template_path'), 'display' => true));
}
示例15: display_member_history
public function display_member_history()
{
$intMemberID = $this->in->get('member', 0);
$strMembername = $this->pdh->get('member', 'name', array($intMemberID));
$withTwinksDKP = false;
// Raids
$view_list = $this->pdh->get('raid', 'raidids4memberid', array($intMemberID));
$hptt_page_settings = $this->pdh->get_page_settings('admin_manage_raids', 'hptt_admin_manage_raids_raidlist');
$hptt_page_settings['selectbox_name'] = 'raid_ids';
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%link_url%' => 'manage_raids.php', '%link_url_suffix%' => '&upd=true', '%with_twink%' => false, '%use_controller%' => false), 'history_' . $intMemberID, 'rsort');
$hptt->setPageRef($this->root_path . 'admin/manage_members.php');
$this->tpl->assign_vars(array('RAID_OUT' => $hptt->get_html_table($this->in->get('rsort', ''), $this->vc_build_url('rsort'), $this->in->get('rstart', 0), $this->user->data['user_rlimit']), 'RAID_PAGINATION' => generate_pagination($this->vc_build_url('rstart', true), count($view_list), $this->user->data['user_rlimit'], $this->in->get('rstart', 0), 'rstart')));
// Item History
infotooltip_js();
$view_list = $this->pdh->get('item', 'itemids4memberid', array($intMemberID));
$hptt_page_settings = $this->pdh->get_page_settings('admin_manage_items', 'hptt_admin_manage_items_itemlist');
$hptt_page_settings['selectbox_name'] = 'item_ids';
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%link_url%' => 'manage_items.php', '%link_url_suffix%' => '&upd=true', '%raid_link_url%' => 'manage_raids.php', '%raid_link_url_suffix%' => '&upd=true', '%itt_lang%' => false, '%itt_direct%' => 0, '%onlyicon%' => 0, '%noicon%' => 0), 'history_' . $intMemberID, 'isort');
$hptt->setPageRef($this->root_path . 'admin/manage_members.php');
$this->tpl->assign_vars(array('ITEM_OUT' => $hptt->get_html_table($this->in->get('isort', ''), $this->vc_build_url('isort'), $this->in->get('istart', 0), $this->user->data['user_ilimit']), 'ITEM_PAGINATION' => generate_pagination($this->vc_build_url('istart', true), count($view_list), $this->user->data['user_ilimit'], $this->in->get('istart', 0), 'istart')));
// Individual Adjustment History
$view_list = $this->pdh->get('adjustment', 'adjsofmember', array($intMemberID));
$hptt_page_settings = $this->pdh->get_page_settings('admin_manage_adjustments', 'hptt_admin_manage_adjustments_adjlist');
$hptt_page_settings['selectbox_name'] = 'adj_ids';
$hptt = $this->get_hptt($hptt_page_settings, $view_list, $view_list, array('%link_url%' => 'manage_adjustments.php', '%link_url_suffix%' => '&upd=true', '%raid_link_url%' => 'manage_raids.php', '%raid_link_url_suffix%' => '&upd=true'), 'history_' . $intMemberID, 'asort');
$hptt->setPageRef($this->root_path . 'admin/manage_members.php');
$this->tpl->assign_vars(array('ADJUSTMENT_OUT' => $hptt->get_html_table($this->in->get('asort', ''), $this->vc_build_url('asort'), $this->in->get('astart', 0), $this->user->data['user_alimit']), 'ADJUSTMENT_PAGINATION' => generate_pagination($this->vc_build_url('astart', true), count($view_list), $this->user->data['user_alimit'], $this->in->get('astart', 0), 'astart')));
$this->jquery->Tab_header('profile_information', true);
$this->tpl->assign_vars(array('MEMBER_NAME' => $strMembername, 'MEMBER_ID' => $intMemberID));
$this->core->set_vars(array('page_title' => $this->user->lang('manage_members_title') . ': ' . $strMembername, 'template_file' => 'admin/manage_members_history.html', 'header_format' => $this->simple_head, 'display' => true));
}