打开默认模板的专题内容页模板即\phpcms\templates\default\special\show.html,代码如下:- {template "content","header"}
- <div class="main">
- <div class="col-left">
- <div class="crumbs"><a href="{APP_PATH}">首页</a><span> > </span> <a href="{APP_PATH}index.php?m=special&c=index&a=special">专题</a> <span> > </span> <a href="{$_special['url']}">{$s_info['title']}</a> <span> > </span> {$title}</div>
- <div id="Article">
- <h1>{$title}
- <span>{date('Y-m-d H:i:s', $inputtime)} 评论:<a href="#comment_iframe" id="comment">0</a> 点击:</span><span id="hits"></span></h1>
- <div class="content">
- {$content}
- </div>
- {if $titles}
- <fieldset>
- <legend class="f14">本文导航</legend><ul class="list blue row-2">
- {loop $titles $r}
- <li>·<a href="{$r[url]}">{$r[title]}</a></li>
- {/loop}
- </ul>
- </fieldset>
- {/if}
- <div id="pages" class="text-c">{$title_pages}</div>
- <div class="related">
- </div>
- <script type="text/javascript" src="{APP_PATH}index.php?m=mood&c=index&a=init&id={id_encode($catid,$id,$siteid)}"></script>
- </div>
复制代码 其中的调用日期时间代码:{date('Y-m-d H:i:s', $inputtime)} 是错误的,如果用此调用代码,前台调用时间显示为:1970-01-01 08:00:00,应该用 {$inputtime} 替换掉。
|
|