修改成绩表

This commit is contained in:
小松树 committed 2019-05-21 16:48:06 +08:00
1 parent e329268ead
commit d431dd1047
15 files changed
+197 -161

No files matched your search

+49 -49
View File
@@ -1,66 +1,66 @@
<?php
// 性别
function srcSex($str)
{
if($str == '男')
{
$sex = 1;
}else if($str == '女'){
$sex = 0;
}else{
$sex = 2;
}
return $sex;
}
// // 性别
// function srcSex($str)
// {
// if($str == '男')
// {
// $sex = 1;
// }else if($str == '女'){
// $sex = 0;
// }else{
// $sex = 2;
// }
// return $sex;
// }
// 查找学科
function srcSubject($str)
{
// 实例化学科数据模型
$subject = new \app\teach\model\Subject;
// // 查找学科
// function srcSubject($str)
// {
// // 实例化学科数据模型
// $subject = new \app\teach\model\Subject;
// 查询学科id
$subjectId = $subject->where('title',$str)->value('id');
// // 查询学科id
// $subjectId = $subject->where('title',$str)->value('id');
return $subjectId;
}
// return $subjectId;
// }
// 查找职务
function srcZw($str)
{
// 实例化类型数据模型
$category = new \app\system\model\Category;
// // 查找职务
// function srcZw($str)
// {
// // 实例化类型数据模型
// $category = new \app\system\model\Category;
// 查询学科id
$categoryId = $category->where('pid',107)->where('title',$str)->value('id');
// // 查询学科id
// $categoryId = $category->where('pid',107)->where('title',$str)->value('id');
return $categoryId;
}
// return $categoryId;
// }
// 查找学历
function srcXl($str)
{
// 实例化类型数据模型
$category = new \app\system\model\Category;
// // 查找学历
// function srcXl($str)
// {
// // 实例化类型数据模型
// $category = new \app\system\model\Category;
// 查询学科id
$categoryId = $category->where('pid',105)->where('title',$str)->value('id');
// // 查询学科id
// $categoryId = $category->where('pid',105)->where('title',$str)->value('id');
return $categoryId;
}
// return $categoryId;
// }
// 查找职称
function srcZc($str)
{
// 实例化类型数据模型
$category = new \app\system\model\Category;
// // 查找职称
// function srcZc($str)
// {
// // 实例化类型数据模型
// $category = new \app\system\model\Category;
// 查询学科id
$categoryId = $category->where('pid',106)->where('title',$str)->value('id');
// // 查询学科id
// $categoryId = $category->where('pid',106)->where('title',$str)->value('id');
return $categoryId;
}
// return $categoryId;
// }