• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP set_reportico_session_param函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中set_reportico_session_param函数的典型用法代码示例。如果您正苦于以下问题:PHP set_reportico_session_param函数的具体用法?PHP set_reportico_session_param怎么用?PHP set_reportico_session_param使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了set_reportico_session_param函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: set_project_environment

/**
 * Function set_project_environment
 *
 * Analyses configuration and current session to identify which project area
 * is to be used. 
 * If a project is specified in the HTTP parameters then that is used, otherwise
 * the current SESSION
 * "reports" project is used
 */
function set_project_environment($initial_project = false, $project_folder = "projects", $admin_project_folder = "projects" )
{
	global $g_project;
	global $g_projpath;
	global $g_language;
	global $g_translations;
	global $g_menu;
	global $g_menu_title;
	global $g_dropdown_menu;
	global $g_report_desc;
	global $g_included_config;
	
	$target_menu = "";
	$project = "";

    $last_project = "";

    if ( isset_reportico_session_param("project") )
        if ( get_reportico_session_param("project") )
            $last_project = get_reportico_session_param("project");

	if ( !$project && array_key_exists("submit_delete_project", $_REQUEST) )
	{
		$project = get_request_item("jump_to_delete_project", "");	
		$_REQUEST["xmlin"] = "deleteproject.xml";
		set_reportico_session_param("project",$project);
	}

	if ( !$project && array_key_exists("submit_configure_project", $_REQUEST) )
	{
		$project = get_request_item("jump_to_configure_project", "");	
		$_REQUEST["xmlin"] = "configureproject.xml";
		set_reportico_session_param("project",$project);
	}

	if ( !$project && array_key_exists("submit_menu_project", $_REQUEST) )
	{
		$project = get_request_item("jump_to_menu_project", "");	
		set_reportico_session_param("project",$project);
	}

	if ( !$project && array_key_exists("submit_design_project", $_REQUEST) )
	{
		$project = get_request_item("jump_to_design_project", "");	
		set_reportico_session_param("project",$project);
	}
    
	if ( $initial_project )
	{
		$project = $initial_project;
		set_reportico_session_param("project",$project);
	}
    

	if ( !$project )
		$project = session_request_item("project", "admin");

	if ( !$target_menu )
		$target_menu = session_request_item("target_menu", "");

	$menu = false;
	$menu_title = "Set Menu Title";

    if ( $project == "admin" )
        $project_folder = $admin_project_folder;

	// Now we now the project include the relevant config.php
	$projpath = $project_folder."/".$project;

	$configfile = $projpath."/config.php";
	$configtemplatefile = $projpath."/adminconfig.template";

	$menufile = $projpath."/menu.php";
	if ( $target_menu != "" )
		$menufile = $projpath."/menu_".$target_menu.".php";

	if ( !is_file($projpath) )
	{
		find_file_to_include($projpath, $projpath);
	}

    set_reportico_session_param("project_path", $projpath); 
    $this->reports_path = $projpath;

	if ( !$projpath )
	{
		find_file_to_include("config.php", $configfile);
        if ( $g_included_config && $g_included_config != $configfile )
            handle_error("Cannot load two different instances on a single page from different projects.", E_USER_ERROR);
        else
        {
//.........这里部分代码省略.........
开发者ID:arnon22,项目名称:transportcm,代码行数:101,代码来源:reportico.php


示例2: generate_url_params

 function generate_url_params($target_format, $session_placeholder = false)
 {
     $this->apply_defaults();
     $result = "";
     $url = "";
     $url .= "&graphcolor=" . $this->graphcolor_actual;
     $url .= "&gridposition=" . $this->gridpos_actual;
     $url .= "&xgriddisplay=" . $this->xgriddisplay_actual;
     $url .= "&xgridcolor=" . $this->xgridcolor_actual;
     $url .= "&ygriddisplay=" . $this->ygriddisplay_actual;
     $url .= "&ygridcolor=" . $this->ygridcolor_actual;
     $url .= "&titlefont=" . $this->titlefont_actual;
     $url .= "&titlefontstyle=" . $this->titlefontstyle_actual;
     $url .= "&titlefontsize=" . $this->titlefontsize_actual;
     $url .= "&titlecolor=" . $this->titlecolor_actual;
     $url .= "&xaxiscolor=" . $this->xaxiscolor_actual;
     $url .= "&xaxisfont=" . $this->xaxisfont_actual;
     $url .= "&xaxisfontstyle=" . $this->xaxisfontstyle_actual;
     $url .= "&xaxisfontsize=" . $this->xaxisfontsize_actual;
     $url .= "&xaxisfontcolor=" . $this->xaxisfontcolor_actual;
     $url .= "&yaxiscolor=" . $this->yaxiscolor_actual;
     $url .= "&yaxisfont=" . $this->yaxisfont_actual;
     $url .= "&yaxisfontstyle=" . $this->yaxisfontstyle_actual;
     $url .= "&yaxisfontsize=" . $this->yaxisfontsize_actual;
     $url .= "&yaxisfontcolor=" . $this->yaxisfontcolor_actual;
     $url .= "&xtitlefont=" . $this->xtitlefont_actual;
     $url .= "&xtitlefontstyle=" . $this->xtitlefontstyle_actual;
     $url .= "&xtitlefontsize=" . $this->xtitlefontsize_actual;
     $url .= "&xtitlecolor=" . $this->xtitlecolor_actual;
     $url .= "&xtickint=" . $this->xtickinterval_actual;
     $url .= "&xticklabint=" . $this->xticklabelinterval_actual;
     $url .= "&ytitlefont=" . $this->ytitlefont_actual;
     $url .= "&ytitlefontstyle=" . $this->ytitlefontstyle_actual;
     $url .= "&ytitlefontsize=" . $this->ytitlefontsize_actual;
     $url .= "&ytitlecolor=" . $this->ytitlecolor_actual;
     $url .= "&ytickint=" . $this->ytickinterval_actual;
     $url .= "&yticklabint=" . $this->yticklabelinterval_actual;
     $url .= "&margincolor=" . $this->margincolor_actual;
     $url .= "&marginleft=" . $this->marginleft_actual;
     $url .= "&marginright=" . $this->marginright_actual;
     $url .= "&margintop=" . $this->margintop_actual;
     $url .= "&marginbottom=" . $this->marginbottom_actual;
     $url .= "&xlabels=" . implode(",", $this->xlabels);
     foreach ($this->plot as $k => $v) {
         $str = implode(",", $v["data"]);
         $url .= "&plotname{$k}=" . $v["name"];
         $url .= "&plotdata{$k}={$str}";
         $url .= "&plottype{$k}=" . $v["type"];
         $url .= "&plotlinecolor{$k}=" . $v["linecolor"];
         if ($v["legend"]) {
             $url .= "&plotlegend{$k}=" . $v["legend"];
         }
         if ($v["fillcolor"]) {
             $url .= "&plotfillcolor{$k}=" . $v["fillcolor"];
         }
     }
     if ($session_placeholder) {
         $ses = "graph_" . $session_placeholder;
         set_reportico_session_param($ses, $url);
         $url = "graphid=" . $ses . "&time=" . time();
     }
     $js = "";
     $js .= "<div class=\"reportico-chart-container\"> " . $this->convert_special_chars($this->title_actual);
     $js .= "<div id=\"reportico_chart{$session_placeholder}\" class=\"reportico-chart-placeholder\"></div> </div>\n";
     $js .= "<script>\n";
     $js .= "var placeholder = '#reportico_chart{$session_placeholder}';\n";
     $js .= "var data = [\n";
     $lct = 0;
     foreach ($this->plot as $k => $v) {
         if ($lct > 0) {
             $js .= ",";
         }
         $js .= "{";
         if ($v["legend"]) {
             $js .= " label: " . "\"" . $v["legend"] . "\", ";
         }
         switch ($v["type"]) {
             case 'BAR':
                 $js .= " bars: { show: true, fill: true }, ";
                 break;
             case 'LINE':
             default:
                 //$js .= " lines: { show: true, fill: false }, ";
                 $js .= " bars: { show: true, fill: true }, ";
                 break;
         }
         $js .= " data: [";
         $lct1 = 0;
         foreach ($v["data"] as $v) {
             if ($lct1 > 0) {
                 $js .= ",";
             }
             $js .= "[{$lct1}, {$v}]";
             $lct1++;
         }
         $js .= "] }\n";
         $lct++;
     }
     $js .= "];\n";
     $js .= "var options = {\n                        series: {\n                            bars: {\n                                show: true,\n                                align: \"center\",\n                                barWidth: 0.8,\n                                fill: true,\n                                }\n                            },\n                        margin: [ 100, 100 ],\n                        xaxis: {\n                            axisLabel: '" . $this->xtitle_actual . "',\n                            axisLabelUseCanvas: true,\n                            axisLabelFontSizePixels: 20,\n                            axisLabelFontFamily: 'Arial'\n                        },\n                        yaxis: {\n                            axisLabel: '" . $this->ytitle_actual . "',\n                            axisLabelUseCanvas: true\n                        },\n                        legend: {\n                            labelBoxBorderColor: '#000000',\n                            margin: [ 50, 50 ]\n                        }\n                    };\n";
//.........这里部分代码省略.........
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:101,代码来源:swgraph_flot.php


示例3: generate_url_params

 function generate_url_params($target_format, $session_placeholder = false)
 {
     $this->apply_defaults();
     $result = "";
     $url = "";
     $url .= "title=" . $this->convert_special_chars($this->title_actual);
     $url .= "&xtitle=" . $this->convert_special_chars($this->xtitle_actual);
     $url .= "&ytitle=" . $this->convert_special_chars($this->ytitle_actual);
     if ($target_format == "PDF") {
         $url .= "&width=" . $this->width_pdf_actual;
         $url .= "&height=" . $this->height_pdf_actual;
     } else {
         $url .= "&width=" . $this->width_actual;
         $url .= "&height=" . $this->height_actual;
     }
     $url .= "&graphcolor=" . $this->graphcolor_actual;
     $url .= "&gridposition=" . $this->gridpos_actual;
     $url .= "&xgriddisplay=" . $this->xgriddisplay_actual;
     $url .= "&xgridcolor=" . $this->xgridcolor_actual;
     $url .= "&ygriddisplay=" . $this->ygriddisplay_actual;
     $url .= "&ygridcolor=" . $this->ygridcolor_actual;
     $url .= "&titlefont=" . $this->titlefont_actual;
     $url .= "&titlefontstyle=" . $this->titlefontstyle_actual;
     $url .= "&titlefontsize=" . $this->titlefontsize_actual;
     $url .= "&titlecolor=" . $this->titlecolor_actual;
     $url .= "&xaxiscolor=" . $this->xaxiscolor_actual;
     $url .= "&xaxisfont=" . $this->xaxisfont_actual;
     $url .= "&xaxisfontstyle=" . $this->xaxisfontstyle_actual;
     $url .= "&xaxisfontsize=" . $this->xaxisfontsize_actual;
     $url .= "&xaxisfontcolor=" . $this->xaxisfontcolor_actual;
     $url .= "&yaxiscolor=" . $this->yaxiscolor_actual;
     $url .= "&yaxisfont=" . $this->yaxisfont_actual;
     $url .= "&yaxisfontstyle=" . $this->yaxisfontstyle_actual;
     $url .= "&yaxisfontsize=" . $this->yaxisfontsize_actual;
     $url .= "&yaxisfontcolor=" . $this->yaxisfontcolor_actual;
     $url .= "&xtitlefont=" . $this->xtitlefont_actual;
     $url .= "&xtitlefontstyle=" . $this->xtitlefontstyle_actual;
     $url .= "&xtitlefontsize=" . $this->xtitlefontsize_actual;
     $url .= "&xtitlecolor=" . $this->xtitlecolor_actual;
     $url .= "&xtickint=" . $this->xtickinterval_actual;
     $url .= "&xticklabint=" . $this->xticklabelinterval_actual;
     $url .= "&ytitlefont=" . $this->ytitlefont_actual;
     $url .= "&ytitlefontstyle=" . $this->ytitlefontstyle_actual;
     $url .= "&ytitlefontsize=" . $this->ytitlefontsize_actual;
     $url .= "&ytitlecolor=" . $this->ytitlecolor_actual;
     $url .= "&ytickint=" . $this->ytickinterval_actual;
     $url .= "&yticklabint=" . $this->yticklabelinterval_actual;
     $url .= "&margincolor=" . $this->margincolor_actual;
     $url .= "&marginleft=" . $this->marginleft_actual;
     $url .= "&marginright=" . $this->marginright_actual;
     $url .= "&margintop=" . $this->margintop_actual;
     $url .= "&marginbottom=" . $this->marginbottom_actual;
     $url .= "&xlabels=" . implode(",", $this->xlabels);
     foreach ($this->plot as $k => $v) {
         $str = implode(",", $v["data"]);
         $url .= "&plotname{$k}=" . $v["name"];
         $url .= "&plotdata{$k}={$str}";
         $url .= "&plottype{$k}=" . $v["type"];
         $url .= "&plotlinecolor{$k}=" . $v["linecolor"];
         if ($v["legend"]) {
             $url .= "&plotlegend{$k}=" . $v["legend"];
         }
         if ($v["fillcolor"]) {
             $url .= "&plotfillcolor{$k}=" . $v["fillcolor"];
         }
     }
     if ($session_placeholder) {
         $ses = "graph_" . $session_placeholder;
         set_reportico_session_param($ses, $url);
         $url = "graphid=" . $ses . "&time=" . time();
     }
     // Select the appropriate reporting engine
     $dyngraph = "dyngraph.php";
     if (defined("SW_GRAPH_ENGINE") && SW_GRAPH_ENGINE == "PCHART") {
         $dyngraph = "dyngraph_pchart.php";
     }
     $dr = get_reportico_url_path();
     $dyngraph = $dr . "/" . find_best_url_in_include_path($dyngraph);
     if ($this->reportico->framework_parent) {
         $dyngraph = "";
         if ($this->reportico->reportico_ajax_mode == "2") {
             $dyngraph = preg_replace("/ajax/", "graph", $this->reportico->reportico_ajax_script_url);
         }
     }
     $forward_url_params = session_request_item('forward_url_get_parameters_graph');
     if (!$forward_url_params) {
         $forward_url_params = session_request_item('forward_url_get_parameters', $this->reportico->forward_url_get_parameters);
     }
     if ($forward_url_params) {
         $url .= "&" . $forward_url_params;
     }
     $url .= "&reportico_call_mode=graph_pchart";
     $url .= "&reportico_session_name=" . reportico_session_name();
     $result = '<img class="swRepGraph" src=\'' . $dyngraph . '?' . $url . '\'>';
     return $result;
 }
开发者ID:JorgeUlises,项目名称:higia,代码行数:96,代码来源:swgraph_pchart.php


示例4: execute

 function execute($mode = false, $draw = true)
 {
     global $g_system_errors;
     global $g_system_debug;
     global $g_code_area;
     global $g_code_source;
     global $g_debug_mode;
     global $g_language;
     global $g_project;
     global $g_session_namespace;
     global $g_session_namespace_key;
     if ($this->session_namespace) {
         $g_session_namespace = $this->session_namespace;
     }
     if ($g_session_namespace) {
         $g_session_namespace_key = "reportico_" . $g_session_namespace;
     }
     // If a session namespace doesnt exist create one
     if (!isset($_SESSION[$g_session_namespace_key]) || isset($_REQUEST['clear_session']) || $this->clear_reportico_session) {
         initialize_reportico_namespace($g_session_namespace_key);
     }
     // Work out the mode (ADMIN, PREPARE, MENU, EXECUTE, MAINTAIN based on all parameters )
     if (!$mode) {
         $mode = $this->get_execute_mode();
     }
     $old_error_handler = set_error_handler("ErrorHandler");
     set_exception_handler("ExceptionHandler");
     // If new session, we need to use initial project, report etc, otherwise ignore them
     $this->handle_initial_settings();
     // Fetch project config
     set_project_environment($this->initial_project);
     register_session_param("external_user", $this->external_user);
     register_session_param("external_param1", $this->external_param1);
     register_session_param("external_param2", $this->external_param2);
     register_session_param("external_param3", $this->external_param3);
     $this->user_parameters = register_session_param("user_parameters", $this->user_parameters);
     $this->dropdown_menu = register_session_param("dropdown_menu", $this->dropdown_menu);
     $this->static_menu = register_session_param("static_menu", $this->static_menu);
     $this->charting_engine = register_session_param("charting_engine", $this->charting_engine);
     $this->charting_engine_html = register_session_param("charting_engine_html", $this->charting_engine_html);
     $this->output_template_parameters = register_session_param("output_template_parameters", $this->output_template_parameters);
     $this->dynamic_grids = register_session_param("dynamic_grids", $this->dynamic_grids);
     $this->dynamic_grids_sortable = register_session_param("dynamic_grids_sortable", $this->dynamic_grids_sortable);
     $this->dynamic_grids_searchable = register_session_param("dynamic_grids_searchable", $this->dynamic_grids_searchable);
     $this->dynamic_grids_paging = register_session_param("dynamic_grids_paging", $this->dynamic_grids_paging);
     $this->dynamic_grids_page_size = register_session_param("dynamic_grids_page_size", $this->dynamic_grids_page_size);
     // We are in AJAX mode if it is passed throuh
     if (isset($_REQUEST["reportico_ajax_called"])) {
         $this->reportico_ajax_called = $_REQUEST["reportico_ajax_called"];
     }
     //set_reportico_session_param("reportico_ajax_called", $_REQUEST["reportico_ajax_called"] );
     // Store whether in framework
     set_reportico_session_param("framework_parent", $this->framework_parent);
     // Set access mode to decide whether to allow user to access Design Mode, Menus, Criteria or just run a single report
     $this->access_mode = session_item("access_mode", $this->access_mode);
     if ($this->access_mode == "DEMO") {
         $this->allow_maintain = "DEMO";
     }
     $this->reports_path = "projects/" . $g_project;
     // Convert input and out charsets into their PHP versions
     // for later iconv use
     $this->db_charset = db_charset_to_php_charset('UTF-8');
     $this->output_charset = output_charset_to_php_charset('UTF-8');
     // Ensure Smarty Template folder exists and is writeable
     $include_template_dir = "templates_c";
     if (!is_dir("templates_c")) {
         find_file_to_include("templates_c", $include_template_dir, $include_template_dir);
     }
     if (!is_dir($include_template_dir)) {
         echo "Unable to generate output. The <b>{$include_template_dir}</b> folder does not exist within the main reportico area. Please create this folder and ensure it has read, write and execute permissions and then retry.";
         die;
     }
     if (!sw_path_executable($include_template_dir)) {
         echo "Unable to generate output. The <b>{$include_template_dir}</b> folder does not have read, write and execute permissions. Please correct and retry.";
         die;
     }
     $g_debug_mode = get_request_item("debug_mode", "0", $this->first_criteria_selection);
     if (!$mode) {
         $mode = $this->get_execute_mode();
     }
     // If the project is the ADMIN project then the MAin Menu will be the Admin Page
     if ($g_project == "admin" && $mode == "MENU") {
         $mode = "ADMIN";
     }
     // If this is PREPARE mode then we want to identify whether user has entered prepare
     // screen for first time so we know whether to set defaults or not
     switch ($mode) {
         case "PREPARE":
             $this->report_progress("Ready", "READY");
             $this->first_criteria_selection = true;
             // Must find ALternative to THIs for first time in testing!!!
             if (array_key_exists("target_format", $_REQUEST)) {
                 $this->first_criteria_selection = false;
                 set_reportico_session_param("firstTimeIn", false);
             }
             if (!isset_reportico_session_param("firstTimeIn")) {
                 set_reportico_session_param("firstTimeIn", true);
             }
             // Default output to HTML in PREPARE mode first time in
             if (get_reportico_session_param("firstTimeIn") && !isset($_REQUEST["target_format"])) {
//.........这里部分代码省略.........
开发者ID:EmmanuelTaborda2015,项目名称:kyron_modificado,代码行数:101,代码来源:reportico.php


示例5: generate_url_params

 function generate_url_params($target_format, $session_placeholder = false)
 {
     $this->apply_defaults();
     $result = "";
     $url = "";
     $url .= "title=" . $this->convert_special_chars($this->title_actual);
     $url .= "&xtitle=" . $this->convert_special_chars($this->xtitle_actual);
     $url .= "&ytitle=" . $this->convert_special_chars($this->ytitle_actual);
     if ($target_format == "PDF") {
         $url .= "&width=" . $this->width_pdf_actual;
         $url .= "&height=" . $this->height_pdf_actual;
     } else {
         $url .= "&width=" . $this->width_actual;
         $url .= "&height=" . $this->height_actual;
     }
     $url .= "&graphcolor=" . $this->graphcolor_actual;
     $url .= "&gridposition=" . $this->gridpos_actual;
     $url .= "&xgriddisplay=" . $this->xgriddisplay_actual;
     $url .= "&xgridcolor=" . $this->xgridcolor_actual;
     $url .= "&ygriddisplay=" . $this->ygriddisplay_actual;
     $url .= "&ygridcolor=" . $this->ygridcolor_actual;
     $url .= "&titlefont=" . $this->titlefont_actual;
     $url .= "&titlefontstyle=" . $this->titlefontstyle_actual;
     $url .= "&titlefontsize=" . $this->titlefontsize_actual;
     $url .= "&titlecolor=" . $this->titlecolor_actual;
     $url .= "&xaxiscolor=" . $this->xaxiscolor_actual;
     $url .= "&xaxisfont=" . $this->xaxisfont_actual;
     $url .= "&xaxisfontstyle=" . $this->xaxisfontstyle_actual;
     $url .= "&xaxisfontsize=" . $this->xaxisfontsize_actual;
     $url .= "&xaxisfontcolor=" . $this->xaxisfontcolor_actual;
     $url .= "&yaxiscolor=" . $this->yaxiscolor_actual;
     $url .= "&yaxisfont=" . $this->yaxisfont_actual;
     $url .= "&yaxisfontstyle=" . $this->yaxisfontstyle_actual;
     $url .= "&yaxisfontsize=" . $this->yaxisfontsize_actual;
     $url .= "&yaxisfontcolor=" . $this->yaxisfontcolor_actual;
     $url .= "&xtitlefont=" . $this->xtitlefont_actual;
     $url .= "&xtitlefontstyle=" . $this->xtitlefontstyle_actual;
     $url .= "&xtitlefontsize=" . $this->xtitlefontsize_actual;
     $url .= "&xtitlecolor=" . $this->xtitlecolor_actual;
     $url .= "&xtickint=" . $this->xtickinterval_actual;
     $url .= "&xticklabint=" . $this->xticklabelinterval_actual;
     $url .= "&ytitlefont=" . $this->ytitlefont_actual;
     $url .= "&ytitlefontstyle=" . $this->ytitlefontstyle_actual;
     $url .= "&ytitlefontsize=" . $this->ytitlefontsize_actual;
     $url .= "&ytitlecolor=" . $this->ytitlecolor_actual;
     $url .= "&ytickint=" . $this->ytickinterval_actual;
     $url .= "&yticklabint=" . $this->yticklabelinterval_actual;
     $url .= "&margincolor=" . $this->margincolor_actual;
     $url .= "&marginleft=" . $this->marginleft_actual;
     $url .= "&marginright=" . $this->marginright_actual;
     $url .= "&margintop=" . $this->margintop_actual;
     $url .= "&marginbottom=" . $this->marginbottom_actual;
     $url .= "&xlabels=" . implode(",", $this->xlabels);
     foreach ($this->plot as $k => $v) {
         $str = implode(",", $v["data"]);
         $url .= "&plotname{$k}=" . $v["name"];
         $url .= "&plotdata{$k}={$str}";
         $url .= "&plottype{$k}=" . $v["type"];
         $url .= "&plotlinecolor{$k}=" . $v["linecolor"];
         if ($v["legend"]) {
             $url .= "&plotlegend{$k}=" . $v["legend"];
         }
         if ($v["fillcolor"]) {
             $url .= "&plotfillcolor{$k}=" . $v["fillcolor"];
         }
     }
     if ($session_placeholder) {
         $ses = "graph_" . $session_placeholder;
         set_reportico_session_param($ses, $url);
         $url = "graphid=" . $ses . "&time=" . time();
     }
     // Select the appropriate reporting engine
     $dyngraph = "dyngraph.php";
     if (defined("SW_GRAPH_ENGINE") && SW_GRAPH_ENGINE == "PCHART") {
         $dyngraph = "dyngraph_pchart.php";
     }
     if (!is_file($dyngraph)) {
         find_file_to_include($dyngraph, $dyngraph);
         $dyngraph = get_relative_path(realpath($dyngraph), dirname($_SERVER["SCRIPT_FILENAME"]));
     }
     $dr = get_reportico_url_path();
     $result = '<img class="swRepGraph" src=\'' . $dr . $dyngraph . '?' . $url . '\'>';
     return $result;
 }
开发者ID:lihaobin0320,项目名称:yii2-reportico,代码行数:84,代码来源:swgraph_pchart3.php


示例6: register_session_param

function register_session_param($param, $value)
{
    if (!isset_reportico_session_param($param)) {
        set_reportico_session_param($param, $value);
    }
    return get_reportico_session_param($param);
}
开发者ID:junjiezou,项目名称:reportico,代码行数:7,代码来源:swutil.php


示例7: handle_user_entry


//.........这里部分代码省略.........
                 break;
             case "SQL":
                 $show_area = $fld;
                 if ($fld == "mainquerqury") {
                     // Main Query SQL Generation.
                     $sql = stripslashes($_REQUEST["mainquerqury_SQL"]);
                     $maintain_sql = $sql;
                     if ($this->query->login_check()) {
                         $p = new reportico_sql_parser($sql);
                         if ($p->parse()) {
                             $p->import_into_query($qr);
                             if ($this->query->datasource->connect()) {
                                 $p->test_query($this->query, $sql);
                             }
                         }
                     }
                 } else {
                     // It's a lookup
                     if (preg_match("/mainquercrit(.*)qury/", $fld, $match1)) {
                         $lookup = (int) $match1[1];
                         $lookup_char = $match1[1];
                         // Access the relevant crtieria item ..
                         $qc = false;
                         $ak = array_keys($this->query->lookup_queries);
                         if (array_key_exists($lookup, $ak)) {
                             $q = $this->query->lookup_queries[$ak[$lookup]]->lookup_query;
                         } else {
                             $q = new reportico();
                         }
                         // Parse the entered SQL
                         $sqlparm = $fld . "_SQL";
                         $sql = $_REQUEST[$sqlparm];
                         $q->maintain_sql = $sql;
                         $q = new reportico();
                         $p = new reportico_sql_parser($sql);
                         if ($p->parse()) {
                             if ($p->test_query($this->query, $sql)) {
                                 $p->import_into_query($q);
                                 $this->query->set_criteria_lookup($ak[$lookup], $q, "WHAT", "NOW");
                             }
                         }
                     }
                 }
                 break;
         }
     }
     // Now work out what the maintainance screen should be showing by analysing
     // whether user pressed a SHOW button a HIDE button or keeps a maintenance item
     // show by presence of a shown value
     if (!$show_area) {
         // User has not pressed SHOW_ button - this would have been picked up in previous submit
         // So look for longest shown item - this will allow us to draw the maintenace screen with
         // the correct item maximised
         foreach ($_REQUEST as $k => $req) {
             if (preg_match("/^shown_(.*)/", $k, $match)) {
                 $containee = "/^" . $hide_area . "/";
                 $container = $match[1];
                 if (!preg_match($containee, $container)) {
                     if (strlen($match[1]) > strlen($show_area)) {
                         $show_area = $match[1];
                     }
                 }
             }
         }
     }
     if (!$show_area) {
         $show_area = "mainquer";
     }
     $xmlout = new reportico_xml_writer($this->query);
     $xmlout->prepare_xml_data();
     // If Save option has been used then write data to the named file and
     // use this file as the defalt input for future queries
     if ($xmlsavefile) {
         if ($this->query->allow_maintain != "SAFE" && $this->query->allow_maintain != "DEMO" && SW_ALLOW_MAINTAIN) {
             $xmlout->write_file($xmlsavefile);
             set_reportico_session_param("xmlin", $xmlsavefile);
             unset_reportico_session_param("xmlintext");
         } else {
             trigger_error(template_xlate("SAFENOSAVE"), E_USER_ERROR);
         }
     }
     // If Delete Report option has been used then remove the file
     // use this file as the defalt input for future queries
     if ($xmldeletefile) {
         if ($this->query->allow_maintain != "SAFE" && $this->query->allow_maintain != "DEMO" && SW_ALLOW_MAINTAIN) {
             $xmlout->remove_file($xmldeletefile);
             set_reportico_session_param("xmlin", false);
             unset_reportico_session_param("xmlintext");
         } else {
             trigger_error(template_xlate("SAFENODEL"), E_USER_ERROR);
         }
     }
     $xml = $xmlout->get_xmldata();
     if ($this->query->top_level_query) {
         $this->query->xmlintext = $xml;
     }
     $this->query->xmlin = new reportico_xml_reader($this->query, false, $xml);
     $this->query->xmlin->show_area = $show_area;
     $this->query->maintain_sql = false;
 }
开发者ID:lihaobin0320,项目名称:yii2-reportico,代码行数:101,代码来源:swpanel.php


示例8: login

 public function login()
 {
     set_reportico_session_param('admin_password', "1");
     global $g_session_namespace_key;
     $_SESSION[$g_session_namespace_key]['admin_password'] = '1';
 }
开发者ID:arsenaltech,项目名称:folio,代码行数:6,代码来源:ReporticoExtended.php



注:本文中的set_reportico_session_param函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP set_request函数代码示例发布时间:2022-05-15
下一篇:
PHP set_register_value函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap