<?php foreach ($output['special_list'] as $value) { ?> <li> <h3 class="special-title"> <a href="<?php echo $value['special_link']; ?> " target="_blank"> <?php echo $value['special_title']; ?> </a> </h3> <div class="special-cover"> <a href="<?php echo $value['special_link']; ?> " target="_blank"> <img src="<?php echo uk86_getCMSSpecialImageUrl($value['special_image']); ?> " alt="" /></a> </div> </li> <?php } ?> </ul> <div class="pagination mt10 mb10"> <?php echo $output['show_page']; ?> </div> <?php } else { ?> <div class="no-content">暂无专题内容</div>
/** * 专题图片上传 */ public function special_image_uploadOp() { $data = array(); $data['status'] = 'success'; if (!empty($_FILES['special_image_upload']['name'])) { $upload = new Uk86UploadFile(); $upload->uk86_set('default_dir', ATTACH_CMS . DS . 'special'); $result = $upload->uk86_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'] = uk86_getCMSSpecialImageUrl($upload->file_name); } if (strtoupper(CHARSET) == 'GBK') { $data = Uk86Language::uk86_getUTF8($data); //网站GBK使用编码时,转换为UTF-8,防止json输出汉字问题 } echo json_encode($data); }
window.location.href="<?php echo SHOP_SITE_URL; ?> /index.php?act=login&op=index"; } window.open($(this).attr('nctype')); }); }); </script> <style type="text/css"> #body {position:relative; color: #333333; background-color: <?php echo $output['special_detail']['special_background_color']; ?> ; background-image: url(<?php echo uk86_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; } a:hover{text-decoration:none;} #special_btn{width:170px; box-shadow:3px 3px 3px #999; transform: translate(-50%, -50%); height:56px; display:block; border-radius:10px; font-size:26px; font-weight:600; line-height:54px; text-align:center;} .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;}
<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 = uk86_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']; ?>