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
7c3fd34f
Commit
7c3fd34f
authored
Jun 09, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
daca2c1b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
apps/exams/Lib/Action/AdminPaperAction.class.php
+3
-1
apps/exams/Lib/Model/ExamsQuestionModel.class.php
+0
-2
No files found.
apps/exams/Lib/Action/AdminPaperAction.class.php
View file @
7c3fd34f
...
@@ -604,7 +604,9 @@ class AdminPaperAction extends AdministratorAction
...
@@ -604,7 +604,9 @@ class AdminPaperAction extends AdministratorAction
if
(
$_POST
[
'point_title'
]
!=
0
){
if
(
$_POST
[
'point_title'
]
!=
0
){
$map
[
'exams_point_id'
]
=
[
'like'
,
'%'
.
t
(
$_POST
[
'point_title'
])
.
'%'
];
$map
[
'exams_point_id'
]
=
[
'like'
,
'%'
.
t
(
$_POST
[
'point_title'
])
.
'%'
];
}
}
$map
[
'content'
]
=
[
'like'
,
'%'
.
t
(
$_POST
[
'search_title'
])
.
'%'
];
if
(
!
empty
(
$_POST
[
'search_title'
]))
{
$map
[
'content'
]
=
[
'like'
,
'%'
.
t
(
$_POST
[
'search_title'
])
.
'%'
];
}
$map
[
'exams_subject_id'
]
=
$paper
[
'exams_subject_id'
];
$map
[
'exams_subject_id'
]
=
$paper
[
'exams_subject_id'
];
$map
[
'exams_module_id'
]
=
$paper
[
'exams_module_id'
];
$map
[
'exams_module_id'
]
=
$paper
[
'exams_module_id'
];
//$map['level'] = $paper['level'];
//$map['level'] = $paper['level'];
...
...
apps/exams/Lib/Model/ExamsQuestionModel.class.php
View file @
7c3fd34f
...
@@ -25,8 +25,6 @@ class ExamsQuestionModel extends Model
...
@@ -25,8 +25,6 @@ class ExamsQuestionModel extends Model
public
function
getQuestionPageList
(
$map
=
[],
$limit
=
20
,
$isJump
=
false
)
public
function
getQuestionPageList
(
$map
=
[],
$limit
=
20
,
$isJump
=
false
)
{
{
$map
[
'is_del'
]
=
0
;
$map
[
'is_del'
]
=
0
;
var_dump
(
$map
);
die
;
$list
=
$this
->
where
(
$map
)
->
order
(
'exams_question_id desc'
)
->
findPage
(
$limit
,
false
,[],
$isJump
);
$list
=
$this
->
where
(
$map
)
->
order
(
'exams_question_id desc'
)
->
findPage
(
$limit
,
false
,[],
$isJump
);
if
(
$list
[
'data'
])
{
if
(
$list
[
'data'
])
{
$list
[
'data'
]
=
$this
->
haddleData
(
$list
[
'data'
]);
$list
[
'data'
]
=
$this
->
haddleData
(
$list
[
'data'
]);
...
...
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