-
Notifications
You must be signed in to change notification settings - Fork 0
/
messages_inbox.php
executable file
·124 lines (111 loc) · 7.79 KB
/
messages_inbox.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
<?php
require_once 'common/config/config.inc.php';
require_once CONTROLLERS_PATH . FILENAME_CUSTOMER_SUPPORT_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 MESSAGE_INBOX_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">
$(document).ready(function(){
$('.drop_down1').sSelect();
});
</script>
</head>
<body>
<em> <div id="navBar">
<?php include_once INC_PATH . 'top-header.inc.php'; ?>
</div>
</em>
<div class="header"><div class="layout">
</div>
</div>
<?php include_once INC_PATH . 'header.inc.php'; ?>
<div id="ouderContainer" class="ouderContainer_1">
<div class="layout">
<div class=" ">
<?php if ($objCore->displaySessMsg()) {
?>
<div class="successMessage">
<?php
echo $objCore->displaySessMsg();
$objCore->setSuccessMsg('');
$objCore->setErrorMsg('');
?>
</div>
<?php }
?>
</div>
<div class="add_pakage_outer">
<div class="top_container" style="padding-bottom: 18px;">
<div class="top_header border_bottom"><h1><?php echo SUPP;?></h1></div>
</div>
<div class="body_inner_bg main_outbox_sec">
<div class="add_edit_pakage compose_message">
<div class="compose_left_outer">
<ul class="compose_left">
<li class="compose_box"><a href="<?php echo $objCore->getUrl('compose_message.php', array('place' => 'compose')); ?>"><?php echo COMPOSE; ?></a></li> <li class="compose_active"><a style=" color: #56a1f2;" href="<?php echo $objCore->getUrl('messages_inbox.php', array('place' => 'inbox')); ?>"><?php echo INBOX; ?><small><i class="fa fa-angle-right"></i></small></a></li>
<li class="outbox"><a href="<?php echo $objCore->getUrl('outbox_messages.php', array('place' => 'outbox')); ?>"><?php echo OUTBOX; ?></a></li>
</ul>
</div>
<div class="compose_right_outer">
<div class="compose_right scrollable">
<h2><?php echo INBOX; ?></h2>
<ul class="feebacks_sec">
<li class="heading">
<span class="customer"><?php echo TICK_ID; ?></span>
<span class="product"><?php echo SENDER; ?></span>
<span class="read"><?php echo SUBJECT; ?></span>
<span class="date"><?php echo TIME; ?></span>
<span class="action"><?php echo ACTION; ?></span>
</li>
<?php
if (count($objPage->arrCustomerInboxSupportList) > 0) {
$varcounter = 0;
$varPrevId = 0;
foreach ($objPage->arrCustomerInboxSupportList as $valCustomerInboxSupportDetails) {
$msgInbox ='';
if($valCustomerInboxSupportDetails['Subject'] !=''){
if(strlen($valCustomerInboxSupportDetails['Subject']) > 60){
$msgInbox=substr($valCustomerInboxSupportDetails['Subject'], 0, 60).'...';
}else{
$msgInbox=$valCustomerInboxSupportDetails['Subject'];
}
}
?>
<li <?php echo $varcounter % 2 == 0 ? 'class="bg_color"' : '' ?>>
<span class="customer"><?php echo ($valCustomerInboxSupportDetails['fkParentID'] <> $varPrevId) ? $valCustomerInboxSupportDetails['fkParentID'] : ' '; ?></span>
<span class="product"><?php echo $valCustomerInboxSupportDetails['FromUserType'] ?></span>
<span class="read"><a title="<?php echo VIEW_MESSAGE; ?>" href="<?php echo $objCore->getUrl('view_inbox_message.php', array('frmInboxChangeAction' => 'view','frmID' => $valCustomerInboxSupportDetails['pkSupportID'],'myAction'=>'action')); ?>"><?php
if ($valCustomerInboxSupportDetails['IsRead'] == '0') {
echo "<strong>" . $msgInbox . "</strong>";
} else {
echo $msgInbox;
}
?></a></span>
<span class="date"><?php echo $objCore->localDateTime(date($valCustomerInboxSupportDetails['SupportDateAdded']), DATE_TIME_FORMAT_SITE_FRONT_MINUTES); ?></span>
<span class="action action2 action_icon">
<a title="view message" href="<?php echo $objCore->getUrl('view_inbox_message.php', array('frmID' => $valCustomerInboxSupportDetails['pkSupportID'], 'frmInboxChangeAction' => 'view','myAction'=>'action')); ?>"><i class="fa fa-eye" style="font-size:16px;line-height: 35px;color: #6db61f;"></i></a>
<a title="delete message" href="<?php echo $objCore->getUrl('message_action.php', array('frmID' => $valCustomerInboxSupportDetails['pkSupportID'], 'frmChangeAction' => 'Delete')); ?>" onClick="return confirm('<?php echo WANT_DELETE; ?>')"><i class="fa fa-trash-o" style="font-size: 16px; margin-left:10px;line-height: 35px; color: #7f7f7f;"></i></a>
</span>
</li>
<?php
$varcounter++;
$varPrevId = $valCustomerInboxSupportDetails['fkParentID'];
}
} else {
echo '<li class="no_resutl_found">' . FRONT_CUSTOMER_SUPPORT_ERROR_MSG . '</li>';
}
?>
</ul>
</div>
</div>
</div> </div>
</div>
</div>
</div>
<?php include_once 'common/inc/footer.inc.php'; ?>
</body>
</html>