|
主题:[分享]KesionCMS x1.0 考试系统考生主观题评分不计入总分的修复 [收藏主题] |
问题如题:
解决方法 打开 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) 顶端 底部 |
<上一主题 | 下一主题 > |