Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
36058fc0
Commit
36058fc0
authored
May 14, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
短信验证
parent
e4375777
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
apps/exams/Lib/Action/AdminPaperAction.class.php
+9
-9
No files found.
apps/exams/Lib/Action/AdminPaperAction.class.php
View file @
36058fc0
...
@@ -56,9 +56,9 @@ class AdminPaperAction extends AdministratorAction
...
@@ -56,9 +56,9 @@ class AdminPaperAction extends AdministratorAction
if
(
$this
->
isPush
!=
1
){
if
(
$this
->
isPush
!=
1
){
$this
->
pageTab
[]
=
array
(
'title'
=>
'添加'
,
'tabHash'
=>
'add'
,
'url'
=>
U
(
'exams/AdminPaper/add'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'添加'
,
'tabHash'
=>
'add'
,
'url'
=>
U
(
'exams/AdminPaper/add'
));
if
(
(
OPEN_SCHOOL
&&
is_admin
(
$this
->
mid
))
||
!
OPEN_SCHOOL
){
if
(
(
OPEN_SCHOOL
&&
is_admin
(
$this
->
mid
))
||
!
OPEN_SCHOOL
){
$this
->
pageTab
[]
=
array
(
'title'
=>
'考试配置'
,
'tabHash'
=>
'config'
,
'url'
=>
U
(
'exams/AdminPaper/config'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'考试配置'
,
'tabHash'
=>
'config'
,
'url'
=>
U
(
'exams/AdminPaper/config'
));
}
}
}
}
// 列表批量操作按钮
// 列表批量操作按钮
$this
->
pageButton
[]
=
array
(
'title'
=>
'搜索'
,
'onclick'
=>
"admin.fold('search_form')"
);
$this
->
pageButton
[]
=
array
(
'title'
=>
'搜索'
,
'onclick'
=>
"admin.fold('search_form')"
);
...
@@ -139,7 +139,7 @@ class AdminPaperAction extends AdministratorAction
...
@@ -139,7 +139,7 @@ class AdminPaperAction extends AdministratorAction
public
function
config
()
public
function
config
()
{
{
$this
->
pageTab
[]
=
array
(
'title'
=>
'列表'
,
'tabHash'
=>
'index'
,
'url'
=>
U
(
'exams/AdminPaper/index'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'列表'
,
'tabHash'
=>
'index'
,
'url'
=>
U
(
'exams/AdminPaper/index'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'考试配置'
,
'tabHash'
=>
'config'
,
'url'
=>
U
(
'exams/AdminPaper/config'
));
//
$this->pageTab[] = array('title'=>'考试配置','tabHash'=>'config','url'=>U('exams/AdminPaper/config'));
$this
->
pageKeyList
=
!
OPEN_SCHOOL
?
array
(
'error_count'
)
:
array
(
'push_school'
,
'error_count'
);
$this
->
pageKeyList
=
!
OPEN_SCHOOL
?
array
(
'error_count'
)
:
array
(
'push_school'
,
'error_count'
);
$this
->
opt
[
'push_school'
]
=
[
0
=>
'否'
,
1
=>
'是'
];
$this
->
opt
[
'push_school'
]
=
[
0
=>
'否'
,
1
=>
'是'
];
$this
->
displayConfig
();
$this
->
displayConfig
();
...
@@ -152,7 +152,7 @@ class AdminPaperAction extends AdministratorAction
...
@@ -152,7 +152,7 @@ class AdminPaperAction extends AdministratorAction
*/
*/
public
function
add
()
public
function
add
()
{
{
$this
->
pageTab
[]
=
array
(
'title'
=>
'列表'
,
'tabHash'
=>
'index'
,
'url'
=>
U
(
'exams/AdminPaper/index'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'列表'
,
'tabHash'
=>
'index'
,
'url'
=>
U
(
'exams/AdminPaper/index'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'添加'
,
'tabHash'
=>
'add'
,
'url'
=>
U
(
'exams/AdminPaper/add'
));
$this
->
pageTab
[]
=
array
(
'title'
=>
'添加'
,
'tabHash'
=>
'add'
,
'url'
=>
U
(
'exams/AdminPaper/add'
));
if
(
$_POST
)
{
if
(
$_POST
)
{
...
@@ -346,7 +346,7 @@ class AdminPaperAction extends AdministratorAction
...
@@ -346,7 +346,7 @@ class AdminPaperAction extends AdministratorAction
}
else
{
}
else
{
$ug_map
=
'user_group_id != 1'
;
$ug_map
=
'user_group_id != 1'
;
}
}
$this
->
opt
[
'show_user_group'
]
=
model
(
'UserGroup'
)
->
where
(
$ug_map
)
->
getField
(
'user_group_id,user_group_name'
);
$this
->
opt
[
'show_user_group'
]
=
model
(
'UserGroup'
)
->
where
(
$ug_map
)
->
getField
(
'user_group_id,user_group_name'
);
$paper
[
'start_time'
]
=
date
(
'Y-m-d H:i'
,
$paper
[
'start_time'
]);
$paper
[
'start_time'
]
=
date
(
'Y-m-d H:i'
,
$paper
[
'start_time'
]);
$paper
[
'end_time'
]
=
date
(
'Y-m-d H:i'
,
$paper
[
'end_time'
]);
$paper
[
'end_time'
]
=
date
(
'Y-m-d H:i'
,
$paper
[
'end_time'
]);
...
@@ -461,8 +461,8 @@ class AdminPaperAction extends AdministratorAction
...
@@ -461,8 +461,8 @@ class AdminPaperAction extends AdministratorAction
'desc'
=>
t
(
$_POST
[
'desc'
]),
'desc'
=>
t
(
$_POST
[
'desc'
]),
'count'
=>
$count
,
'count'
=>
$count
,
];
];
//判断组卷类型--自动组卷(1),手动组卷
//判断组卷类型--自动组卷(1),手动组卷
if
(
$assembly_type
==
1
){
if
(
$assembly_type
==
1
){
$list
=
[];
$list
=
[];
...
@@ -534,7 +534,7 @@ class AdminPaperAction extends AdministratorAction
...
@@ -534,7 +534,7 @@ class AdminPaperAction extends AdministratorAction
}
else
{
}
else
{
$res
=
$this
->
optionsMod
->
delOptionsType
(
$type_id
,
intval
(
$_POST
[
'paper_id'
]));
$res
=
$this
->
optionsMod
->
delOptionsType
(
$type_id
,
intval
(
$_POST
[
'paper_id'
]));
}
}
if
(
$res
)
{
if
(
$res
)
{
exit
(
json_encode
([
'status'
=>
1
,
'data'
=>
[
'info'
=>
'删除成功'
]]));
exit
(
json_encode
([
'status'
=>
1
,
'data'
=>
[
'info'
=>
'删除成功'
]]));
}
else
{
}
else
{
...
@@ -618,7 +618,7 @@ class AdminPaperAction extends AdministratorAction
...
@@ -618,7 +618,7 @@ class AdminPaperAction extends AdministratorAction
$ids
&&
$map
[
'exams_question_id'
]
=
[
'not in'
,
$ids
];
$ids
&&
$map
[
'exams_question_id'
]
=
[
'not in'
,
$ids
];
$list
=
D
(
'ExamsQuestion'
,
'exams'
)
->
where
(
$map
)
->
order
(
'exams_question_id DESC'
)
->
field
(
'exams_question_id'
)
->
findAll
();
$list
=
D
(
'ExamsQuestion'
,
'exams'
)
->
where
(
$map
)
->
order
(
'exams_question_id DESC'
)
->
field
(
'exams_question_id'
)
->
findAll
();
foreach
(
$list
as
$v
)
{
foreach
(
$list
as
$v
)
{
$question
.=
","
.
$v
[
'exams_question_id'
];
$question
.=
","
.
$v
[
'exams_question_id'
];
}
}
echo
json_encode
(
$question
);
exit
;
echo
json_encode
(
$question
);
exit
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment