国内流行的内容管理系统(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.

262 lines
10KB

  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">
  13. var shortname = "{dede:global.art_shortname/}";
  14. var npage = {dede:field name='nowpage'/};
  15. var totalpage = {dede:field name='totalpage'/};
  16. var namehand = '{dede:field name='namehand'/}';
  17. var displaytype = '{dede:field name='displaytype'/}';
  18. var gtimer = null;
  19. //大图
  20. function dPlayBig()
  21. {
  22. var imgObj = document.getElementById("bigimg");
  23. window.open(imgObj.src);
  24. }
  25. //停止幻灯
  26. function dStopPlay()
  27. {
  28. if(gtimer) clearTimeout(gtimer);
  29. else dPlayNext();
  30. }
  31. //开始幻灯
  32. function dStartPlay()
  33. {
  34. if(npage!=totalpage) {
  35. gtimer = setTimeout("dPlayNext()",10000);
  36. }
  37. }
  38. //上一张
  39. function dPlayPre(){
  40. if(npage<2)
  41. {
  42. alert("这是第一页");
  43. }
  44. else
  45. {
  46. if(npage==2) {
  47. if(namehand!='') location.href = namehand+shortname;
  48. else location.href = "view.php?aid={dede:field name='id'/}";
  49. } else if(displaytype=='st' && namehand!='') {
  50. location.href = namehand+"_"+(npage-1)+shortname;
  51. } else {
  52. location.href = "view.php?aid={dede:field name='id'/}&pageno="+(npage-1);
  53. }
  54. }
  55. }
  56. //下一张
  57. function dPlayNext()
  58. {
  59. if(npage==totalpage) { alert("没有了哦"); }
  60. else
  61. {
  62. if(displaytype=='st' && namehand!='') location.href = namehand+"_"+(npage+1)+shortname;
  63. else location.href = "view.php?aid={dede:field name='id'/}&pageno="+(npage+1);
  64. }
  65. }
  66. -->
  67. </script>
  68. </head>
  69. <body class="picboxview">
  70. {dede:include filename="head2.htm"/}
  71. <!-- /header -->
  72. <div class="channel-nav w960 center clear">
  73. <div class='sonnav'>
  74. {dede:channel type='self' currentstyle="<span><a href='~typelink~' class='thisclass'>~typename~</a></span>"}
  75. <span><a href='[field:typeurl/]'>[field:typename/]</a></span>{/dede:channel}
  76. </div>
  77. </div><!-- /channel-nav -->
  78. <div class="w960 center clear mt1">
  79. <div class="pleft">
  80. <div class="place">
  81. <strong>当前位置:</strong> {dede:field name='position'/}
  82. </div><!-- /place -->
  83. <div class="viewbox">
  84. <div class="title">
  85. <h2>{dede:field.title/}</h2>
  86. </div><!-- /title -->
  87. <div class="info">
  88. <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>次
  89. </div><!-- /info -->
  90. <div class="picbox">
  91. {dede:field name='pagestyle' alt='根据不同的页面风格输出不同的头信息' runphp='yes'}
  92. if(@me==3) {
  93. @me = '<ul class="e8">';
  94. }
  95. else if(@me==2) {
  96. @me = "
  97. <center>
  98. <a href='javascript:dPlayBig();' class='c1'>原始图片</a>\r\n
  99. <a href='javascript:dPlayPre();' class='c1'>上一张</a>\r\n
  100. <a href='javascript:dPlayNext();' class='c1'>下一张</a>\r\n
  101. <a href='javascript:dStopPlay();' class='c1'>自动 / 暂停播放</a>\r\n
  102. </center>
  103. ";
  104. }
  105. else {
  106. @me = '';
  107. }
  108. {/dede:field}
  109. {dede:field name='imgurls' alt='图片输出区'}
  110. [field:pagestyle runphp='yes'] @me= (@me==3 ? '<li>' : '');[/field:pagestyle]
  111. <a href='[field:linkurl/]' target='_blank' [field:pagestyle runphp='yes'] @me= (@me==3 ? 'class="pic"' : ''); [/field:pagestyle]>
  112. <img src='[field:imgsrc/]' id='bigimg' [field:imgwidth /] alt='[field:alttext /]' border='0' />
  113. </a>
  114. <!-- 如果使用的是多页单图模式(幻灯),把href里的链接改为 javascript:dPlayNext(); 表示点击看下一页 -->
  115. <a href="[field:linkurl/]" [field:pagestyle runphp='yes']@me = (@me==3 ? 'class="title"' : '');[/field:pagestyle]>
  116. [field:alttext /]
  117. </a>
  118. [field:pagestyle runphp='yes'] @me = (@me==3 ? '</li>' : ''); [/field:pagestyle]
  119. {/dede:field}
  120. {dede:field name='pagestyle' alt='根据不同的风格输出不同的结尾信息' runphp='yes'}
  121. if(@me==3) {
  122. @me = '</ul>';
  123. }
  124. else if(@me==2) {
  125. @me = "<script language='javascript'>dStartPlay();</script>\r\n";
  126. }
  127. else {
  128. @me = '';
  129. }
  130. {/dede:field}
  131. </div>
  132. <div class="intro"><div id="contentMidPicAD" style="float:right; clear:both; top:0; vertical-align:top; display:block">{dede:myad name='contentMidPicAD'/}</div>{dede:field.body/}
  133. <div style="clear:both"></div>
  134. </div>
  135. <div class="dede_pages">
  136. <ul class="pagelist">
  137. {dede:pagebreak/}
  138. </ul>
  139. </div><!-- /pages -->
  140. <iframe src="{dede:global.cfg_phpurl/}/digg_frame.php?id={dede:field.id/}" width="98%" height="100" style="overflow:hidden;" frameborder="0"></iframe>
  141. <div class="boxoff">
  142. <strong>------分隔线----------------------------</strong>
  143. </div>
  144. <div class="handle">
  145. <div class="context">
  146. <ul>
  147. <li>{dede:prenext get='pre'/}</li>
  148. <li>{dede:prenext get='next'/}</li>
  149. </ul>
  150. </div><!-- /context -->
  151. <div class="actbox">
  152. <ul>
  153. <li id="act-fav"><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li>
  154. <li id="act-err"><a href="{dede:field name='phpurl'/}/erraddsave.php?aid={dede:field.id/}&title={dede:field.title/}" target="_blank">挑错</a></li>
  155. <li id="act-pus"><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li>
  156. <li id="act-pnt"><a href="#" onClick="window.print();">打印</a></li>
  157. </ul>
  158. </div><!-- /actbox -->
  159. </div><!-- /handle -->
  160. </div><!-- /viewbox -->
  161. <iframe id="frame_content" name="frame_content" src="{dede:field name='phpurl'/}/comments_frame.php?id={dede:field.id/}"
  162. width="100%" height="0" scrolling="auto" onload="resizeFrame()" frameborder="0"></iframe>
  163. <script language='javascript'>
  164. var h = -1;
  165. var frameName = 'frame_content';
  166. var _frame = document.getElementById(frameName);
  167. function resizeFrame()
  168. {
  169. if(document.all) {
  170. _frame.height = _frame.document.body.scrollHeight;
  171. }
  172. else {
  173. t = setTimeout(timeCall, 20);
  174. }
  175. }
  176. function timeCall()
  177. {
  178. if(h > -1)
  179. {
  180. _frame.style.height = h + 'px';
  181. clearTimeout(t);
  182. }
  183. else
  184. {
  185. try{
  186. h = window.frames[frameName].frames['xclient'].location.hash.substring(1);
  187. }catch(e){}
  188. setTimeout(timeCall, 20);
  189. }
  190. }
  191. </script>
  192. </div><!-- /pleft -->
  193. <div class="pright">
  194. <div class="infos_userinfo">
  195. {dede:memberinfos}
  196. <dl class="tbox">
  197. <dt><strong>发布者资料</strong></dt>
  198. <dd>
  199. <a href="[field:spaceurl /]" class="userface"><img src="[field:face/]" width="52" height="52" /></a>
  200. <a href='[field:spaceurl /]' class="username">[field:uname/]</a>
  201. <span class="useract">
  202. <a href="[field:spaceurl /]" class="useract-vi">查看详细资料</a>
  203. <a href="[field:spaceurl /]&action=guestbook" class="useract-pm">发送留言</a>
  204. <a href="[field:spaceurl /]&action=newfriend" class="useract-af">加为好友</a>
  205. </span>
  206. <span class="userinfo-sp"><small>用户等级:</small>[field:rankname /]</span>
  207. <span class="userinfo-sp"><small>注册时间:</small>[field:jointime function="MyDate('Y-m-d H:m',@me)"/]</span>
  208. <span class="userinfo-sp"><small>最后登录:</small>[field:logintime function="MyDate('Y-m-d H:m',@me)"/]</span>
  209. </dd>
  210. </dl>
  211. {/dede:memberinfos}
  212. </div>
  213. <div class="mt1">
  214. <dl class="tbox">
  215. <dt><strong>热点图集</strong></dt>
  216. <dd>
  217. <ul class="e3">
  218. {dede:arclist row='5' type='image.' orderby=click}
  219. <li>
  220. <a href="[field:arcurl/]" class="preview"><img src="[field:litpic/]" alt="[field:title function='html2text(@me)'/]"/></a>
  221. <a href="[field:arcurl/]" class="title">[field:title/]</a>
  222. <span class="intro">更新:[field:pubdate function="GetDateMK(@me)"/]</span>
  223. </li>
  224. {/dede:arclist}
  225. </ul>
  226. </dd>
  227. </dl>
  228. </div>
  229. <div class="mt1">
  230. <dl class="tbox">
  231. <dt><strong>推荐图集</strong></dt>
  232. <dd>
  233. <ul class="e9">
  234. {dede:arclist row='8' type='image.commend.'}
  235. <li><a href="[field:arcurl/]"><img src="[field:litpic/]" alt="[field:title function='html2text(@me)'/]"/><span class="title">[field:title/]</span></a></li>
  236. {/dede:arclist}
  237. </ul>
  238. </dd>
  239. </dl>
  240. </div>
  241. </div><!-- /pright -->
  242. </div>
  243. {dede:include filename="footer.htm"/}
  244. <!-- /footer -->
  245. </body>
  246. </html>