Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
218f07f7
Commit
218f07f7
authored
Sep 14, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doctor feedback
parent
6d9c6fd5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
5 deletions
+88
-5
Appfeedback.php
admin/application/controllers/Appfeedback.php
+2
-2
Appfeedback_model.php
admin/application/models/Appfeedback_model.php
+9
-3
feedback_doctor.php
admin/application/views/Appfeedback/feedback_doctor.php
+77
-0
feedback_patient.php
admin/application/views/Appfeedback/feedback_patient.php
+0
-0
No files found.
admin/application/controllers/Appfeedback.php
View file @
218f07f7
...
@@ -16,8 +16,8 @@ class Appfeedback extends CI_Controller {
...
@@ -16,8 +16,8 @@ class Appfeedback extends CI_Controller {
public
function
index
()
{
public
function
index
()
{
$all_policy
=
$this
->
Appfeedback_model
->
get_doctor_feedback
();
$all_policy
=
$this
->
Appfeedback_model
->
get_doctor_feedback
();
$template
[
'page'
]
=
"
ManagePolicy/addPolicy
"
;
$template
[
'page'
]
=
"
Appfeedback/feedback_doctor
"
;
$template
[
'page_title'
]
=
"Manage
Policy Page
"
;
$template
[
'page_title'
]
=
"Manage
Feedbacks
"
;
$template
[
'data'
]
=
$all_policy
;
$template
[
'data'
]
=
$all_policy
;
$this
->
load
->
view
(
'template'
,
$template
);
$this
->
load
->
view
(
'template'
,
$template
);
}
}
...
...
admin/application/models/Appfeedback_model.php
View file @
218f07f7
...
@@ -6,9 +6,14 @@ class Appfeedback_model extends CI_Model {
...
@@ -6,9 +6,14 @@ class Appfeedback_model extends CI_Model {
parent
::
_construct
();
parent
::
_construct
();
}
}
function
get_doctor_feedback
(
$policyData
){
function
get_doctor_feedback
(){
$this
->
db
->
select
(
'tbl_doctors.name,tbl_app_feedback.*'
);
$this
->
db
->
join
(
'tbl_doctors'
,
'tbl_doctors.id = tbl_app_feedback.doctor_id'
);
$result
=
$this
->
db
->
get_where
(
'tbl_app_feedback'
,
array
(
'doctor_id !='
=>
'0'
))
->
result
();
$result
=
$this
->
db
->
get_where
(
'tbl_app_feedback'
,
array
(
'doctor_id !='
=>
'0'
))
->
result
();
print_r
(
$result
);
if
(
$result
){
echo
$this
->
db
->
last_query
();
exit
();
return
$result
;
}
else
{
return
false
;
}
}
}
}
}
\ No newline at end of file
admin/application/views/Appfeedback/feedback_doctor.php
0 → 100644
View file @
218f07f7
<div
class=
"content-wrapper"
>
<!-- Content Header (Page header) -->
<section
class=
"content-header"
>
<h1>
Doctor Feedbacks
</h1>
</section>
<!-- Main content -->
<section
class=
"content"
>
<div
class=
"row"
>
<!-- Add -->
<div
class=
"col-md-12"
>
<?php
if
(
$this
->
session
->
flashdata
(
'message'
))
{
$message
=
$this
->
session
->
flashdata
(
'message'
);
?>
<div
class=
"alert alert-
<?php
echo
$message
[
'class'
];
?>
"
>
<button
class=
"close"
data-dismiss=
"alert"
type=
"button"
>
×
</button>
<?php
echo
$message
[
'message'
];
?>
</div>
<?php
}
?>
</div>
<div
class=
"col-xs-12"
>
<div
class=
"box box-solid box-info"
>
<div
class=
"box-header"
>
<h3
class=
"box-title"
>
Doctor Feedbacks
</h3>
</div>
<div
class=
"box-body"
>
<?php
if
(
count
(
$data
)
>
0
){
?>
<table
class=
"table table-bordered table-striped datatable"
data-ordering=
"true"
>
<thead>
<tr>
<th
class=
"hidden"
>
ID
</th>
<th>
Name
</th>
<th>
Feedback Type
</th>
<th>
Feedback Content
</th>
</tr>
</thead>
<tbody>
<?php
foreach
(
$data
as
$customer
)
{
?>
<tr>
<td
class=
"hidden"
>
<?php
echo
$customer
->
id
;
?>
</td>
<td>
<?php
echo
$customer
->
name
;
?>
</td>
<td>
<?php
echo
$customer
->
feedback_type
;
?>
</td>
<td>
<?php
echo
$customer
->
feedback_content
;
?>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th
class=
"hidden"
>
ID
</th>
<th>
Name
</th>
<th>
Feedback Type
</th>
<th>
Feedback Content
</th>
</tr>
</tfoot>
</table>
<?php
}
else
{
?>
<div>
No Result Found
</div>
<?php
}
?>
</div>
</div>
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
\ No newline at end of file
admin/application/views/Appfeedback/feedback_patient.php
0 → 100644
View file @
218f07f7
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