Exemplo n.º 1
2
 function XTempl()
 {
     $this->xt_vars = array();
     $this->xt_stack = array();
     $this->xt_stack[] =& $this->xt_vars;
     xtempl_include_header($this, "header", "include/header.php");
     xtempl_include_header($this, "footer", "include/footer.php");
     $this->assign_method("event", $this, "xt_doevent", array());
     $this->assign_function("label", "xt_label", array());
     $this->assign_function("custom", "xt_custom", array());
     $this->assign_function("caption", "xt_caption", array());
     $this->assign_function("mainmenu", "xt_displaymenu", array());
     $this->assign_function("TabGroup", "xt_displaytabs", array());
     $this->assign_function("Section", "xt_displaytabs", array());
     $mlang_charsets = array();
     $mlang_charsets["English"] = "Windows-1252";
     $mlang_charsets["Urdu"] = "Windows-1256";
     $this->charsets =& $mlang_charsets;
     $order = $this->getReadingOrder();
     $html_attrs = '';
     if ($order == 'RTL') {
         $this->assign("RTL_block", true);
         $html_attrs .= 'dir="RTL" ';
     } else {
         $this->assign("LTR_block", true);
     }
     if (mlang_getcurrentlang() == 'English') {
         $html_attrs .= 'lang="en"';
     }
     $this->assign("html_attrs", $html_attrs);
 }
Exemplo n.º 2
0
 /**
  * @param Boolean hideAddedCharts (optional) #9607 1.
  */
 function XTempl($hideAddedCharts = false)
 {
     global $mlang_charsets;
     $this->xt_vars = array();
     $this->xt_stack = array();
     $this->xt_stack[] =& $this->xt_vars;
     if (!isMobile()) {
         xtempl_include_header($this, "header", "include/header.php");
         xtempl_include_header($this, "footer", "include/footer.php");
     } else {
         xtempl_include_header($this, "header", "include/mheader.php");
         xtempl_include_header($this, "footer", "include/mfooter.php");
     }
     $this->assign_method("event", $this, "xt_doevent", array());
     $this->assign_function("label", "xt_label", array());
     $this->assign_function("custom", "xt_custom", array());
     $this->assign_function("caption", "xt_caption", array());
     $this->assign_function("pagetitlelabel", "xt_pagetitlelabel", array());
     $this->assign_method("mainmenu", $this, "xt_displaymainmenu", array());
     $this->assign_method("menu", $this, "xt_displaymenu", array());
     $this->assign_function("TabGroup", "xt_displaytabs", array());
     $this->assign_function("Section", "xt_displaytabs", array());
     if (!$hideAddedCharts) {
         $this->assign_function("Current_Year_Sales_chart", "xt_showchart", array("chartname" => "Current_Year_Sales", "table" => "Current Year Sales", "ctype" => "Line"));
         $this->assign_function("Sales_By_SalesPerson_Chart_chart", "xt_showchart", array("chartname" => "Sales_By_SalesPerson_Chart", "table" => "Sales By SalesPerson Chart", "ctype" => "2DBar"));
         $this->assign_function("Sales_By_Department_chart", "xt_showchart", array("chartname" => "Sales_By_Department", "table" => "Sales By Department", "ctype" => "2DBar"));
         $this->assign_function("Current___Last_Year_Sales_Comparison_chart", "xt_showchart", array("chartname" => "Current___Last_Year_Sales_Comparison", "table" => "Current - Last Year Sales Comparison", "ctype" => "2DColumn"));
         $this->assign_function("Current___Last_Year_GP_Comparison_chart", "xt_showchart", array("chartname" => "Current___Last_Year_GP_Comparison", "table" => "Current - Last Year GP Comparison", "ctype" => "2DColumn"));
         $this->assign_function("Current___Last_Year_GP___Comparison_chart", "xt_showchart", array("chartname" => "Current___Last_Year_GP___Comparison", "table" => "Current - Last Year GP % Comparison", "ctype" => "2DColumn"));
         $this->assign_function("Fact_SalesTransaction_Chart_chart", "xt_showchart", array("chartname" => "Fact_SalesTransaction_Chart", "table" => "Fact_SalesTransaction Chart", "ctype" => "2DColumn"));
         $this->assign_function("Top_Selling_Products_Current_Year_chart", "xt_showchart", array("chartname" => "Top_Selling_Products_Current_Year", "table" => "Top Selling Products Current Year", "ctype" => "2DBar"));
         $this->assign_function("Worst_Selling_Products_Current_Year_chart", "xt_showchart", array("chartname" => "Worst_Selling_Products_Current_Year", "table" => "Worst Selling Products Current Year", "ctype" => "2DBar"));
         $this->assign_function("Non_Selling_Products_with_Stock_Current_Year_chart", "xt_showchart", array("chartname" => "Non_Selling_Products_with_Stock_Current_Year", "table" => "Non Selling Products with Stock Current Year", "ctype" => "2DBar"));
         $this->assign_function("Top_Grossing_Products_YTD_chart", "xt_showchart", array("chartname" => "Top_Grossing_Products_YTD", "table" => "Top Grossing Products YTD", "ctype" => "2DBar"));
     }
     $mlang_charsets = array();
     $mlang_charsets["English"] = "Windows-1252";
     $this->charsets =& $mlang_charsets;
     $html_attrs = '';
     if (isRTL()) {
         $this->assign("RTL_block", true);
         $this->assign("rtlCSS", true);
         $html_attrs .= 'dir="RTL" ';
     } else {
         $this->assign("LTR_block", true);
     }
     if (mlang_getcurrentlang() == 'English') {
         $html_attrs .= 'lang="en"';
     }
     $this->assign("html_attrs", $html_attrs);
     $this->assign("menu_block", true);
 }
Exemplo n.º 3
0
	/**
	 * @param Boolean hideAddedCharts (optional) #9607 1.
	 */
	function XTempl( $hideAddedCharts = false )
	{
		global $mlang_charsets;
		
		$this->xt_vars=array();
		$this->xt_stack=array();
		$this->xt_stack[]=&$this->xt_vars;
		if (!isMobile())
		{
			xtempl_include_header($this,"header","include/header.php");
			xtempl_include_header($this,"footer","include/footer.php");
		}
		else
		{
			xtempl_include_header($this,"header","include/mheader.php");
			xtempl_include_header($this,"footer","include/mfooter.php");
		}
		$this->assign_method("event",$this, "xt_doevent",array());
		$this->assign_function("label","xt_label",array());
		$this->assign_function("custom","xt_custom",array());
		$this->assign_function("caption","xt_caption",array());
		$this->assign_function("pagetitlelabel", "xt_pagetitlelabel", array());
		$this->assign_method("mainmenu",$this,"xt_displaymainmenu",array());
		$this->assign_method("menu",$this,"xt_displaymenu",array());
		$this->assign_function("TabGroup","xt_displaytabs",array());
		$this->assign_function("Section","xt_displaytabs",array());
		
		if( !$hideAddedCharts ) //#9607 1. Temporary fix
		{
		}
		
		$mlang_charsets=array();
		
$mlang_charsets["English"]="Windows-1252";;
		$this->charsets = &$mlang_charsets;
		
		$html_attrs = '';
		if(isRTL())
		{
			$this->assign("RTL_block",true);
			$this->assign("rtlCSS",true);
			$html_attrs .= 'dir="RTL" ';
		}
		else
			$this->assign("LTR_block",true);
		if(mlang_getcurrentlang() == 'English')
				$html_attrs .= 'lang="en"';
		$this->assign("html_attrs",$html_attrs);	
		$this->assign("menu_block",true);	
	}