public function find()
 {
     $find = new CategoryModel();
     $find->id = (int) Request::get('find_value');
     $result = $find->getAll();
     $this->set("categorys", $result);
     return View('category.index');
 }
 public function find()
 {
     $find = new ReleasesModel();
     $find->id = (int) Request::get('find_value');
     $result = $find->getAll();
     $this->set($this->output, $result);
     return View('releases.index');
 }
 public function index()
 {
     $category = new CategoryModel();
     $resultCategory = $category->getall();
     $this->set("categorys", $resultCategory);
     $release = new ReleasesModel();
     if (Request::check(['category_id'], "POST")) {
         $release->category_id = (int) Request::get('category_id');
     }
     $result = $release->getall();
     $this->set("releases", $result);
     return View('report.index');
 }
Esempio n. 4
0
 public static function set_active_style()
 {
     if ($menu['url'] == Request::segment(1) || $menu['url'] == '/') {
         return 'active';
     }
 }
Esempio n. 5
0
 public function Request($key)
 {
     return Request::get($key);
 }
Esempio n. 6
0
 public static function set_active($route)
 {
     return \Request::is($route . '/*') || \Request::is($route) ? "active" : '';
 }
Esempio n. 7
0
 /**
  * 操作成功
  * @param $msg
  * @param null $url
  * @param array $data
  * @param int $delay
  * @return \Illuminate\View\View
  */
 public static function success($msg, $url = null, $data = array(), $delay = 3)
 {
     if (empty($url)) {
         $url = \Request::header("Referer");
         if (empty($url)) {
             $url = "/admin/app";
         }
     }
     return view("admin.tips.success", array("msg" => $msg, "data" => $data, "url" => $url, "delay" => $delay));
 }