function afficher()
 {
     $html = '';
     if ($this->existe()) {
         $t = new Template('modules/archi/templates/');
         $t->set_filenames(array('afficherErreurs' => 'listeErreurs.tpl'));
         foreach ($this->array_erreurs as $message) {
             $t->assign_block_vars('erreur', array('message' => $message));
         }
         ob_start();
         $t->pparse('afficherErreurs');
         $html = ob_get_contents();
         ob_get_clean();
     }
     return $html;
 }
Example #2
0
$t->set_file(array("add_forum" => "forum_add_forum.ihtml"));
$t->set_block("add_forum", "add", "DUMMY");
$t->set_block("add_forum", "no_access", "DUMMY");
$t->set_block("add_forum", "error", "DUMMY");
$t->set_block("add_forum", "error_title", "DUMMY");
$t->set_block("add_forum", "error_not_logged_in", "DUMMY");
$t->set_block("add_forum", "button_mission", "BUTTON_MISSION_ROW");
$t->set_block("add_forum", "button_label_save", "DUMMY");
$t->set_var(array("BUTTON_CANCEL_MISSION" => "close", "BUTTON_CANCEL_URL" => "", "BUTTON_MISSION_ROW" => "", "CURRENT_FORUM" => norm_post($attrib[OBJ_DESC]), "DUMMY" => "", "ERROR_TITLE" => "", "FORUM_ID" => $room_id, "ERROR_FEEDBACK" => "", "FORM_SUBTITLE" => norm_post($subtitle), "FORM_TITLE" => norm_post($title), "FORM_DESCRIPTION" => htmlentities($description), "BUTTON_URL" => "{$config_webserver_ip}/modules/forum/add_forum.php", "BUTTON_MISSION" => "save", "DO_LOGIN" => "0", "BODY_ON_LOAD" => "if (document.form_blueprint.title) document.form_blueprint.title.focus();"));
if ($do_login) {
    $t->set_var(array("DO_LOGIN" => "1", "BODY_ON_LOAD" => "document.getElementById('form_blueprint').submit();"));
}
/* 
 * Error handling
 */
if (isset($messageboard) && !$messageboard->get_id()) {
    $error[] = "error";
}
if (isset($_POST["title"]) && trim($_POST["title"]) == "") {
    $error[] = "error_title";
}
//if action has been done and error occured put out error feedback
if ($action != "" && isset($error) && count($error) > 0) {
    foreach ($error as $error_type) {
        $t->parse("ERROR_FEEDBACK", $error_type, true);
    }
}
$t->parse("BUTTON_LABEL", "button_label_save");
$t->parse("BUTTON_MISSION_ROW", "button_mission", true);
$t->pparse("OUT", "add_forum");
Example #3
0
            //上级代号
        }
        $arrall[$a][name] = $temp_arr2[2];
        //名称
        $arrall[$a][pic] = $temp_arr2[3];
        //图片
        $arrall[$a][url] = $temp_arr2[4];
        //连接地址
        $arrall[$a][isunder] = $temp_arr2[5];
        //是否最后一级
    }
}
$show = getallitem(0, "");
$t->set_var("show", $show);
$t->set_var("skin", $loginskin);
$t->pparse("out", "left");
# 最后输出页面
function getallitem($fid, $emshow)
{
    // 得出并显示所有的行
    global $arrall;
    global $n;
    $arryget = getarry($fid);
    // 得出本级的所有行
    $show = "";
    if (is_array($arryget)) {
        $ncount = count($arryget);
        for ($j = 0; $j < $ncount; $j++) {
            $n++;
            $usen = $n;
            $a = $arryget[$j][code];
// $template->debug = true;
$template->set_file('page', 'access.htt');
$template->set_block('page', 'main_block', 'main');
$template->set_block('main_block', 'users_block', 'user');
$template->set_block('main_block', 'groups_block', 'group');
// Insert values into the template object
$template->set_var(array('ADMIN_URL' => ADMIN_URL, 'THEME_URL' => THEME_URL, 'WB_URL' => WB_URL));
/**
 *    Insert permission values into the template object
 *    Deprecated - as we are using blocks.
 */
$display_none = "style=\"display: none;\"";
if ($admin->get_permission('users') != true) {
    $template->set_var('DISPLAY_USERS', $display_none);
}
if ($admin->get_permission('groups') != true) {
    $template->set_var('DISPLAY_GROUPS', $display_none);
}
// Insert section names and descriptions
$template->set_var(array('USERS' => $MENU['USERS'], 'GROUPS' => $MENU['GROUPS'], 'ACCESS' => $MENU['ACCESS'], 'USERS_OVERVIEW' => $OVERVIEW['USERS'], 'GROUPS_OVERVIEW' => $OVERVIEW['GROUPS']));
if ($admin->get_permission('users') == true) {
    $template->parse('main_block', "users_block", true);
}
if ($admin->get_permission('groups') == true) {
    $template->parse('main_block', "groups_block", true);
}
// Parse template object
$template->parse('main', 'main_block', false);
$template->pparse('output', 'page');
// Print admin footer
$admin->print_footer();
 public function print_footer($activateJsAdmin = false, $operateBuffer = true)
 {
     // include the required file for Javascript admin
     if ($activateJsAdmin != false) {
         if (file_exists(WB_PATH . '/modules/jsadmin/jsadmin_backend_include.php')) {
             @(include_once WB_PATH . '/modules/jsadmin/jsadmin_backend_include.php');
         }
     }
     // Setup template object, parse vars to it, then parse it
     $footer_template = new Template(dirname($this->correct_theme_source('footer.htt')));
     $footer_template->set_file('page', 'footer.htt');
     $footer_template->set_block('page', 'footer_block', 'header');
     $footer_template->set_var(array('WBCE_VERSION' => WBCE_VERSION, 'PHP_VERSION' => phpversion(), 'WBCE_TAG' => in_array(WBCE_TAG, array('', '-')) ? '-' : '<a href="https://github.com/WBCE/WebsiteBaker_CommunityEdition/releases/tag/' . WBCE_TAG . '" target="_blank">' . WBCE_TAG . '</a>', 'BACKEND_BODY_MODULE_JS' => $this->register_backend_modfiles_body('js'), 'WB_URL' => WB_URL, 'ADMIN_URL' => ADMIN_URL, 'THEME_URL' => THEME_URL));
     $footer_template->parse('header', 'footer_block', false);
     $footer_template->pparse('output', 'page');
     if ($operateBuffer) {
         // OPF dashboard
         $allOutput = ob_get_clean();
         if (function_exists('opf_controller')) {
             $allOutput = opf_controller('backend', $allOutput);
         }
         // konventional output filter
         if (!defined("WB_SUPPRESS_OLD_OPF") or !WB_SUPPRESS_OLD_OPF) {
             // Module is installed, filter file in place?
             $file = WB_PATH . '/modules/output_filter/filter_routines.php';
             if (file_exists($file)) {
                 include_once $file;
                 if (function_exists('executeBackendOutputFilter')) {
                     $allOutput = executeBackendOutputFilter($allOutput);
                 }
             }
         }
         echo $allOutput;
     }
 }
<?php

//$thismenucode = "10n007";
require "../include/common.inc.php";
$db = new db_test();
$db2 = new db_test();
$db3 = new db_test();
$gotourl = $gourl . $tempurl;
$t = new Template(".", "keep");
$t->set_file("template", "authorpaycard_query.html");
$checkall = '<INPUT onclick=CheckAll(this) type=checkbox class=checkbox  name=chkall>';
$arr_text = array("编号", "商户名", "刷卡器号码", "刷卡器类型", "刷卡器属性", "购买批次", "目前状态", "交易次数", "交易金额", "产生收益");
for ($i = 0; $i < count($arr_text); $i++) {
    $theadth .= ' <th>' . $arr_text[$i] . '</th>';
}
echo $commid;
$t->set_var("theadth", $theadth);
$t->set_var("vid", $vid);
$t->set_var("action", $action);
$t->set_var("error", $error);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "template");
//最后输出界面
Example #7
0
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
	global $db, $template, $board_config, $theme, $lang, $phpbb_root_path, $nav_links, $gen_simple_header;
	global $userdata, $user_ip, $session_length;
	global $starttime;

	$sql_store = $sql;

	//
	// Get SQL error if we are debugging. Do this as soon as possible to prevent
	// subsequent queries from overwriting the status of sql_error()
	//
	if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
	{
		$sql_error = $db->sql_error();

		$debug_text = '';

		if ( $sql_error['message'] != '' )
		{
			$debug_text .= '<br /><br />SQL Error : ' . $sql_error['code'] . ' ' . $sql_error['message'];
		}

		if ( $sql_store != '' )
		{
			$debug_text .= "<br /><br />$sql_store";
		}

		if ( $err_line != '' && $err_file != '' )
		{
			$debug_text .= '</br /><br />Line : ' . $err_line . '<br />File : ' . $err_file;
		}
	}

	if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) )
	{
		$userdata = session_pagestart($user_ip, PAGE_INDEX);
		init_userprefs($userdata);
	}

	//
	// If the header hasn't been output then do it
	//
	if ( !defined('HEADER_INC') && $msg_code != CRITICAL_ERROR )
	{
		if ( empty($lang) )
		{
			if ( !empty($board_config['default_lang']) )
			{
				include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.php');
			}
			else
			{
				include($phpbb_root_path . 'language/lang_english/lang_main.php');
			}
		}

		if ( empty($template) )
		{
			$template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']);
		}
		if ( empty($theme) )
		{
			$theme = setup_style($board_config['default_style']);
		}

		//
		// Load the Page Header
		//
		if ( !defined('IN_ADMIN') )
		{
			include($phpbb_root_path . 'includes/page_header.php');
		}
		else
		{
			include($phpbb_root_path . 'admin/page_header_admin.php');
		}
	}

	switch($msg_code)
	{
		case GENERAL_MESSAGE:
			if ( $msg_title == '' )
			{
				$msg_title = $lang['Information'];
			}
			break;

		case CRITICAL_MESSAGE:
			if ( $msg_title == '' )
			{
				$msg_title = $lang['Critical_Information'];
			}
			break;

		case GENERAL_ERROR:
			if ( $msg_text == '' )
			{
				$msg_text = $lang['An_error_occured'];
			}

			if ( $msg_title == '' )
			{
				$msg_title = $lang['General_Error'];
			}
			break;

		case CRITICAL_ERROR:
			//
			// Critical errors mean we cannot rely on _ANY_ DB information being
			// available so we're going to dump out a simple echo'd statement
			//
			include($phpbb_root_path . 'language/lang_english/lang_main.php');

			if ( $msg_text == '' )
			{
				$msg_text = $lang['A_critical_error'];
			}

			if ( $msg_title == '' )
			{
				$msg_title = 'phpBB : <b>' . $lang['Critical_Error'] . '</b>';
			}
			break;
	}

	//
	// Add on DEBUG info if we've enabled debug mode and this is an error. This
	// prevents debug info being output for general messages should DEBUG be
	// set TRUE by accident (preventing confusion for the end user!)
	//
	if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
	{
		if ( $debug_text != '' )
		{
			$msg_text = $msg_text . '<br /><br /><b><u>DEBUG MODE</u></b>' . $debug_text;
		}
	}

	if ( $msg_code != CRITICAL_ERROR )
	{
		if ( !empty($lang[$msg_text]) )
		{
			$msg_text = $lang[$msg_text];
		}

		if ( !defined('IN_ADMIN') )
		{
			$template->set_filenames(array(
				'message_body' => 'message_body.tpl')
			);
		}
		else
		{
			$template->set_filenames(array(
				'message_body' => 'admin/admin_message_body.tpl')
			);
		}

		$template->assign_vars(array(
			'MESSAGE_TITLE' => $msg_title,
			'MESSAGE_TEXT' => $msg_text)
		);
		$template->pparse('message_body');

		if ( !defined('IN_ADMIN') )
		{
			include($phpbb_root_path . 'includes/page_tail.php');
		}
		else
		{
			include($phpbb_root_path . 'admin/page_footer_admin.php');
		}
	}
	else
	{
		echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "</body>\n</html>";
	}

	exit;
}
                    $lastlogin = '******';
                } else {
                    $lastlogin = gmdate(DATE_FORMAT . " " . TIME_FORMAT, $d['login_when'] + TIMEZONE);
                }
                $bgcol = $rowcnt++ % 2 == 0 ? '#EEE' : '#FFF';
                $tpl->set_var('WB_URL', WB_URL);
                $tpl->set_var('ADMIN_URL', ADMIN_URL);
                $tpl->set_var('RESULT_EDIT_USER', $MOD_USER_SEARCH['EDIT_USER']);
                $tpl->set_var('RESULT_ADMIN_DISABLED', $MOD_USER_SEARCH['ADMIN_DISABLED']);
                $tpl->set_var('RESULT_BGCOL', $bgcol);
                $tpl->set_var('RESULT_USER_ID', $d['user_id']);
                $tpl->set_var('IDKEY_USER_ID', $admin->getIDKEY($d['user_id']));
                $tpl->set_var('RESULT_USERNAME', $d['username']);
                $tpl->set_var('RESULT_DISPLAYNAME', $d['display_name']);
                $tpl->set_var('RESULT_EMAIL', $d['email']);
                $tpl->set_var('RESULT_LASTLOGIN', $lastlogin);
                $tpl->set_var('RESULT_DAYS_INACTIVE', $d['login_when'] == 0 ? '-' : round((time() - (int) $d['login_when']) / (3600 * 24)));
                $tpl->set_var('RESULT_LAST_IP', $d['login_ip']);
                // add template values in append mode (add per loop)
                $tpl->parse('result_list_block_handle', 'result_list_block', true);
            }
            $tpl->set_var('HINT_EDIT', $MOD_USER_SEARCH['HINT_EDIT']);
            // parse the final template block
            $tpl->parse('result_table_block_handle', 'result_table_block');
        }
        $tpl->set_var('NEW_SEARCH', $MOD_USER_SEARCH['NEW_SEARCH']);
    }
}
// ouput the final template
$tpl->pparse('output', 'page');
}
$t->set_var($arr_allval);
$file = "mobilerecharge_list.php?1";
$ly = $ny = $year;
$last = $month - 1;
if ($last == 0) {
    $last = 12;
    $ly--;
}
$next = $month + 1;
if ($next == 13) {
    $next = 1;
    $ny++;
}
if ($ly >= 1901) {
    $str_page .= "<a href=\"" . $file . "&year=" . $ly . "&month=" . $last . "\">&lt;&lt;上一月</a>&nbsp;&nbsp;&nbsp;\n";
} else {
    $str_page .= "";
}
if ($ny <= 2020) {
    $str_page .= "<a href=\"" . $file . "&year=" . $ny . "&month=" . $next . "\">下一月&gt;&gt;</a>\n";
}
$allxjdunshu = number_format($allxjdunshu, 4, ".", "");
$t->set_var("str_page", $str_page);
$t->set_var("year", $year);
$t->set_var("month", $month);
$t->set_var("pagenav", $pagenav);
$t->set_var("brows_rows", $brows_rows);
$t->set_var("skin", $loginskin);
$t->pparse("out", "mobilerecharge_list");
# 最后输出页面
Example #10
0
// If no state is selected, preselect the shop state
if (!isset($cust_state) || $cust_state == '') {
    $cust_state = $setting_shop_state;
}
if ((!isset($ship_state) || $ship_state == '') && $setting_shipping_form != 'none') {
    $ship_state = $setting_shop_state;
}
// SHOW TITLE AND MESSAGES IF ANY
// ******************************
// Assign page filename for tracking with Google Analytics _trackPageview() function
global $ga_page;
$ga_page = '/view_form.php';
// Show form title using template file
$tpl->set_file('form_title', 'title.htm');
$tpl->set_var(array('WB_URL' => WB_URL, 'TXT_SUBMIT_ORDER' => $MOD_BAKERY['TXT_SUBMIT_ORDER'], 'TXT_ADDRESS' => $MOD_BAKERY['TXT_ADDRESS'], 'TXT_FILL_IN_ADDRESS' => $MOD_BAKERY['TXT_FILL_IN_ADDRESS'], 'SETTING_CONTINUE_URL' => $setting_continue_url));
$tpl->pparse('output', 'form_title');
// Show form error messages using template file
if (isset($form_error)) {
    $tpl->set_file('form_error', 'error.htm');
    $tpl->set_var(array('FORM_ERROR' => $form_error));
    $tpl->pparse('output', 'form_error');
}
// SET FILE AND BLOCKS FOR FORM TEMPLATE
// *************************************
$tpl->set_file('form', 'form.htm');
$tpl->set_block('form', 'main_block', 'main');
$tpl->set_block('main_block', 'cust_country_block', 'cust_country');
$tpl->set_block('main_block', 'cust_state_block', 'cust_state');
$tpl->set_block('main_block', 'cust_textfields_block', 'cust_textfields');
$tpl->set_block('main_block', 'cust_button_block', 'cust_button');
$tpl->set_block('main_block', 'cust_buttons_block', 'cust_buttons');
Example #11
0
$content = $portlet_content;
//display stuff
$tpl = new Template("./templates/{$language}", "keep");
$tpl->set_file("content", "topic_edit.ihtml");
$tpl->set_block("content", "feedback_headline_null", "DUMMY");
$tpl->set_var(array("DUMMY" => "", "PORTAL_ID" => $portal->get_id(), "PORTAL_NAME" => $portal_name, "PORTLET_NAME" => $portlet_name, "PORTLET_ID" => $portlet->get_id(), "FEEDBACK" => "", "BUTTON_CANCEL_MISSION" => "", "BUTTON_CANCEL_URL" => "{$config_webserver_ip}/modules/portal2/portlets/topic/edit.php", "BUTTON_MISSION" => "save", "BUTTON_URL" => "{$config_webserver_ip}/modules/portal2/portlets/topic/topic_edit.php"));
//save stuff
if ($action == "save" && isset($content[$category])) {
    $action = "save return(portlets/topic/edit.php)";
    $new_content = array("title" => norm_post("title"), "description" => norm_post("description"), "link_url" => norm_post("link_url"), "link_target" => isset($_POST["link_target"]) ? "checked" : "");
    if ($topic == "") {
        $topic = array_push($content[$category]["topics"], $new_content) - 1;
    } else {
        $content[$category]["topics"][$topic] = $new_content;
    }
    //verify input
    if ($_POST["title"] == "") {
        $tpl->parse("FEEDBACK", "feedback_headline_null");
        $action = "";
    }
    $portlet_content = $content;
}
//if new category then leave all empty
$tpl->set_var("CATEGORY_ID", $category);
if ($action == "new") {
    $tpl->set_var(array("TOPIC_ID" => "", "TOPIC_TITLE" => "", "TOPIC_DESCRIPTION" => "", "TOPIC_LINK_URL" => "", "TOPIC_LINK_TARGET" => ""));
} else {
    $tpl->set_var(array("TOPIC_ID" => $topic, "TOPIC_TITLE" => trim($content[$category]["topics"][$topic]["title"]), "TOPIC_DESCRIPTION" => trim($content[$category]["topics"][$topic]["description"]), "TOPIC_LINK_URL" => trim($content[$category]["topics"][$topic]["link_url"]), "TOPIC_LINK_TARGET" => trim($content[$category]["topics"][$topic]["link_target"])));
}
$tpl->pparse("OUT", "content");
include "../../footer.php";
Example #12
0
        break;
}
if (empty($listid)) {
    $action = "new";
} else {
    $query = "select * from tb_arrive where fd_arrive_id='{$listid}'";
    $db->query($query);
    if ($db->nf()) {
        $db->next_record();
        $arriveid = $db->f(fd_arrive_id);
        $arrivename = $db->f(fd_arrive_name);
        $action = "edit";
    }
}
$t->set_var("arriveid", $arriveid);
$t->set_var("listid", $listid);
$t->set_var("arrivename", $arrivename);
$t->set_var("arriverates", $arriverates);
$t->set_var("arrivebear", $arrivebear);
$t->set_var("error", $error);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "arrive");
# 最后输出页面
?>

Example #13
0
    }
}
$sdcr_citycode = makeselect($arr_city_name, $sdcr_citycode, $arr_city_code);
$arr_activeid = array("0", "1");
$arr_activename = array("否", "是");
$sdcr_active = makeselect($arr_activename, $sdcr_active, $arr_activeid);
$t->set_var("listid", $listid);
$t->set_var("sdcr_name", $sdcr_name);
$t->set_var("sdcr_merid", $sdcr_merid);
$t->set_var("sdcr_securitykey", $sdcr_securitykey);
$t->set_var("sdcr_provcode", $sdcr_provcode);
$t->set_var("agentfee", $agentfee);
$t->set_var("payfee", $payfee);
$t->set_var("minpayfee", $minpayfee);
$t->set_var("sdcr_provcode", $sdcr_provcode);
$t->set_var("sdcr_citycode", $sdcr_citycode);
$t->set_var("sdcr_active", $sdcr_active);
$t->set_var("tradeurl", $tradeurl);
$t->set_var("queryurl", $queryurl);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "sendcenter");
# 最后输出页面
?>

Example #14
0
    default:
        $paytype = "其他业务";
        break;
}
$t->set_var("tijiao_dis", $tijiao_dis);
$t->set_var("listno", $listno);
$t->set_var("listid", $listid);
$t->set_var("dealwithman", $dealwithman);
$t->set_var("money", $money);
$t->set_var("date", $date);
$t->set_var("fkdate", $fkdate);
$t->set_var("memo_z", $memo_z);
$t->set_var("paytype", $paytype);
$t->set_var("count", $count);
$t->set_var("times", $times);
$t->set_var("isagentpay", $isagentpay);
$t->set_var("list_disabled", $list_disabled);
$t->set_var("all_paymoney", $all_paymoney);
$t->set_var("all_payfee", $all_payfee);
$t->set_var("all_money", $all_money);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("downloadurl", $downloadurl);
// 下载地址
$t->set_var("error", $error);
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "createfile");
# 最后输出页面
Example #15
0
$t->set_var("listid", $listid);
$t->set_var("telid", $telid);
$t->set_var("telname", $telname);
$t->set_var("intime", $intime);
$t->set_var("outtime", $outtime);
$t->set_var("errornum", $errornum);
$t->set_var("inip", $inip);
$t->set_var("memo", $memo);
$t->set_var("recsts", $recsts);
$t->set_var("isin", $isin);
$t->set_var("term", $term);
$t->set_var("checkterm", $checkterm);
$t->set_var("chgpass", $chgpass);
$t->set_var("staid", $staid);
$t->set_var("stano", $stano);
$t->set_var("staname", $staname);
$t->set_var("selgroup", $selgroup);
$t->set_var("partid", $partid);
$t->set_var("partname", $partname);
$t->set_var("area", $area);
$t->set_var("group", $group);
$t->set_var("state", $state);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "teller");
# 最后输出页面
Example #16
0
            $tmpfcode = $arr_fcode[$menucode];
            $prgqx_arr[$tmpfcode] = 1;
            menufcode($tmpfcode);
        }
    }
}
$show = showqx($menuarry, $prgqx_arr, $shortcut_arr);
$t->set_var("id", $id);
$t->set_var("name", $telname);
$t->set_var("show", $show);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "shortcutmenu");
# 最后输出页面
function menufcode($tmpfcode)
{
    global $prgqx_arr;
    global $arr_fcode;
    if ($arr_fcode[$tmpfcode] != 0) {
        $tmpfcode = $arr_fcode[$tmpfcode];
        $prgqx_arr[$tmpfcode] = 1;
        menufcode($tmpfcode);
    }
}
function showqx($menuarry, $menu_arr, $shortcut_arr)
{
    global $loginskin;
    $show = "<table width=98% border=0 cellpadding=0 cellspacing=0>";
        $val['url'] = 'repaymoney_sp';
    }
    if ($typekind == 'pay') {
        $val['money'] = $val['money'];
    }
    if ($typekind == 'cost') {
        $val['money'] = $val['costmoney'];
    }
    if ($typekind == 'fee') {
        $val['money'] = $val['payfee'];
    }
    $allmoney += $val['money'];
    $count++;
    $t->set_var($val);
    $t->parse("prolists", "prolist", true);
}
$allmoney = number_format($allmoney, 2, ".", "");
$allpayfee = number_format($allpayfee, 2, ".", "");
$allcostmoney = number_format($allcostmoney, 2, ".", "");
$t->set_var("gotourl", $gotourl);
$t->set_var("error", $error);
$t->set_var("allmoney", $allmoney);
$t->set_var("allpayfee", $allpayfee);
$t->set_var("allcostmoney", $allcostmoney);
$t->set_var("skin", $loginskin);
$t->set_var("month", $month);
$t->set_var("year", $year);
$t->set_var("thname", $thname);
$t->set_var("tabtype", $tabtype);
$t->pparse("out", "agentpaymoneyyear_detail");
# 最后输出页面
Example #18
0
$t->set_var("payorin", $payorin);
//付款还是收款
$t->set_var("count", $count);
$t->set_var("all_paymoney", $all_paymoney);
$t->set_var("all_payfee", $all_payfee);
$t->set_var("all_money", $all_money);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
$t->set_var("checkid", $checkid);
//批量删除商品ID
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "selagentbkno");
# 最后输出页面
function upallmoney($listid)
{
    $db = new DB_test();
    $query = "select  sum(fd_agpm_money) as allmoney\n              from tb_paymoneylistdetail  \n              left join  tb_agentpaymoneylist on fd_pymyltdetail_agpmid = fd_agpm_id                  \n              where fd_pymyltdetail_paymoneylistid = '{$listid}'";
    $db->query($query);
    if ($db->nf()) {
        $db->next_record();
        $allmoney = $db->f(allmoney);
    }
    $query = "update tb_paymoneylist set fd_pymylt_money = '{$allmoney}' where fd_pymylt_id = '{$listid}'";
    $db->query($query);
}
?>
Example #19
0
        $t->parse("prolists", "prolist", true);
    }
} else {
    $trid = "tr1";
    $imgid = "img1";
    $t->set_var(array("trid" => $trid, "imgid" => $imgid, "vid" => "", "protraname" => "", "vpic" => "", "vedit" => "", "bgcolor" => "#ffffff", "showselect" => ""));
    $t->parse("prolists", "prolist", true);
}
$t->set_var("listid", $listid);
//单据id
$t->set_var("ihotprotraname", $ihotprotraname);
//id
$t->set_var("toptradmarkid", $toptradmarkid);
//id
$t->set_var("iareaid", $iareaid);
//id
$t->set_var("authorid", $authorid);
//id
$t->set_var("preprocaid", $preprocaid);
//id
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
$t->set_var("checkid", $checkid);
//批量删除商品ID
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "tb_pic");
# 最后输出页面
        $checked = "checked disabled";
        $isshow = "style='display:none'";
    } else {
        $arrdata['qrdatetime'] = date("Y-m-d H:i:s");
        $arrdata['qrman'] = $loginstaname;
    }
    if ($type == "error") {
        $isshow = "style='display:none'";
        $isshowqrmsg = "style='display:none'";
    }
}
//}
$t->set_var("isshowqrmsg", $isshowqrmsg);
$t->set_var("isshow", $isshow);
$t->set_var("check", $checked);
//$t->set_var("checksendsms1"        ,$checksendsms1         );
//$t->set_var("checksendsms0"        ,$checksendsms0         );
$t->set_var("listid", $listid);
$t->set_var("tj", $tj);
$t->set_var("note", $note);
$t->set_var($arrdata);
$t->set_var("titlename", $titlename);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "creditcard_sp");
//最后输出界面
//单据状态
$t->set_var("id", $id);
//单据ID
$t->set_var("no", $no);
//单据编号
$t->set_var("dept", $dept);
//部门
$t->set_var("memo", $memo);
//单据备注
$t->set_var("now", $now);
//录单时间
$t->set_var("dissave", $dissave);
$t->set_var("dealwithman", $dealwithman);
$t->set_var("year", $year);
//年
$t->set_var("month", $month);
//月
$t->set_var("day", $day);
//日
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
$t->set_var("dpt", $dpt);
$t->set_var("checkid", $checkid);
//批量删除商品ID
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "salebackview");
# 最后输出页面
Example #22
0
        if ($steamUser->get_id() == $forumCreator->get_id()) {
            $t->parse("CATEGORIE_ACTION_DELETE", "categorie_action_delete");
            $t->parse("CATEGORIE_ACTION_EDIT", "categorie_action_edit");
        }
        //edit categorie if login-user is category creator
        if ($steamUser->get_id() == $categoryCreator->get_id()) {
            $t->parse("CATEGORIE_ACTION_EDIT", "categorie_action_edit");
        }
        //add message link if allowed
        if (isset($category_allowed_annotate) && $category_allowed_annotate) {
            $t->parse("ADD_MESSAGE", "add_message");
        }
        // add footer if content of the thread (i.e. first entry) was changed or deleted
        $t->set_var(array("AUTHOR" => $categoryAttributes["DOC_USER_MODIFIED"]->get_name(), "TIMESTAMP" => date("j.m.Y G:i", $categoryAttributes["DOC_LAST_MODIFIED"])));
        if ($categoryAttributes[OBJ_CREATION_TIME] != $categoryAttributes["DOC_LAST_MODIFIED"]) {
            if (strlen(trim($categoryContent)) > 0) {
                $t->parse("CATEGORY_MODIFICATION_FOOTER", "edit_message_annotation");
            } else {
                $t->parse("CATEGORY_MODIFICATION_FOOTER", "delete_message_annotation");
            }
        } else {
            $t->parse("CATEGORY_MODIFICATION_FOOTER", "DUMMY");
        }
    }
}
//persmission to write
if (isset($category_allowed_write) && $category_allowed_write) {
} elseif (isset($category_allowed_annotate) && $category_allowed_annotate) {
}
$t->pparse("OUT", "view_category");
Example #23
0
        $errors[] = $error_copy;
    } else {
        session_set_save_handler('pwg_session_open', 'pwg_session_close', 'pwg_session_read', 'pwg_session_write', 'pwg_session_destroy', 'pwg_session_gc');
        if (function_exists('ini_set')) {
            ini_set('session.use_cookies', $conf['session_use_cookies']);
            ini_set('session.use_only_cookies', $conf['session_use_only_cookies']);
            ini_set('session.use_trans_sid', intval($conf['session_use_trans_sid']));
            ini_set('session.cookie_httponly', 1);
        }
        session_name($conf['session_name']);
        session_set_cookie_params(0, cookie_path());
        register_shutdown_function('session_write_close');
        $user = build_user(1, true);
        log_user($user['id'], false);
        // email notification
        if (isset($_POST['send_password_by_mail'])) {
            include_once PHPWG_ROOT_PATH . 'include/functions_mail.inc.php';
            $keyargs_content = array(get_l10n_args('Hello %s,', $admin_name), get_l10n_args('Welcome to your new installation of Piwigo!', ''), get_l10n_args('', ''), get_l10n_args('Here are your connection settings', ''), get_l10n_args('', ''), get_l10n_args('Link: %s', get_absolute_root_url()), get_l10n_args('Username: %s', $admin_name), get_l10n_args('Password: %s', $admin_pass1), get_l10n_args('Email: %s', $admin_mail), get_l10n_args('', ''), get_l10n_args('Don\'t hesitate to consult our forums for any help: %s', PHPWG_URL));
            pwg_mail($admin_mail, array('subject' => l10n('Just another Piwigo gallery'), 'content' => l10n_args($keyargs_content), 'content_format' => 'text/plain'));
        }
    }
}
if (count($errors) != 0) {
    $template->assign('errors', $errors);
}
if (count($infos) != 0) {
    $template->assign('infos', $infos);
}
//----------------------------------------------------------- html code display
$template->pparse('install');
Example #24
0
$t->set_var("listno", $listno);
//单据编号
$t->set_var("memo_z", $memo_z);
//单据备注
$t->set_var("now", $now);
//录单时间
$t->set_var("kickback_disabled", $kickback_disabled);
$t->set_var("dyj", $dyj);
//吨运价
$t->set_var("paymoney", $paymoney);
//付款金额
$t->set_var("vallmoney", $vallmoney);
//总金额
$t->set_var("vallquantity", $vallquantity);
//总数量
$t->set_var("count", $count);
//记录数
$t->set_var("date", $date);
//日
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->set_var("error", $error);
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "stockview");
# 最后输出页面
?>

Example #25
0
<?php

session_start();
require "../include/common.inc.php";
if ($openmain == 1) {
    $disbutton = "onClick='winopen()' style='CURSOR: hand'";
    //修改测试使用
} else {
    if ($openmain == "") {
        $disbutton = "onClick='winopen()' style='CURSOR: hand'";
    }
}
$t = new Template(".", "keep");
//调用一个模版
$t->set_file("opennew", "opennew.html");
$t->set_var("disbutton", $disbutton);
$t->set_var("skin", $loginskin);
// 调用皮肤
$t->set_var("gotourl", $gotourl);
// 转用的地址
$t->pparse("out", "opennew");
# 最后输出页面
$t->set_var("alllirun", $alllirun);
//$t->set_var("avgpercent"     , $avgpercent     );
//$t->set_var("allqtsrmoney"   , $allqtsrmoney   );
//$t->set_var("allfymoney"     , $allfymoney     );
$t->set_var("allshengli", $allshengli);
//$t->set_var("allcusnum"      , $allcusnum      );
//$t->set_var("allquanyimoney" , $allquanyimoney );
$t->set_var("alljhmoney", $alljhmoney);
//$t->set_var("allpdlirun"      , $allpdlirun   );    //盘点利润
//$t->set_var("allysktz"        , $allysktz     );    //应收款调帐收入
//$t->set_var("allzhtzsr"       , $allzhtzsr    );    //帐户调帐收入
//$t->set_var("allzhtzgs"       , $allzhtzgs    );    //帐户调帐亏损
//$t->set_var("allzzcx"         , $allzzcx      );    //组装拆卸利润
//$t->set_var("alljhthlirun"    , $alljhthlirun );    //进货退货利润
//$t->set_var("allsptjlirun"    , $allsptjlirun );    //商品调价利润
//$t->set_var("allgdzcewsr"     , $allgdzcewsr  );    //固定资产额外收入
//$t->set_var("allgdzcbmcjsr"   , $allgdzcbmcjsr);    //固定资产变卖差价收入
//$t->set_var("allgdzcpgzc"     , $allgdzcpgzc  );    //固定资产盘亏
//$t->set_var("allgdzcbfzc"     , $allgdzcbfzc  );    //固定资产报废
//$t->set_var("allrkbkczc"      , $allrkbkczc   );    //入库补库存支出
//$t->set_var("allgdzczj"       , $allgdzczj    );    //固定资产折旧
$t->set_var("condition", $condition);
$t->set_var("begindate", $begindate);
$t->set_var("enddate", $enddate);
$t->set_var("gotourl", $gotourl);
$t->set_var("count", $count);
$t->set_var("error", $error);
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "datetable_view");
# 最后输出页面
    $cbmoney = changenum('2', $arr_allmoney[$key]['cbmoney']);
    $payfee = changenum('2', $arr_allmoney[$key]['payfee']);
    $showall .= ' <td class="right"><a href="payment_detail.php?type=year&' . '&paytype=' . $key . '">' . $paymoney . '</a></td>
              <td class="right"><a href="payment_detail.php?type=year&' . '&paytype=' . $key . '">' . $agentmoney . '</a></td>
              <td class="right"><a href="payment_detail.php?type=year&' . '&paytype=' . $key . '">' . $cbmoney . '</a></td>
              <td class="right" style="border-right:1px #222 solid"><a href="payment_detail.php?type=year&' . '&paytype=' . $key . '">' . $payfee . '</a></td>';
}
$t->set_var("showall", $showall);
$allmoney = changenum('2', $allmoney);
$allagentmoney = changenum('2', $allagentmoney);
$allcbmoney = changenum('2', $allcbmoney);
$allpayfee = changenum('2', $allpayfee);
$allmoney = '<a href="payment_detail.php?type=year">' . $allmoney . '</a>';
$allcbmoney = '<a href="payment_detail.php?type=year">' . $allcbmoney . '</a>';
$allpayfee = '<a href="payment_detail.php?type=year">' . $allpayfee . '</a>';
$allagentmoney = '<a href="payment_detail.php?type=year">' . $allagentmoney . '</a>';
$t->set_var("count", $count);
$t->set_var("error", $error);
$t->set_var("startmonth", $startmonth);
$t->set_var("endmonth", $endmonth);
$t->set_var("authorname", $authorname);
$t->set_var("paycarnum", count($arrPaycardData));
$t->set_var("allmoney", $allmoney);
$t->set_var("allagentmoney", $allagentmoney);
$t->set_var("allcbmoney", $allcbmoney);
$t->set_var("allpayfee", $allpayfee);
$t->set_var("bgcolor", $bgcolor);
$t->set_var("searchval", $searchval);
$t->set_var("skin", $loginskin);
$t->pparse("out", "tb_payment_yearview");
# 最后输出页面
Example #28
0
$title = isset($_POST['title']) ? $_POST["title"] : $attrib[OBJ_DESC];
//******************************************************
//** Display Stuff
//******************************************************
$t = new Template("./templates/{$language}", "keep");
$t->set_file(array("edit_message" => "forum_edit_message.ihtml"));
$t->set_block("edit_message", "add", "DUMMY");
$t->set_block("edit_message", "no_access", "DUMMY");
$t->set_block("edit_message", "error", "DUMMY");
$t->set_block("edit_message", "error_content", "DUMMY");
$t->set_block("edit_message", "error_title", "DUMMY");
$t->set_block("edit_message", "error_not_logged_in", "DUMMY");
$t->set_block("edit_message", "button_mission", "BUTTON_MISSION_ROW");
$t->set_block("edit_message", "button_label_save", "DUMMY");
$t->set_var(array("CURRENT_FORUM" => $category_attributes[OBJ_DESC], "OBJECT_ID" => $object_id, "DUMMY" => "", "ERROR_FEEDBACK" => "", "BUTTON_CANCEL_MISSION" => "close", "BUTTON_CANCEL_URL" => "", "BUTTON_MISSION_ROW" => "", "FORM_CONTENT" => htmlentities($content), "FORM_TITLE" => norm_post($title), "BUTTON_URL" => "{$config_webserver_ip}/modules/forum/edit_message.php", "BUTTON_MISSION" => "save", "DO_LOGIN" => "0", "BODY_ON_LOAD" => "if (document.form_blueprint.title) document.form_blueprint.title.focus();"));
if ($do_login) {
    $t->set_var(array("DO_LOGIN" => "1", "BODY_ON_LOAD" => "document.getElementById('form_blueprint').submit();"));
}
/* 
 * Error handling
 */
//if action has been done and error occured put out error feedback
if ($action != "" && isset($error) && count($error) > 0) {
    foreach ($error as $error_type) {
        $t->parse("ERROR_FEEDBACK", $error_type, true);
    }
}
$t->parse("BUTTON_LABEL", "button_label_save");
$t->parse("BUTTON_MISSION_ROW", "button_mission", true);
$t->pparse("OUT", "edit_message");
Example #29
0
            // Detectar el perfil.
            $txPerm = "";
            $sql2 = "select id_permiso from REL_USR_PERM where id_usuario='{$idUsuario}'";
            $db2->query($sql2);
            while ($db2->next_record()) {
                $idPermiso = $db2->f(id_permiso);
                $permiso = getValueTable("permiso", "PERMISO", "id_permiso", $idPermiso);
                $txPerm .= $permiso . ",";
            }
            $t->set_var(array("PERFIL" => $txPerm, "USUARIO" => $usuario, "LOGIN" => $login, "NAVIERA" => $naviera, "OFICINA" => $oficina, "EDITAR" => "<a href=\"javascript:ventanaNueva('catUsuarioCaptura.php?idReg={$idUsuario}',400,400)\">Editar</a>", "CAMBIO_PASS" => "<a href=\"javascript:ventanaNueva('catUsuarioChgPas.php?idReg={$idUsuario}',400,400)\">Password</a>"));
            $t->parse("lnTupla", "blqTupla", true);
        }
        $control = $paging->print_link();
        $t->set_var("CONTROL", $control);
        $t->pparse("out", "page");
    }
    /*ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff*/
    /*----------------------------------------------------------------*/
    switch ($modo) {
        case "consulta":
            showForm();
            break;
        default:
            $data[keyword] = $keyword;
            showForm($data);
            break;
    }
} else {
    $t->set_file("page", "accesoDenegado.html");
    $t->pparse("out", "page");
}
$showbkcardpayfsetid = getpayfeedata($arr_payfeename, $arr_payfee, $bkcardpayfsetid);
//商户借记卡额度套餐--"
$showbkcardscdmsetid = getscardmoneydata($arr_scardmoneyname, $arr_scardmoney, $bkcardscdmsetid, $listid, $arr_authoruse);
$t->set_var("showslotpayfsetid", $showslotpayfsetid);
$t->set_var("showslotscdmsetid", $showslotscdmsetid);
$t->set_var("showbkcardpayfsetid", $showbkcardpayfsetid);
$t->set_var("showbkcardscdmsetid", $showbkcardscdmsetid);
$t->set_var("truename", $truename);
//listid
$t->set_var("gotourl", $gotourl);
//转用的地址
$t->set_var("error", $error);
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "author");
# 最后输出页面
function getauthorset($tabname, $filename)
{
    $db = new DB_test();
    $query = "select * from {$tabname} left join tb_arrive on fd_arrive_id=fd_" . $filename . "_arriveid left join  tb_authorindustry on fd_auindustry_id=fd_" . $filename . "_auindustryid";
    $db->query($query);
    $arr_data = $db->getFiledData();
    foreach ($arr_data as $value) {
        foreach ($value as $key => $v) {
            $id = $value['fd_' . $filename . '_id'];
            if ($key != "fd_" . $filename . "_id") {
                $arr_newdata[$id][$key] = $v;
            }
        }
    }