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


PHP Supplier::all方法代码示例

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


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

示例1: edit

 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $receipt = Receipt::find($id);
     $suppliers = Supplier::all()->lists('name', 'id');
     $commodities = Commodity::all()->lists('name', 'id');
     return View::make('receipt.edit')->with('receipt', $receipt)->with('commodities', $commodities)->with('suppliers', $suppliers);
 }
开发者ID:BaobabHealthTrust,项目名称:iBLIS,代码行数:13,代码来源:ReceiptController.php

示例2: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $all = Supplier::all();
     $op = array();
     foreach ($all as $data) {
         $op[] = array("{$data->id}", $data->supp_name, $data->contact_f, $data->email, $data->supp_mgm, "{$data->created_at}", "action");
     }
     return json_encode(array("data" => $op));
 }
开发者ID:rana7cse,项目名称:motoshop,代码行数:14,代码来源:SupplierController.php

示例3: suppliers

 public function suppliers()
 {
     $ids = DB::table('tblSuppliers')->select('strSuppID')->orderBy('updated_at', 'desc')->orderBy('strSuppID', 'desc')->take(1)->get();
     $ID = $ids["0"]->strSuppID;
     $newID = $this->smart($ID);
     // Get all products from the database
     $suppliers = Supplier::all();
     return View::make('suppliers')->with('suppliers', $suppliers)->with('newID', $newID);
 }
开发者ID:ExperimentalGroup,项目名称:inventoryfinal,代码行数:9,代码来源:HomeController.php

示例4: suppliers

 public function suppliers()
 {
     // Get all products from the database
     $suppliers = Supplier::all();
     return View::make('suppliers')->with('suppliers', $suppliers);
 }
开发者ID:ExperimentalGroup,项目名称:inventory,代码行数:6,代码来源:HomeController.php

示例5: getPackageDetailModal

 /**
  * getPackageDetailModal (拆包)
  */
 public function getPackageDetailModal()
 {
     $suppliers = Supplier::all();
     return View::make('admin.itemreceive.packagedetailmodal')->with('suppliers', $suppliers);
 }
开发者ID:yanguanglan,项目名称:sz,代码行数:8,代码来源:ItemReceiveController.php

示例6: allSuppliers

 public function allSuppliers()
 {
     $suppliers = Supplier::all()->toArray();
     var_dump($suppliers);
 }
开发者ID:nangei,项目名称:wpa8pos,代码行数:5,代码来源:SupplierController.php

示例7: get_ps

 public function get_ps()
 {
     $this->data['create'] = true;
     $this->data['suppliers'] = Koki::to_dropdown(Supplier::all(), 'id', 'company_name');
     //var_dump($this->data['suppliers'] );
     return View::make('themes.modul.' . $this->views . '.penerimaansp-jquery', $this->data);
 }
开发者ID:acmadi,项目名称:diantaksi,代码行数:7,代码来源:warehousescenter.php

示例8: index

 /**
  * Display a listing of suppliers
  *
  * @return Response
  */
 public function index()
 {
     $suppliers = Supplier::all();
     return View::make('admin.suppliers.index', compact('suppliers'));
 }
开发者ID:yanguanglan,项目名称:sz,代码行数:10,代码来源:SuppliersController.php

示例9: index

 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $suppliers = Supplier::all();
     return View::make('supplier.supplier', ['suppliers' => $suppliers]);
 }
开发者ID:NathanaelFebrianto,项目名称:Citramas,代码行数:11,代码来源:SupplierController.php

示例10:

                                    <h3 class="modal_title pull-left">Please Make a new order. </h3>
                                    <a href="javascript:void(0)" class=" modal-action modal-close pull-right"><i class="fa fa-times"></i></a>
                                    <div class="clearfix"></div>
                                </div>
                                <div class="modal_body">
                                    <div class="insert_form row">
                                        <form action="javascript:void(0)" id="form_newOrder">
                                            <div class="input-field col s6">
                                                <input placeholder="Select Date" id="newOrdDate" type="text" name="newOrdDate">
                                                <label for="cusFirstName">Date : </label>
                                            </div>
                                            <div class="input-field col s6">
                                                <select class="browser-default" id="newOrderSupp" name="newOrderSupp">
                                                    <option value="" selected>Select Supplier</option>
                                                    <?php 
$dataX = Supplier::all();
?>
                                                    @foreach($dataX as $dx)
                                                        <option value="{{$dx->id}}">{{$dx->supp_name}} - ( {{$dx->id}} )</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                            <div class="input-field col s12">
                                                <textarea placeholder="Add Comment" id="newOrderComment" name="newOrderComment" class="materialize-textarea"></textarea>
                                                <label for="eng_no">Comment</label>
                                            </div>
                                            <div class="input-field col s6">
                                                <input placeholder="0123456789" id="newOrderAmmount" type="text" name="newOrderAmmount">
                                                <label for="eng_no">Ammount</label>
                                            </div>
                                            <div class="input-field col s6">
开发者ID:rana7cse,项目名称:motoshop,代码行数:31,代码来源:order.blade.php


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