Showing
6 changed files
with
6 additions
and
314 deletions
@@ -33,8 +33,11 @@ class Controller_Brand extends Controller_Abstract | @@ -33,8 +33,11 @@ class Controller_Brand extends Controller_Abstract | ||
33 | break; | 33 | break; |
34 | } | 34 | } |
35 | } | 35 | } |
36 | + if($client) | ||
37 | + { | ||
36 | $info['link'] = 'openby:'.urlencode('yohobuy={"action":"go.brand","params":{"brand_id":"'.$yohobuyBrandId.'"}}'); | 38 | $info['link'] = 'openby:'.urlencode('yohobuy={"action":"go.brand","params":{"brand_id":"'.$yohobuyBrandId.'"}}'); |
37 | } | 39 | } |
40 | + } | ||
38 | $relas = Facade_Brand::getBrandNewsRelaByBrandID($id); | 41 | $relas = Facade_Brand::getBrandNewsRelaByBrandID($id); |
39 | $news = array(); | 42 | $news = array(); |
40 | foreach ($relas as $rela) | 43 | foreach ($relas as $rela) |
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | <ul class="clearfix"> | 7 | <ul class="clearfix"> |
8 | <?php $navs = current($this->view->navs);ksort($navs); | 8 | <?php $navs = current($this->view->navs);ksort($navs); |
9 | foreach($navs as $nav): | 9 | foreach($navs as $nav): |
10 | - if(strtotime('2015-07-25 00:00:00') > $nav['timestamp']) continue; | 10 | + if(strtotime('2015-07-25 23:59:00') > $nav['timestamp']) continue; |
11 | ?> | 11 | ?> |
12 | <li | 12 | <li |
13 | <?php if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"'; | 13 | <?php if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"'; |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | </ul> | 19 | </ul> |
20 | </div> | 20 | </div> |
21 | <div class="scene-content"> | 21 | <div class="scene-content"> |
22 | - <?php if(strtotime('2015-07-25 23:59:00') > $this->view->currentday && time() < strtotime('2015-07-25 23:59:00')):?> | 22 | + <?php if($this->view->currentday> strtotime(date('Y-m-d', time()))):?> |
23 | <img src="<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>" style="width:100%;"/> | 23 | <img src="<?php echo SITE_RES.'/images/yohood/comingsoon.jpg';?>" style="width:100%;"/> |
24 | <?php else:?> | 24 | <?php else:?> |
25 | <div class="main-layout current clearfix"> | 25 | <div class="main-layout current clearfix"> |
@@ -88,7 +88,7 @@ | @@ -88,7 +88,7 @@ | ||
88 | <td><input type="text" id="name" name="name" maxLength="20"/> | 88 | <td><input type="text" id="name" name="name" maxLength="20"/> |
89 | <input type="hidden" id="id" name="id"/> | 89 | <input type="hidden" id="id" name="id"/> |
90 | </td> | 90 | </td> |
91 | - <td>LOGO(300x198)<span class="text-error"> * </span></td> | 91 | + <td>LOGO(580x383)<span class="text-error"> * </span></td> |
92 | <td> | 92 | <td> |
93 | <span id="upload_logo" key="<?php echo $this->view->key?>"></span> | 93 | <span id="upload_logo" key="<?php echo $this->view->key?>"></span> |
94 | <button class="btn btn-info" type="button">上传</button> | 94 | <button class="btn btn-info" type="button">上传</button> |
1 | -<?php $this->_extends('layout/admin_layout');?> | ||
2 | - | ||
3 | - | ||
4 | -<?php $this->_block('main');?> | ||
5 | - | ||
6 | -<h4>主理人列表</h4> | ||
7 | - | ||
8 | -<table class="table"> | ||
9 | -<caption style="text-align:left; padding-bottom:5px;"> | ||
10 | - <button class="btn" style="float:left;" id="add_star" href="javascript:void(0)">添加主理人</button> | ||
11 | - <form method="post" class="form-search search_panel" style="text-align:right;"> | ||
12 | - <select class="span2" name="state" id="state_from"> | ||
13 | - <option value="1" <?php if($this->view->state=='1'){echo 'selected="selected"';}?>>展示</option> | ||
14 | - <option value="0" <?php if($this->view->state=='0'){echo 'selected="selected"';}?>>关闭</option> | ||
15 | - </select> | ||
16 | - <div class="input-append"> | ||
17 | - <button type="submit" class="btn">搜索</button> | ||
18 | - </div> | ||
19 | - </form> | ||
20 | - </caption> | ||
21 | - <thead> | ||
22 | - <td>编号</td> | ||
23 | - <td>主理人名字</td> | ||
24 | - <td>图片组</td> | ||
25 | - <td style="width:300px">描述</td> | ||
26 | - <td>品牌ID</td> | ||
27 | - <td>新闻ID组</td> | ||
28 | - <td>一句话</td> | ||
29 | - <td>排序</td> | ||
30 | - <td>操作</td> | ||
31 | - </thead> | ||
32 | - <?php if (empty($this->view->data)) :?> | ||
33 | - <tr><td colspan="10" style="text-align: center">无记录</td></tr> | ||
34 | - <?php else :?> | ||
35 | - | ||
36 | - <?php foreach ($this->view->data as $star) :?> | ||
37 | - <tr> | ||
38 | - <td><?php echo $star['id']?></td> | ||
39 | - <td><?php echo $star['name'];?></td> | ||
40 | - <td title='<?php echo $star['pics']?>'> | ||
41 | - <?php | ||
42 | - $pics = json_decode($star['pics'],true); | ||
43 | - foreach($pics as $pic) | ||
44 | - { | ||
45 | - if($pic['type']=='video') | ||
46 | - { | ||
47 | - echo '<button class="btn look_video">查看视频</button><span style="display:none">'. | ||
48 | - '<embed src="'.$pic['url'].'" allowFullScreen="true" quality="high" width="390" height="294" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>'. | ||
49 | - '</span>'; | ||
50 | - } | ||
51 | - elseif($pic['type']=='pic') | ||
52 | - { | ||
53 | - $url = Lib_Images::getImageUrl($pic['url'],'0200x0150','fragmentimg'); | ||
54 | - echo '<img src="'.$url.'" width="40" height="30">'; | ||
55 | - } | ||
56 | - } | ||
57 | - ?> | ||
58 | - </td> | ||
59 | - <td><?php echo $star['description'];?></td> | ||
60 | - <td><?php echo $star['brand_id']?></td> | ||
61 | - <td><?php echo $star['news_ids']?></td> | ||
62 | - <td><?php echo $star['say']?></td> | ||
63 | - <td><?php echo $star['seq']?></td> | ||
64 | - <td><button id="look_one_<?php echo $star['id'];?>" class="btn look">编辑</button></td> | ||
65 | - </tr> | ||
66 | - <?php endforeach;?> | ||
67 | - <?php endif;?> | ||
68 | -</table> | ||
69 | -<?php $this->_component('Common_Pagination',array( | ||
70 | - 'pagination' => $this->view->pagination,'show_count' =>true, | ||
71 | - ));?> | ||
72 | - | ||
73 | - <div id="form_pan" admin="<?php echo $this->view->admin?>" style="display:none"> | ||
74 | - <table class="table table-bordered"> | ||
75 | - <tbody> | ||
76 | - <tr> | ||
77 | - <td>名字<span class="text-error"> * </span></td> | ||
78 | - <td> | ||
79 | - <input type="text" id="name" name="name" value=""/> | ||
80 | - <input type="hidden" id="id" name="id"/> | ||
81 | - </td> | ||
82 | - <td>排序<span class="text-error"> * </span></td> | ||
83 | - <td> | ||
84 | - <input type="text" id="seq" name="seq" value=""/> | ||
85 | - </td> | ||
86 | - </tr> | ||
87 | - | ||
88 | - <tr> | ||
89 | - <td>图片组</td> | ||
90 | - <td> | ||
91 | - <span id="upload_pics" key="<?php echo $this->view->key;?>"></span> | ||
92 | - <button class="btn btn-info" type="button">上传</button> | ||
93 | - <input type="hidden" id="pics_val" name="pics_val" value=""/> | ||
94 | - </td> | ||
95 | - <td>视频</td> | ||
96 | - <td> | ||
97 | - <textarea rows="2" style="width:300px;" id="pics" name="pics" value=""></textarea> | ||
98 | - </td> | ||
99 | - </tr> | ||
100 | - <tr> | ||
101 | - <td>描述</td> | ||
102 | - <td colspan="3"> | ||
103 | - <textarea rows="1" style="margin-left: 0px; margin-right: 0px; width: 605px;" id="description" name="description"></textarea> | ||
104 | - </td> | ||
105 | - </tr> | ||
106 | - <tr > | ||
107 | - <td>品牌ID</td> | ||
108 | - <td> | ||
109 | - <input type="text" id="brand_id" name="brand_id" /> | ||
110 | - </td> | ||
111 | - <td>新闻ID组</td> | ||
112 | - <td> | ||
113 | - <input type="text" id="news_ids" name="news_ids" /> | ||
114 | - </td> | ||
115 | - </tr> | ||
116 | - <tr> | ||
117 | - <td>状态</td> | ||
118 | - <td> | ||
119 | - <select class="span2" id="state"> | ||
120 | - <option value="1" selected="selected">展示</option> | ||
121 | - <option value="0">关闭</option> | ||
122 | - </select> | ||
123 | - </td> | ||
124 | - <td>一句话</td> | ||
125 | - <td> | ||
126 | - <input type="text" id="say"/> | ||
127 | - </td> | ||
128 | - </tr> | ||
129 | - </tbody> | ||
130 | - </table> | ||
131 | -</div> | ||
132 | -<?php $this->_endblock();?> | ||
133 | - | ||
134 | -<?php $this->_block('js');?> | ||
135 | -<?php $this->_js('star.js', array( | ||
136 | - SITE_JS . '/lib/seajs.js', | ||
137 | -));?> | ||
138 | -<script type="text/javascript"> | ||
139 | -seajs.use('admin/star'); | ||
140 | -</script> | ||
141 | -<?php $this->_endblock();?> |
1 | -<?php $this->_extends('layout/admin_layout');?> | ||
2 | - | ||
3 | - | ||
4 | -<?php $this->_block('main');?> | ||
5 | - | ||
6 | -<h4>SNAP列表</h4> | ||
7 | - | ||
8 | -<table class="table"> | ||
9 | -<caption style="text-align:left; padding-bottom:5px;"> | ||
10 | - <button class="btn" style="float:left;" id="add_snap" href="javascript:void(0)">添加SNAP</button> | ||
11 | - </caption> | ||
12 | - <thead> | ||
13 | - <td>编号</td> | ||
14 | - <td>图片</td> | ||
15 | - <td>文字</td> | ||
16 | - <td>创建时间</td> | ||
17 | - <td>操作</td> | ||
18 | - </thead> | ||
19 | - <?php if (empty($this->view->data)) :?> | ||
20 | - <tr><td colspan="10" style="text-align: center">无记录</td></tr> | ||
21 | - <?php else :?> | ||
22 | - | ||
23 | - <?php foreach ($this->view->data as $snap) :?> | ||
24 | - <tr> | ||
25 | - <td><?php echo $snap['id']?></td> | ||
26 | - <td> | ||
27 | - <?php | ||
28 | - $url = Lib_Images::getImageUrl($snap['pic'],'0200x0150','fragmentimg'); | ||
29 | - echo '<img src="'.$url.'" rel="'.$snap['pic'].'" width="40" height="30">'; | ||
30 | - ?> | ||
31 | - </td> | ||
32 | - <td><?php echo $snap['text']?></td> | ||
33 | - <td><?php echo $snap['create_time'];?></td> | ||
34 | - <td><button id="look_one_<?php echo $snap['id'];?>" class="btn look">编辑</button> | ||
35 | - <button val="<?php echo $snap['id'];?>" class="btn btn-danger del">删除</button> | ||
36 | - </td> | ||
37 | - </tr> | ||
38 | - <?php endforeach;?> | ||
39 | - <?php endif;?> | ||
40 | -</table> | ||
41 | -<?php $this->_component('Common_Pagination',array( | ||
42 | - 'pagination' => $this->view->pagination,'show_count' =>true, | ||
43 | - ));?> | ||
44 | - | ||
45 | - <div id="form_pan" admin="<?php echo $this->view->admin?>" style="display:none"> | ||
46 | - <table class="table table-bordered"> | ||
47 | - <tbody> | ||
48 | - <tr> | ||
49 | - <td>图片<span class="text-error"> * </span></td> | ||
50 | - <td> | ||
51 | - <span id="upload_pics" key="<?php echo $this->view->key;?>"></span> | ||
52 | - <button class="btn btn-info" type="button">上传</button> | ||
53 | - <br> | ||
54 | - <input type="hidden" id="pic" name="pic" value=""/> | ||
55 | - <img src=''/> | ||
56 | - <input type="hidden" id="id" name="id"/> | ||
57 | - </td> | ||
58 | - <td>文本</td> | ||
59 | - <td> | ||
60 | - <input type="text" id="text" name="text" value=""/> | ||
61 | - </td> | ||
62 | - </tr> | ||
63 | - <tr> | ||
64 | - <td>创建时间</td> | ||
65 | - <td colspan="3"> | ||
66 | - <input type="text" readonly="readonly" class='span3 Wdate' id="create_time" name="create_time" /> | ||
67 | - </td> | ||
68 | - </tr> | ||
69 | - </tbody> | ||
70 | - </table> | ||
71 | -</div> | ||
72 | -<?php $this->_endblock();?> | ||
73 | - | ||
74 | -<?php $this->_block('js');?> | ||
75 | -<?php $this->_js('star.js', array( | ||
76 | - SITE_JS . '/lib/seajs.js', | ||
77 | -));?> | ||
78 | -<script type="text/javascript" src="<?php echo SITE_JS?>/lib/ui/date/WdatePicker.js"></script> | ||
79 | -<script type="text/javascript"> | ||
80 | -seajs.use('admin/snap'); | ||
81 | -</script> | ||
82 | -<?php $this->_endblock();?> |
1 | -<?php $this->_extends('layout/admin_layout');?> | ||
2 | - | ||
3 | - | ||
4 | -<?php $this->_block('main');?> | ||
5 | - | ||
6 | -<h4>视频列表</h4> | ||
7 | - | ||
8 | -<table class="table"> | ||
9 | -<caption style="text-align:left; padding-bottom:5px;"> | ||
10 | - <button class="btn" style="float:left;" id="add_video" href="javascript:void(0)">添加视频</button> | ||
11 | -</caption> | ||
12 | - <thead> | ||
13 | - <td>编号</td> | ||
14 | - <td>标题</td> | ||
15 | - <td>图片</td> | ||
16 | - <td>创建时间</td> | ||
17 | - <td>操作</td> | ||
18 | - </thead> | ||
19 | - <?php if (empty($this->view->data)) :?> | ||
20 | - <tr><td colspan="10" style="text-align: center">无记录</td></tr> | ||
21 | - <?php else :?> | ||
22 | - | ||
23 | - <?php foreach ($this->view->data as $video) :?> | ||
24 | - <tr> | ||
25 | - <td><?php echo $video['id']?></td> | ||
26 | - <td><?php echo $video['title']?></td> | ||
27 | - <td relaurl="<?php echo $video['pic'];?>"> | ||
28 | - <img width="80" height="60" src="<?php echo $video['pic_s']?>"/> | ||
29 | - <button class="btn look_v">查看</button> | ||
30 | - <span class="video_url" style="display:none"> | ||
31 | - <embed src="<?php echo $video['url'];?>" allowFullScreen="true" quality="high" width="390" height="294" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed> | ||
32 | - </span> | ||
33 | - </td> | ||
34 | - | ||
35 | - <td><?php echo date('Y-m-d H:i:s', $video['create_time']);?></td> | ||
36 | - <td><button id="look_one_<?php echo $video['id'];?>" class="btn look">查看</button><button val="<?php echo $video['id'];?>" class="btn btn-danger del">删除</button></td> | ||
37 | - </tr> | ||
38 | - <?php endforeach;?> | ||
39 | - <?php endif;?> | ||
40 | -</table> | ||
41 | -<?php $this->_component('Common_Pagination',array( | ||
42 | - 'pagination' => $this->view->pagination,'show_count' =>true, | ||
43 | - ));?> | ||
44 | - | ||
45 | - <div id="form_pan" admin="<?php echo $this->view->admin?>" style="display:none"> | ||
46 | - <table class="table table-bordered"> | ||
47 | - <tbody> | ||
48 | - <tr> | ||
49 | - <td>标题<span class="text-error"> * </span></td> | ||
50 | - <td colspan="3"> | ||
51 | - <input type="hidden" id="id" name="id"/> | ||
52 | - <input type="text" style="width:605px;" id="title" name="title" value=""/> | ||
53 | - </td> | ||
54 | - <tr> | ||
55 | - <tr> | ||
56 | - <td>视频地址<span class="text-error"> * </span></td> | ||
57 | - <td colspan="3"> | ||
58 | - <textarea row=3 style="width:605px;" id="url" name="url" value=""></textarea> | ||
59 | - </td> | ||
60 | - <tr> | ||
61 | - <tr> | ||
62 | - <td>创建时间<span class="text-error"> * </span></td> | ||
63 | - <td colspan="3"> | ||
64 | - <input style="width:605px;" readonly="readonly" class='span3 Wdate' id="create_time" name="create_time" value=""/> | ||
65 | - </td> | ||
66 | - <tr> | ||
67 | - <td>图片</td> | ||
68 | - <td colspan="3"> | ||
69 | - <span id="upload_pic"></span> | ||
70 | - <button class="btn btn-info" type="button">上传</button> | ||
71 | - <input type="hidden" id="pic" name="pic" key="<?php echo $this->view->key;?>"/> | ||
72 | - <img src="" width="80" height="60"/> | ||
73 | - </td> | ||
74 | - </tr> | ||
75 | - </tbody> | ||
76 | - </table> | ||
77 | -</div> | ||
78 | -<?php $this->_endblock();?> | ||
79 | - | ||
80 | -<?php $this->_block('js');?> | ||
81 | -<?php $this->_js('feedback.js', array( | ||
82 | - SITE_JS . '/lib/seajs.js', | ||
83 | -));?> | ||
84 | -<script type="text/javascript" src="<?php echo SITE_JS?>/lib/ui/date/WdatePicker.js"></script> | ||
85 | -<script type="text/javascript"> | ||
86 | -seajs.use('admin/video'); | ||
87 | -</script> | ||
88 | -<?php $this->_endblock();?> |
-
Please register or login to post a comment