本文整理汇总了PHP中getCMSSpecialImageUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP getCMSSpecialImageUrl函数的具体用法?PHP getCMSSpecialImageUrl怎么用?PHP getCMSSpecialImageUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getCMSSpecialImageUrl函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: url
<meta name="keywords" content="<?php
echo $output['special_detail']['special_title'];
?>
" />
<meta name="description" content="<?php
echo $output['special_detail']['special_title'];
?>
" />
<style type="text/css">
#body { color: #333333; background-color: <?php
echo $output['special_detail']['special_background_color'];
?>
; background-image: url(<?php
echo getCMSSpecialImageUrl($output['special_detail']['special_background']);
?>
); background-repeat: <?php
echo $output['special_detail']['special_repeat'];
?>
; background-position: top center; width: 100%; padding: 0; margin: 0; overflow: hidden;}
img { border: 0; vertical-align: top; }
.cms-special-detail-content { width: 1000px; margin-top: <?php
echo $output['special_detail']['special_margin_top'];
?>
px; margin-right: auto; margin-bottom: 0; margin-left: auto; overflow: hidden;}
.special-content-link, .special-hot-point { text-align: 0; display: block; width: 100%; float: left; clear: both; padding: 0; margin: 0; border: 0; overflow: hidden;}
.special-content-goods-list { width: 1000px; margin: 0 auto; overflow: hidden;}
.special-goods-list { background: #FFFFFF; width: 988px; padding: 0 2px 0 0; overflow: hidden;}
.special-goods-list li { float: left; width: 160px; padding: 15px 30px; margin: 15px 13px 15px 12px; border: solid 1px #D8D8D8;}
开发者ID:ff00x0,项目名称:shopnc-api,代码行数:31,代码来源:cms_special.detail.php
示例2: special_image_uploadOp
/**
* 专题图片上传
*/
public function special_image_uploadOp()
{
$data = array();
$data['status'] = 'success';
if (!empty($_FILES['special_image_upload']['name'])) {
$upload = new UploadFile();
$upload->set('default_dir', ATTACH_CMS . DS . 'special');
$result = $upload->upfile('special_image_upload');
if (!$result) {
$data['status'] = 'fail';
$data['error'] = $upload->error;
}
$data['file_name'] = $upload->file_name;
$data['origin_file_name'] = $_FILES['special_image_upload']['name'];
$data['file_url'] = getCMSSpecialImageUrl($upload->file_name);
}
if (strtoupper(CHARSET) == 'GBK') {
$data = Language::getUTF8($data);
//网站GBK使用编码时,转换为UTF-8,防止json输出汉字问题
}
echo json_encode($data);
}
开发者ID:flying3615,项目名称:chuniang,代码行数:25,代码来源:cms_special.php
示例3: unserialize
<tr class="noborder">
<td colspan="2" class="cms-special-uploadpic"><ul id="special_image_list" class="thumblists">
<?php
if (!empty($output['special_detail']['special_image_all'])) {
?>
<?php
$special_image_all = unserialize($output['special_detail']['special_image_all']);
?>
<?php
if (!empty($special_image_all) && is_array($special_image_all)) {
?>
<?php
foreach ($special_image_all as $value) {
?>
<?php
$image_url = getCMSSpecialImageUrl($value['image_name']);
?>
<li class="picture">
<div class="size-64x64"> <span class="thumb size-64x64"><i></i> <img alt="" src="<?php
echo $image_url;
?>
"> </span></div>
<p class="handle "><a image_url="<?php
echo $image_url;
?>
" nctype="btn_show_image_insert_link" class="insert-link " title="<?php
echo $lang['cms_special_image_tips1'];
?>
"> </a><a image_name="<?php
echo $value['image_name'];
?>
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:31,代码来源:cms_special.add.php
示例4: foreach
foreach ($output['special_list'] as $value) {
?>
<li>
<h3 class="special-title"> <a href="<?php
echo getCMSSpecialUrl($value['special_id']);
?>
" target="_blank"> <?php
echo $value['special_title'];
?>
</a> </h3>
<div class="special-cover">
<a href="<?php
echo getCMSSpecialUrl($value['special_id']);
?>
" target="_blank"> <img src="<?php
echo getCMSSpecialImageUrl($value['special_image']);
?>
" alt="" /></a>
</div>
</li>
<?php
}
?>
</ul>
<div class="pagination"> <?php
echo $output['show_page'];
?>
</div>
<?php
} else {
?>
开发者ID:noikiy,项目名称:haifenbao,代码行数:31,代码来源:special_list.php
示例5: if
.pagination ul li { *display: inline/*IE6、7*/; *zoom:1;}
.pagination li span { font: normal 14px/20px "microsoft yahei"; color: #AAA; background-color: #FAFAFA; text-align: center; display: block; min-width: 20px; padding: 8px; border: 1px solid #E6E6E6; position: relative; z-index: 1;}
.pagination li a span ,
.pagination li a:visited span { color: #005AA0; text-decoration: none; background-color: #FFF; position: relative; z-index: 1;}
.pagination li a:hover span, .pagination li a:active span{ color: #FFF; text-decoration: none !important; background-color: #D93600; border-color: #CA3300; position: relative; z-index: 9; cursor:pointer;}
.pagination li a:hover { text-decoration: none;}
.pagination li span.currentpage { color: #AAA; font-weight: bold; background-color: #FAFAFA; border-color: #E6E6E6; position: relative; z-index: 2;}
</style>
<div class="nch-breadcrumb-layout">
<div class="nch-breadcrumb wrapper"><i class="icon-home"></i><span><a href="index.php">首页</a></span><span class="arrow">></span><span>专题</span></div>
</div>
<div class="warp-all">
<div class="mainbox">
<?php if(!empty($output['special_list']) && is_array($output['special_list'])) {?>
<ul class="special-list">
<?php foreach($output['special_list'] as $value) {?>
<li>
<h3 class="special-title"> <a href="<?php echo SHOP_SITE_URL;?>/index.php?act=special&op=special_detail&special_id=<?php echo $value['special_id'];?>" target="_blank"> <?php echo $value['special_title'];?> </a> </h3>
<div class="special-cover">
<a href="<?php echo SHOP_SITE_URL;?>/index.php?act=special&op=special_detail&special_id=<?php echo $value['special_id'];?>" target="_blank"> <img src="<?php echo getCMSSpecialImageUrl($value['special_image']);?>" alt="" /></a>
</div>
</li>
<?php } ?>
</ul>
<div class="pagination"> <?php echo $output['show_page'];?> </div>
<?php } else { ?>
<div class="no-content-b"><i class="special"></i><?php echo $lang['no_record'];?></div>
<?php } ?>
</div>
</div>
开发者ID:noikiy,项目名称:ejia,代码行数:31,代码来源:special_list.php
注:本文中的getCMSSpecialImageUrl函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论