protected function renderSosaHeader() {
        $selectedgen = $this->data->get('generation');
        $max_gen = $this->data->get('max_gen');
        ?>
        
    	<form method="get" name="setgen" action="module.php">
			<input type="hidden" name="mod" value="<?php echo $this->data->get('url_module');?>">
			<input type="hidden" name="mod_action" value="<?php echo $this->data->get('url_action');?>">
			<input type="hidden" name="ged" value="<?php echo $this->data->get('url_ged');?>">
			<div class="maj-table">
				<div class="maj-row">
					<div class="label"><?php echo I18N::translate('Choose generation') ?></div>
				</div>
				<div class="maj-row">
					<div class="value">
						<select name="gen">							
						<?php for($i=$this->data->get('min_gen'); $i <= $max_gen;$i++) {?>
							<option value="<?php echo $i; ?>"
							<?php if($selectedgen && $selectedgen==$i) { ?> selected="true" <?php } ?>
                			><?php echo I18N::translate('Generation %d', $i); ?>
                			</option>
                		<?php } ?>
                		</select>
                	</div>
                </div>
      		</div>
      		<input type="submit" value="<?php echo I18N::translate('Show');?>" />
      		<br />
      	</form>
      	<?php if($selectedgen > 0) { ?>
		<h4>
			<?php if($selectedgen > $this->data->get('min_gen')) { ?>
			<a href="module.php?mod=<?php echo $this->data->get('url_module');?>&mod_action=<?php echo $this->data->get('url_action');?>&ged=<?php echo $this->data->get('url_ged');?>&gen=<?php echo $selectedgen-1; ?>">
				<i class="icon-ldarrow" title="<?php echo I18N::translate('Previous generation'); ?>" ></i>
			</a>
			&nbsp;&nbsp;
			<?php } ?>
			<?php echo I18N::translate('Generation %d', $selectedgen); ?>
			<?php if($selectedgen < $max_gen) { ?>
			&nbsp;&nbsp;
			<a href="module.php?mod=<?php echo $this->data->get('url_module');?>&mod_action=<?php echo $this->data->get('url_action');?>&ged=<?php echo $this->data->get('url_ged');?>&gen=<?php echo $selectedgen+1; ?>">
				<i class="icon-rdarrow" title="<?php echo I18N::translate('Next generation'); ?>" ></i>
			</a>
			<?php } ?>
		</h4>
		
		<?php 
		}
    }