Changeset 7535
- Timestamp:
- 11/20/12 15:50:34 (11 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/index.php
r7459 r7535 16 16 'enable_nextmatchs_class' => True 17 17 ); 18 19 18 require_once('../header.inc.php'); 20 19 $update_version = $GLOBALS['phpgw_info']['apps']['expressoMail1_2']['version']; 21 20 $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; 22 21 echo "<script type='text/javascript'>var template = '".$_SESSION['phpgw_info']['expressoMail1_2']['user']['preferences']['common']['template_set']."';</script>"; 23 echo "<script src='js/modal/modal.js'></script>"; 24 //jquery and Editor 25 echo ' 22 echo ' 26 23 <link rel="stylesheet" type="text/css" href="templates/default/main.css"></link> 27 28 24 <link rel="stylesheet" type="text/css" href="../phpgwapi/js/dftree/dftree.css"></link> 29 30 <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.spinner/jquery.spinner.css"></link> 31 <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.css"></link> 32 <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.print.css"></link> 33 <link rel="stylesheet" type="text/css" href="../prototype/plugins/icalendar/jquery.icalendar.css"></link> 34 <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.jrating/jRating.jquery.css"></link> 35 25 <link rel="Stylesheet" type="text/css" href="../prototype/plugins/jquery/jquery-ui.css" /> 26 <link rel="stylesheet" type="text/css" href="../prototype/plugins/zebradialog/css/zebra_dialog.css"></link> 27 <link rel="stylesheet" href="../prototype/plugins/treeview/jquery.treeview.css" type="text/css" media="screen" /> 28 <link rel="stylesheet" href="../prototype/modules/mail/css/followupflag.css" type="text/css" /> 29 <link rel="stylesheet" href="../prototype/modules/attach_message/attach_message.css" type="text/css" /> 30 <!-- <link rel="stylesheet" href="../prototype/modules/mail/css/label.css" type="text/css" /> --> 31 32 <script src="js/modal/modal.js"></script> 36 33 <script type="text/javascript" src="../prototype/plugins/jquery/jquery.min.js"></script> 37 <link href="../prototype/modules/filters/filters.css" rel="stylesheet" type="text/css">38 39 34 <script type="text/javascript" src="../prototype/plugins/jquery/jquery-ui.min.js"></script> 35 <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.contextMenu.js"></script> 40 36 <script src="../prototype/plugins/json2/json2.js" language="javascript"></script> 41 37 <script src="../prototype/plugins/ejs/ejs.js" language="javascript"></script> … … 52 48 <script src="../library/ckeditor/ckeditor.js" language="javascript" charset="utf-8"></script> 53 49 <script src="../library/ckeditor/adapters/jquery.js" language="javascript"></script> 54 <script src="../prototype/plugins/lazy/jquery.lazy.js" language="javascript"></script> 55 56 <link rel="Stylesheet" type="text/css" href="../prototype/plugins/jquery/jquery-ui.css" /> 57 58 <link rel="stylesheet" type="text/css" href="../prototype/plugins/contextmenu/jquery.contextMenu.css"></link> 59 <link rel="stylesheet" type="text/css" href="../prototype/plugins/zebradialog/css/zebra_dialog.css"></link> 60 61 <link rel="stylesheet" href="../prototype/plugins/farbtastic/farbtastic.css" type="text/css" > 62 <link rel="stylesheet" href="../prototype/plugins/fileupload/jquery.fileupload-ui.css" type="text/css" > 63 50 <script src="../prototype/plugins/lazy/jquery.lazy.js" language="javascript"></script> 64 51 <script type="text/javascript" src="../prototype/plugins/zebradialog/javascript/zebra_dialog.js"></script> 65 <script type="text/javascript" src="../prototype/plugins/datejs/date-pt-BR.js"></script>66 <script type="text/javascript" src="../prototype/plugins/datejs/sugarpak.js"></script>67 <script type="text/javascript" src="../prototype/plugins/datejs/parser.js"></script>68 <script type="text/javascript" src="../prototype/plugins/jq-raty/js/jquery.raty.min.js"></script>69 <script type="text/javascript" src="../prototype/plugins/jquery.jrating/jRating.jquery.js"></script>70 71 <script type="text/javascript" src="../prototype/plugins/watermark/jquery.watermarkinput.js"></script>72 <script type="text/javascript" src="../prototype/plugins/mask/jquery.maskedinput.js"></script>73 <script type="text/javascript" src="../prototype/plugins/alphanumeric/jquery.alphanumeric.js"></script>74 <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.fileupload.js"></script>75 <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.iframe-transport.js"></script>76 77 <script type="text/javascript" src="../prototype/plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script>78 <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.contextMenu.js"></script>79 <!-- <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.ui.position.js"></script> -->80 81 <script type="text/javascript" src="../prototype/modules/calendar/js/timezone.js"></script>82 <script type="text/javascript" src="../prototype/plugins/dateFormat/dateFormat.js"></script>83 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.date.js"></script>84 <script type="text/javascript" src="../prototype/modules/calendar/js/desktop.notification.js"></script>85 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.codecs.js"></script>86 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.alarms.js"></script>87 <script type="text/javascript" src="../prototype/modules/calendar/js/helpers.js"></script>88 <link rel="stylesheet" type="text/css" href="../prototype/plugins/freeow/style/freeow/freeow.css" >89 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.min.js"></script>90 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.js"></script>91 92 93 52 <script src="js/rich_text_editor.js" type="text/javascript"></script> 94 53 <script src="js/base64.js" type="text/javascript"></script> 95 96 <script type="text/javascript"> 97 User.moduleName = "expressoMail1_2"; 98 </script> 99 100 101 '; 54 <script type="text/javascript" src="../prototype/plugins/treeview/jquery.treeview.js"></script> 55 <script type="text/javascript" src="../prototype/plugins/treeview/lib/jquery.cookie.js"></script> 56 <script type="text/javascript" src="../prototype/plugins/block/jquery.blockUI.js"></script> 57 <script type="text/javascript" src="../prototype/plugins/scrollto/jquery.scrollTo.js"></script> 58 <script src="../prototype/modules/mail/js/foldertree.js" type="text/javascript"></script> 59 <script src="../prototype/modules/mail/js/label.js" type="text/javascript"></script> 60 <script src="../prototype/modules/mail/js/followupflag.js" type="text/javascript"></script> 61 '; 102 62 //---------------------------// 103 104 63 echo "<script src='js/globals.js?".$update_version."' type='text/javascript'></script>"; 105 64 echo "<script src='js/sniff_browser.js?".$update_version."' type='text/javascript'></script>"; … … 111 70 echo '<script type="text/javascript" src="../phpgwapi/js/wz_dragdrop/wz_dragdrop.js?'.$update_version.'"></script> 112 71 <script type="text/javascript" src="../phpgwapi/js/dJSWin/dJSWin.js?'.$update_version.'"></script> 113 <script type="text/javascript" src="../phpgwapi/js/x_tools/xtools.js?'.$update_version.'"></script>'; 114 115 echo ' 116 <script type="text/javascript" src="../prototype/plugins/treeview/jquery.treeview.js"></script> 117 <script type="text/javascript" src="../prototype/plugins/treeview/lib/jquery.cookie.js"></script> 118 <script type="text/javascript" src="../prototype/plugins/block/jquery.blockUI.js"></script> 119 <script type="text/javascript" src="../prototype/plugins/scrollto/jquery.scrollTo.js"></script> 120 121 <link rel="stylesheet" href="../prototype/plugins/treeview/jquery.treeview.css" type="text/css" media="screen" /> 122 123 <script src="../prototype/plugins/jqgrid/js/i18n/grid.locale-pt-br.js" type="text/javascript"></script> 124 <script src="../prototype/plugins/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> 125 <script src="../prototype/modules/mail/js/foldertree.js" type="text/javascript"></script> 126 127 <link rel="stylesheet" href="../prototype/plugins/jqgrid/css/ui.jqgrid.css" type="text/css" /> 128 <link rel="stylesheet" href="../prototype/plugins/jqgrid/themes/prognusone/jquery-ui-1.8.2.custom.css" type="text/css" /> 129 130 <script src="../prototype/plugins/countdown/jquery.countdown.min.js" type="text/javascript"></script> 131 <script src="../prototype/plugins/countdown/jquery.countdown-pt-BR.js" type="text/javascript"></script> 132 133 <script src="../prototype/modules/mail/js/label.js" type="text/javascript"></script> 134 <script src="../prototype/modules/mail/js/followupflag.js" type="text/javascript"></script> 135 136 <link rel="stylesheet" href="../prototype/modules/mail/css/followupflag.css" type="text/css" /> 137 <link rel="stylesheet" href="../prototype/modules/attach_message/attach_message.css" type="text/css" /> 138 <!-- <link rel="stylesheet" href="../prototype/modules/mail/css/label.css" type="text/css" /> -->'; 139 72 <script type="text/javascript" src="../phpgwapi/js/x_tools/xtools.js?'.$update_version.'"></script>'; 73 140 74 /* 141 75 * TODO: implementar o controle como preferência do usuário … … 147 81 echo "\n".'<link rel="stylesheet" type="text/css" href="../library/jcarousel/skins/default/skin.css" />'; 148 82 echo "\n".'<script src="../library/jcarousel/lib/jquery.jcarousel.min.js" type="text/javascript"></script>'; 149 150 83 //fancybox 151 84 echo "\n".'<link rel="stylesheet" type="text/css" href="../library/fancybox/jquery.fancybox-1.3.4.css" />'; … … 154 87 155 88 echo "<div id='overlay' style='background-color: #AAAAAAA; opacity: .50; filter:Alpha(Opacity=50); height: 100%; width: 100%; position: absolute; top: 0; left: 0; visibility: hidden; z-index: 30000000000000000000000'></div>"; 156 157 158 89 //Enable/Disable VoIP Service -> Voip Server Config 159 90 $voip_enabled = false; … … 173 104 } 174 105 } 175 176 106 //Local messages 177 107 $_SESSION['phpgw_info']['server']['expressomail']['enable_local_messages'] = $current_config['enable_local_messages']; … … 342 272 $("#menu2Container").hide(); 343 273 </script> 344 <script type="text/javascript" src="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.js"></script> 345 <script type="text/javascript" src="../prototype/plugins/timepicker/localization/jquery-ui-timepicker-pt-BR.js"></script> 346 <script type="text/javascript" src="../prototype/plugins/jquery/i18n/jquery.ui.datepicker-pt-BR.js"></script> 347 <link rel="Stylesheet" type="text/css" href="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.css" /> 348 <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/layout.css" /> 274 349 275 <!--<link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/style.css" /> --> 350 276 <script type="text/javascript" src="../prototype/modules/filters/filters.js"></script> 351 352 277 '; 353 354 278 355 279 // End Set Imap Folder names options … … 370 294 $mail_archiver_protocol = "https"; 371 295 $mail_archiver_port = "4334"; 372 } 373 296 } 374 297 //JS Variables (to add on jscripts variables, needed by dependence scripts following) 375 echo '<script type="text/javascript">var mail_archive_protocol="'.$mail_archiver_protocol.'"; var mail_archive_port="'.$mail_archiver_port.'";</script>'; 376 298 echo '<script type="text/javascript">var mail_archive_protocol="'.$mail_archiver_protocol.'"; var mail_archive_port="'.$mail_archiver_port.'";</script>'; 377 299 //CXF custom js files, from MailArchiver ArcServUtil JS files repository, intended to be running already: CORS support and custom TRANSPORT object 378 300 echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-xdr-adapter.js"></script>'; 379 301 echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-cors-request-object.js"></script>'; 380 302 echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcservutil/cxf-addon-cors-utils.js"></script>'; 381 382 303 //CXF UTILS MAIN FILE 383 echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcserv/ArchiveServices?js&nojsutils"></script>'; 384 304 echo '<script type="text/javascript" src="'.$mail_archiver_protocol.'://'.$mail_archiver_host.':'.$mail_archiver_port.'/arcserv/ArchiveServices?js&nojsutils"></script>'; 385 305 //QueryConfig add on 386 306 echo '<script src="js/MAQueryConfig.js?'.$update_version.'"></script>'; 387 307 //Expresso serialized format add on 388 echo '<script src="js/MAExpressoPattern.js?'.$update_version.'"></script>'; 389 308 echo '<script src="js/MAExpressoPattern.js?'.$update_version.'"></script>'; 390 309 //echo $obj -> getFilesJs("js/mail_archiver.js," . $GLOBALS['phpgw_info']['flags']['update_version']); 391 echo '<script src="js/mail_archiver.js?'.$update_version.'"></script>'; 392 310 echo '<script src="js/mail_archiver.js?'.$update_version.'"></script>'; 393 311 } 394 312 //echo "<script language='javascript'> var account_id = ".$GLOBALS['phpgw_info']['user']['account_id'].";var expresso_offline = false;</script>"; 395 396 313 $obj = createobject("expressoMail1_2.functions"); 397 398 314 // setting timezone preference 399 315 $zones = $obj->getTimezones(); 400 316 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 401 402 317 // este arquivo deve ser carregado antes que 403 318 // os demais pois nele contem a função get_lang … … 434 349 <script type="text/javascript">connector.updateVersion = "'.$update_version.'";</script>'; 435 350 436 437 438 351 // Get Preferences or redirect to preferences page. 439 352 $GLOBALS['phpgw']->preferences->read_repository(); … … 444 357 unset($_SESSION['phpgw_info']['expressomail']['server']['global_denied_users']); 445 358 unset($_SESSION['phpgw_info']['expressomail']['server']['global_denied_groups']); 359 360 echo ' 361 <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.spinner/jquery.spinner.css"></link> 362 <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.css"></link> 363 <link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.print.css"></link> 364 <link rel="stylesheet" type="text/css" href="../prototype/plugins/icalendar/jquery.icalendar.css"></link> 365 <link rel="stylesheet" type="text/css" href="../prototype/plugins/jquery.jrating/jRating.jquery.css"></link> 366 <link href="../prototype/modules/filters/filters.css" rel="stylesheet" type="text/css"> 367 <link rel="stylesheet" href="../prototype/plugins/farbtastic/farbtastic.css" type="text/css" > 368 <link rel="stylesheet" href="../prototype/plugins/fileupload/jquery.fileupload-ui.css" type="text/css" > 369 <link rel="stylesheet" type="text/css" href="../prototype/plugins/contextmenu/jquery.contextMenu.css"></link> 370 <link rel="stylesheet" href="../prototype/plugins/jqgrid/css/ui.jqgrid.css" type="text/css" /> 371 <link rel="stylesheet" href="../prototype/plugins/jqgrid/themes/prognusone/jquery-ui-1.8.2.custom.css" type="text/css" /> 372 <link rel="Stylesheet" type="text/css" href="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.css" /> 373 <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/layout.css" /> 374 375 <script type="text/javascript" src="../prototype/plugins/datejs/date-pt-BR.js"></script> 376 <script type="text/javascript" src="../prototype/plugins/datejs/sugarpak.js"></script> 377 <script type="text/javascript" src="../prototype/plugins/datejs/parser.js"></script> 378 <script type="text/javascript" src="../prototype/plugins/jq-raty/js/jquery.raty.min.js"></script> 379 <script type="text/javascript" src="../prototype/plugins/jquery.jrating/jRating.jquery.js"></script> 380 <script type="text/javascript" src="../prototype/plugins/watermark/jquery.watermarkinput.js"></script> 381 <script type="text/javascript" src="../prototype/plugins/mask/jquery.maskedinput.js"></script> 382 <script type="text/javascript" src="../prototype/plugins/alphanumeric/jquery.alphanumeric.js"></script> 383 <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.fileupload.js"></script> 384 <script type="text/javascript" src="../prototype/plugins/fileupload/jquery.iframe-transport.js"></script> 385 <script type="text/javascript" src="../prototype/plugins/qtip/jquery.qtip-1.0.0-rc3.min.js"></script> 386 <!-- <script type="text/javascript" src="../prototype/plugins/contextmenu/jquery.ui.position.js"></script> --> 387 <script type="text/javascript" src="../prototype/modules/calendar/js/timezone.js"></script> 388 <script type="text/javascript" src="../prototype/plugins/dateFormat/dateFormat.js"></script> 389 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.date.js"></script> 390 <script type="text/javascript" src="../prototype/modules/calendar/js/desktop.notification.js"></script> 391 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.codecs.js"></script> 392 <script type="text/javascript" src="../prototype/modules/calendar/js/calendar.alarms.js"></script> 393 <script type="text/javascript" src="../prototype/modules/calendar/js/helpers.js"></script> 394 <link rel="stylesheet" type="text/css" href="../prototype/plugins/freeow/style/freeow/freeow.css" > 395 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.min.js"></script> 396 <script type="text/javascript" src="../prototype/plugins/freeow/jquery.freeow.js"></script> 397 <script src="../prototype/plugins/jqgrid/js/i18n/grid.locale-pt-br.js" type="text/javascript"></script> 398 <script src="../prototype/plugins/jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script> 399 <script src="../prototype/plugins/countdown/jquery.countdown.min.js" type="text/javascript"></script> 400 <script src="../prototype/plugins/countdown/jquery.countdown-pt-BR.js" type="text/javascript"></script> 401 <script type="text/javascript" src="../prototype/plugins/timepicker/jquery-ui-timepicker-addon.js"></script> 402 <script type="text/javascript" src="../prototype/plugins/timepicker/localization/jquery-ui-timepicker-pt-BR.js"></script> 403 <script type="text/javascript" src="../prototype/plugins/jquery/i18n/jquery.ui.datepicker-pt-BR.js"></script> 404 <script type="text/javascript"> 405 User.moduleName = "expressoMail1_2"; 406 </script> 407 '; 446 408 ?> 447 409 <!-----Expresso Mail - Version Updated:<?=$update_version?>--------> -
trunk/expressoMail1_2/js/main.js
r7529 r7535 184 184 185 185 }*/ 186 $.ajax({ 187 url: "controller.php?" + $.param( {action: "$this.imap_functions.getMessagesIds", 188 folder: "INBOX", 186 187 //MAILARCHIVER-02 188 //Try to get ArchiveServices object directly 189 if(ArchiveServices) 190 expresso_mail_archive.Startup(); 191 //ArchiveServices not runnnig: catch the user preferences to set up message at header 192 else{ 193 if(preferences.use_local_messages=="1") 194 write_msg(get_lang('Sorry, but Mail Archiver does not seems to be running or installed at this workstation. By now, we are turning off local messages!')); 195 } 196 cExecute ("$this.imap_functions.get_range_msgs2&folder=INBOX&msg_range_begin=1&msg_range_end="+preferences.max_email_per_page+"&sort_box_type=SORTARRIVAL&search_box_type=ALL&sort_box_reverse=1", handler_draw_box); 197 //cExecute ("$this.db_functions.get_dropdown_contacts", save_contacts); //Save contacts needs preferences. 198 $.ajax({ 199 async: false, 200 url: "controller.php?" + $.param( {action: "$this.imap_functions.getMessagesIds", 201 folder: get_current_folder(), 202 msg_range_begin: "0", 203 msg_range_end: "0", 189 204 sort_box_type: "SORTARRIVAL", 190 search_box_type: "ALL",205 search_box_type: search_box_type, 191 206 sort_box_reverse: "1" 192 207 }), 193 208 success: function(data){ 194 209 data = connector.unserialize(data); 195 if(data){ 210 if(data){ 196 211 var _data = {}; 197 212 $.each(data,function(index,value){ 198 if ( value){199 _data[ index] = value;213 if (data[index]){ 214 _data[data[index]] = data[index]; 200 215 } 201 216 }); … … 209 224 connector.hideProgressBar(); 210 225 } 211 }); 212 /*Carrega a lista de mensagens*/ 213 214 //MAILARCHIVER-02 215 //Try to get ArchiveServices object directly 216 if(ArchiveServices) 217 expresso_mail_archive.Startup(); 218 //ArchiveServices not runnnig: catch the user preferences to set up message at header 219 else{ 220 if(preferences.use_local_messages=="1") 221 write_msg(get_lang('Sorry, but Mail Archiver does not seems to be running or installed at this workstation. By now, we are turning off local messages!')); 222 } 223 224 var handler_populateSelectedMsgs = function(data){ 225 populateSelectedMsgs(data); 226 } 227 cExecute ("$this.imap_functions.get_msgs&folder=INBOX&sort_box_type=SORTARRIVAL&search_box_type=ALL&sort_box_reverse=1&msg_range_begin=1", handler_populateSelectedMsgs); 228 //Substituido por padrão Jquery 229 cExecute ("$this.imap_functions.get_range_msgs2&folder=INBOX&msg_range_begin=1&msg_range_end="+preferences.max_email_per_page+"&sort_box_type=SORTARRIVAL&search_box_type=ALL&sort_box_reverse=1", handler_draw_box); 230 //cExecute ("$this.db_functions.get_dropdown_contacts", save_contacts); //Save contacts needs preferences. 226 }); 231 227 if(preferences.hide_folders == "1") 232 228 Element('divAppboxHeader').innerHTML = title_app_menu;
Note: See TracChangeset
for help on using the changeset viewer.