function enviar(miforma) { if(confirm("'.get_lang('SureYouWantToDeleteSelectedMessages', '').'")) miforma.submit(); } function select_all(formita) { for (i=0;i '; /* MAIN CODE */ if (isset($_GET['f']) && $_GET['f']=='social') { $this_section = SECTION_SOCIAL; $interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/social/home.php','name' => get_lang('Social')); $interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox')); } else { $this_section = SECTION_MYPROFILE; $interbreadcrumb[]= array ('url' => api_get_path(WEB_PATH).'main/auth/profile.php','name' => get_lang('Profile')); $interbreadcrumb[]= array ('url' => '#','name' => get_lang('Outbox')); } $actions = ''; if (api_get_setting('extended_profile') == 'true') { if (api_get_setting('allow_social_tool') == 'true' && api_get_setting('allow_message_tool') == 'true') { $actions .= ''.Display::return_icon('shared_profile.png', get_lang('ViewSharedProfile')).''; } if (api_get_setting('allow_message_tool') == 'true') { //echo ''.Display::return_icon('inbox.png').' '.get_lang('Messages').''; $actions .= ''.Display::return_icon('message_new.png',get_lang('ComposeMessage')).''; $actions .= ''.Display::return_icon('inbox.png',get_lang('Inbox')).''; $actions .= ''.Display::return_icon('outbox.png',get_lang('Outbox')).''; } } $info_delete_outbox =array(); $info_delete_outbox = isset($_GET['form_delete_outbox']) ? explode(',',$_GET['form_delete_outbox']) : ''; $count_delete_outbox = count($info_delete_outbox) - 1; if (isset($info_delete_outbox[0]) && trim($info_delete_outbox[0])=='delete') { for ($i = 1; $i <= $count_delete_outbox; $i++) { MessageManager::delete_message_by_user_sender(api_get_user_id(),$info_delete_outbox[$i]); } $message_box=get_lang('SelectedMessagesDeleted'). ' 
'. get_lang('BackToOutbox'). ''; Display::display_normal_message(api_xml_http_response_encode($message_box),false); exit; } $action = null; if (isset($_REQUEST['action'])) { $action = $_REQUEST['action']; } $social_right_content = ''; if (api_get_setting('allow_social_tool') == 'true') { //Block Social Menu $social_menu_block = SocialManager::show_social_menu('messages'); $social_right_content .= '
'; $social_right_content .= ''. Display::return_icon('back.png', get_lang('Back'), array(), 32).''; $social_right_content .= '
'; } //MAIN CONTENT if ($action == 'delete') { $delete_list_id=array(); if (isset($_POST['out'])) { $delete_list_id=$_POST['out']; } if (isset($_POST['id'])) { $delete_list_id=$_POST['id']; } for ($i=0;$iassign('social_menu_block', $social_menu_block); $tpl->assign('social_right_content', $social_right_content); $social_layout = $tpl->get_template('social/inbox.tpl'); $tpl->display($social_layout); } else { $content = $social_right_content; $tpl->assign('actions', $actions); //$tpl->assign('message', $show_message); $tpl->assign('content', $content); $tpl->display_one_col_template(); }