コード例 #1
0
ファイル: HstokinsTableSeeder.php プロジェクト: ariefeko/simp
 public function run()
 {
     $faker = Faker::create();
     foreach (range(1, 10) as $index) {
         Hstokin::create([]);
     }
 }
コード例 #2
0
 public function postDelete($akproj)
 {
     // Declare the rules for the form validation
     $rules = array('idkode' => 'required');
     // Validate the inputs
     $validator = Validator::make(Input::all(), $rules);
     // Check if the form validates with success
     if ($validator->passes()) {
         $idkode = $akproj->trm_no;
         $akproj->delete();
         // Was the akproj deleted?
         $akproj = Hstokin::find($idkode);
         if (empty($akproj)) {
             // Redirect to the akprojs management page
             return Redirect::to('admin/akprojs')->with('success', Lang::get('admin/akprojs/messages.delete.success'));
         }
     }
     // There was a problem deleting the akproj
     return Redirect::to('admin/akprojs')->with('error', Lang::get('admin/akprojs/messages.delete.error'));
 }
コード例 #3
0
 public function getIndextab()
 {
     $hstokin = Hstokin::select(array('hstokins.trm_no', 'hstokins.trm_tgl', 'hstokins.trm_do', 'hstokins.kdrek', 'hstokins.trm_tagihan', 'hstokins.trm_jt_tempo', 'hstokins.kdgudang'));
     return Datatables::of($hstokin)->remove_column('rn')->make();
 }
コード例 #4
0
 public function getData()
 {
     $tgudangs = Hstokin::select(array('tgudangs.trm_no', 'tgudangs.trm_tgl', 'tgudangs.trm_do', 'tgudangs.kdrek', 'tgudangs.trm_tagihan', 'tgudangs.trm_jt_tempo', 'tgudangs.kdgudang'));
     return Datatables::of($tgudangs)->add_column('actions', '
         <div>
         	 <a href="{{{ URL::to(\'admin/tgudangs/\' . $trm_no . \'/edit\' ) }}}" class="btn btn-primary btn-xs iframe" ><i class="fa fa-pencil"></i></a> <a href="{{{ URL::to(\'admin/tgudangs/\' . $trm_no . \'/delete\' ) }}}" class="btn btn-xs btn-danger iframe"><i class="fa fa-trash-o"></i></a>
         </div>
         ')->remove_column('rn')->make();
 }