コード例 #1
0
<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;}
コード例 #2
0
ファイル: cms_special.php プロジェクト: flying3615/chuniang
 /**
  * 专题图片上传
  */
 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);
 }
コード例 #3
0
        <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'];
            ?>
コード例 #4
0
ファイル: special_list.php プロジェクト: noikiy/haifenbao
    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 {
    ?>
コード例 #5
0
ファイル: special_list.php プロジェクト: noikiy/ejia
.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>