<?php
#
# XiVO Web-Interface
# Copyright (C) 2006-2014  Avencall
#
# 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 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

$url     = &$this->get_module('url');

$table1 = $this->get_var('table1');
$axetype = $this->get_var('axetype');
$xivo_jqplot = $this->get_var('xivo_jqplot');

$tbl_identity = '';
if (($type = $table1->get_data_custom('listtype')) !== null
&& count($type) === 1
&& isset($type[0]['identity']) === true)
    $tbl_identity = '('.$type[0]['identity'].')';

?>

<div class="b-infos">
  <breadcrumb
		page="<?=$this->bbf('title_content_name');?>">
	</breadcrumb>

	<div class="sb-content">
		<div class="sb-list">
<?php
	if (($msg = $table1->get_error()) !== false):
		echo $msg;
	else :
?>
		<div class="sb-list">
<?php
		echo $table1->infos_html();
		echo $table1->render_html(false);
?>
		</div>
<?php
		switch ($axetype):
			case 'type':
				break;
			case 'day':
				break;
			case 'week':
			case 'month':
			case 'year':
				break;
			default:
		endswitch;
	endif;
?>
		</div>
	</div>
	<div class="sb-foot xspan"></div>
</div>
