@ini_set("display_startup_errors", "1"); require_once "include/dbcommon.php"; header("Expires: Thu, 01 Jan 1970 00:00:01 GMT"); require_once "classes/charts.php"; require_once getabspath("include/xml.php"); require_once getabspath("classes/searchclause.php"); if (!isLogged()) { Security::saveRedirectURL(); HeaderRedirect("login", "", "message=expired"); return; } $xml = new xml(); $chrt_strXML = ""; if (checkTableName(postvalue("chartname"), titCHART)) { include_once "include/" . postvalue("chartname") . "_variables.php"; $chrt_strXML = GetChartXML(postvalue("chartname")); $chrt_array = $xml->xml_to_array($chrt_strXML); $_SESSION["webobject"]["table_type"] = "project"; $_SESSION["object_sql"] = ""; } $webchart = false; if (!$chrt_strXML) { $sessPrefix = "webchart" . postvalue('cname'); $chrt_strXML = LoadSelectedChart(postvalue('cname')); $webchart = true; $chrt_array = $xml->xml_to_array($chrt_strXML); if (is_wr_project()) { include_once "include/" . $chrt_array['settings']['short_table_name'] . "_variables.php"; } } $param = array();
/** * */ public function doCommonAssignments() { $this->xt->assign("id", $this->id); //set the Search panel $this->xt->assign("searchPanel", true); if ($this->isShowMenu()) { $this->xt->assign("menu_block", true); } $this->xt->assign("chart_block", true); $this->xt->assign("asearch_link", true); $this->xt->assign("exportpdflink_attrs", "onclick='chart.saveAsPDF();'"); $this->xt->assign("advsearchlink_attrs", "id=\"advButton" . $this->id . "\""); if (!GetChartXML($this->shortTableName)) { $this->xt->assign("chart_block", false); } if (($this->mode == CHART_SIMPLE || $this->mode == CHART_DASHBOARD) && $this->pSet->noRecordsOnFirstPage() && !$this->searchClauseObj->isSearchFunctionalityActivated()) { $this->show_message_block = true; $this->xt->displayBrickHidden("chart"); $this->xt->assign("chart_block", false); $this->xt->assign("message_block", true); $this->xt->assign("message", "No se hallaron registros"); } $this->assignChartElement(); $this->body['begin'] .= GetBaseScriptsForPage($this->isDisplayLoading); if (!isMobile()) { $this->body['begin'] .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; } // assign body end $this->body['end'] = array(); AssignMethod($this->body['end'], "assignBodyEnd", $this); $this->xt->assignbyref('body', $this->body); }
/** * */ public function doCommonAssignments() { $this->xt->assign("id", $this->id); //set the Search panel $this->xt->assign("searchPanel", true); if ($this->isShowMenu()) { $this->xt->assign("menu_block", true); } $this->xt->assign("chart_block", true); $this->xt->assign("asearch_link", true); $this->xt->assign("exportpdflink_attrs", "onclick='chart.saveAsPDF();'"); $this->xt->assign("advsearchlink_attrs", "id=\"advButton" . $this->id . "\""); if (!GetChartXML($this->shortTableName)) { $this->xt->assign("chart_block", false); } if (($this->mode == CHART_SIMPLE || $this->mode == CHART_DASHBOARD) && $this->pSet->noRecordsOnFirstPage() && !$this->searchClauseObj->isSearchFunctionalityActivated()) { $this->show_message_block = true; $this->xt->displayBrickHidden("chart"); $this->xt->assign("chart_block", false); $this->xt->assign("message_block", true); $this->xt->assign("message", "No records found"); } $this->assignChartElement(); if ($this->isDynamicPerm && IsAdmin()) { $this->xt->assign("adminarea_link", true); $this->xt->assign("adminarealink_attrs", "id=\"adminArea" . $id . "\""); } $this->xt->assign("changepwd_link", $_SESSION["AccessLevel"] != ACCESS_LEVEL_GUEST && $_SESSION["fromFacebook"] == false); $this->xt->assign("changepwdlink_attrs", "onclick=\"window.location.href='" . GetTableLink("changepwd") . "';return false;\""); $this->body['begin'] .= GetBaseScriptsForPage($this->isDisplayLoading); if (!isMobile()) { $this->body['begin'] .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; } // assign body end $this->body['end'] = array(); AssignMethod($this->body['end'], "assignBodyEnd", $this); $this->xt->assignbyref('body', $this->body); }