<? global $lang; ?>
<div class='action_panel'>
	<div class='title'><?=ucfirst( $this -> _title );?></div>
</div>
<div class='icons'>
	<?
	if ( $this -> _back )
	{
		?>
		<div class='icon' onClick='document.location.href="index.php?act=back";'>
			<img src='../images/system/sico_back.png'>
			<?=$lang -> getTrans( 'T_WSTECZ' );?>
		</div>
		<?
	}
	if ( $this -> _save )
	{
		?>
		<div class='icon' onClick='$("#<?=$this -> _id_form;?>").submit();'>
			<img src='../images/system/sico_save.png'>
			<?=$lang -> getTrans( 'T_ZASTOSUJ' );?>
		</div>
		<?
	}
  if ( $this -> _save_ajax )
  {
    ?>
		<div class='icon' onClick='<?=$this -> _save_ajax;?>'>
			<img src='../images/system/sico_save_ajax.png'>
			<?=$lang -> getTrans( 'T_ZAPISZ' );?>
		</div>
    <?
  }
	if ( $this -> _cancel )
	{
		?>
		<div class='icon' onClick='document.location.href="index.php?rw=back";'>
			<img src='../images/system/sico_cancel.png'>
			<?=$lang -> getTrans( 'T_ANULUJ' );?>
		</div>
		<?
	}
	if ( $this -> _add )
	{
		?>
		<div class='icon' onClick='document.location.href="index.php?rw=add";'>
			<img src='../images/system/sico_add.png'>
			<?=$lang -> getTrans( 'T_DODAJ' );?>
		</div>
		<?
	}
	if ( $this -> _update )
	{
		?>
		<div class='icon' onClick='document.location.href="index.php?rw=update";'>
			<img src='../images/system/sico_update.png'>
			<?=$lang -> getTrans( 'T_AKTUALIZUJ' );?>
		</div>
		<?
	}
  if ( $this -> _delete_ajax )
  {
    ?>
		<div class='icon' onClick="<?=$this -> _delete_ajax;?>">
			<img src='../images/system/sico_cancel.png'>
			<?=$lang -> getTrans( 'T_USUN_ZAZNACZONE' );?>
		</div>
    <?
  }
	?>
</div>