-
Notifications
You must be signed in to change notification settings - Fork 1
/
sent.php
34 lines (27 loc) · 1.54 KB
/
sent.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
<?php
include("header.php");
include(ICMS_ROOT_PATH."/header.php");
$immenu_message_handler = \icms_getModuleHandler('message');
$criteriaOr = new CriteriaCompo();
$criteriaOr->add(new Criteria('message_status', _IMMESSAGE_STATUS_SEND));
$criteriaOr->add(new Criteria('message_status', _IMMESSAGE_STATUS_READ), 'OR');
$criteriaOr->add(new Criteria('message_status', _IMMESSAGE_STATUS_TRASH), 'OR');
$criteria = new CriteriaCompo();
$criteria->add($criteriaOr, 'AND');
$criteria->add(new Criteria('message_show_on_sent', 1), 'AND');
$criteria->add(new Criteria('message_from_uid', \icms::$user->getVar('uid')),'AND');
$objectTable = new IcmsPersistableTable($immenu_message_handler, $criteria, array());
$objectTable->isForUserSide();
$objectTable->setDefaultOrder('message_modification_date');
$objectTable->addColumn(new IcmsPersistableColumn('message_status', 'center'));
$objectTable->addColumn(new IcmsPersistableColumn('message_to_uid', 'left'));
$objectTable->addColumn(new IcmsPersistableColumn('message_title', 'center'));
$objectTable->addColumn(new IcmsPersistableColumn('message_modification_date', 'center'));
$op = isset($_GET['op']) ? $_GET['op'] : "";
$objectTable->addIntroButton('addmenu', 'message.php?op=mod', _CO_IMMESSAGE_MESSAGE_COMPOSE);
$objectTable->addQuickSearch(array('menu_title',"menu_desc"));
$objectTable->addCustomAction('getMessageResponseButton');
$objectTable->addCustomAction('getMessageForwardButton');
$objectTable->addCustomAction('getMessageDeleteFromSentButton');
$objectTable->render();
include(ICMS_ROOT_PATH."/footer.php");