内容页里放以下代码;
<!-------新闻签收代码,如果没有使用此功能请自行删除----------->
<script src="{$GetInstallDir}ks_inc/jquery.js"></script>
<script src="{$GetInstallDir}ks_inc/dialog/dialog.js"></script>
<script type="text/javascript">
var channelid=null;
var infoid=null;
jQuery(document).ready(function(){
channelid=jQuery("#s_channelid").val();
infoid=jQuery("#s_infoid").val();
loading(1);
})
function loading(p)
{
jQuery("#showSign").load("/plus/dz.qs.asp?infoid="+infoid+"&channelid="+channelid+"&page="+p);
}
function SignOk()
{
var signcontent=jQuery("#signcontent").val();
if (signcontent=='')
{
Alert(1,'请输入签收内容!',null);
return ;
}
jQuery.ajax({
url: "/plus/dz.qs.asp",
cache: false,
data: "action=savesign&infoid=" + infoid+"&channelid="+channelid+"&signcontent="+escape(signcontent),
success: function(r){
r=unescape(r);
var arrobj=r.split('|');
Alert(arrobj[0],arrobj[1],arrobj[2]);
loading(1);
}
});
}
function Alert(src,msg,act)
{
var oDialog = new dialog("/");
oDialog.init();
oDialog.set('src',src);
oDialog.event(msg,'');
oDialog.button('dialogOk',act);
}
</script>
<div class="aboutarticle">
<div class="about_article"><img src="{$GetInstallDir}images/article_list_01.png" />新闻签收</div>
<div class="about_list">
<div id="showSign"><Img src="{$GetInstallDir}images/loading.gif"></div>
<input type="hidden" value="{$InfoID}" id="s_infoid">
<input type="hidden" value="{$ChannelID}" id="s_channelid">
</div>
</div>
<!---------签收代码结束-------->