-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer_feedbacks.php
executable file
·154 lines (139 loc) · 10.4 KB
/
customer_feedbacks.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
require_once 'common/config/config.inc.php';
require_once CONTROLLERS_PATH . FILENAME_WHOLESALER_FEEDBACK_CTRL;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo FEEDBACK_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php include_once 'common/inc/comman_css_js.inc.php'; ?>
<script type="text/javascript" src="<?php echo JS_PATH ?>customer_feedback.js"></script>
<style type="text/css">.top_company .top_account li label strong{margin-top:0px;} p{margin:0px !important;}</style>
</head>
<body>
<em> <div id="navBar">
<?php include_once INC_PATH . 'top-header.inc.php'; ?>
</div>
</em>
<div class="header"><div class="layout"></div>
<?php include_once INC_PATH . 'header.inc.php'; ?>
</div>
<div id="ouderContainer" class="ouderContainer_1"><div class="wholesalerHeaderSection" style="width:100%;height:50px; padding-top:20px; border-bottom:1px solid #e7e7e7;">
<div class="btn_top"><?php include_once 'common/inc/wholesaler.header.inc.php'; ?></div></div>
<div class="layout">
<div class="add_pakage_outer">
<div class="top_container">
</div>
<div class="body_inner_bg">
<div class="add_edit_pakage aapplication_form aapplication_form2 wish_sec">
<div class="top_company">
<ul class="feebacks_sec" style="width: 100%!important;">
<li class="heading" style="background:#0079ff">
<span class="customer" style="width: 25%;"><?php echo CUS_NAME; ?></span>
<span class="product" style="width: 25%;"><?php echo PRO_ID; ?></span>
<span class="date" style="width: 25%;"><?php echo FEED_DATE; ?></span>
<span class="read" style="width: 25%; text-align:center"><?php echo REED_FEED; ?></span>
</li>
<?php
$varCounter = 0;
$vagetiveClass = '';
if (count($objPage->arrFeedbacks) > 0)
{
foreach ($objPage->arrFeedbacks as $details)
{
//pre($details);
$varCounter++;
$num = $varCounter % 2;
$arrYesNO = array('No', 'Yes');
?>
<li <?php
echo ($details['IsPositive']=='1')?'': 'class="bg_color red"';
?>>
<span class="customer"><?php echo ($details['feedbackUpdate']) ? $details['CustomerFirstName'] : '<strong>' . $details['CustomerFirstName'] . '</strong>'; ?></span>
<span class="product" style="width:25%;"><?php echo ($details['feedbackUpdate']) ? $details['fkProductID'] : '<strong>' . $details['fkProductID'] . '</strong>'; ?></span>
<span class="date" style="width:25%"><?php echo ($details['feedbackUpdate']) ? $objCore->localDateTime($details['FeedbackDateAdded'], DATE_FORMAT_SITE_FRONT) : '<strong>' . $objCore->localDateTime($details['FeedbackDateAdded'], DATE_FORMAT_SITE_FRONT) . '</strong>'; ?></span>
<span class="" style="width:25%; float:left; text-align:center; padding-top:15px;">
<a title="view details" class="<?php echo $details['pkFeedbackID'] ?> viewbig" href="#<?php echo $details['pkFeedbackID'] ?>" onclick="wholesalerFeedbackPopup(<?php echo $details['pkFeedbackID'] ?>)" id="feedbackUpdate" fid="<?php echo $details['pkFeedbackID'] ?>"><i class="fa fa-eye"></i></a>
</span>
<div style="display: none;">
<div id="<?php echo $details['pkFeedbackID'] ?>" class="common_popup_box">
<div class="div_blank">
<div class="post_fdback">
<div class="q_text"><strong>Ques:-</strong><?php echo FRONT_FEEDBACK_QUESTION1; ?></div>
<div class="q_ans" id="answer1">Ans:- <?php echo $arrYesNO[$details['Question1']]; ?></div>
<div class="q_text">Ques:-<?php echo FRONT_FEEDBACK_QUESTION2; ?></div>
<div class="q_ans" id="answer2">Ans:- <?php echo $arrYesNO[$details['Question2']]; ?></div>
<div class="q_text">Ques:-<?php echo FRONT_FEEDBACK_QUESTION3; ?></div>
<div class="q_ans" id="answer3">Ans:-<?php echo $arrYesNO[$details['Question3']]; ?></div>
<div class="q_text"><?php echo COMMENTS; ?>:</div>
<div class="q_ans" id="answer4">Ans:- <?php echo ($details['Comment']) ? $details['Comment'] : 'NA'; ?></div>
</div>
</div>
</div>
</div>
</li>
<?php
}
}
else
{
echo '<li class="no_resutl_found">' . FRONT_WHOLESALER_PRODUCT_LIST_ERROR_MSG8 . '</li>';
}
?>
</ul>
<?php
if (count($objPage->arrFeedbacks) > 0)
{
?>
<ul>
<li <?php echo $num == 1 ? 'class="bg_color"' : ''; ?>><table width="100%">
<tr><td colspan="10"> </td></tr>
<tr>
<td colspan="10">
<table width="100%" border="0" align="center">
<tr>
<td style="font-weight:bolder; text-align:right;" colspan="10" align="right">
<?php
if ($objPage->varNumberPages > 1)
{
$objPage->displayFrontPaging($_GET['page'], $objPage->varNumberPages, $objPage->varPageLimit);
}
?>
</td>
</tr>
</table>
</td>
</tr></table></li>
</ul>
<?php } ?>
<!-- <div class="top_company_right" style="margin-top: 0;">
<h3><?php echo KPI; ?>: <?php echo $objPage->kpi['kpi']; ?></h3>
<div class="right_scroll" style="width:100%">
<strong style="width:94%;"><?php echo WAR; ?></strong>
<?php
if (!empty($objPage->arrWholesalerWarnings))
{
foreach ($objPage->arrWholesalerWarnings as $var)
{
echo '<p href="#' . $var['pkWarningID'] . '" class="' . $var['pkWarningID'] . ' dash-whl-kpi" onclick="wholesalerWarningPopup(' . $var['pkWarningID'] . ');">' . ucfirst(substr($var['WarningText'], 0, 60)) . ' ...' . '</p><small>' . $objCore->localDateTime($var['WarningDateAdded'], DATE_TIME_FORMAT_SITE_FRONT) . '</small>';
echo '<div style="display:none;"><div id="' . $var['pkWarningID'] . '" class="common_popup_box"><div class="div_blank"><p align="justify;">' . html_entity_decode($var['WarningMsg']) . '</p></div></div></div>';
}
}
else
{
echo NO_WAR;
}
?>
</div>
</div>-->
</div>
<p class="negativefeedback">*Negative feedback described as red</p>
</div>
</div>
</div>
</div>
</div>
<?php include_once 'common/inc/footer.inc.php'; ?>
</body>
</html>