本文整理汇总了PHP中user_theme函数的典型用法代码示例。如果您正苦于以下问题:PHP user_theme函数的具体用法?PHP user_theme怎么用?PHP user_theme使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了user_theme函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
if (!$no_menu) {
$context = array();
$context['themePath'] = $path_to_root . '/themes/' . user_theme();
$context['selected_application'] = $_SESSION['sel_app'];
$context['applications'] = array();
$local_path_to_root = $path_to_root;
$applications = $_SESSION['App']->applications;
foreach ($applications as $app) {
if ($_SESSION["wa_current_user"]->check_application_access($app)) {
$acc = access_string($app->name);
$context['applications'][] = array('id' => $app->id, 'link' => $local_path_to_root . '/index.php?application=' . $app->id, 'name' => $acc[0], 'class' => $app->id == $_SESSION['sel_app'] ? 'active' : '', 'accessKey' => $acc[1]);
}
}
$navBar = ThemeBootstrap::get()->render('nav.twig.html', $context);
echo $navBar;
// top status bar
$context = array('rootPath' => $local_path_to_root, 'companyName' => $db_connections[$_SESSION["wa_current_user"]->company]["name"], 'serverName' => $_SERVER['SERVER_NAME'], 'userDisplayName' => $_SESSION["wa_current_user"]->name, 'userName' => $_SESSION["wa_current_user"]->username, 'ajaxIndicator' => "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif");
$statusBar = ThemeBootstrap::get()->renderBlock('page.twig.html', 'status', $context);
echo $statusBar;
}
// echo "</td></tr></table>";
// if ($no_menu)
// echo "<br>";
// elseif ($title && ! $is_index) {
// echo "<center><table id='title'><tr><td width='100%' class='titletext'>$title</td>" . "<td align=right>" . (user_hints() ? "<span id='hints'></span>" : '') . "</td>" . "</tr></table></center>";
// }
}
开发者ID:wizzard94,项目名称:frontaccounting-theme-bootstrap,代码行数:30,代码来源:renderer.php
示例2: display
function display()
{
global $path_to_root;
include_once $path_to_root . "/themes/" . user_theme() . "/renderer.php";
$this->init();
$rend = new renderer();
$rend->wa_header();
$rend->display_applications($this);
$rend->wa_footer();
$this->renderer =& $rend;
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:11,代码来源:frontaccounting.php
示例3: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections, $app_title, $version;
$sel_app = $_SESSION['sel_app'];
echo "<div id='content'>\n";
if (!$no_menu) {
$applications = $_SESSION['App']->applications;
echo "<div id='top'>\n";
echo "<p>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</p>\n";
echo "<ul>\n";
echo " <li><a class='shortcut' href='{$path_to_root}/admin/display_prefs.php?'>" . _("Preferences") . "</a></li>\n";
echo " <li><a class='shortcut' href='{$path_to_root}/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a></li>\n";
if ($help_base_url != null) {
echo " <li><a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'>" . _("Help") . "</a></li>";
}
echo " <li><a class='shortcut' href='{$path_to_root}/access/logout.php?'>" . _("Logout") . "</a></li>";
echo "</ul>\n";
echo "</div>\n";
echo "<div id='logo'>\n";
$indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
echo "<h1>{$app_title} {$version}<span style='padding-left:280px;'><img id='ajaxmark' src='{$indicator}' align='center' style='visibility:hidden;'></span></h1>\n";
echo "<p id='slogan'>" . _("Theme:") . " " . user_theme() . "</p>\n";
echo "</div>\n";
$local_path_to_root = $path_to_root;
echo "<ul id='_tabs'>\n";
foreach ($applications as $app) {
$acc = access_string($app->name);
echo "<li><a class='" . ($sel_app == $app->id ? 'selected' : 'menu_tab') . "' href='{$local_path_to_root}/index.php?application=" . $app->id . "'{$acc['1']}>" . $acc[0] . "</a></li>\n";
}
echo "</ul>\n";
}
echo "<div id='wrapper'>\n";
if ($no_menu) {
echo "<br>";
} elseif ($title && !$is_index) {
echo "<center><table id='title'><tr><td width='100%' class='titletext'>{$title}</td>" . "<td align=right>" . (user_hints() ? "<span id='hints'></span>" : '') . "</td>" . "</tr></table></center>";
}
}
开发者ID:blestab,项目名称:frontaccounting,代码行数:38,代码来源:renderer.php
示例4: menu_footer
function menu_footer($no_menu, $is_index)
{
global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax;
include_once $path_to_root . "/includes/date_functions.inc";
echo "</td></tr></table>\n";
// 'main_page'
if ($no_menu == false) {
if ($is_index) {
echo "<table class='bottomBar'>\n";
} else {
echo "<table class='bottomBar2'>\n";
}
echo "<tr>";
if (isset($_SESSION['wa_current_user'])) {
$phelp = implode('; ', $Pagehelp);
echo "<td class='bottomBarCell'>" . Today() . " | " . Now() . "</td>\n";
$Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
echo "<td id='hotkeyshelp'>" . $phelp . "</td>";
}
echo "</tr></table>\n";
}
echo "</td></tr> </table>\n";
// 'callout_main'
if ($no_menu == false) {
echo "<table align='center' id='footer'>\n";
echo "<tr>\n";
echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}' tabindex='-1'><font color='#ffffff'>{$app_title} {$version} - " . _("Theme:") . " " . user_theme() . " - " . show_users_online() . "</font></a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}' tabindex='-1'><font color='#ffff00'>{$power_by}</font></a></td>\n";
echo "</tr>\n";
if ($allow_demo_mode == true) {
echo "<tr>\n";
//echo "<td><br><div align='center'><a href='http://sourceforge.net'><img src='http://sourceforge.net/sflogo.php?group_id=89967&type=5' alt='SourceForge.net Logo' width='210' height='62' border='0' align='center' /></a></div></td>\n";
echo "</tr>\n";
}
echo "</table><br><br>\n";
}
}
开发者ID:M-Shahbaz,项目名称:FA,代码行数:39,代码来源:renderer.php
示例5: pager_button
function pager_button($name, $value, $enabled = true, $icon = false)
{
global $path_to_root;
return "<button " . ($enabled ? '' : 'disabled') . " class=\"navibutton\" type=\"submit\"" . " name=\"{$name}\" id=\"{$name}\" value=\"{$value}\">" . ($icon ? "<img src='{$path_to_root}/themes/" . user_theme() . "/images/" . $icon . "'>" : '') . "<span>{$value}</span></button>\n";
}
开发者ID:wizzard94,项目名称:frontaccounting-theme-bootstrap,代码行数:5,代码来源:ControlRendererBootstrap.php
示例6: decseps_list_row
/* The array $thoseps is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
decseps_list_row(_("Decimal Separator:"), "dec_sep", user_dec_sep());
/* The array $decseps is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
if (!isset($_POST['language'])) {
$_POST['language'] = $_SESSION['language']->code;
}
table_section_title(_("Language"));
languages_list_row(_("Language:"), 'language', $_POST['language']);
table_section(2);
table_section_title(_("Miscellaneous"));
check_row(_("Show hints for new users:"), 'show_hints', user_hints());
check_row(_("Show GL Information:"), 'show_gl', user_show_gl_info());
check_row(_("Show Item Codes:"), 'show_codes', user_show_codes());
themes_list_row(_("Theme:"), "theme", user_theme());
/* The array $themes is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
pagesizes_list_row(_("Page Size:"), "page_size", user_pagesize());
tab_list_row(_("Start-up Tab"), 'startup_tab', user_startup_tab());
/* The array $pagesizes is set up in config.php for modifications
possible separators can be added by modifying the array definition by editing that file */
if (!isset($_POST['print_profile'])) {
$_POST['print_profile'] = user_print_profile();
}
print_profiles_list_row(_("Printing profile") . ':', 'print_profile', null, _('Browser printing support'));
check_row(_("Use popup window to display reports:"), 'rep_popup', user_rep_popup(), false, _('Set this option to on if your browser directly supports pdf files'));
check_row(_("Use icons instead of text links:"), 'graphic_links', user_graphic_links(), false, _('Set this option to on for using icons instead of text links'));
text_row_ex(_("Query page size:"), 'query_size', 5, 5, '', user_query_size());
check_row(_("Remember last document date:"), 'sticky_doc_date', sticky_doc_date(), false, _('If set document date is remembered on subsequent documents, otherwise default is current date'));
end_outer_table(1);
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:31,代码来源:display_prefs.php
示例7: menu_footer
function menu_footer($no_menu, $is_index)
{
global $version, $allow_demo_mode, $app_title, $power_url, $power_by, $path_to_root, $Pagehelp, $Ajax;
include_once $path_to_root . "/includes/date_functions.inc";
echo "</div>";
// column
echo "</td></tr><tr><td colspan='2'>";
if ($no_menu == false) {
if ($is_index) {
echo "<table class=bottomBar>\n";
} else {
echo "<table class=bottomBar2>\n";
}
echo "<tr>";
if (isset($_SESSION['wa_current_user'])) {
$phelp = implode('; ', $Pagehelp);
echo "<td class=bottomBarCell>" . Today() . " | " . Now() . "</td>\n";
$Ajax->addUpdate(true, 'hotkeyshelp', $phelp);
echo "<td id='hotkeyshelp'>" . $phelp . "</td>";
}
echo "</tr></table>\n";
}
echo "</td></tr></table></td>\n";
echo "</table>\n";
if ($no_menu == false) {
echo "<table align='center' id='footer'>\n";
echo "<tr>\n";
echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}'><font color='#ffffff'>{$app_title} {$version} - " . _("Theme:") . " " . user_theme() . " - " . show_users_online() . "</font></a></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='center' class='footer'><a target='_blank' href='{$power_url}'><font color='#ffff00'>{$power_by}</font></a></td>\n";
echo "</tr>\n";
if ($allow_demo_mode == true) {
echo "<tr>\n";
echo "</tr>\n";
}
echo "</table><br><br>\n";
}
}
开发者ID:BGCX067,项目名称:fa-dashboard-module-svn-to-git,代码行数:39,代码来源:renderer.php
示例8: menu_footer
function menu_footer($no_menu, $is_index)
{
global $path_to_root, $power_url, $power_by, $version, $db_connections;
include_once $path_to_root . "/includes/date_functions.inc";
if (!$no_menu) {
echo "</div>\n";
}
// fa-content
echo "</div>\n";
// fa-body
if (!$no_menu) {
echo "<div class='fa-footer'>\n";
if (isset($_SESSION['wa_current_user'])) {
echo "<span class='power'><a target='_blank' href='{$power_url}'>{$power_by} {$version}</a></span>\n";
echo "<span class='date'>" . Today() . " " . Now() . "</span>\n";
echo "<span class='date'>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . "</span>\n";
echo "<span class='date'>" . $_SERVER['SERVER_NAME'] . "</span>\n";
echo "<span class='date'>" . $_SESSION["wa_current_user"]->name . "</span>\n";
echo "<span class='date'>" . _("Theme:") . " " . user_theme() . "</span>\n";
echo "<span class='date'>" . show_users_online() . "</span>\n";
}
echo "</div>\n";
// footer
}
echo "</div>\n";
// fa-main
}
开发者ID:pthdnq,项目名称:ivalley-svn,代码行数:27,代码来源:renderer.php
示例9: menu_header
function menu_header($title, $no_menu, $is_index)
{
global $path_to_root, $help_base_url, $db_connections;
if (!$no_menu) {
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/jquery-1.3.2.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/jquery-ui-1.7.2.custom.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/jquery.json-2.2.min.js'></script>\n";
echo "<script type='text/javascript' src='{$path_to_root}/themes/erp/js/dashboard.js'></script>\n";
echo "<script type='text/javascript' src='https://www.google.com/jsapi'></script>\n";
}
add_access_extensions();
echo "<table class='callout_main' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td colspan='2' rowspan='2'>\n";
echo "<table class='main_page' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td class='quick_menu'>\n";
if (!$no_menu) {
$applications = $_SESSION['App']->applications;
$local_path_to_root = $path_to_root;
$img = "<img src='{$local_path_to_root}/themes/erp/images/login.gif' width='14' height='14' border='0' alt='" . _('Logout') . "'> ";
$himg = "<img src='{$local_path_to_root}/themes/erp/images/help.gif' width='14' height='14' border='0' alt='" . _('Help') . "'> ";
$sel_app = $_SESSION['sel_app'];
echo "<table cellpadding=0 cellspacing=0 width='100%'><tr>";
echo "<td id='logotab'><span><img src='{$local_path_to_root}/themes/erp/images/logo2.png' align='center'></span></td>";
echo "<td><div class=tabs>";
$imag = array('orders' => 'sales.png', 'AP' => 'purchase.png', 'stock' => 'inventory.png', 'manuf' => 'manufacture.png', 'proj' => 'dimension.png', 'GL' => 'bank.png', 'payroll' => 'payroll.png', 'system' => 'setup.png');
foreach ($applications as $app) {
if ($_SESSION["wa_current_user"]->check_application_access($app)) {
if ($sel_app == $app->id) {
$sel_application = $app;
}
$acc = access_string($app->name);
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/" . $imag[$app->id] . "' align='center'>";
echo "<a class='" . ($sel_app == $app->id ? 'selected' : 'menu_tab') . "' href='{$local_path_to_root}/index.php?application=" . $app->id . "'{$acc['1']}>" . $mg . "</a>";
}
}
echo "<a class='shortcut' href='{$local_path_to_root}/access/logout.php?'><image src = '{$local_path_to_root}/themes/erp/images/logout.png' align='center'></a>";
echo "</div>";
echo "</td></tr></table>";
//echo "<table class=logoutBar>";
//echo "<tr><td class=headingtext3>" . $db_connections[$_SESSION["wa_current_user"]->company]["name"] . " | " . $_SERVER['SERVER_NAME'] . " | " . $_SESSION["wa_current_user"]->name . "</td>";
$indicator = "{$path_to_root}/themes/" . user_theme() . "/images/ajax-loader.gif";
//echo "<td class='logoutBarRight'><img id='ajaxmark' src='$indicator' align='center' style='visibility:hidden;'></td>";
//echo " <td class='logoutBarRight'><a class='shortcut' href='$path_to_root/admin/display_prefs.php?'>" . _("Preferences") . "</a> \n";
//echo " <a class='shortcut' href='$path_to_root/admin/change_current_user_password.php?selected_id=" . $_SESSION["wa_current_user"]->username . "'>" . _("Change password") . "</a> \n";
if ($help_base_url != null) {
echo "{$himg}<a target = '_blank' onclick=" . '"' . "javascript:openWindow(this.href,this.target); return false;" . '" ' . "href='" . help_url() . "'>" . _("Help") . "</a> ";
}
//echo "$img<a class='shortcut' href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
//echo "</td></tr></table>";
echo "</td></tr></table>";
echo "</td></tr><tr><td>\n";
//echo "<script language='javascript'>\$(document).ready(function(){\$('#fa-submenu').hoverAccordion({activateItem:1,speed:'fast'});});</script>";
echo "<script language='javascript'>" . "\$(document).ready(function()\n" . "{\n" . "\$('#fa-submenu p.menu_head').click(function()\n" . "{\n" . "\$(this).css({backgroundImage:'none'}).next('div.menu_body').slideDown(300).siblings('div.menu_body').slideUp('slow');\n" . "\$(this).siblings().css({backgroundImage:'url({$local_path_to_root}/themes/erp/images/collapse2.png)'});\n" . "});\n" . "\$('#first').css({backgroundImage:'none'}).next('div.menu_body').slideDown('fast').siblings('div.menu_body').slideUp('fast');" . "});\n</script>";
echo "<table width='100%'><tr><td valign='top' width='20%'>";
echo "<div style='display:block;'>\n";
echo "<div id='fa-submenu' class='menu_list'>\n";
$first = "id='first'";
foreach ($sel_application->modules as $module) {
if ($module->name == "Transactions") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/transactions.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Inquiries and Reports") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/inquiries.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Maintenance") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/maintenance.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Pricing and Costs") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/price.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Company Setup") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/company.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
if ($module->name == "Miscellaneous") {
$mg = "<image src = '{$local_path_to_root}/themes/erp/images/miscellaneous.png' align='center'>";
echo "<p " . $first . " class='menu_head'>" . $mg . " " . $module->name . "</p>\n";
}
//echo "<p ".$first." class='menu_head'>".$module->name."</p>\n";
echo "<div class='menu_body'>\n";
$first = "";
$apps = array();
foreach ($module->lappfunctions as $appfunction) {
$apps[] = $appfunction;
}
foreach ($module->rappfunctions as $appfunction) {
$apps[] = $appfunction;
}
$application = array();
foreach ($apps as $application) {
$lnk = access_string($application->label);
//.........这里部分代码省略.........
开发者ID:knjy24,项目名称:FrontAccounting,代码行数:101,代码来源:renderer.php
示例10: date_cells
function date_cells($label, $name, $title = null, $check = null, $inc_days = 0, $inc_months = 0, $inc_years = 0, $params = null, $submit_on_change = false)
{
global $use_date_picker, $path_to_root, $Ajax;
if (!isset($_POST[$name]) || $_POST[$name] == "") {
if ($inc_years == 1001) {
$_POST[$name] = null;
} else {
$dd = Today();
if ($inc_days != 0) {
$dd = add_days($dd, $inc_days);
}
if ($inc_months != 0) {
$dd = add_months($dd, $inc_months);
}
if ($inc_years != 0) {
$dd = add_years($dd, $inc_years);
}
$_POST[$name] = $dd;
}
}
if ($use_date_picker) {
$calc_image = file_exists("{$path_to_root}/themes/" . user_theme() . "/images/cal.gif") ? "{$path_to_root}/themes/" . user_theme() . "/images/cal.gif" : "{$path_to_root}/themes/default/images/cal.gif";
$post_label = "<a tabindex='-1' href=\"javascript:date_picker(document.getElementsByName('{$name}')[0]);\">" . "\t<img src='{$calc_image}' width='15' height='15' border='0' alt='" . _('Click Here to Pick up the date') . "'></a>\n";
} else {
$post_label = "";
}
$class = $submit_on_change ? 'date active form-control' : 'date form-control';
$aspect = $check ? 'aspect="cdate"' : '';
if ($check && get_post($name) != Today()) {
$aspect .= ' style="color:#FF0000"';
}
default_focus($name);
$size = user_date_format() > 3 ? 11 : 10;
$controlAsString = "<div class=\"input-group\">" . "<input type=\"text\" name=\"{$name}\" class=\"{$class}\" {$aspect} size=\"{$size}\" maxlength=\"12\" value=\"" . $_POST[$name] . "\"" . ($title ? " title='{$title}'" : '') . " > " . "<span class=\"input-group-addon\">{$post_label}</span>" . "</div>";
View::get()->addControl(View::controlFromRenderedString(View::CONTROL_DATE, $label, $controlAsString));
// CONTROL_DATE? CP 2014-11
$Ajax->addUpdate($name, $name, $_POST[$name]);
}
开发者ID:wizzard94,项目名称:frontaccounting-theme-bootstrap,代码行数:38,代码来源:InputRendererBootstrap.php
示例11: add_edit_combo
function add_edit_combo($type)
{
global $path_to_root, $popup_editors, $use_icon_for_editkey;
if (!isset($use_icon_for_editkey) || $use_icon_for_editkey == 0) {
return "";
}
// Derive theme path
$theme_path = $path_to_root . '/themes/' . user_theme();
$key = $popup_editors[$type][1];
$onclick = "onclick=\"javascript:callEditor({$key}); return false;\"";
$img = "<img width='12' height='12' border='0' alt='Add/Edit' title='Add/Edit' src='{$theme_path}/images/" . ICON_EDIT . "'>";
return "<a target = '_blank' href='#' {$onclick} tabindex='-1'>{$img}</a>";
}
开发者ID:wizzard94,项目名称:frontaccounting-theme-bootstrap,代码行数:13,代码来源:ListRendererBootstrap.php
注:本文中的user_theme函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论