XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Espaces de nommage | |
pm | |
Variables | |
if(!is_object($GLOBALS['xoopsUser'])) | $xoopsConfig ['module_cache'] = 0 |
$GLOBALS ['xoopsOption']['template_main'] = 'pm_viewpmsg.tpl' | |
$valid_op_requests = array('out', 'save', 'in') | |
$_REQUEST ['op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in' | |
$start = empty($_REQUEST['start']) ? 0 : (int)$_REQUEST['start'] | |
$pm_handler = xoops_getModuleHandler('message') | |
if(isset($_POST['delete_messages']) &&(isset($_POST['msg_id'])||isset($_POST['msg_ids']))) if(isset($_POST['move_messages']) &&isset($_POST['msg_id'])) if(isset($_REQUEST['empty_messages'])) if($_REQUEST['op']==='out') elseif($_REQUEST['op']==='save') | else |
$total_messages = $pm_handler->getCount($criteria) | |
$pm_arr = $pm_handler->getAll($criteria, null, false, false) | |
if (count( $pm_arr) > 0) | |
$send_button = new XoopsFormButton('', 'send', _PM_SEND) | |
$delete_button = new XoopsFormButton('', 'delete_messages', _PM_DELETE, 'submit') | |
$move_button = new XoopsFormButton('', 'move_messages', ($_REQUEST['op'] === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit') | |
$empty_button = new XoopsFormButton('', 'empty_messages', _PM_EMPTY, 'submit') | |
$pmform = new XoopsForm('', 'pmform', 'viewpmsg.php', 'post', true) | |
$_REQUEST[ 'op'] = !empty($_REQUEST['op']) && in_array($_REQUEST['op'], $valid_op_requests) ? $_REQUEST['op'] : 'in' |
$delete_button = new XoopsFormButton('', 'delete_messages', _PM_DELETE, 'submit') |
$empty_button = new XoopsFormButton('', 'empty_messages', _PM_EMPTY, 'submit') |
$GLOBALS[ 'xoopsOption'][ 'template_main'] = 'pm_viewpmsg.tpl' |
$move_button = new XoopsFormButton('', 'move_messages', ($_REQUEST['op'] === 'save') ? _PM_UNSAVE : _PM_TOSAVE, 'submit') |
$pm_handler = xoops_getModuleHandler('message') |
$pmform = new XoopsForm('', 'pmform', 'viewpmsg.php', 'post', true) |
$send_button = new XoopsFormButton('', 'send', _PM_SEND) |
$start = empty($_REQUEST['start']) ? 0 : (int)$_REQUEST['start'] |
$total_messages = $pm_handler->getCount($criteria) |
$valid_op_requests = array('out', 'save', 'in') |
if (!is_object( $GLOBALS[ 'xoopsUser'])) $xoopsConfig[ 'module_cache'] = 0 |
if (isset( $_POST[ 'delete_messages']) &&(isset( $_POST[ 'msg_id'])||isset( $_POST[ 'msg_ids']))) if (isset( $_POST[ 'move_messages']) &&isset( $_POST[ 'msg_id'])) if (isset( $_REQUEST[ 'empty_messages'])) if ( $_REQUEST[ 'op']==='out') elseif ( $_REQUEST[ 'op']==='save') else |
if(count($pm_arr) > 0) |