22 lines
644 B
PHP
22 lines
644 B
PHP
<?php
|
|
namespace admin\view;
|
|
|
|
class PagePanel {
|
|
|
|
public function show( $add = false , $save = false , $cancel = false , $title = '' , $form = 'formularz' , $back = false , $update = false , $save_ajax = false, $delete_ajax = false )
|
|
{
|
|
$tpl = new \Savant3();
|
|
$tpl -> _add = $add;
|
|
$tpl -> _save = $save;
|
|
$tpl -> _cancel = $cancel;
|
|
$tpl -> _id_form = $form;
|
|
$tpl -> _title = $title;
|
|
$tpl -> _back = $back;
|
|
$tpl -> _update = $update;
|
|
$tpl -> _save_ajax = $save_ajax;
|
|
$tpl -> _delete_ajax = $delete_ajax;
|
|
return $tpl -> fetch( 'templates/page-panel.php' );
|
|
}
|
|
}
|
|
?>
|