1Next >
h3214712 | 发表于:14-08-08 15:54 [添加收藏] 楼主 [回复] #Top# |
---|---|
![]() ![]() |
这个是模板指定。。。 前台也显示了 “留言表单” 但是输入。内容后。。或者 表单为空。。点击 “添加”没有任何反应。。 请问这个是哪里问题啊。。需要这么修改。。。 系统是 KingCMS_6.1.1641(Sp2)
Ta最近还发表过
[使用]
PHP产品如何分页根目录与二级目录?乱码!求教
(17-11-12)
[错误]
企业版以前的PHP版本后台乱码前台正常
(16-07-21)
[疑问]
php版开启了GD后台验证码还是不显示?
(16-06-14)
[错误]
路径自动添加后台文件名
(16-02-25)
[使用]
新建出现500错误。
(16-02-23)
随机阅读
[疑问]
后台生成页面出错!!!
(13-10-11)
[疑问]
可不可以在kingcms下面在套一个博客的系统啊~!
(12-04-02)
[其他]
求CD ISO文件
(11-11-16)
[错误]
重设密码的问题
(11-05-02)
[其他]
坐公交车的时候,看到过胸怀大痣的。。
(10-09-23)
|
Gougliang | 发表于:14-08-08 23:35 编辑于:08-08 23:35 沙发 [回复] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
是不是系统内置的js没加载到这个模板页面?
参考下默认模板的页面,看缺少的是哪些js。 |
h3214712 | 发表于:14-08-11 09:29 板凳 [回复] #Top# |
---|---|
![]() ![]() |
![]() <?php require_once '../global.php'; //添加留言 function king_ajax_add(){ global $king; //过滤IP $fip=kc_getip(); if($king->config('lockip')){ $array_filter=explode('|',$king->config('lockip')); $array_filter=array_diff($array_filter,array(null)); }else{ $array_filter=array(); } if(in_array(long2ip($fip), $array_filter)){ kc_ajax('OK','<p class="k_ok">'.$king->lang->get('feedback/ok/add').'</p>' ,"<a href="index.php">".$king->lang->get('system/common/enter')."</a>");//添加成功后返回的地址 } $fbtime=kc_cookie("fbtime");//获得上次操作时间 $ktitle=kc_post('ktitle'); $kname=kc_post('kname'); $kemail=kc_post('kemail'); $kphone=kc_post('kphone'); $kqq=kc_post('kqq'); $kcontent=kc_post('kcontent'); //check ktitle if(!isset($ktitle{1}) || strlen($ktitle)>50){ kc_error($king->lang->get('feedback/error/name',0)); } //check kname if(!isset($kname{1}) || strlen($kname)>30){ kc_error($king->lang->get('feedback/error/name',1)); } //check kemail if(!kc_validate($kemail,5)){ kc_error($king->lang->get('feedback/error/name',2)); } //check kcontent if(!isset($kcontent{9})){ kc_error($king->lang->get('feedback/error/name',3)); } //feedback limit if($fbtime>time()-3600){ kc_ajax($king->lang->get('system/common/tip'),$king->lang->get('feedback/error/name',5),0); } $king->load('user'); $ishow=0; //不显示 if($user=$king->user->checkLogin()){ $userid=$user['userid']; $data=$king->db->getRows_one("select username from %s_user where userid={$userid}"); if(!empty($data)){ $ishow=($king->db->getRows("select kid from %s_feedback where nshow=1 and username='".$data['username']."'"))?1:0; } } $array=array( 'ktitle'=>$ktitle, 'kname'=>$kname, 'kemail'=>$kemail, 'kphone'=>$kphone, 'kqq'=>$kqq, 'kcontent'=>$kcontent, 'norder'=>$king->db->neworder('%s_feedback'), 'ndate' =>time(), 'nip'=>$fip, 'username'=>$data['username'], 'nshow'=>$ishow, ); $king->db->insert('%s_feedback',$array); //记录本次发布时间 setcookie("fbtime",time(),time()+3600,'/'); kc_ajax('OK','<p class="k_ok">'.$king->lang->get('feedback/ok/add').'</p>' ,"<a href="index.php">".$king->lang->get('system/common/enter')."</a>");//添加成功后返回的地址 } /** 添加留言 */ function king_def(){ global $king; $pid=isset($_GET['pid']) ? kc_get('pid',2,1) :1; $rn=isset($_GET['rn']) ? kc_get('rn',2,1) :10; $skip=($pid==1) ? 0 : ($pid-1)*$rn; if($rn>100) $rn=100; $count=$king->db->getRows_number('%s_feedback'); $tmp=new KC_Template_class($king->config('templatepath').'/liuyan.htm',$king->config('templatepath').'/inside/feedback/default.htm'); $tmp->assign('title',$king->lang->get('feedback/name')); $tmp->assign('type','feedback'); //用于分页 $tmp->assign('pid',$pid); $tmp->assign('rn',$rn); $tmp->assign('count',$count); echo $tmp->output(); } ?> 看不明白。。。 |
h3214712 | 发表于:14-08-11 09:31 4楼 [回复] #Top# |
---|---|
![]() ![]() |
Reply: 沙发
这些。是我复制来的。就是默认的。 |
swwdjimmy | 发表于:14-10-28 14:47 5楼 [回复] #Top# |
---|---|
![]() ![]() |
没有看懂
|
1Next >