本文整理汇总了PHP中lgthumb函数的典型用法代码示例。如果您正苦于以下问题:PHP lgthumb函数的具体用法?PHP lgthumb怎么用?PHP lgthumb使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了lgthumb函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
echo $val['order_sn'];
?>
</em></span></span><span class="fl ml20">下单时间:<em class="goods-time"><?php
echo date("Y-m-d H:i", $val['add_time']);
?>
</em></span><span class="fr mr5"> <a href="index.php?act=store_liveorder&op=store_livedetail&order_id=<?php
echo $val['order_id'];
?>
" class="ncsc-btn-mini"><i class="icon-compass"></i>查看订单</a> </span></th>
<tr>
<td class="bdl"></td>
<td class="w50"><div class="pic-thumb"><a href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $val['groupbuy_id']));
?>
" target="_blank"><img src="<?php
echo lgthumb($val['groupbuy_pic'], 'small');
?>
"/></a></div></td>
<td class="tl"><dl class="goods-name">
<dt><a target="_blank" href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $val['groupbuy_id']));
?>
"><?php
echo $val['item_name'];
?>
</a></dt>
<dd></dd>
</dl></td>
<td><?php
echo $val['groupbuy_price'];
?>
示例2: lgthumb
<p><i class="icon-upload-alt"></i>图片上传</p>
</a> </div>
<span></span>
<p class="hint">用于抢购活动页面的图片,请使用宽度440像素、高度293像素、大小1M内的图片,
支持jpg、jpeg、gif、png格式上传。</p>
</dd>
</dl>
<dl>
<dt>抢购推荐位图片<?php
echo $lang['nc_colon'];
?>
</dt>
<dd>
<div class="ncsc-upload-thumb groupbuy-commend-pic">
<p><i class="icon-picture"></i> <img nctype="img_groupbuy_image" src="<?php
echo lgthumb($output['groupbuy']['groupbuy_pic1'], 'max');
?>
"/></p>
</div>
<input nctype="groupbuy_image" name="groupbuy_image1" type="hidden" value="">
<div class="ncsc-upload-btn"> <a href="javascript:void(0);"> <span>
<input type="file" hidefocus="true" size="1" class="input-file" name="groupbuy_image" nctype="btn_upload_image"/>
</span>
<p><i class="icon-upload-alt"></i>图片上传</p>
</a> </div>
<span></span>
<p class="hint">用于抢购页侧边推荐位,首页等推荐位的图片,请使用宽度210像素、高度180像素、大小1M内的图片,
支持jpg、jpeg、gif、png格式上传。</p>
</dd>
</dl>
<dl>
示例3: lgthumb
<th></th>
<th>抢购信息</th>
<th class="align-center">单价</th>
<th class="align-center">数量</th>
<th class="align-center">总额</th>
</tr>
<tr>
<td class="w60 picture">
<div class="size-56x56"><span class="thumb size-56x56"><i></i><a href="<?php
echo SHOP_SITE_URL;
?>
/index.php?act=show_live_groupbuy&op=groupbuy_detail&groupbuy_id=<?php
echo $output['live_order']['groupbuy_id'];
?>
" target="_blank"><img src="<?php
echo lgthumb($output['live_order']['groupbuy_pic'], 'small');
?>
" style=" max-width: 56px; max-height: 56px;" /> </a></span></div>
</td>
<td class="w50pre">
<p><a href="<?php
echo SHOP_SITE_URL;
?>
/index.php?act=show_live_groupbuy&op=groupbuy_detail&groupbuy_id=<?php
echo $output['live_order']['groupbuy_id'];
?>
" target="_blank"><?php
echo $output['live_order']['item_name'];
?>
</a></p>
</td>
示例4: foreach
<ul>
<?php
foreach ($output['live_groupbuy'] as $groupbuy) {
?>
<li class="<?php
echo $output['current'];
?>
">
<div class="ncg-list-content"> <a title="<?php
echo $groupbuy['groupbuy_name'];
?>
" href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $groupbuy['groupbuy_id']));
?>
" class="pic-thumb" target="_blank"><img src="<?php
echo lgthumb($groupbuy['groupbuy_pic'], 'mid');
?>
" alt=""></a>
<h3 class="title"><a title="<?php
echo $groupbuy['groupbuy_name'];
?>
" href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $groupbuy['groupbuy_id']));
?>
" target="_blank"><?php
echo $groupbuy['groupbuy_name'];
?>
</a></h3>
<div class="item-prices"> <span class="price"><i><?php
echo $lang['currency'];
?>
示例5: image_uploadOp
/**
* 上传图片
**/
public function image_uploadOp()
{
if (!empty($_POST['old_groupbuy_image'])) {
$this->_image_del($_POST['old_groupbuy_image']);
}
$file = 'groupbuy_image';
$data = array();
$data['result'] = true;
if (!empty($_FILES[$file]['name'])) {
$upload = new UploadFile();
$uploaddir = ATTACH_PATH . DS . 'livegroupbuy' . DS . $_SESSION['store_id'] . DS;
$upload->set('default_dir', $uploaddir);
$upload->set('thumb_width', '480,296,168');
$upload->set('thumb_height', '480,296,168');
$upload->set('thumb_ext', '_max,_mid,_small');
$upload->set('fprefix', $_SESSION['store_id']);
$result = $upload->upfile($file);
if ($result) {
$data['file_name'] = $upload->file_name;
$data['origin_file_name'] = $_FILES[$file]['name'];
$data['file_url'] = lgthumb($upload->file_name, 'mid');
} else {
$data['result'] = false;
$data['message'] = $upload->error;
}
} else {
$data['result'] = false;
}
echo json_encode($data);
die;
}
示例6: foreach
<?php
foreach ($output['recommend_live_groupbuy'] as $hot_groupbuy) {
?>
<dl>
<dt class="name"><a href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $hot_groupbuy['groupbuy_id']));
?>
" target="_blank"><?php
echo $hot_groupbuy['groupbuy_name'];
?>
</a></dt>
<dd class="pic-thumb"><a href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $hot_groupbuy['groupbuy_id']));
?>
" target="_blank"><img src="<?php
echo lgthumb($hot_groupbuy['groupbuy_pic'], 'max');
?>
"></a></dd>
<dd class="item"><a href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $hot_groupbuy['groupbuy_id']));
?>
" target="_blank"><?php
echo $lang['to_see'];
?>
</a> <span class="price"><?php
echo $lang['currency'] . $hot_groupbuy['groupbuy_price'];
?>
</span> <span class="buy"><em><?php
echo $hot_groupbuy['buyer_num'];
?>
</em><?php
示例7: urlShop
<th class="w70"> </th>
<th class="w200">抢购名称</th>
<th class="w100">数量</th>
<th class="w100">价格</th>
<th class="w100">会员名称</th>
</tr>
</thead>
<tbody>
<tr class="bd-line">
<td></td>
<td>
<div class="goods-pic-small"><span class="thumb size60"><i></i><a target="_blank" href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $output['live_groupbuy']['groupbuy_id']));
?>
"><img src="<?php
echo lgthumb($output['live_groupbuy']['groupbuy_pic'], 20);
?>
" /></a></span></div>
</td>
<td><a target="_blank" href="<?php
echo urlShop('show_live_groupbuy', 'groupbuy_detail', array('groupbuy_id' => $output['live_groupbuy']['groupbuy_id']));
?>
"><?php
echo $output['order']['item_name'];
?>
</a></td>
<td><?php
echo $output['order']['number'];
?>
</td>
<td><?php