Location: PHPKode > projects > NAR contents manager > software/libs/menus.php
<?
require_once("libs\BD.php"); 
require_once("libs\modelos.php");
require_once("libs\controlador.php");
require_once("libs\vistas.php");
require_once("libs\dialogos.php");
require_once("libs\entorno.php");
require_once("libs\accion.php");


class menu_redactor{
	var $tic;

	function menu_redactor($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menuredactor.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menuredactor.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}


class menu_ccierre{
	var $tic;

	function menu_ccierre($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menuccierre.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menuccierre.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}



class menu_corrector{
	var $tic;

	function menu_corrector($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menucorrector.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menucorrector.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}



class menu_credaccion{
	var $tic;

	function menu_credaccion($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menucredaccion.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menucredaccion.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}




class menu_disenador{
	var $tic;

	function menu_disenador($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menudisenador.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menudisenador.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}




class menu_editor{
	var $tic;

	function menu_editor($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menueditor.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menueditor.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}




class menu_master{
	var $tic;

	function menu_master($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menumaster.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menumaster.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}



class menu_reportero{
	var $tic;

	function menu_reportero($ticket){
		$this->tic=$ticket;
	}

	function show(){
		$fichero = "menureportero.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "menureportero.html");
		
		$p->asignar_variable("vticket",$this->tic);

		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}



class submenu1{
	var $tic;
	var $type;
	var $asignara;  //Clave del objeto al que se asigna el material si lo que se hace es buscar para asignar desde la BD
	var $tipoasignara;  //Tipo del objeto al que se asigna el material si lo que se hace es buscar para asignar desde la BD

	function submenu1($ticket,$type,$asignara,$tipoasignara){
		$this->tic=$ticket;
		$this->type=$type;
		$this->asignara=$asignara;
		$this->tipoasignara=$tipoasignara;
	}

	function show(){
		$fichero = "submenu1.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "submenu1.html");
		
		$p->asignar_variable("vticket",$this->tic);

		if ($this->type=='user'){
			$p->asignar_variable("vsubmenu",'subuser');
		}else if ($this->type=='news'){
			$p->asignar_variable("vsubmenu",'subnews');
		}else if ($this->type=='report'){
			$p->asignar_variable("vsubmenu",'subreport');
		}else if ($this->type=='structure'){
			$p->asignar_variable("vsubmenu",'substructure');
		}else if ($this->type=='publication'){
			$p->asignar_variable("vsubmenu",'subpublication');
		}else if ($this->type=='material'){
			$p->asignar_variable("vsubmenu",'submaterial');
		}
		
		$p->asignar_variable("vasignara",$this->asignara);
		$p->asignar_variable("vtipoasignara",$this->tipoasignara);
		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}




class submenu2{
	var $tic;
	var $type;
	var $asignara;  //Clave del objeto al que se asigna el material si lo que se hace es buscar para asignar desde la BD
	var $tipoasignara;  //Tipo del objeto al que se asigna el material si lo que se hace es buscar para asignar desde la BD

	function submenu2($ticket,$type,$asignara,$tipoasignara){
		$this->tic=$ticket;
		$this->type=$type;
		$this->asignara=$asignara;
		$this->tipoasignara=$tipoasignara;
	}

	function show(){
		$fichero = "submenu2.html";
		
		$p = new plantilla(".\plantilla\htmls");
		$p->asignar_fichero("general", "submenu2.html");
		
		$p->asignar_variable("vticket",$this->tic);

		if ($this->type=='user'){
			$p->asignar_variable("vsubmenu",'sub2user');
		}else if ($this->type=='news'){
			$p->asignar_variable("vsubmenu",'sub2news');
		}else if ($this->type=='report'){
			$p->asignar_variable("vsubmenu",'sub2report');
		}else if ($this->type=='structure'){
			$p->asignar_variable("vsubmenu",'sub2structure');
		}else if ($this->type=='publication'){
			$p->asignar_variable("vsubmenu",'sub2publication');
		}else if ($this->type=='material'){
			$p->asignar_variable("vsubmenu",'sub2material');
		}

		$p->asignar_variable("vasignara",$this->asignara);
		$p->asignar_variable("vtipoasignara",$this->tipoasignara);
		$p->calcular("salida", "general");
		$result=$p->tomar("salida");
		return $result;
	}
}






?>
Return current item: NAR contents manager