更新前台关于部分的分平台控制
This commit is contained in:
parent
47f6483e69
commit
0fe53a674b
|
@ -27,7 +27,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
|
||||
<div id="online">
|
||||
<p class="title">在线联系</p>
|
||||
<p class="note">请填写以下表单,系统会自动发送到westdc邮箱里</p>
|
||||
<p class="note">请填写以下表单,系统会自动发送到我们的邮箱</p>
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<?php if (!empty($this->messages)) : ?>
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<div class="sidebar-nav bs-review-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li id="Nav-about-index"><a href="/about/"><i class="icon-chevron-right"></i>中心简介</a></li>
|
||||
<li id="Nav-about-honor"><a href="/about/honor"><i class="icon-chevron-right"></i>服务成效</a></li>
|
||||
<li id="Nav-about-copyright"><a href="/about/copyright"><i class="icon-chevron-right"></i>数据与版权</a></li>
|
||||
<li id="Nav-about-legal"><a href="/about/legal"><i class="icon-chevron-right"></i>隐私政策</a></li>
|
||||
<li id="Nav-about-index"><a href="/about/"><i class="icon-chevron-right"></i>简介</a></li>
|
||||
<li id="Nav-about-sponsors"><a href="/about/sponsors"><i class="icon-chevron-right"></i>支持项目</a></li>
|
||||
<li id="Nav-about-supportus"><a href="/about/supportus"><i class="icon-chevron-right"></i>支持我们</a></li>
|
||||
<li id="Nav-about-contact"><a href="/about/contact"><i class="icon-chevron-right"></i>联系我们</a></li>
|
||||
<li id="Nav-about-link"><a href="/about/link"><i class="icon-chevron-right"></i>友情链接</a></li>
|
||||
|
|
|
@ -594,12 +594,14 @@ class Archive
|
|||
//getOneArchive 获取单个文档
|
||||
function getOneArchive($title,$ptype='news')
|
||||
{
|
||||
$config = \Zend_Registry::get('config');
|
||||
$subnews=$config->sub->news;
|
||||
$sql="update ".$this->tbl_archives." set click=click+1";
|
||||
$this->db->query($sql);
|
||||
$sql = "select a.* from ".$this->tbl_archives." a
|
||||
left join ".$this->tbl_catalog." ac on a.id=ac.aid
|
||||
left join ".$this->tbl_categorys." c on ac.cid=c.id ";
|
||||
$sql.=" where a.title=? and c.ptype=?";
|
||||
$sql.=" where a.title=? and c.ptype=? and a.sub='$subnews'";
|
||||
$sth=$this->db->prepare($sql);
|
||||
$sth->execute(array($title,$ptype));
|
||||
$rows=$sth->fetch();
|
||||
|
|
Loading…
Reference in New Issue