本文整理汇总了PHP中Products::findProducts方法的典型用法代码示例。如果您正苦于以下问题:PHP Products::findProducts方法的具体用法?PHP Products::findProducts怎么用?PHP Products::findProducts使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products
的用法示例。
在下文中一共展示了Products::findProducts方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (!empty($added_options)) {
foreach ($added_options as $option) {
$pid = $option['fldProductsOptionProductsId'];
$category_id = $option['fldProductsOptionCategoryId'];
$option_id = $option['fldProductsOptionMainId'];
ProductsOption::addProductsOption($category_id, $option_id, $pid);
}
}
}
/***************************************************************************************************************************************
* END OF ALGORITHM FORM OPTIONS PANEL
***************************************************************************************************************************************/
$updates = 'Update products content';
AdminAction::addAdminAction($_SESSION['admin_name'], $updates);
}
$products = Products::findProducts($product_id);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php
echo $ROOT_URL;
?>
_admin/_assets/css/core3.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php
echo $ROOT_URL;
?>
_admin/_assets/css/modules.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php
示例2: Pagination
} else {
$page = $_GET[page];
}
$pagination = new Pagination();
//for display
$pg = $pagination->page_pagination(20, $count_record, $page, 20);
//$result_prod = mysql_query($query_Recordset2.$pg[1]);
$cart = Cart::displayAllByOrders($order_id);
?>
<? if($count_record == 0) { ?>
<tr>
<td colspan="6" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#F00; font-weight:bold">No Orders Found</td>
</tr>
<? } else {
foreach($cart as $carts) {
$products = Products::findProducts($carts->fldCartProductID);
$total = $carts->fldCartQuantity * $carts->fldCartProductPrice;
$grandtotal = $grandtotal + $total;
?>
<tr>
<td style="padding:5px 5px"><img src="<?php
echo $ROOT_URL;
?>
products_image/<?php
echo $products->fldProductsImage;
?>
" width="75"></td>
<td style="padding:5px 5px"><?php
echo $carts->fldCartProductName;
?>
示例3: if
<body>
<? if(isset($success)) { ?>
<div class="alert"> <?php
echo $success;
?>
</div>
<? } ?>
<div id="store_overview">
<ul class="btn">
<li><a href="<?php
echo $ROOT_URL;
?>
_admin/modules_specials/view/">Back</a></li>
</ul>
</div>
<? $products = Products::findProducts($_REQUEST['id']); ?>
<form id="store_page" action="<? $PHP_SELF; ?>" method="post" enctype="multipart/form-data">
<h3>ACM Simple E-Cart (Products)</h3>
<fieldset style="width:1065px;">
<legend>Special Products Panel</legend>
<ul>
<li>
<label for="title">Product Name</label>
<input type="text" id="title" name="name" value="<?php
echo stripslashes($products->fldProductsName);
?>
">
</li>
<li>