您当前的位置:首页 > 网站建设 > 考试系统
| php | asp | css | H5 | javascript | Mysql | Dreamweaver | Delphi | 网站维护 | 帝国cms | React | 考试系统 | ajax | jQuery |

phpems导出成绩增加自定义字段

51自学网 2020-05-22 11:38:25
  考试系统
phpems导出成绩增加自定义字段


导出成绩url:http://localhost/phpems/index.php?exam-teach-users-outscore&basicid=7


调用的文件:index.php  中 require "lib/init.cls.php";
然后 
include $modulefile;

app/exam/teach.php


中的这行:
switch($subaction)
{
case 'outscore': //导出成绩
//增加导出成绩字段:
$rs = $this->favor->getAllExamHistoryByArgs($args,array('ehuserid','ehexam','ehusername','ehscore'));
$r = array();
foreach($rs as $p)
{
$sql="select useremail from x2_user where userid='$p[ehuserid]'";
$row = $this->db->fetch($sql);
if($row){
$r[] = array('ehusername' => iconv("UTF-8","GBK",$p['ehusername']),'useremail' => iconv("UTF-8","GBK",$row['useremail']),'ehexam' => iconv("UTF-8","GBK",$p['ehexam']),'ehscore' => $p['ehscore']);
}else{
$r[] = array('ehusername' => iconv("UTF-8","GBK",$p['ehusername']),'ehexam' => iconv("UTF-8","GBK",$p['ehexam']),'ehscore' => $p['ehscore']);
}
}
 
下载地址:
返回列表
phpems二次开发手册
51自学网,即我要自学网,自学EXCEL、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。
京ICP备13026421号-1