本文整理匯總了PHP中Images::query方法的典型用法代碼示例。如果您正苦於以下問題:PHP Images::query方法的具體用法?PHP Images::query怎麽用?PHP Images::query使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Images
的用法示例。
在下文中一共展示了Images::query方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Product
</div>
<!--包郵專區 不顯示 點擊後切換-->
<div id="postage">
<div class="activity">
<div class="act_btn act_button_s1" id="act_button_7" onclick="changeDiv('sale','postage','act_button_6','act_button_5');">打折產品</div>
<div class="act_btn act_button_s2" id="act_button_8">包郵專區</div>
<div id="act_word">包郵產品 為你而省</div>
<a href="#" id="act_more"></a>
<hr class="act_line" />
<ul>
<?php
$pro = new Product();
$proArray = $pro->getFistActivity(3, 'isPost');
foreach ($proArray as $itemss) {
$cximgs = new Images();
$cximgdata = current($cximgs->query(array("status" => "Y", "ID" => $itemss['defaultImg']), array()));
$cximghref = $cximgdata['href'];
?>
<li><a href="shop-info.php?id=<?php
echo $itemrx['ID'];
?>
"><img src="<?php
echo $virtualRootPath . $cximghref;
?>
" /></a><?php
echo $itemss['name'];
?>
<br />¥<?php
echo $itemss['realPrice'];
?>
<br /><span><?php
示例2: Images
<?php
//這裏顯示的是數據庫中記錄的圖片,數據庫不記錄的不進行顯示
require_once "../web.config.php";
//echo $realLibPath;
require_once $realLibPath . "model/images.model.php";
$image = new Images();
$images = $image->query(array(), array());
//var_dump($images);
?>
<ol class="am-breadcrumb am-breadcrumb-slide">
<li>後台管理</li>
<li>圖片管理</li>
</ol>
<div class="am-btn-toolbar" style="height:50px">
<div class="am-btn-group">
<button id="images_index_add" class="am-btn am-btn-default">
<span class="am-icon-plus">新增圖片</span>
</button>
<button id="images_index_del" class="am-btn am-btn-default">
<span class="am-icon-minus">刪除圖片</span>
</button>
</div>
</div>
<?php
for ($i = 0; $i <= count($images) / 4; $i++) {
?>
<div class="am-g" style="height:206px">
<?php
for ($j = 1; $j < 5; $j++) {
示例3: Dict
<?php
require_once "../web.config.php";
require_once $realLibPath . "model/dict.model.php";
$dict = new Dict();
require_once $realLibPath . "model/images.model.php";
$img = new Images();
$imgArray = $img->query(array('status' => 'Y'), array('ID', 'href', 'alt'));
//var_dump($imgArray);
?>
<link rel="stylesheet" href="../res/AmazeUI/css/amazeui.min.css" />
<script src="../res/AmazeUI/js/amazeui.min.js"></script>
<style>
#tab2 li{
float:left;
margin:5px;
}
#tab2 li span{
position:absolute;
left:70px;
top:70px;
}
#tab2 li img{
width:90px;
height:90px;
}
#tab2 li:hover{
border:1px solid blue;
}
</style>
示例4: explode
<div class="hot_product">
<ul class="productList">
</ul>
<!--頁碼 數字跟著頁碼改變-->
<div class="hp_page"><a href="javascript:void(0)" id='rxfirstPage'>首頁</a><a href="javascript:void(0)" id="rxprePage">上一頁</a><select id='rxpageNumber'></select>
<a href="javascript:void(0)" id='rxnextPage'>下一頁</a><a href="javascript:void(0)" id='rxlastPage'>尾頁</a></div>
</div>
<!--開始php替換-->
<?php
$defImgID = $prodata['defaultImg'];
/*echo "<script type='text/javascript'>console.log($defImgID)</script>";*/
$images = $prodata['images'];
$imgsArray = explode(",", $images);
/*echo "<script type='text/javascript'>console.log($images)</script>";*/
$img = new Images();
$imgData = current($img->query(array("ID" => $defImgID, "status" => 'Y'), array()));
$imghref = $imgData['href'];
?>
<!--結束php替換-->
<!--熱銷產品end-->
<!--產品大圖-->
<img id="pro_big_pic" src="<?php
echo $virtualRootPath . $imghref;
?>
"/>
<!--縮略圖-->
<div id="thumb_nail">
<ul>
<?php
$thumbnumber = 0;
foreach ($imgsArray as $item) {