<?php
require_once GTFWConfiguration::GetValue( 'application', 'docroot') . 'module/label/business/Label.class.php';

class ViewLabel extends HtmlResponse {

   var $mComponentParameters;

   function TemplateModule() {
      $this->SetTemplateBasedir(GTFWConfiguration::GetValue( 'application', 'docroot') .'module/label/template');
      $this->SetTemplateFile('view_label.html');
   }

   function ProcessRequest() {
      
		$getData = $_GET->asArray();
		$Obj = new Label();
      
       

         unset($_SESSION['label']);
         unset($_SESSION['label_order']);
         $label = $Obj->GetLabel($getData['mod'],$getData['sub'],$getData['act'],$getData['typ']);
         $_SESSION['label_order']=0;
         $_SESSION['moduleId'] = $_SESSION['label']['0']['ModuleId'];

      print_r($_SESSION['label']);

      return $return;
   }

   function ParseTemplate($data = NULL) {
         $this->mrTemplate->AddVar('content', 'MODULE_LABEL', $_SESSION['label'][$_SESSION['label_order']]['titleModule']);
         
         
      }
   }
?>
