当前位置: 首页>>代码示例>>PHP>>正文


PHP get_request_item函数代码示例

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


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

示例1: finish

 function finish()
 {
     reportico_report::finish();
     if (ob_get_length() > 0) {
         ob_clean();
     }
     $retarr = array();
     $retarr["JSON"] = "success";
     $retarr["viewname"] = $this->report_name;
     $retarr["colmodel"] = $this->colmodel;
     $retarr["colnames"] = $this->colnames;
     $page = get_request_item("page", "");
     $numrecords = 1000000;
     if (!$page) {
         $page = 1;
     }
     $rows = get_request_item("rows", "");
     if (!$rows) {
         $rows = $numrecords;
     }
     $retarr["gridmodel"] = array("total" => ceil($numrecords / $rows) . "", "page" => $page, "records" => $numrecords . "", "rows" => $this->results);
     if ($this->dataonly) {
         $len = strlen(json_encode($retarr["gridmodel"]));
     } else {
         $len = strlen(json_encode($retarr));
     }
     header('Cache-Control: no-cache, must-revalidate');
     //header('Content-Type: application/json');
     header('Content-Type: text/html');
     header("Content-Length: {$len}");
     header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
     header('Content-Disposition: attachment; filename=reportico.json');
     if ($this->dataonly) {
         echo json_encode($retarr["gridmodel"]);
     } else {
         echo json_encode($retarr);
     }
     die;
 }
开发者ID:GLUD,项目名称:EcoHack,代码行数:39,代码来源:reportico_report_jquerygrid.php

示例2: begin_page

 function begin_page()
 {
     reportico_report::begin_page();
     $this->debug("HTML Begin Page\n");
     // Page Headers
     reportico_report::page_headers();
     $title = $this->query->derive_attribute("ReportTitle", "Unknown");
     if ($this->query->output_template_parameters["show_hide_report_output_title"] != "hide") {
         $this->text .= '<H1 class="swRepTitle">' . sw_translate($title) . '</H1>';
     }
     $forward = session_request_item('forward_url_get_parameters', '');
     if ($forward) {
         $forward .= "&";
     }
     if (!get_request_item("printable_html")) {
         if (!$this->query->access_mode || $this->query->access_mode != "REPORTOUTPUT") {
             $this->text .= '<div class="swRepBackBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'execute_mode=PREPARE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_BACK") . '">&nbsp;</a></div>';
         }
         if (get_reportico_session_param("show_refresh_button")) {
             $this->text .= '<div class="swRepRefreshBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'refreshReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_REFRESH") . '">&nbsp;</a></div>';
         }
     } else {
         $this->text .= '<div class="swRepPrintBox"><a class="swLinkMenu" href="' . $this->query->get_action_url() . '?' . $forward . 'printReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name() . '" title="' . template_xlate("GO_PRINT") . '">' . '&nbsp;' . '</a></div>';
     }
 }
开发者ID:hsvikum,项目名称:laravel-reportico,代码行数:25,代码来源:reportico_report_html.php

示例3: setup_report_attributes

 function setup_report_attributes()
 {
     $title = $this->query->derive_attribute("ReportTitle", "Unknown");
     $this->jar["title"] .= sw_translate($title);
     if ($this->query->output_template_parameters["show_hide_report_output_title"] == "hide") {
         $this->jar["attributes"]["hide_title"] = true;
     }
     $forward = session_request_item('forward_url_get_parameters', '');
     if ($forward) {
         $forward .= "&";
     }
     // In printable rjson mode dont show back box
     if (!get_request_item("printable_rjson")) {
         // Show Go Back Button ( if user is not in "SINGLE REPORT RUN " )
         if (!$this->query->access_mode || $this->query->access_mode != "REPORTOUTPUT") {
             $this->jar["attributes"]["show_prepare_button"] .= $this->query->get_action_url() . '?' . $forward . 'execute_mode=PREPARE&reportico_session_name=' . reportico_session_name();
         }
         if (get_reportico_session_param("show_refresh_button")) {
             $this->jar["attributes"]["show_refresh_button"] .= $this->query->get_action_url() . '?' . $forward . 'refreshReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name();
         }
     } else {
         $this->jar["attributes"]["show_print_button"] .= $this->query->get_action_url() . '?' . $forward . 'printReport=1&execute_mode=EXECUTE&reportico_session_name=' . reportico_session_name();
     }
     $this->jar["attributes"]["column_header_styles"] = $this->query->output_header_styles;
     $this->jar["attributes"]["column_page_styles"] = $this->query->output_page_styles;
     $this->jar["attributes"]["page_style"] = session_request_item("target_style", "TABLE");
     $this->setup_columns();
 }
开发者ID:GLUD,项目名称:EcoHack,代码行数:28,代码来源:reportico_report_rjson.php

示例4: criteria_summary_display

	function criteria_summary_display()
	{
		$text = "";

		$type = $this->criteria_display;

		$value_string = "";

		$params = array();
		$manual_params = array();
		$hidden_params = array();
		$expanded_params = array();
		$manual_override = false;

        if ( get_request_item("MANUAL_".$this->query_name."_FROMDATE", "" ) )
        {
            $this->criteria_summary = get_request_item("MANUAL_".$this->query_name."_FROMDATE","");
            if ( get_request_item("MANUAL_".$this->query_name."_TODATE", "" ) )
            {
                $this->criteria_summary .= "-";
                $this->criteria_summary .= get_request_item("MANUAL_".$this->query_name."_TODATE");
            }
            return;
        }

        if ( get_request_item("HIDDEN_".$this->query_name."_FROMDATE", "" ) )
        {
            $this->criteria_summary = get_request_item("HIDDEN_".$this->query_name."_FROMDATE","");
            if ( get_request_item("HIDDEN_".$this->query_name."_TODATE", "" ) )
            {
                $this->criteria_summary .= "-";
                $this->criteria_summary .= get_request_item("HIDDEN_".$this->query_name."_TODATE");
            }
            return;
        }

		if ( ! array_key_exists("EXPANDED_".$this->query_name, $_REQUEST) )
			if ( array_key_exists($this->query_name, $_REQUEST) )
			{
					$params = $_REQUEST[$this->query_name];
					if ( !is_array($params) )
						$params = array ( $params );
			}

		$hidden_params = array();
		if ( ! array_key_exists("EXPANDED_".$this->query_name, $_REQUEST) )
			if ( array_key_exists("HIDDEN_".$this->query_name, $_REQUEST) )
			{
					$hidden_params = $_REQUEST["HIDDEN_".$this->query_name];
					if ( !is_array($hidden_params) )
						$hidden_params = array ( $hidden_params );
			}

		$manual_params = array();
		if ( ! array_key_exists("EXPANDED_".$this->query_name, $_REQUEST) )
			if ( array_key_exists("MANUAL_".$this->query_name, $_REQUEST) )
			{
				$manual_params = explode(',',$_REQUEST["MANUAL_".$this->query_name]);
				if ( $manual_params )
				{
					$hidden_params = $manual_params;
					$manual_override = true;
				}
			}

		$expanded_params = array();
		if ( array_key_exists("EXPANDED_".$this->query_name, $_REQUEST) )
		{
				$expanded_params = $_REQUEST["EXPANDED_".$this->query_name];
				if ( !is_array($expanded_params) )
					$expanded_params = array ( $expanded_params );
		}

        if ( $this->criteria_type == "LIST" )
        {
            $checkedct = 0;
                $res =& $this->list_values;
                $text = "";
                if ( !$res )
                {
                    $text = "";
                }
                else
                {
                    reset($res);
                    $k = key($res);
                    for ($i = 0; $i < count($res); $i++ )
                    {
                        $line =&$res[$i];
                        $lab = $res[$i]["label"];
                        $ret = $res[$i]["value"];
                        $checked=false;
            
                        if ( in_array($ret, $params) )
                            $checked = true;
           
                        if ( in_array($ret, $hidden_params) )
                            $checked = true;
          
                        if ( in_array($ret, $expanded_params) )
//.........这里部分代码省略.........
开发者ID:arnon22,项目名称:transportcm,代码行数:101,代码来源:reportico.php

示例5: format_criteria_selection_set

 function format_criteria_selection_set()
 {
     $is_criteria = false;
     foreach ($this->query->lookup_queries as $name => $crit) {
         $label = "";
         $value = "";
         if (isset($crit->criteria_summary) && $crit->criteria_summary) {
             $label = $crit->derive_attribute("column_title", $crit->query_name);
             $value = $crit->criteria_summary;
         } else {
             if (get_request_item($name . "_FROMDATE_DAY", "")) {
                 $label = $crit->derive_attribute("column_title", $crit->query_name);
                 $label = sw_translate($label);
                 $mth = get_request_item($name . "_FROMDATE_MONTH", "") + 1;
                 $value = get_request_item($name . "_FROMDATE_DAY", "") . "/" . $mth . "/" . get_request_item($name . "_FROMDATE_YEAR", "");
                 if (get_request_item($name . "_TODATE_DAY", "")) {
                     $mth = get_request_item($name . "_TODATE_MONTH", "") + 1;
                     $value .= "-";
                     $value .= get_request_item($name . "_TODATE_DAY", "") . "/" . $mth . "/" . get_request_item($name . "_TODATE_YEAR", "");
                 }
             } else {
                 if (get_request_item("MANUAL_" . $name . "_FROMDATE", "")) {
                     $label = $crit->derive_attribute("column_title", $crit->query_name);
                     $label = sw_translate($label);
                     $value = get_request_item("MANUAL_" . $name . "_FROMDATE", "");
                     if (get_request_item("MANUAL_" . $name . "_TODATE", "")) {
                         $value .= "-";
                         $value .= get_request_item("MANUAL_" . $name . "_TODATE");
                     }
                 } else {
                     if (get_request_item("HIDDEN_" . $name . "_FROMDATE", "")) {
                         $label = $crit->derive_attribute("column_title", $crit->query_name);
                         $label = sw_translate($label);
                         $value = get_request_item("HIDDEN_" . $name . "_FROMDATE", "");
                         if (get_request_item("HIDDEN_" . $name . "_TODATE", "")) {
                             $value .= "-";
                             $value .= get_request_item("HIDDEN_" . $name . "_TODATE");
                         }
                     } else {
                         if (get_request_item("EXPANDED_" . $name, "")) {
                             $label = $crit->derive_attribute("column_title", $crit->query_name);
                             $label = sw_translate($label);
                             $value .= implode(get_request_item("EXPANDED_" . $name, ""), ",");
                         } else {
                             if (get_request_item("MANUAL_" . $name, "")) {
                                 $label = $crit->derive_attribute("column_title", $crit->query_name);
                                 $label = sw_translate($label);
                                 $value .= get_request_item("MANUAL_" . $name, "");
                             }
                         }
                     }
                 }
             }
         }
         if ($label || $value) {
             $is_criteria = true;
         }
     }
     if (get_reportico_session_param("target_show_criteria") && $is_criteria) {
         $this->before_format_criteria_selection();
         foreach ($this->query->lookup_queries as $name => $crit) {
             $label = "";
             $value = "";
             if (isset($crit->criteria_summary) && $crit->criteria_summary) {
                 $label = $crit->derive_attribute("column_title", $crit->query_name);
                 $value = $crit->criteria_summary;
             } else {
                 if (get_request_item($name . "_FROMDATE_DAY", "")) {
                     $label = $crit->derive_attribute("column_title", $crit->query_name);
                     $label = sw_translate($label);
                     $mth = get_request_item($name . "_FROMDATE_MONTH", "") + 1;
                     $value = get_request_item($name . "_FROMDATE_DAY", "") . "/" . $mth . "/" . get_request_item($name . "_FROMDATE_YEAR", "");
                     if (get_request_item($name . "_TODATE_DAY", "")) {
                         $mth = get_request_item($name . "_TODATE_MONTH", "") + 1;
                         $value .= "-";
                         $value .= get_request_item($name . "_TODATE_DAY", "") . "/" . $mth . "/" . get_request_item($name . "_TODATE_YEAR", "");
                     }
                 } else {
                     if (get_request_item("MANUAL_" . $name . "_FROMDATE", "")) {
                         $label = $crit->derive_attribute("column_title", $crit->query_name);
                         $label = sw_translate($label);
                         $value = get_request_item("MANUAL_" . $name . "_FROMDATE", "");
                         if (get_request_item("MANUAL_" . $name . "_TODATE", "")) {
                             $value .= "-";
                             $value .= get_request_item("MANUAL_" . $name . "_TODATE");
                         }
                     } else {
                         if (get_request_item("HIDDEN_" . $name . "_FROMDATE", "")) {
                             $label = $crit->derive_attribute("column_title", $crit->query_name);
                             $label = sw_translate($label);
                             $value = get_request_item("HIDDEN_" . $name . "_FROMDATE", "");
                             if (get_request_item("HIDDEN_" . $name . "_TODATE", "")) {
                                 $value .= "-";
                                 $value .= get_request_item("HIDDEN_" . $name . "_TODATE");
                             }
                         } else {
                             if (get_request_item("EXPANDED_" . $name, "")) {
                                 $label = $crit->derive_attribute("column_title", $crit->query_name);
                                 $label = sw_translate($label);
                                 $value .= implode(get_request_item("EXPANDED_" . $name, ""), ",");
//.........这里部分代码省略.........
开发者ID:lihaobin0320,项目名称:yii2-reportico,代码行数:101,代码来源:reportico_report.php

示例6: preg_replace

 function &display_maintain_field($tag, $val, &$tagct, $translate = true, $overridetitle = false, $toggleclass = false, $togglestate = false, $draw_shadow = false)
 {
     $text = "";
     $striptag = preg_replace("/ .*/", "", $tag);
     $showtag = preg_replace("/ /", "_", $tag);
     $partialMaintain = get_request_item("partialMaintain", false);
     if ($partialMaintain) {
         $x = $this->id . "_" . $showtag;
         if ($partialMaintain != $x && !preg_match("/_ANY/", $partialMaintain)) {
             return $text;
         }
     }
     $text .= "\n<!-- SETFIELD-->";
     $text .= '<TR';
     if ($toggleclass) {
         if ($togglestate) {
             $text .= " class=\"" . $toggleclass . "\" style=\"display: table-row\" ";
         } else {
             $text .= " class=\"" . $toggleclass . "\" style=\"display: none\" ";
         }
     }
     if ($draw_shadow) {
         $text .= " style=\"display: none\" ";
     }
     $text .= '>';
     $type = "TEXTFIELD";
     $translateoptions = false;
     $title = $tag;
     $edit_mode = "FULL";
     $tagvals = array();
     $subtitle = "";
     if (preg_match("/ /", $tag)) {
         $subtitle = preg_replace("/.* /", " ", $tag);
     }
     if (array_key_exists($striptag, $this->field_display)) {
         $arval = $this->field_display[$striptag];
         if (array_key_exists("Title", $arval)) {
             $title = $arval["Title"] . $subtitle;
         }
         if (array_key_exists("Type", $arval)) {
             $type = $arval["Type"];
         }
         if (array_key_exists("WizardLink", $arval)) {
             $this->wizard_linked_to = $val;
         }
         if (array_key_exists("XlateOptions", $arval)) {
             $translateoptions = $arval["XlateOptions"];
         }
         if (array_key_exists("EditMode", $arval)) {
             $edit_mode = $arval["EditMode"];
         }
         if (array_key_exists("Values", $arval)) {
             $tagvals = $arval["Values"];
         }
     }
     if ($overridetitle) {
         $title = $overridetitle;
     }
     $default = get_default($striptag, ".");
     if ($type == "HIDE") {
         $tagct--;
         $test = "";
         return $text;
     }
     $helppage = $this->get_help_link($this->id);
     $text .= '<TD class="swMntSetField">';
     if ($helppage) {
         if ($this->query->url_path_to_assets) {
             $helpimg = $this->query->url_path_to_assets . "/images/help.png";
             $text .= '<a target="_blank" href="' . $this->help_path($this->id, $striptag) . '">';
             $text .= '<img class="swMntHelpImage" alt="tab" src="' . $helpimg . '">';
             $text .= '</a>&nbsp;';
         } else {
             $helpimg = find_best_url_in_include_path("images/help.png");
             $dr = get_reportico_url_path();
             $text .= '<a target="_blank" href="' . $this->help_path($this->id, $striptag) . '">';
             $text .= '<img class="swMntHelpImage" alt="tab" src="' . $dr . $helpimg . '">';
             $text .= '</a>&nbsp;';
         }
     }
     if ($translate) {
         $text .= template_xlate($title);
     } else {
         $text .= $title;
     }
     if ($edit_mode == "SAFE") {
         if (SW_SAFE_DESIGN_MODE) {
             $text .= "<br>" . template_xlate("SAFEOFF");
         } else {
             $text .= "";
         }
     }
     $text .= '</TD>';
     if ($draw_shadow) {
         $shadow = "_shadow";
     } else {
         $shadow = "";
     }
     // Display Field Entry
     $text .= '<TD class="swMntSetField" colspan="1">';
//.........这里部分代码省略.........
开发者ID:lihaobin0320,项目名称:yii2-reportico,代码行数:101,代码来源:swpanel.php


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