function addinfohits(infoid,viewid){$.ajax({url:"/web/api/gettemplateclickcount?id="+infoid,type:"get",datatype:"json",success:function(data){if(data.status==200){$("#"+viewid).text(data.data)}else{$("#"+viewid).text(0)}},error:function(data){},})}function insertaccessinfo(id,title,catid,siteid,url){var data={infoid:id,infotitle:title,catid:catid,siteid:siteid,accessurl:url,};$.ajax({url:"/web/api/insertaccessinfo",data:data,type:"post",datatype:"json",success:function(data){},error:function(data){},})}