36 lines
1007 B
PHP
36 lines
1007 B
PHP
<?php namespace Tps\Shops\Controllers;
|
|
|
|
use Backend\Classes\Controller;
|
|
use BackendMenu;
|
|
|
|
class Report extends Controller
|
|
{
|
|
public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController' ];
|
|
|
|
public $listConfig = 'config_list.yaml';
|
|
public $formConfig = 'config_form.yaml';
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
BackendMenu::setContext('Tps.Shops', 'main-menu-item', 'side-menu-item6');
|
|
}
|
|
|
|
public function onZipExtract(){
|
|
dd("bcas");
|
|
}
|
|
|
|
public function onSaveAndNew($context = null)
|
|
{
|
|
// parent::update_onSave($context);
|
|
// dump("bcas");
|
|
// dd("bcas");
|
|
$aa = $this->name;
|
|
echo '<script language="javascript">';
|
|
echo '<script type="text/javascript">alert("' . $aa . '")</script>';
|
|
echo 'alert("message successfully sent")';
|
|
echo '</script>';
|
|
// return \Backend::redirect('tps/shops/report');
|
|
}
|
|
}
|