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


PHP Format::hari方法代码示例

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


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

示例1: getAllitems

   public function getAllitems(Request $req)
   {
       if ($req->ajax()) {
           $res = [];
           $items = ref_jabatan::where('nm_jabatan', $req->src)->paginate(10);
           $out = '';
           if ($items->total() > 0) {
               $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
               foreach ($items as $item) {
                   $out .= '
         <tr class="item_' . $item->id . ' items">
           <td>' . $no . '</td>
           <td>' . $item->nm_jabatan . '</td>
           <td>
             <div>
               ' . \Format::indoDate($item->created_at) . '
           </div>
           <small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
       </td>
   </tr>
   ';
                   $no++;
               }
           } else {
               $out = '
   <tr>
     <td colspan="3">Tidak ditemukan</td>
 </tr>
 ';
           }
           $res['data'] = $out;
           $res['pagin'] = $items->render();
           return json_encode($res);
       }
   }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:35,代码来源:JabatanController.php

示例2: getAlladj

 public function getAlladj(Request $req)
 {
     if ($req->ajax()) {
         $res = [];
         $out = '';
         $items = data_penyesuaian_stok::show($req->all())->paginate($req->limit);
         $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
         foreach ($items as $item) {
             $out .= '
                 <tr>
                     <td>' . $no . '</td>
                     <td>
                         ' . $item->no_penyesuaian_stok . '
                         <div class="link">
                             <small>[
                                     <a target="_blank" href="' . url('/stockadj/print/' . $item->id_penyesuaian_stok) . '">Print</a>
                                 ]
                             </small>
                         </div>
                     </td>
                     <td>
                         ' . $item->nm_depan . ' ' . $item->nm_belakang . '<br />
                         <small class="text-muted">' . \Format::indoDate($item->created_at) . ' at ' . \Format::jam($item->created_at) . '</small>
                     </td>
                     <td>' . \Format::hari($item->tanggal) . ', ' . \Format::indoDate($item->tanggal) . '</td>
                 </tr>
             ';
             $no++;
         }
         $res['content'] = $out;
         $res['pagin'] = $items->render();
         return json_encode($res);
     }
 }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:34,代码来源:StockAdjustmentController.php

示例3: getAllfeedback

    public function getAllfeedback(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $items = data_feedback::me($req->all())->paginate($req->limit);
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $status = $item->status == 1 ? 'Open' : 'Closed';
                    $out .= '
						<tr>
							<td>' . $no . '</td>
							<td>
								<a href="' . url('/feedback/jawab/' . $item->id_feedback) . '">#' . $item->kode . '</a>
							</td>
							<td>
								<a href="' . url('/feedback/jawab/' . $item->id_feedback) . '">' . $item->title . '</a>
							</td>
							<td>' . $status . '</td>
							<td>
								' . \Format::indoDate($item->created_at) . '<br />
								<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
							</td>
							<td>' . $item->nm_depan . '</td>
							<td class="text-right"><span class="badge">' . $item->notif . '</span></td>
						</tr>
					';
                    $no++;
                }
            } else {
                $out = '
					<tr>
						<td colspan="7">Tidak ditemukan</td>
					</tr>
				';
            }
            $res['content'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:42,代码来源:FeedbackController.php

示例4: getAllgudang

    public function getAllgudang(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $items = ref_gudang::listgudang($req->all())->paginate($req->limit);
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                $permission = \Auth::user()->permission;
                foreach ($items as $item) {
                    $link = $permission > 2 ? '<small>[<a href="' . url('/gudang/edit/' . $item->id_gudang) . '">Rubah</a> |<a href="javascript:void(0);" onclick="del({{ $item->id_gudang }});" class="text-danger">Hapus</a> ]</small>' : '';
                    $out .= '
						<tr class="item-' . $item->id_gudang . '">
							<td>' . $no . '</td>
							<td>
								' . $item->kode_gudang . '<br />
								' . $link . '
							</td>
							<td>
								' . $item->nm_gudang . '
							</td>
							<td>
								' . \Format::indoDate($item->created_at) . '<br />
								<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
							</td>
							<?php $no++; ?>
						</tr>
					';
                }
            } else {
                $out = '
					<tr>
						<td colspan="4">Tidak ditemukan</td>
					</tr>
				';
            }
        }
        $res['content'] = $out;
        $res['pagin'] = $items->render();
        return json_encode($res);
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:41,代码来源:MasterGudangController.php

示例5: getAllitems

    public function getAllitems(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $items = ref_konversi_satuan::join('ref_satuan AS a', 'a.id_satuan', '=', 'ref_konversi_satuan.id_satuan_max')->join('ref_satuan AS b', 'b.id_satuan', '=', 'ref_konversi_satuan.id_satuan_min')->join('data_barang', 'data_barang.id_barang', '=', 'ref_konversi_satuan.id_barang')->select('data_barang.nm_barang', 'a.nm_satuan as satuan_max', 'b.nm_satuan as satuan_min', 'ref_konversi_satuan.qty', 'ref_konversi_satuan.id', 'ref_konversi_satuan.created_at')->paginate(10);
            $out = '';
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $out .= '
						<tr class="item_' . $item->id . ' items">
							<td>' . $no . '</td>
							<td>' . $item->nm_barang . '</td>
							<td>
								<a href="javascript:;" title="' . $item->id_satuan_max . '" data-toggle="tooltip" data-placement="bottom">' . $item->satuan_max . '</a>
							</td>
							<td>' . $item->satuan_min . '</td>
							<td>' . $item->qty . '</td>							
							<td>
								<div>
									' . \Format::indoDate($item->created_at) . '
								</div>
								<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
							</td>
						</tr>
					';
                    $no++;
                }
            } else {
                $out = '
					<tr>
						<td colspan="6">Tidak ditemukan</td>
					</tr>
				';
            }
            $res['data'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:40,代码来源:KonversiController.php

示例6: getGetlogs

    public function getGetlogs(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $items = data_aktivitas::show($req->all())->paginate($req->limit);
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $out .= '
						<tr>
							<td>' . $no . '</td>
							<td>
								' . $item->nm_depan . ' ' . $item->nm_belakang . '
								<div><small class="text-muted">Dept. ' . $item->nm_departemen . '</small></div>
							</td>
							<td>
								' . \Format::indoDate($item->created_at) . '
								<div><small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
							</td>
							<td>
								<small>' . $item->keterangan . '</small>
							</td>
						</tr>
					';
                    $no++;
                }
            } else {
                $out = '
					<tr>
						<td colspan="4">Tidak ditemukan</td>
					<tr>
				';
            }
            $res['pagin'] = $items->render();
            $res['content'] = $out;
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:39,代码来源:LogUserController.php

示例7: getAllitems

 public function getAllitems(Request $req)
 {
     if ($req->ajax()) {
         $res = [];
         $items = ref_klasifikasi::where('kode', $req->src)->orWhere('nm_klasifikasi', $req->src)->paginate(10);
         $out = '';
         if ($items->total() > 0) {
             $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
             foreach ($items as $item) {
                 $out .= '
         <tr class="item_' . $item->id . ' items">
           <td>' . $no . '</td>
           <td>' . $item->kode . '</td>
           <td>
             <a href="javascript:;" title="' . $item->id_klasifikasi . '" data-toggle="tooltip" data-placement="bottom">' . $item->nm_klasifikasi . '</a>
           </td>           
           <td>
             <div>
               ' . \Format::indoDate($item->created_at) . '
             </div>
             <small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
           </td>
         </tr>
       ';
                 $no++;
             }
         } else {
             $out = '
       <tr>
         <td colspan="4">Tidak ditemukan</td>
       </tr>
     ';
         }
         $res['data'] = $out;
         $res['pagin'] = $items->render();
         return json_encode($res);
     }
 }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:38,代码来源:KlasifikasiController.php

示例8: getAllretur

    public function getAllretur(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $items = data_retur::forvendor($req->id, $req->all())->paginate($req->limit);
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $out .= '
					<tr>
						<td>' . $no . '</td>
						<td>' . $item->no_retur . '</td>
						<td>' . $item->no_po . '</td>
						<td>&nbsp;</td>
						<td>
							' . \Format::indoDate2($item->created_at) . '<br />
							<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
						</td>
						<td>
							<a class="btn btn-white" href="' . url('returvendor/print/' . $item->id_retur) . '" target="_blank"><i class="fa fa-print"></i></a>
						</td>
					</tr>
				';
                    $no++;
                }
            } else {
                $out = '
					<tr>
						<td colspan="5">Tidak ditemukan!</td>
					</tr>
				';
            }
            $res['content'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:38,代码来源:VendorController.php

示例9: getAllspb

 public function getAllspb(Request $req)
 {
     if ($req->ajax()) {
         $result = [];
         $items = data_spb::alldepartement($req->kode, $req->status, $req->dep, $req->deadline, $req->surat)->paginate($req->limit);
         $out = '';
         $status = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai', 4 => 'Batal'];
         if (count($items) > 0) {
             $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
             foreach ($items as $item) {
                 $acc = $item->id_acc > 0 ? '<i class="fa fa-check" title="Telah disetujui Kepala"></i>' : '<i class="fa fa-warning" title="Belum disetujui Kepala"></i>';
                 $tipe = $item->tipe == 1 ? 'PMO' : 'PMB';
                 $out .= '
                 <tr class="spb_' . $item->id_spb . '">
                     <td>' . $no . '</td>
                     <td>
                         <div> ' . $item->no_spb . ' <span class="pull-right">' . $acc . '</span></div>
                         <div class="link text-muted">
                             <small>
                                 [
                                     <a href="#" onclick="detailspb(' . $item->id_spb . ');" data-toggle="modal" data-target="#detail">Lihat</a>
                                     <!-- | <a href="' . url('/pmbumum/printspb/' . $item->id_spb) . '" target="_blank">Print</a> -->
                                 ]
                             </small>
                         </div>
                     </td>
                     <td>
                         <div>' . $item->nm_depan . ' ' . $item->nm_belakang . '</div>
                         <div class="text-muted"><small>Dept : ' . $item->nm_departemen . '</small></div>
                     </td>
                     <td>' . $tipe . '</td>
                     <td>
                         <div>' . \Format::indoDate($item->created_at) . '</div>
                         <div class="text-muted"><small>' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
                     </td>
                     <td class="text-center">' . $status[$item->status] . '</td>
                 </tr>
             ';
                 $no++;
             }
         } else {
             $out = '
                 <tr>
                 <td colspan="5">Tidak ditemukan</td>
                 </tr>
             ';
         }
         $result['data'] = $out;
         $result['pagin'] = $items->render();
         return json_encode($result);
     } else {
         return redirect('/pmbumum');
     }
 }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:54,代码来源:SKBController.php

示例10: getAllitems

    public function getAllitems(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $items = data_karyawan::details()->where('NIK', 'like', $req->kode . "%")->where('nm_depan', 'like', $req->src . "%")->paginate(10);
            $out = '';
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $out .= '
            <tr class="item_' . $item->id . ' items">
              <td>' . $no . '</td>
              <td>
              <a href="javascript:;" title="' . $item->nm_depan . '" data-toggle="tooltip" data-placement="bottom">' . $item->nm_depan . ' ' . $item->nm_belakang . '</a>
								<div style="display:none;" class="tbl-opsi">
									<small>[
										<a href="' . url('karyawan/review/' . $item->id_karyawan) . '">Lihat</a>
										| <a href="' . url('karyawan/review/' . $item->id_karyawan) . '">Detail</a>
										
									]</small>
								</div>
              </td>
              <td>' . $item->NIK . '</td>
              <td>' . $item->nm_jabatan . '</td>           
              <td>
                <div>
                  ' . \Format::indoDate($item->created_at) . '
                </div>
                <small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
              </td>
              <td>' . $item->nm_status . '</td>
            </tr>
          ';
                    $no++;
                }
            } else {
                $out = '
          <tr>
            <td colspan="4">Tidak ditemukan</td>
          </tr>
        ';
            }
            $res['data'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:47,代码来源:KaryawanController.php

示例11: getAllpo

    public function getAllpo(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $status = [1 => 'Baru', 2 => 'Proses'];
            $stat = $req->status == 0 ? [1, 2] : [$req->status];
            $items = data_po::forspbm($req->all(), $stat)->paginate($req->limit);
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $out .= '
						<tr>
							<td>' . $no . '</td>
							<td>
								' . $item->no_po . '
								<div class="text-muted link">
									<small>
										[<a href="' . url('/gr/creategr/' . $item->id_po) . '">Proses</a>]
									</small>
								</div>
							</td>
							<td>
								' . \Format::indoDate($item->created_at) . '
								<div><small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
							</td>
							<td>
								' . $item->nm_vendor . '
								<div><small class="text-muted">dedline ' . \Format::hari($item->deadline) . ', ' . \Format::indoDate($item->deadline) . '</small></div>
							</td>
							<td>' . $status[$item->status] . '</td>
						</tr>
					';
                    $no++;
                }
            } else {
                $out = '<tr>
					<td colspan="5">Tidak ditemukan</td>
				</tr>';
            }
            $res['content'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:45,代码来源:SPBMController.php

示例12: getGetallprq

    public function getGetallprq(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $items = data_prq::listprq($req->all(), $req->status)->paginate($req->limit);
            $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
            $status = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai', 4 => 'Hapus'];
            if ($items->total() > 0) {
                foreach ($items as $item) {
                    $class = strtotime($item->target) > strtotime(date('Y-m-d')) ? '' : 'class=text-danger';
                    $selisih = strtotime($item->target) > strtotime(date('Y-m-d')) ? '<small class="text-muted">' . \Format::selisih_hari($item->target, date('Y-m-d')) . 'hari dari sekarang</small>' : '';
                    $tipe = $item->tipe == 1 ? 'Obat' : 'Barang';
                    $tanda = empty($item->id_acc) ? '<i class="fa fa-times text-muted pull-right" title="Belum terverifikasi"></i>' : '<i title="Terverifikasi" class="fa fa-check-circle text-success pull-right"></i>';
                    $edit = $item->status < 2 ? '| <a href="' . url('/prq/edit/' . $item->id_prq) . '">Edit</a>' : '';
                    $del = \Auth::user()->permission > 1 && $item->status < 2 ? '| <a href="javascript:;" onclick="hapusprq(' . $item->id_prq . ');" class="text-danger">Hapus</a>' : '';
                    if (!empty($item->tgl_approval) || $item->tgl_approval != '0000-00-00 00:00:00') {
                        $tgl_approval = '
                            <div>' . \Format::indoDate2($item->tgl_approval) . '</div>
                            <div class="text-muted"><small>' . \Format::hari($item->tgl_approval) . ', ' . \Format::jam($item->tgl_approval) . '</small></div>
                        ';
                    } else {
                        $tgl_approval = '<center>-</center>';
                    }
                    $out .= '
						<tr class="item-prq-' . $item->id_prq . '">
							<td>' . $no . '</td>
							<td>
								<div>
                                    ' . $item->no_prq . '
                                    ' . $tanda . '
                                </div>
								<div class="links">
									<small>
										[
											<a href="#" data-toggle="modal" data-target="#detailprq" onclick="detailprq(' . $item->id_prq . ')">Lihat</a>
											' . $edit . '
											' . $del . '
										]
									</small>
								</div>
							</td>
							<td>
								<div ' . $class . '> ' . \Format::indoDate2($item->target) . '</div>
								' . $selisih . '
							</td>
							<td title="' . $item->nm_depan . ' ' . $item->nm_belakang . '">
								' . \Format::substr($item->nm_depan . '  ' . $item->nm_belakang, 10) . '
								<div><small class="text-muted">' . \Format::indoDate($item->created_at) . '</small></div>
							</td>
                            <td>' . $tipe . '</td>
                            <td>' . $tgl_approval . '</td>
							<td>' . $status[$item->status] . '</td>
						</tr>
					';
                    $no++;
                }
            } else {
                $out = '
					<tr>
						<td colspan="7">Tidak ditemukan</td>
					</tr>
				';
            }
            $res['pagin'] = $items->render();
            $res['content'] = $out;
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:69,代码来源:PRQController.php

示例13: getAllskb

    public function getAllskb(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $out = '';
            $items = data_skb::retur($req->all())->paginate($req->limit);
            if ($items->total() > 0) {
                $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
                foreach ($items as $item) {
                    $tipe = $item->tipe == 1 ? 'Obat' : 'Barang';
                    $out .= '
    					<tr>
							<td>' . $no . '</td>
							<td>
								<div>' . $item->no_skb . '</div>
								<div class="link text-muted">
									<small>
										[
											<a href="' . url('/returgudang/create/' . $item->id_skb) . '">Proses</a>
											| <a href="' . url('/skb/print/' . $item->id_skb) . '" target="_blank">Print</a>
										]
									</small>
								</div>
							</td>
							<td>' . $item->no_spb . '</td>
							<td>' . $tipe . '</td>
							<td>' . $item->nm_departemen . '</td>
							<td>
								' . \Format::indoDate($item->created_at) . '<br />
								<small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small>
							</td>
						</tr>
    				';
                    $no++;
                }
            } else {
                $out = '
    				<tr>
    					<td colspan="6">Tidak ditemukan</td>
    				</tr>
    			';
            }
            $res['content'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:47,代码来源:ReturnGudangController.php

示例14: getLogharga

    public function getLogharga(Request $req)
    {
        if ($req->ajax()) {
            $res = [];
            $items = data_po_item::join('data_po', 'data_po.id_po', '=', 'data_po_item.id_po')->where('data_po.id_vendor', $req->vendor)->whereIn('data_po.status', [1, 2, 3])->where('data_po_item.id_item', $req->id_barang)->orderby('data_po_item.id_po_item', 'desc')->select('data_po.no_po', 'data_po.id_po', 'data_po.created_at', 'data_po.status', 'data_po_item.harga')->paginate(10);
            $status = [1 => 'Baru', 2 => 'Proses', 3 => 'Selesai'];
            $out = '<table class="table table-striped" >
				<thead>
					<tr>
						<th>PO</th>
						<th>Tanggal</th>
						<th>Status</th>
						<th class="text-right">Harga</th>
					</tr>
				</thead>
				<tbody>
			';
            if ($items->total() > 0) {
                foreach ($items as $item) {
                    $out .= '<tr>
						<td>
							<a href="' . url('/po/print/' . $item->id_po) . '" target="_blank">' . $item->no_po . '</a>
						</td>
						<td>
							' . \Format::indoDate($item->created_at) . '<br />
							<div><small class="text-muted">' . \Format::hari($item->created_at) . ', ' . \Format::jam($item->created_at) . '</small></div>
						</td>
						<td>' . $status[$item->status] . '</td>
						<td class="text-right">' . number_format($item->harga, 0, ',', '.') . '</td>
					</tr>';
                }
            } else {
                $out .= '<tr>
					<td colspan="4">Tidak ditemukan</td>
				<tr>';
            }
            $out .= '</tbody></table>';
            $vendor = data_vendor::find($req->vendor);
            $barang = data_barang::find($req->id_barang);
            $res['vendor'] = $vendor->nm_vendor;
            $res['kode'] = $barang->kode;
            $res['content'] = $out;
            $res['pagin'] = $items->render();
            return json_encode($res);
        }
    }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:46,代码来源:SPHController.php

示例15: getAllitems

 public function getAllitems(Request $req)
 {
     if ($req->ajax()) {
         $res = [];
         $items = data_recruitment::where('posisi', 'like', $req->src . "%")->paginate(10);
         $out = '';
         if ($items->total() > 0) {
             $no = $items->currentPage() == 1 ? 1 : $items->perPage() * $items->currentPage() - $items->perPage() + 1;
             foreach ($items as $item) {
                 if ($item->status == 1) {
                     $status = "Aktif";
                 } else {
                     $status = "Tidak Aktif";
                 }
                 $out .= '
         <tr class="item_' . $item->id . ' items">
           <td>' . $no . '</td>
           <td>
           <a href="javascript:;" title="' . $item->posisi . '" data-toggle="tooltip" data-placement="bottom">' . $item->posisi . '</a>
             <div style="display:none;" class="tbl-opsi">
               <small>[
                 <a href="' . url('recruitment/detail/' . $item->id) . '">Lihat</a>
                 | <a href="' . url('recruitment/update/' . $item->id) . '">Edit</a>
                 
               ]</small>
             </div>
           </td>
           <td>
           <div>' . \Format::indoDate($item->date_open) . ' s/d ' . \Format::indoDate($item->date_close) . '</div>
                 <small class="text-muted">' . \Format::hari($item->date_open) . ', ' . \Format::jam($item->date_open) . '</small>
           </td>
           <td>' . $item->estimasi_gaji . '</td>           
          
           <td>' . $status . '</td>
         </tr>
       ';
                 $no++;
             }
         } else {
             $out = '
       <tr>
         <td colspan="4">Tidak ditemukan</td>
       </tr>
     ';
         }
         $res['data'] = $out;
         $res['pagin'] = $items->render();
         return json_encode($res);
     }
 }
开发者ID:pedangkayu,项目名称:rsos-git,代码行数:50,代码来源:RecruitmentController.php


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