PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

手机端文章内容页模型调用出错 [复制链接]

1#
手机端文章内容页模型调用Prev_and_Next();出错,pc端的又没有问题!咋整呢?

分享 转发
TOP
2#

<%
string Pics="";
int News_Pic=0;
string video,fj;
DataTable dt,dt1;
dt=Get_Data();
string Related_Ids="";

DataRow dr,dr1;
for(int i=0;i<dt.Rows.Count;i++)
{
  dr=dt.Rows;
  video=dr["pa_video"].ToString();
  fj=dr["pa_fj"].ToString();
  if(dr["pa_pics"].ToString()!="0" && dr["pa_pics"].ToString()!="")
   {
     News_Pic=int.Parse(dr["pa_pics"].ToString());
   }
%>

<div class="articleinfor" id="articleinfor">
<ul>
<li class="title"><h1><%=Server.HtmlEncode(dr["title"].ToString())%>
</h1></li>
<li class="info">
发布日期:<%=((DateTime)dr["thedate"]).ToString("yyyy-MM-dd")%>&nbsp;&nbsp;
<%=dr["pa_autor"].ToString()==""?"":"&nbsp;作者:"+dr["pa_autor"].ToString()%>
浏览量:<span id="clicks"></span>&nbsp;&nbsp;<%=dr["pa_source"].ToString()==""?"":"&nbsp;来源:"+dr["pa_source"].ToString()%>&nbsp;&nbsp;字号:[&nbsp;<a href="javascript:FontZoom('16px','Content')">大</a> <a href="javascript:FontZoom('14px','Content')">中</a>  <a href="javascript:FontZoom('12px','Content')">小</a>]
</li>
</ul>
<div class="content" id="Content">

<%=dr["content"].ToString()%>

<%}
if(Related_Ids!="")
{
Response.Write("<div class='related_article'><span class='header'>相关文档</span><ul>");
string[] ARelated_Ids=Related_Ids.Split(',');
for(int i=0;i<ARelated_Ids.Length;i++)
{
  dt=Get_Data("select * from article where id="+ARelated_Ids);
   if(dt.Rows.Count>0)
   {
   dr=dt.Rows[0];
%><li><a href="<%=Detail_Url(dr)%>" target=_blank><%=dr["title"].ToString()%></a></li><%
}
}
Response.Write("</ul></div>");
}
Prev_and_Next();
%>
<div class="article_bottom">
<div class="bdsharebuttonbox right"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a><a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList"alse,"bdPic":"","bdStyle":"1","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
<ul class="sublanmu_pn left">
<li><%=_Previous==""?"":"上一篇:"+_Previous%></li>
<li><%=_Next==""?"":"下一篇:"+_Next%></li>
</ul>
</div>
</div>
</div>
TOP
3#

代码如上

<%
string Pics="";
int News_Pic=0;
string video,fj;
DataTable dt,dt1;
dt=Get_Data();
string Related_Ids="";

DataRow dr,dr1;
for(int i=0;i<dt.Rows.Count;i++)
{
  dr=dt.Ro......
victor 发表于 2019/11/29 17:09:55
TOP
发新话题 回复该主题