国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

326 lines
12KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
  5. <title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
  6. <meta name="keywords" content="{dede:field.keywords/}" />
  7. <meta name="description" content="{dede:field.description function='html2text(@me)'/}" />
  8. <link href="{dede:global.cfg_templets_skin/}/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" />
  9. <link href="{dede:global.cfg_templets_skin/}/style/picture.css" rel="stylesheet" type="text/css" />
  10. <meta http-equiv="mobile-agent" content="format=xhtml;url={dede:global.cfg_mobileurl/}/view.php?aid={dede:field.id/}">
  11. <script type="text/javascript">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{dede:global.cfg_mobileurl/}/view.php?aid={dede:field.id/}";}else if(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script>
  12. <script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/static/js/dedeajax2.js"></script>
  13. <script language="javascript" type="text/javascript">
  14. <!--
  15. function CheckLogin(){
  16. var taget_obj = document.getElementById('_ajax_feedback');
  17. myajax = new DedeAjax(taget_obj,false,false,'','','');
  18. myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
  19. DedeXHTTP = null;
  20. }
  21. function checkSubmit(){
  22. if(document.feedback.msg.value!='') document.feedback.submit();
  23. else alert("评论内容不能为空!");
  24. }
  25. function postBadGood(ftype,fid)
  26. {
  27. var taget_obj = document.getElementById(ftype+fid);
  28. var saveid = GetCookie('badgoodid');
  29. if(saveid != null)
  30. {
  31. var saveids = saveid.split(',');
  32. var hasid = false;
  33. saveid = '';
  34. j = 1;
  35. for(i=saveids.length-1;i>=0;i--)
  36. {
  37. if(saveids[i]==fid && hasid) continue;
  38. else {
  39. if(saveids[i]==fid && !hasid) hasid = true;
  40. saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
  41. j++;
  42. if(j==10 && hasid) break;
  43. if(j==9 && !hasid) break;
  44. }
  45. }
  46. if(hasid) { alert('您刚才已表决过了喔!'); return false;}
  47. else saveid += ','+fid;
  48. SetCookie('badgoodid',saveid,1);
  49. }
  50. else
  51. {
  52. SetCookie('badgoodid',fid,1);
  53. }
  54. myajax = new DedeAjax(taget_obj,false,false,'','','');
  55. myajax.SendGet2("{dede:field name='phpurl'/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
  56. DedeXHTTP = null;
  57. }
  58. function postDigg(ftype,aid)
  59. {
  60. var taget_obj = document.getElementById('newdigg');
  61. var saveid = GetCookie('diggid');
  62. if(saveid != null)
  63. {
  64. var saveids = saveid.split(',');
  65. var hasid = false;
  66. saveid = '';
  67. j = 1;
  68. for(i=saveids.length-1;i>=0;i--)
  69. {
  70. if(saveids[i]==aid && hasid) continue;
  71. else {
  72. if(saveids[i]==aid && !hasid) hasid = true;
  73. saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
  74. j++;
  75. if(j==20 && hasid) break;
  76. if(j==19 && !hasid) break;
  77. }
  78. }
  79. if(hasid) { alert("您已经顶过该帖,请不要重复顶帖 !"); return; }
  80. else saveid += ','+aid;
  81. SetCookie('diggid',saveid,1);
  82. }
  83. else
  84. {
  85. SetCookie('diggid',aid,1);
  86. }
  87. myajax = new DedeAjax(taget_obj,false,false,'','','');
  88. var url = "{dede:global.cfg_phpurl/}/digg_ajax.php?action="+ftype+"&id="+aid;
  89. myajax.SendGet2(url);
  90. DedeXHTTP = null;
  91. }
  92. function getDigg(aid)
  93. {
  94. var taget_obj = document.getElementById('newdigg');
  95. myajax = new DedeAjax(taget_obj,false,false,'','','');
  96. myajax.SendGet2("{dede:global.cfg_phpurl/}/digg_ajax.php?id="+aid);
  97. DedeXHTTP = null;
  98. }
  99. var shortname = "{dede:global.art_shortname/}";
  100. var npage = {dede:field name='nowpage'/};
  101. var totalpage = {dede:field name='totalpage'/};
  102. var namehand = '{dede:field name='namehand'/}';
  103. var displaytype = '{dede:field name='displaytype'/}';
  104. var gtimer = null;
  105. //大图
  106. function dPlayBig()
  107. {
  108. var imgObj = document.getElementById("bigimg");
  109. window.open(imgObj.src);
  110. }
  111. //停止幻灯
  112. function dStopPlay()
  113. {
  114. if(gtimer) clearTimeout(gtimer);
  115. else dPlayNext();
  116. }
  117. //开始幻灯
  118. function dStartPlay()
  119. {
  120. if(npage!=totalpage) {
  121. gtimer = setTimeout("dPlayNext()",10000);
  122. }
  123. }
  124. //上一张
  125. function dPlayPre(){
  126. if(npage<2)
  127. {
  128. alert("这是第一页");
  129. }
  130. else
  131. {
  132. if(npage==2) {
  133. if(namehand!='') location.href = namehand+shortname;
  134. else location.href = "view.php?aid={dede:field name='id'/}";
  135. } else if(displaytype=='st' && namehand!='') {
  136. location.href = namehand+"_"+(npage-1)+shortname;
  137. } else {
  138. location.href = "view.php?aid={dede:field name='id'/}&pageno="+(npage-1);
  139. }
  140. }
  141. }
  142. //下一张
  143. function dPlayNext()
  144. {
  145. if(npage==totalpage) { alert("没有了哦"); }
  146. else
  147. {
  148. if(displaytype=='st' && namehand!='') location.href = namehand+"_"+(npage+1)+shortname;
  149. else location.href = "view.php?aid={dede:field name='id'/}&pageno="+(npage+1);
  150. }
  151. }
  152. -->
  153. </script>
  154. </head>
  155. <body class="picboxview">
  156. {dede:include filename="head2.htm"/}
  157. <!-- /header -->
  158. <div class="w960 center clear mt1">
  159. <div class="pleft">
  160. <div class="place">
  161. <strong>当前位置:</strong> {dede:field name='position'/}
  162. </div><!-- /place -->
  163. <div class="viewbox">
  164. <div class="title">
  165. <h2>{dede:field.title/}</h2>
  166. </div><!-- /title -->
  167. <div class="info">
  168. <small>时间:</small>{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}<small>来源:</small>{dede:field.source/} <small>作者:</small>{dede:field.writer/} <small>点击:</small><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script>次
  169. </div><!-- /info -->
  170. <div class="picbox">
  171. {dede:field name='pagestyle' alt='根据不同的页面风格输出不同的头信息' runphp='yes'}
  172. if(@me==3) {
  173. @me = '<ul class="e8">';
  174. }
  175. else if(@me==2) {
  176. @me = "
  177. <center>
  178. <a href='javascript:dPlayBig();' class='c1'>原始图片</a>\r\n
  179. <a href='javascript:dPlayPre();' class='c1'>上一张</a>\r\n
  180. <a href='javascript:dPlayNext();' class='c1'>下一张</a>\r\n
  181. <a href='javascript:dStopPlay();' class='c1'>自动 / 暂停播放</a>\r\n
  182. </center>
  183. ";
  184. }
  185. else {
  186. @me = '';
  187. }
  188. {/dede:field}
  189. <!-- 如果使用的是多页单图模式(幻灯),把href里的链接改为 javascript:dPlayNext(); 表示点击看下一页 -->
  190. {dede:field name='imgurls' alt='图片输出区'}
  191. [field:pagestyle runphp='yes'] @me= (@me==3 ? '<li>' : '');[/field:pagestyle]
  192. <a href='[field:linkurl/]' [field:pagestyle runphp='yes'] @me= (@me==3 ? 'class="pic"' : ''); [/field:pagestyle]>
  193. <img src='[field:imgsrc/]' id='bigimg' [field:imgwidth /] alt='[field:alttext /]' border='0' />
  194. </a>
  195. <a href='[field:linkurl/]' [field:pagestyle runphp='yes']@me = (@me==3 ? 'class="title"' : '');[/field:pagestyle]>
  196. [field:title /]
  197. </a>
  198. [field:pagestyle runphp='yes'] @me = (@me==3 ? '</li>' : ''); [/field:pagestyle]
  199. {/dede:field}
  200. {dede:field name='pagestyle' alt='根据不同的风格输出不同的结尾信息' runphp='yes'}
  201. if(@me==3) {
  202. @me = '</ul>';
  203. }
  204. else if(@me==2) {
  205. @me = "<script language='javascript'>dStartPlay();</script>\r\n";
  206. }
  207. else {
  208. @me = '';
  209. }
  210. {/dede:field}
  211. </div>
  212. <div class="intro">{dede:field.body/}
  213. <div style="clear:both"></div>
  214. </div>
  215. <div class="newdigg" id="newdigg">
  216. <div class="diggbox digg_good" onmousemove="this.style.backgroundPosition='left bottom';" onmouseout="this.style.backgroundPosition='left top';" onclick="javascript:postDigg('good',{dede:field.id/})">
  217. <div class="digg_act">顶一下</div>
  218. <div class="digg_num">({dede:field.goodpost/})</div>
  219. <div class="digg_percent">
  220. <div class="digg_percent_bar"><span style="width:{dede:field.goodper/}%"></span></div>
  221. <div class="digg_percent_num">{dede:field.goodper/}%</div>
  222. </div>
  223. </div>
  224. <div class="diggbox digg_bad" onmousemove="this.style.backgroundPosition='right bottom';" onmouseout="this.style.backgroundPosition='right top';" onclick="javascript:postDigg('bad',{dede:field.id/})">
  225. <div class="digg_act">踩一下</div>
  226. <div class="digg_num">({dede:field.badpost/})</div>
  227. <div class="digg_percent">
  228. <div class="digg_percent_bar"><span style="width:{dede:field.badper/}%"></span></div>
  229. <div class="digg_percent_num">{dede:field.badper/}%</div>
  230. </div>
  231. </div>
  232. </div>
  233. <script language="javascript" type="text/javascript">getDigg({dede:field.id/});</script>
  234. <div class="boxoff">
  235. <strong>------分隔线----------------------------</strong>
  236. </div>
  237. <div class="handle">
  238. <div class="context">
  239. <ul>
  240. <li>{dede:prenext get='pre'/}</li>
  241. <li>{dede:prenext get='next'/}</li>
  242. </ul>
  243. </div><!-- /context -->
  244. <div class="actbox">
  245. <ul>
  246. <li id="act-fav"><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li>
  247. <li id="act-err"><a href="{dede:field name='phpurl'/}/erraddsave.php?aid={dede:field.id/}&title={dede:field.title/}" target="_blank">挑错</a></li>
  248. <li id="act-pus"><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li>
  249. <li id="act-pnt"><a href="#" onClick="window.print();">打印</a></li>
  250. </ul>
  251. </div><!-- /actbox -->
  252. </div><!-- /handle -->
  253. </div><!-- /viewbox -->
  254. <!-- //AJAX评论区 -->
  255. {dede:include file='ajaxfeedback.htm' /}
  256. </div><!-- /pleft -->
  257. <div class="pright">
  258. <div class="infos_userinfo">
  259. {dede:memberinfos}
  260. <dl class="tbox">
  261. <dt><strong>发布者资料</strong></dt>
  262. <dd>
  263. <a href="[field:spaceurl /]" class="userface"><img src="[field:face/]" width="52" height="52" /></a>
  264. <a href='[field:spaceurl /]' class="username">[field:uname/]</a>
  265. <span class="useract">
  266. <a href="[field:spaceurl /]" class="useract-vi">查看详细资料</a>
  267. <a href="[field:spaceurl /]&action=guestbook" class="useract-pm">发送留言</a>
  268. <a href="[field:spaceurl /]&action=newfriend" class="useract-af">加为好友</a>
  269. </span>
  270. <span class="userinfo-sp"><small>用户等级:</small>[field:rankname /]</span>
  271. <span class="userinfo-sp"><small>注册时间:</small>[field:jointime function="MyDate('Y-m-d H:m',@me)"/]</span>
  272. <span class="userinfo-sp"><small>最后登录:</small>[field:logintime function="MyDate('Y-m-d H:m',@me)"/]</span>
  273. </dd>
  274. </dl>
  275. {/dede:memberinfos}
  276. </div>
  277. <div class="mt1">
  278. <dl class="tbox">
  279. <dt><strong>热点图集</strong></dt>
  280. <dd>
  281. <ul class="e3">
  282. {dede:arclist row='5' type='image.' orderby=click}
  283. <li>
  284. <a href="[field:arcurl/]" class="preview"><img src="[field:litpic/]" alt="[field:title function='html2text(@me)'/]"/></a>
  285. <a href="[field:arcurl/]" class="title">[field:title/]</a>
  286. <span class="intro">更新:[field:pubdate function="GetDateMK(@me)"/]</span>
  287. </li>
  288. {/dede:arclist}
  289. </ul>
  290. </dd>
  291. </dl>
  292. </div>
  293. <div class="mt1">
  294. <dl class="tbox">
  295. <dt><strong>推荐图集</strong></dt>
  296. <dd>
  297. <ul class="e9">
  298. {dede:arclist row='8' type='image.commend.'}
  299. <li><a href="[field:arcurl/]"><img src="[field:litpic/]" alt="[field:title function='html2text(@me)'/]"/><span class="title">[field:title/]</span></a></li>
  300. {/dede:arclist}
  301. </ul>
  302. </dd>
  303. </dl>
  304. </div>
  305. </div><!-- /pright -->
  306. </div>
  307. {dede:include filename="footer.htm"/}
  308. <!-- /footer -->
  309. </body>
  310. </html>