change field ts_publish to ts_published

This commit is contained in:
wlx 2012-03-28 02:55:03 +00:00
parent 279cdf523c
commit 46b0ee907a
3 changed files with 6 additions and 6 deletions

View File

@ -1179,11 +1179,11 @@ class AuthorController extends Zend_Controller_Action
$wheresql .= " AND mdnews.uuid='$uuid'"; $wheresql .= " AND mdnews.uuid='$uuid'";
} }
$sql = "SELECT arc.id,arc.title,arc.ts_publish,arc.description,u.realname FROM news_archives arc $sql = "SELECT arc.id,arc.title,arc.ts_published,arc.description,u.realname FROM news_archives arc
LEFT JOIN users u ON arc.userid=u.id LEFT JOIN users u ON arc.userid=u.id
$join $join
WHERE arc.is_pub>0 AND arc.ts_publish<'now()' $wheresql WHERE arc.is_pub>0 AND arc.ts_published<'now()' $wheresql
ORDER BY arc.ts_publish"; ORDER BY arc.ts_published";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);
@ -1362,7 +1362,7 @@ class AuthorController extends Zend_Controller_Action
if(empty($aid)) if(empty($aid))
{ {
$sql = "INSERT INTO news_archives $sql = "INSERT INTO news_archives
(userid,title,keywords,description,image,source,ts_publish,is_pub,body) (userid,title,keywords,description,image,source,ts_published,is_pub,body)
VALUES VALUES
(?,?,?,?,?,?,?,?,?) (?,?,?,?,?,?,?,?,?)
RETURNING id RETURNING id

View File

@ -31,7 +31,7 @@ $this->breadcrumb()->setSeparator(' > ');
</form> </form>
<div id="archives_view"> <div id="archives_view">
<div class="title"><?php echo $this->info['title'];?></div> <div class="title"><?php echo $this->info['title'];?></div>
<div class="info">作者:<?php echo $this->info['realname'];?> 发布时间:<?php echo date("Y-m-d",strtotime($this->info['ts_publish']));?> 阅读次数:<?php echo $this->info['click'];?></div> <div class="info">作者:<?php echo $this->info['realname'];?> 发布时间:<?php echo date("Y-m-d",strtotime($this->info['ts_published']));?> 阅读次数:<?php echo $this->info['click'];?></div>
<div class="content"> <div class="content">
<?php echo $this->info['body'];?> <?php echo $this->info['body'];?>
</div> </div>

View File

@ -39,7 +39,7 @@ $this->breadcrumb()->setSeparator(' > ');
?> ?>
<li> <li>
<p><a href="/author/news/ac/view/aid/<?php echo $item['id'];?>" class="title"><?php echo $item['title'];?></a></p> <p><a href="/author/news/ac/view/aid/<?php echo $item['id'];?>" class="title"><?php echo $item['title'];?></a></p>
<p>作者:<?php echo $item['realname'];?> 发布时间:<?php echo date("Y-m-d",strtotime($item['ts_publish']));?></p> <p>作者:<?php echo $item['realname'];?> 发布时间:<?php echo date("Y-m-d",strtotime($item['ts_published']));?></p>
<p><?php echo $item['description'];?></p> <p><?php echo $item['description'];?></p>
</li> </li>
<?php <?php