Merge branch 'auth' into temp
This commit is contained in:
commit
dfdc1280af
3 files changed
+18
-12
No files matched your search
@@ -10,6 +10,7 @@ class Tongji extends BaseModel
|
||||
// 统计成绩
|
||||
public function tongjiCnt($cj = array(), $subject_id)
|
||||
{
|
||||
// halt($cj);
|
||||
$data = array();
|
||||
// 循环统计各学科成绩
|
||||
foreach ($subject_id as $key => $value) {
|
||||
|
||||
@@ -820,7 +820,7 @@ class OneStudentChengji extends BaseModel
|
||||
{
|
||||
if($zhengfu['fu'] == $cjCnt)
|
||||
{
|
||||
$fu = $fu . '所有学科成绩低于班级平均分,';
|
||||
$fu = $fu . '所有学科成绩低于班级平均分';
|
||||
}else{
|
||||
$xk = '';
|
||||
foreach ($avgCha as $key => $value) {
|
||||
@@ -841,9 +841,9 @@ class OneStudentChengji extends BaseModel
|
||||
$xk = $src['cj'][$key]['subjectName']['title'];
|
||||
if($zhengfu['fu'] == 1)
|
||||
{
|
||||
$fu = $fu . abs(end($avgCha)) .'分。';
|
||||
$fu = $fu . abs(end($avgCha)) .'分';
|
||||
}else{
|
||||
$fu = $fu . ',其中' . $xk .'成绩低与班级平均' . abs(end($avgCha)) .'分。';
|
||||
$fu = $fu . ',其中' . $xk .'成绩低与班级平均' . abs(end($avgCha)) .'分';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -852,9 +852,9 @@ class OneStudentChengji extends BaseModel
|
||||
{
|
||||
if(strlen($ling)>0 || strlen($fu)>0)
|
||||
{
|
||||
$py = $bjdbpy . $zheng . ',';
|
||||
$py = $zheng . ',';
|
||||
}else{
|
||||
$py = $bjdbpy . $zheng . '。';
|
||||
$py = $zheng . '。';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -862,13 +862,18 @@ class OneStudentChengji extends BaseModel
|
||||
{
|
||||
if(strlen($fu) > 0)
|
||||
{
|
||||
$py = $py . $ling . ',' . $fu;
|
||||
$py = $py . $ling . ',';
|
||||
}else{
|
||||
$py = $py . $ling . '。';
|
||||
}
|
||||
}
|
||||
|
||||
return $py;
|
||||
if(strlen($fu) > 0)
|
||||
{
|
||||
$py = $py . $fu . '。';
|
||||
}
|
||||
|
||||
return $bjdbpy . $py;
|
||||
}
|
||||
|
||||
|
||||
@@ -1038,9 +1043,9 @@ class OneStudentChengji extends BaseModel
|
||||
{
|
||||
if(strlen($ling)>0 || strlen($fu)>0)
|
||||
{
|
||||
$py = $bjdbpy . $zheng . ',';
|
||||
$py = $zheng . ',';
|
||||
}else{
|
||||
$py = $bjdbpy . $zheng . '。';
|
||||
$py = $zheng . '。';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1048,7 +1053,7 @@ class OneStudentChengji extends BaseModel
|
||||
{
|
||||
if(strlen($fu) > 0)
|
||||
{
|
||||
$py = $py . $ling . ',' . $fu;
|
||||
$py = $py . $ling . ',';
|
||||
}else{
|
||||
$py = $py . $ling . '。';
|
||||
}
|
||||
@@ -1059,7 +1064,8 @@ class OneStudentChengji extends BaseModel
|
||||
$py = $py . $fu . '。';
|
||||
}
|
||||
|
||||
return $py;
|
||||
|
||||
return $bjdbpy . $py;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
Options +FollowSymlinks -Multiviews
|
||||
RewriteEngine On
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
|
||||
|
||||
Reference in new issue
Block a user