账号通
    

账号  

密码  

1444

查看

0

回复
主题:[分享]KesionCMS x1.0 考试系统考生主观题评分不计入总分的修复 [收藏主题]  
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2015/2/12 15:44:33   | 只看该作者 查看该作者主题 楼主 
科汛在线商城系统(NET)
问题如题:
解决方法

打开
  mnkc/exam/finish.asp

找到
if request("action")="finish" then
   ass=request("ass")
   cjb=request("cjb")
   set rsl=server.CreateObject("adodb.recordset")
   rsl.open "select id from ks_sjtk where kid=" & id & " and did=0 and tmtype=1 order by id",conn,1,1
   do while not rsl.eof

score=0


set rss=conn.execute("select id from ks_sjtk where kid=" & id & " and did=" & rsl("id"))


do while not rss.eof


score=score+KS.ChkCLng(request("score" & rss("id")))


rss.movenext


loop


     rss.close

         totalscore=totalscore+score

cjb=replace(cjb,"{$score" & rsl("id") &"}",score)

     rsl.movenext
   loop
   rsl.close:set rsl=nothing
   'cjb=request("cjb") & "<div>主观题:<font color='#ff6600'>" & score & "</font>分</div>"
else



请将上面红色的代码改为


   ass=request("ass")
   cjb=request("cjb")

score=0

set rss=conn.execute("select id from ks_sjtk where kid=" & id & " and  tmtype=1")

do while not rss.eof

score=score+KS.ChkCLng(request("score" & rss("id")))

rss.movenext

loop

     rss.close
         totalscore=totalscore+score
  cjb=request("cjb") & "<div>主观题:<font color='#ff6600'>" & score & "</font>分</div>"
 
KesionCMS,,
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.12500秒 powered by KesionCMS 9.0