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


PHP product::get_all方法代码示例

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


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

示例1: detail

 public static function detail()
 {
     //get customers
     $detail['expense_account_all'] = expenseaccount::get_all();
     //get customers
     $detail['customer'] = customer::get();
     $detail['customer_all'] = customer::get_all();
     //get billers
     $detail['biller_all'] = biller::get_all();
     //get invoices
     $detail['invoice_all'] = invoice::get_all();
     //get products
     $detail['product_all'] = product::get_all();
     return $detail;
 }
开发者ID:alachaum,项目名称:simpleinvoices,代码行数:15,代码来源:expense.php

示例2: detail

 public function detail()
 {
     //get expenseaccount
     $expenseaccountobj = new expenseaccount();
     $detail['expense_account_all'] = $expenseaccountobj->get_all();
     //get customers with domain_id from session by constructor
     $customerobj = new customer();
     $detail['customer'] = $customerobj->get();
     $detail['customer_all'] = $customerobj->get_all();
     //get billers with domain_id from session by constructor
     $billerobj = new biller();
     $detail['biller_all'] = $billerobj->get_all();
     //get invoices
     $invoiceobj = new invoice();
     $detail['invoice_all'] = $invoiceobj->get_all();
     //get products
     $productobj = new product();
     $detail['product_all'] = $productobj->get_all();
     return $detail;
 }
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:20,代码来源:expense.php

示例3: inventory

	$inventory = new inventory();
	$inventory->id=$_GET['id'];
	$inventory->domain_id=domain_id::get();
	$inventory->product_id=$_POST['product_id'];
	$inventory->quantity=$_POST['quantity'];
	$inventory->cost=$_POST['cost'];
	$inventory->date=$_POST['date'];
	$inventory->note=$_POST['note'];
	$result = $inventory->update();

	$saved = !empty($result) ? "true" : "false";
}      

$invoices = new invoice();
$invoices->sort='id';
$invoice_all = $invoices->select_all('count');

$get_inventory = new inventory();
$get_inventory->id = $_GET['id'];
$inventory = $get_inventory->select();

$product_all = product::get_all();
$smarty -> assign('product_all',$product_all);
$smarty -> assign('saved',$saved);
$smarty -> assign('inventory',$inventory);

$smarty -> assign('pageActive', 'inventory');
$smarty -> assign('subPageActive', 'inventory_edit');
$smarty -> assign('active_tab', '#product');
开发者ID:CalhounGaming,项目名称:simpleinvoices,代码行数:29,代码来源:edit.php

示例4: inventory

<?php

if ($_POST['op'] == 'add' and !empty($_POST['product_id'])) {
    $inventory = new inventory();
    $inventory->domain_id = domain_id::get();
    $inventory->product_id = $_POST['product_id'];
    $inventory->quantity = $_POST['quantity'];
    $inventory->cost = $_POST['cost'];
    $inventory->date = $_POST['date'];
    $inventory->note = $_POST['note'];
    $result = $inventory->insert();
    $saved = !empty($result) ? "true" : "false";
}
$productobj = new product();
$product_all = $productobj->get_all();
$smarty->assign('product_all', $product_all);
$smarty->assign('saved', $saved);
$smarty->assign('pageActive', 'inventory');
$smarty->assign('subPageActive', 'inventory_add');
$smarty->assign('active_tab', '#product');
开发者ID:dadigo,项目名称:simpleinvoices,代码行数:20,代码来源:add.php


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