本文整理汇总了PHP中Products::getImage方法的典型用法代码示例。如果您正苦于以下问题:PHP Products::getImage方法的具体用法?PHP Products::getImage怎么用?PHP Products::getImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products
的用法示例。
在下文中一共展示了Products::getImage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
<? include ROOT.'/views/layouts/header.php';?>
<div class="container-fluid">
<ol class="breadcrumb bread-primary ">
<a href="/" class="btn btn-primary"><i class="fa fa-newspaper-1"></i> МАГАЗИН </a>
<li><a href="/catalog/"> КАТАЛОГ </a></li>
<li><a href="/platform/<?=$platform['id'];?>"><?=$platform['name_platforms'];?></a></li>
<li class="active"><?=$product['name'];?></li>
</ol>
<div class="content-wrapper">
<div class="item-container">
<div class="container">
<div class="col-md-13">
<div class="product col-md-4 service-image-left">
<center>
<img id="item-display" src="<?=Products::getImage($product['id']); ?>" alt=""></img>
</center>
</div>
<div class="product-title"><?=$product['name'];?></div><br>
<div class="ratings on-view">
<a href="" class="pull-left"> <?=Comment::countCommentsByProduct($product['id']);?> отзывов</a>
</div>
<hr>
<div class="product-price"><?=$product['price'];?> грн</div>
<div class="product-stock"><?php if($product['status'] == 1) echo "В наличии";?></div>
<hr>
<div class="btn-group cart">
<a href="#" data-id="<?=$product['id'];?>" class="btn btn-success add-to-basket">Купить</a>
</div>
</div>
</div>
示例2: foreach
</a>
<a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
</div>
<div class="row">
<?php $i=0; foreach($productList as $productItem) :?>
<div class="col-sm-4 col-lg-4 col-md-4">
<div class="thumbnail">
<img src="<?=Products::getImage($productItem['id']); ?>">
<div class="caption">
<h5><a href="/product/<?=$productItem['id']?>"><?=$productItem['name']?></a></h5>
<p><h4 ><?=$productItem['price']?> грн.</h4></p>
<a href="#" data-id="<?=$productItem['id'];?>" class="btn btn-success add-to-basket">Купить</a>
</div>
<div class="ratings">
<a href="/product/<?=$productItem['id']?>" class="pull-right"> <?=Comment::countCommentsByProduct($productItem['id']);?> отзывов</a>
</div>
</div>
</div>
<?php $i++; endforeach;?>
</div>
</div>
示例3: foreach
?>
</option>
<?php
}
?>
<?php
}
?>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="image">Изображение</label>
<div class="col-md-9">
<img src="<?php
echo Products::getImage($product['id']);
?>
" alt="">
<input id="image" name="image" type="file" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label" for="platform_id">Платформа</label>
<div class="col-md-9">
<select id="platform_id" name="platform_id" class="form-control">
<?php
if (is_array($platformList)) {
?>
<?php
foreach ($platformList as $platform) {
?>