first commit
This commit is contained in:
72
templates/other/page-panel.php
Normal file
72
templates/other/page-panel.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?
|
||||
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>
|
||||
<?
|
||||
}
|
||||
Reference in New Issue
Block a user