Your IP : 216.73.216.190


Current Path : /proc/1908984/root/proc/2603263/cwd/
Upload File :
Current File : //proc/1908984/root/proc/2603263/cwd/aigenerator.tar

tmpl/default_edit.php000064400000017120152377314550010677 0ustar00<?php 
/** 
 * @package JMAP::AIGENERATOR::administrator::components::com_jmap
 * @subpackage views
 * @subpackage aigenerator
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
?>
<div id="accordion_aigenerator_details" class="panel panel-info panel-group adminform">
	<div class="panel-heading" data-target="#aigenerator_details"><h4><?php echo JText::_('COM_JMAP_AIGENERATOR_CONTENT_DETAILS' ); ?></h4></div>
	<div class="panel-body panel-collapse" id="aigenerator_details">
		<form action="index.php" method="post" name="adminForm" id="adminForm"> 
			<table class="admintable">
				<tbody>
					<tr>
						<td class="key left_title">
							<span class="editlinktip">
								<label for="keywords_phrase" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_AIGENERATOR_KEYWORDS_PHRASE_DETAILS');?>">
									<?php echo JText::_('COM_JMAP_AIGENERATOR_KEYWORDS_PHRASE' ); ?>:
								</label>
							</span>
						</td>
						<td class="right_details">
							<input type="text" class="inputbox inputbox-large-fluid" name="keywords_phrase" id="keywords_phrase" data-validation="required" value="<?php echo $this->record->keywords_phrase;?>" />
						</td>
					</tr>
					
					<tr>
						<td class="paramlist_key left_title">
							<span class="editlinktip">
								<label for="api" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_AIGENERATOR_API_DETAILS');?>">
									<?php echo JText::_('COM_JMAP_AIGENERATOR_API');?>
								</label>
							</span>
						</td>
						<td class="paramlist_value">
							<fieldset id="jform_api" class="btn-group radio" data-bs-toggle="buttons">
								<?php 
									echo $this->lists ['ai_generator_contents_api']
								?>
							</fieldset>
						</td>
					</tr>
					
					<tr>
						<td class="paramlist_key left_title">
							<span class="editlinktip">
								<label for="maxresults" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SELECT_MAX_AI_RESULTS_DETAILS');?>">
									<?php echo JText::_('COM_JMAP_SELECT_MAX_AI_RESULTS');?>
								</label>
							</span>
						</td>
						<td class="paramlist_value">
							<fieldset id="jform_max_results" class="btn-group radio" data-bs-toggle="buttons">
								<?php 
									echo $this->lists ['ai_generator_max_results']
								?>
							</fieldset>
						</td>
					</tr>
					
					<?php if(array_key_exists('languages', $this->lists)):?>
						<tr>
							<td class="paramlist_key left_title">
								<span class="editlinktip">
									<label for="languages" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SELECT_LANGUAGE_AI_DETAILS');?>">
										<?php echo JText::_('COM_JMAP_SELECT_LANGUAGE_AI');?>
									</label>
								</span>
							</td>
							<td class="paramlist_value">
								<fieldset id="jform_languages" class="btn-group radio" data-bs-toggle="buttons">
									<?php 
										echo $this->lists ['languages']
									?>
								</fieldset>
							</td>
						</tr>
					<?php else:?>
						<tr>
							<td class="paramlist_key left_title">
								<span class="editlinktip">
									<label class="hasPopover" data-bs-content="<?php echo JText::_('COM_JMAP_SELECT_LANGUAGE_AI_DETAILS');?>">
										<?php echo JText::_('COM_JMAP_SELECT_LANGUAGE_AI');?>
									</label>
								</span>
							</td>
							<td class="paramlist_value">
								<?php echo '<img id="language_flag_image" src="' . JUri::root(false) . 'media/mod_languages/images/' . JString::strtolower(JString::str_ireplace('-', '_', $this->defaultLanguageCode)) . '.gif" alt="language_flag" />';?>
								<input type="hidden" name="language" value="<?php echo $this->defaultSefLanguageCode;?>"/>
							</td>
						</tr>
					<?php endif;?>
					
					<tr>
						<td class="paramlist_key left_title">
							<span class="editlinktip">
								<label id="removeimgs-lbl" for="jform_removeimgs" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_AI_REMOVE_IMAGES_DETAILS');?>">
									<?php echo JText::_('COM_JMAP_AI_REMOVE_IMAGES');?>
								</label>
							</span>
						</td>
						<td class="paramlist_value">
							<fieldset id="jform_removeimgs" class="btn-group radio" data-bs-toggle="buttons">
								<?php 
									$arr = array(
										JHtml::_('select.option',  1, JText::_('JENABLED' ) ),
										JHtml::_('select.option',  0, JText::_('JDISABLED' ) )
									);
									echo JHtml::_('select.radiolist', $arr, 'removeimgs', '', 'value', 'text', $this->record->removeimgs, 'removeimgs_');
								?>
							</fieldset>
						</td>
					</tr>
					
					<tr class="openai-params">
						<td class="paramlist_key left_title">
							<span class="editlinktip">
								<label id="removeimgs-lbl" for="jform_removeimgs" class="hasPopover" data-bs-content="<?php echo JText::_('COM_JMAP_AI_TEMPERATURE_DETAILS');?>">
									<?php echo JText::_('COM_JMAP_AI_TEMPERATURE');?>
								</label>
							</span>
						</td>
						
						<td class="paramlist_value">
							<fieldset id="jform_temperature" class="btn-group radio" data-bs-toggle="buttons" aria-describedby="jform_temperature_arialbl">
								<?php 
									echo $this->lists ['temperature'];
								?>
							</fieldset>
						</td>
					</tr>
				</tbody>
			</table>
			<input type="hidden" name="option" value="<?php echo $this->option?>" />
			<input type="hidden" name="id" value="<?php echo $this->record->id; ?>" />
			<input type="hidden" name="task" value="" />
		</form>
	</div>
</div>
	
<div id="accordion_aigenerator_contents_results" class="panel panel-info panel-group adminform">
	<div class="panel-heading" data-target="#contents_results"><h4><?php echo JText::_('COM_JMAP_AIGENERATOR_GENERATED_CONTENTS' ); ?></h4></div>
	<?php if(!$this->record->contents):?>
		<div class="panel-body panel-collapse" id="contents_results">	
			<div class="text-center">
		        <span class="icon-list"></span>
		        <h1 class="ai-maintitle"><?php echo JText::_('COM_JMAP_AIGENERATOR_NOCONTENTS')?></h1>
		        <div>
		            <p class="ai-subtitle">
		            	<?php echo JText::_('COM_JMAP_AIGENERATOR_NOCONTENTS_DETAILS')?>   
					</p>
		            <div>
 						 <a id="generatebutton" class="btn btn-primary btn-large"><?php echo JText::_('COM_JMAP_AIGENERATOR_GENERATE_CONTENTS')?></a>
					</div>
		        </div>
		    </div>
		</div>
	<?php else:?>
		<div class="panel-body" id="contents_results">	
			<?php foreach ($this->record->contents as $content):?>
				<div class="panel text-black bg-light">
					<div class="panel-heading hasPopover" data-content="<?php echo JText::_('COM_JMAP_AIGENERATOR_COPY_CONTENT');?>"><span class="icon-copy"></span><h4> <?php echo $content['title']; ?></h4></div>
					<div class="panel-body card-block">
						<?php echo $content['content'];?>
					</div>
					<div class="panel-footer">
						<button class="btn btn-primary btn-small create-article hasPopover" data-content="<?php echo JText::_('COM_JMAP_AIGENERATOR_CREATE_ARTICLE_DESC');?>"><span class="icon-new"></span> <?php echo JText::_('COM_JMAP_AIGENERATOR_CREATE_ARTICLE');?></button>
						<button class="btn btn-primary btn-small create-module hasPopover" data-content="<?php echo JText::_('COM_JMAP_AIGENERATOR_CREATE_MODULE_DESC');?>"><span class="icon-new"></span> <?php echo JText::_('COM_JMAP_AIGENERATOR_CREATE_MODULE');?></button>
					</div>
				</div>
			<?php endforeach;?>
		</div>
	<?php endif;?>
</div>tmpl/default_list.php000064400000013654152377314550010735 0ustar00<?php 
/** 
 * @package JMAP::AIGENERATOR::administrator::components::com_jmap
 * @subpackage views
 * @subpackage aigenerator
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
	<table class="full headerlist">
		<tr>
			<td align="left" width="60%">
				<span class="input-group">
				  <span class="input-group-addon"><span class="glyphicon glyphicon-filter"></span> <?php echo JText::_('COM_JMAP_FILTER' ); ?>:</span>
				  <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->searchword, ENT_COMPAT, 'UTF-8');?>" class="text_area"/>
				</span>

				<button class="btn btn-primary btn-xs" onclick="this.form.submit();"><?php echo JText::_('COM_JMAP_GO' ); ?></button>
				<button class="btn btn-primary btn-xs" onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_('COM_JMAP_RESET' ); ?></button>
			</td>
			<td nowrap="nowrap">
				<?php if($this->languagePluginEnabled):?>
					<?php echo $this->lists['languages'];?>
				<?php endif;?>
				
				<?php echo $this->lists['contentsapi'];?>
				
				<?php echo $this->pagination->getLimitBox(); ?>
			</td>
		</tr>
	</table>

	<table class="adminlist table table-striped table-hover">
	<thead>
		<tr>
			<th width="1%">
				<?php echo JText::_('COM_JMAP_NUM' ); ?>
			</th>
			<th width="1%">
				<input type="checkbox" name="checkall-toggle" value=""  onclick="Joomla.checkAll(this)" />
			</th>
			<th width="15%" class="title">
				<?php echo JHtml::_('grid.sort',  'COM_JMAP_AIGENERATOR_KEYWORDS_PHRASE', 's.keywords_phrase', @$this->orders['order_Dir'], @$this->orders['order'], 'aigenerator.display' ); ?>
			</th>
			<th class="title hidden-phone">
				<?php echo JHtml::_('grid.sort',  'COM_JMAP_AIGENERATOR_CONTENTS_EXCERPT', 's.contents', @$this->orders['order_Dir'], @$this->orders['order'], 'aigenerator.display' ); ?>
			</th>
			<th class="title hidden-phone">
				<?php echo JText::_('COM_JMAP_AIGENERATOR_NUM_CONTENTS'); ?>
			</th>
			<th class="title hidden-phone">
				<?php echo JHtml::_('grid.sort',  'COM_JMAP_AIGENERATOR_API', 's.api', @$this->orders['order_Dir'], @$this->orders['order'], 'aigenerator.display' ); ?>
			</th>
			
			<?php if($this->languagePluginEnabled):?>
				<th width="5%">
					<?php echo JHtml::_('grid.sort',  'COM_JMAP_DATASOURCE_LANGUAGE', 's.language', @$this->orders['order_Dir'], @$this->orders['order'], 'aigenerator.display' ); ?>
				</th>
			<?php endif;?>
			<th width="1%">
				<?php echo JHtml::_('grid.sort',   'COM_JMAP_ID', 's.id', @$this->orders['order_Dir'], @$this->orders['order'], 'aigenerator.display' ); ?>
			</th>
		</tr>
	</thead>
	<?php
	$k = 0;
	$canCheckin = $this->user->authorise('core.manage', 'com_checkin');
	for ($i=0, $n=count( $this->items ); $i < $n; $i++) {
		$row = $this->items[$i];
		$link =  'index.php?option=com_jmap&task=aigenerator.editEntity&cid[]='. $row->id ;
		
		$checked = null;
		if($this->user->authorise('core.edit', 'com_jmap')) {
			$checked = $row->checked_out && $row->checked_out != $this->user->id ?
						JHtml::_('jgrid.checkedout', $i, JFactory::getUser($row->checked_out)->name, $row->checked_out_time, 'aigenerator.', $canCheckin) . '<input type="checkbox" style="display:none" id="cb' . $i . '" name="cid[]" value="' . $row->id . '"/>' :
						JHtml::_('grid.id', $i, $row->id);
		} else {
			$checked = null;
		}
		?>
		<tr>
			<td align="center">
				<?php echo $this->pagination->getRowOffset($i); ?>
			</td>
			<td align="center">
				<?php echo $checked; ?>
			</td>
			<td>
				<?php
				if ( ($row->checked_out && ( $row->checked_out != $this->user->get ('id'))) || !$this->user->authorise('core.edit', 'com_jmap') ) {
					echo $row->keywords_phrase;
				} else {
					?>
					<a href="<?php echo $link; ?>" title="<?php echo JText::_('COM_JMAP_EDIT_LINK' ); ?>">
						<span class="icon-pencil"></span>
						<?php echo $row->keywords_phrase; ?>
					</a>
					<?php
				}
				?>
			</td>
			<td class="hidden-phone">
				<?php if($row->api == 'openai'):?>
					<?php 
					$openAiListContent = preg_replace('/{title}.*{\/title}/iU', '', $row->contents);
					echo JHtml::_('string.truncate', JString::str_ireplace(['{content}', '{/content}', '{contentdivider}'], '', strip_tags($openAiListContent)), 300); ?>
				<?php else:?>
					<?php echo $row->contents ? JHtml::_('string.truncate', JString::str_ireplace(['{title}','{/title}', '{content}', '{/content}', '{contentdivider}'], '', strip_tags($row->contents)), 300) : '-'; ?>
				<?php endif;?>
				
			</td>
			<td class="hidden-phone">
				<span class="badge badge-primary"><?php echo $row->contents ? substr_count($row->contents, '{contentdivider}') : '-';?></span>
			</td>
			<td class="hidden-phone">
				<span class="badge badge-warning"><?php echo JString::ucfirst($row->api);?></span>
			</td>
			<?php if($this->languagePluginEnabled):?>
				<td>
					<img style="margin-left:10px" src="<?php echo JUri::root(false) . 'media/mod_languages/images/' .  JString::str_ireplace('-', '_', $row->language) . '.gif';?>" alt="language_flag" />
				</td>
			<?php endif;?>
			<td align="center">
				<?php echo $row->id; ?>
			</td>
		</tr>
		<?php
	}
	?>
	<tfoot>
		<td colspan="13">
			<?php echo $this->pagination->getListFooter(); ?>
		</td>
	</tfoot>
	</table>

	<input type="hidden" name="option" value="<?php echo $this->option;?>" />
	<input type="hidden" name="task" value="aigenerator.display" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo @$this->orders['order'];?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo @$this->orders['order_Dir'];?>" />
</form>tmpl/index.html000064400000000054152377314550007530 0ustar00<html><body bgcolor="#FFFFFF"></body></html>index.html000064400000000054152377314550006554 0ustar00<html><body bgcolor="#FFFFFF"></body></html>view.html.php000064400000016775152377314550007226 0ustar00<?php
// namespace administrator\components\com_jmap\views\aigenerator;
/**
 * @package JMAP::AIGENERATOR::administrator::components::com_jmap
 * @subpackage views
 * @subpackage aigenerator
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );

/**
 * @package JMAP::AIGENERATOR::administrator::components::com_jmap
 * @subpackage views
 * @subpackage aigenerator
 * @since 2.0
 */
class JMapViewAIGenerator extends JMapView {
	// Template view variables
	protected $pagination;
	protected $searchword;
	protected $orders;
	protected $items;
	protected $urischeme;
	protected $record;
	protected $lists;
	protected $languagePluginEnabled;
	protected $defaultLanguageCode;
	
	/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
	protected function addEditEntityToolbar() {
		$user		= JFactory::getUser();
		$userId		= $user->get('id');
		$isNew		= ($this->record->id == 0);
		$checkedOut	= !($this->record->checked_out == 0 || $this->record->checked_out == $userId);
		$toolbarHelperTitle = $isNew ? 'COM_JMAP_AIGENERATOR_CONTENT_NEW' : 'COM_JMAP_AIGENERATOR_CONTENT_EDIT';
		
		JToolbarHelper::title( JText::_( $toolbarHelperTitle ), 'jmap' );
	
		if ($isNew)  {
			// For new records, check the create permission.
			if ($isNew && ($user->authorise('core.create', 'com_jmap'))) {
				JToolbarHelper::custom('aigenerator.generateEntity', 'cogs', 'cogs', 'COM_JMAP_AIGENERATOR_GENERATE_CONTENTS', false);
				JToolbarHelper::apply( 'aigenerator.applyEntity', 'JAPPLY');
				JToolbarHelper::save( 'aigenerator.saveEntity', 'JSAVE');
				JToolBarHelper::save2new( 'aigenerator.saveEntity2New');
			}
		} else {
			// Can't save the record if it's checked out.
			if (!$checkedOut) {
				// Since it's an existing record, check the edit permission, or fall back to edit own if the owner.
				if ($user->authorise('core.edit', 'com_jmap')) {
					JToolbarHelper::custom('aigenerator.generateEntity', 'cogs', 'cogs', 'COM_JMAP_AIGENERATOR_GENERATE_CONTENTS', false);
					JToolbarHelper::apply( 'aigenerator.applyEntity', 'JAPPLY');
					JToolbarHelper::save( 'aigenerator.saveEntity', 'JSAVE');
					JToolBarHelper::save2new( 'aigenerator.saveEntity2New');
				}
			}
		}
			
		JToolbarHelper::custom('aigenerator.cancelEntity', 'cancel', 'cancel', 'JCANCEL', false);
	}
	
	
	/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
	protected function addDisplayToolbar() {
		$user = JFactory::getUser();
		JToolbarHelper::title( JText::_('COM_JMAP_AIGENERATOR_TITLE' ), 'jmap' );
		// Access check.
		if ($user->authorise('core.create', 'com_jmap')) {
			JToolbarHelper::addNew('aigenerator.editEntity', 'COM_JMAP_AIGENERATOR_NEW_CONTENT');
		}
	
		if ($user->authorise('core.edit', 'com_jmap')) {
			JToolbarHelper::editList('aigenerator.editEntity', 'COM_JMAP_AIGENERATOR_EDIT_CONTENT');
		}
	
		if ($user->authorise('core.delete', 'com_jmap') && $user->authorise('core.edit', 'com_jmap')) {
			JToolbarHelper::deleteList('COM_JMAP_AIGENERATOR_DELETE_CONTENT', 'aigenerator.deleteEntity');
		}
			
		JToolbarHelper::custom('cpanel.display', 'home', 'home', 'COM_JMAP_CPANEL', false);
	}
	
	/**
	 * Default display listEntities
	 *        	
	 * @access public
	 * @param string $tpl
	 * @return void
	 */
	public function display($tpl = null) {
		// Get main records
		$rows = $this->get ( 'Data' );
		$lists = $this->get ( 'Filters' );
		$total = $this->get ( 'Total' );
		
		$doc = JFactory::getDocument();
		$this->loadJQuery($doc);
		$this->loadBootstrap($doc);
		$this->loadJQueryUI($doc);
		
		$orders = array ();
		$orders ['order'] = $this->getModel ()->getState ( 'order' );
		$orders ['order_Dir'] = $this->getModel ()->getState ( 'order_dir' );
		// Pagination view object model state populated
		$pagination = new JPagination ( $total, $this->getModel ()->getState ( 'limitstart' ), $this->getModel ()->getState ( 'limit' ) );
		
		$this->user = JFactory::getUser ();
		$this->pagination = $pagination;
		$this->searchword = $this->getModel ()->getState ( 'searchword' );
		$this->orders = $orders;
		$this->items = $rows;
		$this->lists = $lists;
		$this->option = $this->getModel ()->getState ( 'option' );
		$this->languagePluginEnabled = $this->getModel ()->getLanguagePluginEnabled();
		
		// Aggiunta toolbar
		$this->addDisplayToolbar();
			
		parent::display ( 'list' );
	}
	
	/**
	 * Edit entity view
	 *
	 * @access public
	 * @param Object& $row the item to edit
	 * @return void
	 */
	public function editEntity(&$row) {
		// Sanitize HTML Object2Form
		JFilterOutput::objectHTMLSafe( $row );
		
		// Detect uri scheme
		$instance = JUri::getInstance();
		$this->urischeme = $instance->isSSL() ? 'https' : 'http';
		
		// Load JS Client App dependencies
		$doc = JFactory::getDocument();
		$base = JUri::root();
		$this->loadJQuery($doc);
		$this->loadBootstrap($doc);
		$this->loadValidation($doc);
		
		$doc->addScriptDeclaration("var jmap_baseURI='$base';");
		$doc->addScriptDeclaration("var jmap_urischeme='$this->urischeme';");
		
		// Inject js translations
		$translations = array(	'COM_JMAP_PROGRESSAIGENERATORTITLE',
								'COM_JMAP_PROGRESSAIGENERATORSUBTITLE',
								'COM_JMAP_AIGENERATOR_COPIED_CONTENT',
								'COM_JMAP_PROGRESSAIGENERATOR_ARTICLE_CREATION_TITLE',
								'COM_JMAP_PROGRESSAIGENERATOR_MODULE_CREATION_TITLE',
								'COM_JMAP_PROGRESSAIGENERATOR_CONTENT_CREATION_SUBTITLE_ARTICLE',
								'COM_JMAP_PROGRESSAIGENERATOR_CONTENT_CREATION_SUBTITLE_MODULE',
								'COM_JMAP_PROGRESSAIGENERATOR_CONTENT_CREATION_SUBTITLE_ARTICLE_SUCCESS',
								'COM_JMAP_PROGRESSAIGENERATOR_CONTENT_CREATION_SUBTITLE_MODULE_SUCCESS',
								'COM_JMAP_PROGRESSAIGENERATOR_ARTICLE_CREATION_ERROR',
								'COM_JMAP_PROGRESSAIGENERATOR_MODULE_CREATION_ERROR',
								'COM_JMAP_PROGRESSAIGENERATOR_CONTENT_CREATION_EDIT_ARTICLE',
								'COM_JMAP_PROGRESSAIGENERATOR_CONTENT_CREATION_EDIT_MODULE');
		$this->injectJsTranslations($translations, $doc);
		
		// Load specific JS App
		$doc->addScript ( JUri::root ( true ) . '/administrator/components/com_jmap/js/aigenerator.js' );
		$doc->addScriptDeclaration("
						Joomla.submitbutton = function(pressbutton) {
							if(!jQuery.fn.validation) {
								jQuery.extend(jQuery.fn, jmapjQueryBackup.fn);
							}
				
							jQuery('#adminForm').validation();
							
							if (pressbutton == 'aigenerator.cancelEntity') {	
								jQuery('#adminForm').off();
								Joomla.submitform( pressbutton );
								return true;
							}
							
							if(jQuery('#adminForm').validate()) {
								if (pressbutton == 'aigenerator.generateEntity') {	
									// Start the progress bar
									JMapAIContentGenerator.openProgressContentGeneration();
								}
								Joomla.submitform( pressbutton );
								return true;
							}
							return false;
						};
					");
		
		// Get default site language
		$langParams = JComponentHelper::getParams('com_languages');
		// Setup predefined site language
		$this->defaultLanguageCode = $langParams->get('site');
		$this->defaultSefLanguageCode = JMapLanguageMultilang::getCurrentSefLanguage();
		
		$lists = $this->getModel()->getLists($row);
		$this->option = $this->getModel ()->getState ( 'option' );
		$this->record = $row;
		$this->lists = $lists;
		
		// Aggiunta toolbar
		$this->addEditEntityToolbar();
		
		parent::display ( 'edit' );
	}
}