• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getCMSSpecialImageUrl函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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'];
            ?>
">&nbsp;</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">&gt;</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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getCSS函数代码示例发布时间:2022-05-15
下一篇:
PHP getCMSArticleUrl函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap