<?php $module = $Params['Module']; $Result = array(); $tpl = eZTemplate::factory(); $tabs = MMImportMonotorArchive::getArchiveSettings(); if ( !empty($tabs) && !isset( $module->UserParameters['tab'] ) ) { $identifiers = array_keys( $tabs ); $module->UserParameters['tab'] = $identifiers[0]; } $tabContents = array( 'files' => array() ); if ( isset( $module->UserParameters['tab'] ) ) { $archive = MMImportMonotorArchive::instance( $module->UserParameters['tab'] ); $tabContents['files'] = $archive->getFiles(); } $tpl->setVariable( 'view_parameters', $module->UserParameters ); $tpl->setVariable( 'tabs', $tabs ); $tpl->setVariable( 'tab_contents', $tabContents ); $Result['content'] = $tpl->fetch( 'design:importmonitor/archives.tpl' ); $Result['path'] = array( array('url' => '/monitor/dashboard', 'text' => 'Dashboard'),