当前位置: 首页>>代码示例>>PHP>>正文


PHP General::storeevents方法代码示例

本文整理汇总了PHP中General::storeevents方法的典型用法代码示例。如果您正苦于以下问题:PHP General::storeevents方法的具体用法?PHP General::storeevents怎么用?PHP General::storeevents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在General的用法示例。


在下文中一共展示了General::storeevents方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: destroy

 public function destroy()
 {
     General::storeevents(NGUOI_DUNG_LOGOUT);
     Session::flush();
     Auth::logout();
     return Redirect::route("login");
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:7,代码来源:NguoiDungLogin.php

示例2: store

 public function store()
 {
     if (Input::has('btnThem')) {
         $nhomquyen = Input::get('quyen');
         $mst = str_replace(" ", "", Input::get('txtMaSoThe'));
         $pass = Hash::make(General::randomPassword());
         $hoten = str_replace("  ", " ", trim(Input::get('txtHoTen')));
         $gioitinh = Input::get('gioiTinh');
         $ngaysinh = Input::get('txtNgaySinh');
         $email = str_replace(" ", "", Input::get('txtEmail'));
         $ngaycapthe = Input::get('txtNgayCapThe');
         $ngayhethan = null;
         if (Input::get('txtNgayHetHan') != "") {
             $ngayhethan = Input::get('txtNgayHetHan');
         }
         $tthoatdong = 0;
         if (Input::get('checkHoatDong') == "hoatdong") {
             $tthoatdong = 1;
         } else {
             $tthoatdong = 0;
         }
         $result = DB::table('nguoi_dung')->insert(array('id_nhom_quyen_han' => $nhomquyen, 'ma_so_the' => $mst, 'password' => $pass, 'ho_ten' => $hoten, 'gioi_tinh' => $gioitinh, 'ngay_sinh' => $ngaysinh, 'email' => $email, 'ngay_cap_the' => $ngaycapthe, 'ngay_het_han' => $ngayhethan, 'trang_thai_hoat_dong' => $tthoatdong));
         General::storeevents(QUAN_LY_THEM_NGUOI_DUNG . " có mã số thẻ " . $mst);
         return Redirect::back()->with('message', 'Thêm người dùng thành công!');
     }
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:26,代码来源:QuanLyQuanLyNguoiDung.php

示例3: index

 public function index()
 {
     $tinhtrang = 6;
     $idnm = Auth::user()->id;
     if (Input::has('tinhtrang')) {
         $tinhtrang = trim(Input::get('tinhtrang'));
         if ($tinhtrang != 0 && $tinhtrang != 1 && $tinhtrang != 2 && $tinhtrang != 3 && $tinhtrang != 4 && $tinhtrang != 5) {
             $tinhtrang = 6;
         }
     }
     $quyensachs = DB::select(DB::raw("CALL tra_cuu_muon_tra(" . $tinhtrang . "," . $idnm . ");"));
     General::storeevents(NGUOI_MUON_TRA_CUU_MUON_TRA);
     return View::make('nguoimuon_muontra.index_muontra')->with('title', 'Tra cứu mượn - trả trong thư viện')->with('quyensachs', $quyensachs);
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:14,代码来源:NguoiMuonTraCuuMuonTra.php

示例4: create

 public function create()
 {
     $CacSachMuon = null;
     $IdPhieuMuon = General::getIdPhieu(ThuThuQuanLyMuonTra::getMaSoVuaNhap());
     $CacSachMuon = QuyenSach::join('chi_tiet_phieu_muon_sach', function ($join) {
         $join->on('chi_tiet_phieu_muon_sach.id_quyen_sach', '=', 'quyen_sach.id');
     })->join('phieu_muon_sach', function ($join) {
         $join->on('chi_tiet_phieu_muon_sach.id_phieu_muon', '=', 'phieu_muon_sach.id');
     })->join('dau_sach', function ($join) {
         $join->on('dau_sach.id', '=', 'quyen_sach.id_dau_sach');
     })->select('quyen_sach.id', 'quyen_sach.ma_bar_code', 'chi_tiet_phieu_muon_sach.id_quyen_sach', 'chi_tiet_phieu_muon_sach.id_phieu_muon', 'chi_tiet_phieu_muon_sach.ghi_chu_sach_muon', 'chi_tiet_phieu_muon_sach.id_nguoi_cap_nhat', 'chi_tiet_phieu_muon_sach.tg_cap_nhat_trang_thai', 'chi_tiet_phieu_muon_sach.trang_thai_sach_muon', 'phieu_muon_sach.id', 'dau_sach.id', 'quyen_sach.id_dau_sach', 'dau_sach.ten_dau_sach', 'phieu_muon_sach.id_nguoi_muon', 'chi_tiet_phieu_muon_sach.thoi_gian_hen_tra', 'chi_tiet_phieu_muon_sach.thoi_gian_muon', 'phieu_muon_sach.ma_so_phieu', 'chi_tiet_phieu_muon_sach.id')->where('chi_tiet_phieu_muon_sach.id_phieu_muon', $IdPhieuMuon);
     $CacSachMuon = $CacSachMuon->paginate(QUAN_LY_SO_PHIEU_MUON_TREN_TRANG);
     General::storeevents(THU_THU_THEM_PHIEU_MUON_TRA);
     return View::make('thuthu_quanlymuontra.create')->with('title', 'Thêm phiếu mượn')->with('CacSachMuon', $CacSachMuon);
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:15,代码来源:ThuThuQuanLyMuonTra.php

示例5: index1

 public function index1()
 {
     $dsSachMuonChuaTra = null;
     $dsSachMuonChuaTra = QuyenSach::join('chi_tiet_phieu_muon_sach', function ($join) {
         $join->on('chi_tiet_phieu_muon_sach.id_quyen_sach', '=', 'quyen_sach.id');
     })->join('phieu_muon_sach', function ($join) {
         $join->on('chi_tiet_phieu_muon_sach.id_phieu_muon', '=', 'phieu_muon_sach.id');
     })->join('dau_sach', function ($join) {
         $join->on('dau_sach.id', '=', 'quyen_sach.id_dau_sach');
     })->join('nguoi_dung', function ($join) {
         $join->on('nguoi_dung.id', '=', 'phieu_muon_sach.id_nguoi_muon');
     })->select('quyen_sach.id', 'chi_tiet_phieu_muon_sach.id_quyen_sach', 'chi_tiet_phieu_muon_sach.id_phieu_muon', 'phieu_muon_sach.id', 'dau_sach.id', 'quyen_sach.id_dau_sach', 'dau_sach.ten_dau_sach', 'dau_sach.ngon_ngu_sach', 'phieu_muon_sach.id_nguoi_muon', 'nguoi_dung.id', 'nguoi_dung.ma_so_the', 'chi_tiet_phieu_muon_sach.thoi_gian_hen_tra', 'quyen_sach.ma_bar_code')->where('chi_tiet_phieu_muon_sach.trang_thai_sach_muon', 1, 'or')->where('chi_tiet_phieu_muon_sach.trang_thai_sach_muon', 2, 'or')->where('chi_tiet_phieu_muon_sach.trang_thai_sach_muon', 3)->orderBy('chi_tiet_phieu_muon_sach.thoi_gian_hen_tra', 'desc');
     $dsSachMuonChuaTra = $dsSachMuonChuaTra->paginate(QUAN_LY_SO_PHIEU_MUON_TREN_TRANG);
     General::storeevents(QUAN_LY_THANH_TOAN_SV_NGHI_HOC);
     return View::make('thuthu_thanhtoanratruong.index_nghihoc')->with('title', 'Thanh toán sinh viên nghỉ học')->with('dsSachMuonChuaTra', $dsSachMuonChuaTra);
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:16,代码来源:ThuThuThanhToanRaTruong.php

示例6: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     General::storeevents(NGUOI_DUNG_DOI_MAT_KHAU);
     return View::make('nguoidung_canhan.index_doimatkhau')->with('title', 'Đổi mật khẩu');
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:10,代码来源:NguoiDungDoiMatKhau.php

示例7: create

 public function create()
 {
     General::storeevents(QUAN_LY_QUAN_LY_THEM_MOI_SACH);
     return View::make('quanly_quanlysach.create')->with('title', 'Thêm mới sách');
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:5,代码来源:QuanLyQuanLySach.php

示例8: index1

 public function index1()
 {
     General::storeevents(THU_THU_THONG_KE_SACH_MUON_NHIEU);
     return View::make('thuthu_thongke.index_report2')->with('title', 'Thống kê sách mượn nhiều');
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:5,代码来源:ThuThuThongKe.php

示例9: destroy

 public function destroy()
 {
     $id = Input::get('txtIdThread');
     BaiViet::find($id)->delete();
     General::storeevents(QUAN_LY_XOA_BAI_VIET . " id số " . $id);
     return Redirect::back()->with('message', 'Xóa thành công!');
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:7,代码来源:QuanLyQuanLyBaiViet.php

示例10: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     General::storeevents(NGUOI_DUNG_THONG_BAO);
     return View::make('nguoidung_canhan.index_thongbao')->with('title', 'Thông báo');
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:10,代码来源:NguoiDungThongBao.php

示例11: index

 public function index()
 {
     if (Input::has('loai')) {
         $flag = Input::get('loai');
         if ($flag == 'stk') {
             $tensach = str_replace("  ", " ", trim(Input::get('tenSach')));
             $namxb = trim(Input::get('namxb'));
             $nhaxb = trim(Input::get('nhaxb'));
             $ngonngu = trim(Input::get('ngonngu'));
             if ($tensach == "") {
                 $tensach = "null";
             }
             if ($namxb == "") {
                 $namxb = 0;
             }
             if ($nhaxb == "") {
                 $nhaxb = 0;
             }
             $id_dau_sach = DB::select(DB::raw("CALL tim_tai_lieu_tham_khao('" . $tensach . "'," . $namxb . "," . $nhaxb . ",'" . $ngonngu . "');"));
             $array = array();
             foreach ($id_dau_sach as $key) {
                 array_push($array, $key->id);
             }
             $dstailieus = $this->getDauSachNguoiMuon($array);
         } else {
             if ($flag == 'lv') {
                 $tensach = str_replace("  ", " ", trim(Input::get('tenSach')));
                 $namth = trim(Input::get('namth'));
                 $lvcaohoc = trim(Input::get('loailv'));
                 $svth = trim(Input::get('svth'));
                 $gvhd = trim(Input::get('gvhd'));
                 if ($lvcaohoc == "tn") {
                     $lvcaohoc = 0;
                 } else {
                     if ($lvcaohoc == "caohoc") {
                         $lvcaohoc = 1;
                     } else {
                         $lvcaohoc = 2;
                     }
                 }
                 if ($tensach == "") {
                     $tensach = "null";
                 }
                 if ($namth == "") {
                     $namth = 0;
                 }
                 if ($svth == "") {
                     $svth = 0;
                 }
                 if ($gvhd == "") {
                     $gvhd = 0;
                 }
                 $id_dau_sach = DB::select(DB::raw("CALL tim_kiem_luan_van('" . $tensach . "'," . $lvcaohoc . "," . $namth . "," . $svth . "," . $gvhd . ");"));
                 $array = array();
                 foreach ($id_dau_sach as $key) {
                     array_push($array, $key->id);
                 }
                 $dstailieus = $this->getDauSachNguoiMuon($array);
             } else {
                 $tenSach = trim(Input::get('tenSach'));
                 $dstailieus = $this->getAllDauSach($tenSach);
             }
         }
     } else {
         $tenSach = trim(Input::get('tenSach'));
         $dstailieus = $this->getAllDauSach($tenSach);
     }
     General::storeevents(NGUOI_MUON_TRA_CUU_SACH);
     return View::make('nguoimuon_muontra.index_tracuu')->with('title', 'Tra cứu sách trong thư viện')->with('dstailieus', $dstailieus);
 }
开发者ID:ngogiangthanh,项目名称:code-nien-luan-ktpm-k36,代码行数:70,代码来源:NguoiMuonTraCuuSach.php


注:本文中的General::storeevents方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。