<?php

/*************************************************************************/
/* DOCEBO CMS - Content Management System                                */
/* ============================================                          */
/*                                                                       */
/* Copyright (c) 2006 by Giovanni Derks <virtualdarkness[AT]gmail-com>   */
/* http://www.docebocms.org                                              */
/*                                                                       */
/* This program is free software. You can redistribute it and/or modify  */
/* it under the terms of the GNU General Public License as published by  */
/* the Free Software Foundation; either version 2 of the License.        */
/*************************************************************************/


function ticket_showMain($idBlock, $title, $block_op) {

	$opt=loadBlockOption($idBlock);

	if ((isset($title)) && ($title != ''))
		$GLOBALS["page"]->add('<div class="titleBlock">'.$title.'</div>', "content");

	getPageId();
	setPageId($GLOBALS["area_id"], $idBlock);
	require_once($GLOBALS["where_cms"]."/modules/ticket/functions.php");

	// [TODO]:
	// 1. trovare se crm e' installato
	// 2. trovare se utente ha fatto login
	// [DONE]:
	// 3. trovare di quali aziende l'utente fa parte
	// 4. piu' di un'azienda: lista aziende / un'azienda: lista ticket azienda

	//test();

	ticketGetMainPage();

}


?>
