72 lines
1.6 KiB
PHP
72 lines
1.6 KiB
PHP
<?
|
|
if ( $this -> _back || $this -> _save || $this -> _save_ajax || $this -> _cancel || $this -> _add || $this -> _update )
|
|
{
|
|
?>
|
|
<div class="action-icons">
|
|
<?
|
|
if ( $this -> _back )
|
|
{
|
|
?>
|
|
<div class='icon' onClick='document.location.href="index.php?act=back";'>
|
|
<i class="img back mr5"></i>
|
|
Wstecz
|
|
</div>
|
|
<?
|
|
}
|
|
|
|
if ( $this -> _save )
|
|
{
|
|
?>
|
|
<a class="btn btn_add"href="#" onclick='$( "#<?= $this -> _id_form;?>" ).submit(); return false;'>
|
|
<?= $this -> _save === true ? $tmp = 'Zatwierdź' : $tmp = $this -> _save;?>
|
|
</a>
|
|
<?
|
|
}
|
|
|
|
if ( $this -> _save_ajax )
|
|
{
|
|
?>
|
|
<div class='btn' onClick='<?= $this -> _save_ajax;?>'>
|
|
<i class="img save-ajax mr5"></i>
|
|
Zapisz
|
|
</div>
|
|
<?
|
|
}
|
|
if ( $this -> _cancel )
|
|
{
|
|
?>
|
|
<a href="./" class="btn btn_cancel">
|
|
Anuluj
|
|
</a>
|
|
<?
|
|
}
|
|
if ( $this -> _add )
|
|
{
|
|
?>
|
|
<a href="/?rw=add" class="btn btn_add">
|
|
<?= $this -> _add === true ? $tmp = 'Dodaj' : $tmp = $this -> _add;?>
|
|
</a>
|
|
<?
|
|
}
|
|
if ( $this -> _update )
|
|
{
|
|
?>
|
|
<div class='btn' onClick='document.location.href="index.php?rw=update";'>
|
|
<img src='../images/sico_update.png'>
|
|
Aktualizuj
|
|
</div>
|
|
<?
|
|
}
|
|
if ( $this -> _checkbox )
|
|
{
|
|
?>
|
|
<div class='btn btn_delete' onClick='<?= $this -> _checkbox['action'];?>'>
|
|
<i class="img delete-ajax mr5"></i>
|
|
<?= $this -> _checkbox['name'];?>
|
|
</div>
|
|
<?
|
|
}
|
|
?>
|
|
</div>
|
|
<?
|
|
}
|