Changeset 4493 for sandbox


Ignore:
Timestamp:
05/24/11 13:54:20 (13 years ago)
Author:
adriano
Message:

Ticket #812 - Melhorias nas interfaces de leitura e composiacao de email do Expresso Mail

Location:
sandbox/2.2.0.2/expressoMail1_2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/inc/class.imap_functions.inc.php

    r4468 r4493  
    16771677                    continue; 
    16781678                  
    1679                  $img = "<IMG id='".$msg_folder.";;".$msg_number.";;".$i.";;".$image['pid'].";;".$image['encoding']."' style='border:2px solid #fde7bc;padding:5px' title='".$this->functions->getLang("Click here do view (+)")."'src=./inc/show_thumbs.php?&msg_num=".$msg_number."&msg_folder=".$msg_folder."&msg_part=".$image['pid'].">"; 
    1680                  $href = "<a onMouseDown='save_image(event,this,\"".$image['type']."\")' href='#".$msg_folder.";;".$msg_number.";;".$i.";;".$image['pid'].";;".$image['encoding']."' onClick=\"window.open('./inc/show_img.php?msg_num=".$msg_number."&msg_folder=".$msg_folder."&msg_part=".$image['pid']."','mywindow','width=700,height=600,scrollbars=yes');\">". $img ."</a>"; 
    1681                  $thumbs_array[] = $href; 
     1679                 $img = "<img id='".$msg_folder.";;".$msg_number.";;".$i.";;".$image['pid'].";;".$image['encoding']."' title='".$this->functions->getLang("Click here do view (+)")."'src=./inc/show_thumbs.php?&msg_num=".$msg_number."&msg_folder=".$msg_folder."&msg_part=".$image['pid']." />"; 
     1680                 $href = "./inc/show_img.php?msg_num=".$msg_number."&msg_folder=".$msg_folder."&msg_part=".$image['pid']; 
     1681                                 $anchor = "<a class=\"expressomail-thumbs-link\" onMouseDown='save_image(event,this,\"".$image['type']."\")' href=\"".$href."\" onclick=\"window.open('".$href."','mywindow','width=700,height=600,scrollbars=yes');return false;\">". $img ."</a>"; 
     1682                 $thumbs_array[] = $anchor;  
    16821683                 $i++; 
    16831684                
  • sandbox/2.2.0.2/expressoMail1_2/index.php

    r4339 r4493  
    2828 
    2929 
     30        /* 
     31         * TODO: implementar o controle como preferência do usuário 
     32         * 
     33         */ 
     34        $jcarousel = false; 
     35        if ($jcarousel) { 
     36                //jquery 
     37                echo "\n".'<script src="../library/jquery/jquery-1.6.1.min.js" type="text/javascript"></script>'; 
     38                //jcarousel 
     39                echo "\n".'<script src="../library/jcarousel/lib/jquery.jcarousel.min.js" type="text/javascript"></script>'; 
     40                echo "\n".'<link rel="stylesheet" type="text/css" href="../library/jcarousel/skins/default/skin.css" />'; 
     41                //fancybox 
     42                echo "\n".'<script src="../library/fancybox/jquery.fancybox-1.3.4.pack.js" type="text/javascript"></script>'; 
     43                echo "\n".'<script src="../library/fancybox/jquery.easing-1.4.pack.js" type="text/javascript"></script>'; 
     44                echo "\n".'<script src="../library/fancybox/jquery.mousewheel-3.0.4.pack.js" type="text/javascript"></script>';  
     45                echo "\n".'<link rel="stylesheet" type="text/css" href="../library/fancybox/jquery.fancybox-1.3.4.css" />';              
     46        } 
    3047 
    3148         
  • sandbox/2.2.0.2/expressoMail1_2/js/draw_api.js

    r4461 r4493  
    668668} 
    669669 
    670 function getStyle(el,styleProp) 
    671 { 
     670function getStyle(el,styleProp) { 
    672671        var x = document.getElementById(el); 
    673672        if (x.currentStyle) 
     
    919918        } 
    920919} 
     920 
    921921function setColSizesCookie() { 
    922922        var str = "maillist_colsizes=" + colSizes[0].join() + ":" + colSizes[1].join(); 
     
    926926        document.cookie = str; 
    927927} 
     928 
    928929function getColSizesCookie() { 
    929930        var search = "maillist_colsizes="; 
     
    943944// Draw the inbox and another folders 
    944945function draw_box(headers_msgs, msg_folder, alternate){ 
    945  
    946         /* 
     946        /* 
    947947         * When the paging response is not in the correct folder you need to change folder 
    948948         * This occurs when the Ajax response is not fast enough and the user click in outher 
     
    12441244// Passar o parâmetro offset para esta função 
    12451245function make_tr_message(headers_msgs, msg_folder, offsetToGMT){ 
    1246                 if (typeof offsetToGMT == 'undefined') 
    1247                 { 
    1248                     // In older local messages headers_msgs.offsetToGMT is undefined. 
    1249                     offsetToGMT = typeof headers_msgs.offsetToGMT != 'undefined'?headers_msgs.offsetToGMT:0; 
    1250                 } 
     1246                if (typeof offsetToGMT == 'undefined') 
     1247                { 
     1248                        // In older local messages headers_msgs.offsetToGMT is undefined. 
     1249                        offsetToGMT = typeof headers_msgs.offsetToGMT != 'undefined'?headers_msgs.offsetToGMT:0; 
     1250                } 
    12511251                var tr_element = document.createElement('tr'); 
    12521252                if(typeof(preferences.line_height) != 'undefined') 
     
    15471547        //update_menu(); 
    15481548} 
     1549 
    15491550function draw_header_box(){ 
    15501551        switch(sort_box_type){ 
     
    15711572        document.getElementById("message_header_"+(sort_box_type.lastIndexOf("SORT") != "-1" ? sort_box_type : "SORTARRIVAL")+"_"+numBox ).innerHTML = "<B>"+type_name+"</B><img src ='templates/"+template+"/images/arrow_"+(sort_box_reverse == 1 ? 'desc' : 'asc')+"endant.gif'>"; 
    15721573} 
     1574 
    15731575function draw_message(info_msg, ID){ 
    15741576        var content = document.getElementById('content_id_' + ID); 
     
    15881590        img_next_msg.style.cursor = 'pointer'; 
    15891591 
    1590         var folder_id = ID.match(/\d+/)[0]; 
    1591         var folder; 
    1592  
    1593         //Correção para fazer funcionar e-mails assinados no formato encapsulado. 
    1594        // folder_id = info_msg.original_ID ? info_msg.original_ID: info_msg.msg_number; 
    1595         if ((folder = document.getElementById(info_msg.original_ID)) == null) 
    1596         //if ((folder = document.getElementById(info_msg.msg_number)) == null) 
    1597             folder = document.getElementById(info_msg.msg_number); 
     1592        var folder_id = ID.match(/\d+/)[0]; 
     1593        var folder; 
     1594 
     1595        //Correção para fazer funcionar e-mails assinados no formato encapsulado. 
     1596   // folder_id = info_msg.original_ID ? info_msg.original_ID: info_msg.msg_number; 
     1597        //if ((folder = document.getElementById(info_msg.msg_number)) == null) 
     1598        if ((folder = Element(info_msg.original_ID)) == null) 
     1599                folder = Element(info_msg.msg_number); 
     1600                 
    15981601        if (!folder){ 
    15991602                delete_border(ID); 
    16001603                return; 
    1601                 } 
     1604        } 
    16021605        if (folder){ // mensagem local criptografada nao tem ID da pasta local 
    16031606                if (folder.nextSibling){ 
     
    16871690        var tbody_message = document.createElement("TBODY"); 
    16881691        table_message.border = "0"; 
    1689         table_message.width = "100%"; 
    1690  
     1692        //table_message.width = "100%"; 
     1693        //k! 
     1694        table_message.setAttribute("class", "expressomail-message-body"); 
     1695        table_message.setAttribute("className", "expressomail-message-body"); 
    16911696        ////////////////////////////////////////////////////////////////////////////////////////////////////// 
    16921697        //Make the options message. 
     
    17161721 
    17171722        td.innerHTML = _name.bold() + ', ' + info_msg.smalldate; 
     1723        //k! 
    17181724        if (info_msg.attachments && info_msg.attachments.length > 0) 
    17191725                td.innerHTML += "&nbsp<img style='cursor:pointer' onclick='javascript:Element(\"option_hide_more_"+ID+"\").onclick()' src ='templates/"+template+"/images/clip.gif' title='"+info_msg.attachments[0].name+"'>"; 
     
    18161822        option_forward.onclick = function(){new_message('forward', ID);}; 
    18171823        option_forward.onmouseover=function () { this.className='message_options_active'; }; 
    1818         option_forward.onmouseout=function () { this.className='message_options' }; 
     1824        option_forward.onmouseout=function () { this.className='message_options' }; 
    18191825        option_forward.innerHTML = get_lang('Forward'); 
    18201826        options.appendChild(space1); 
     
    19641970            } 
    19651971            else{ 
    1966                 //this.innerHTML += "Mais Informaᅵᅵes"; 
    19671972                this.value = 'more_cert'; 
    19681973                Element("div_message_scroll_"+ID).style.height = (_height - _offset)+"px"; 
     
    22812286        tr5.appendChild(subject); 
    22822287        tbody_message_others_options.appendChild(tr5); 
    2283         if ( info_msg.attachments && info_msg.attachments.length > 0 ){ 
    2284         var tr6 = document.createElement("TR"); 
    2285                 tr6.className = "tr_message_header"; 
    2286                 var td6 = document.createElement("TD"); 
    2287                 td6.innerHTML = get_lang("Attachments: "); 
    2288  
    2289                 var attachments = document.createElement("TD"); 
    2290                 td6.vAlign = "top"; 
    2291                 attachments.align='left'; 
    2292                 if(info_msg.attachments.length >= 1) { 
    2293                         if(info_msg.attachments.length > 1) { 
    2294                                 var link_attachment      = document.createElement("A"); 
    2295                                  if(proxy_mensagens.is_local_folder(current_folder)) 
    2296                                         link_attachment.setAttribute("href", "javascript:expresso_local_messages.download_all_local_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    2297                                 else 
    2298                                         link_attachment.setAttribute("href", "javascript:download_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    2299                                 link_attachment.innerHTML = " "+info_msg.attachments.length+' '+get_lang('files')+' :: '+get_lang('Download all atachments'); 
    2300                                 attachments.appendChild(link_attachment); 
    2301                         } 
    2302                         if(parseInt(preferences.remove_attachments_function)) 
    2303                         { 
    2304                                 attachments.appendChild(document.createTextNode('  ')); 
    2305                                 var del_attachments = document.createElement("A"); 
    2306                                 del_attachments.setAttribute("href", "javascript:remove_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    2307                                 del_attachments.innerHTML = get_lang('remove all attachments'); 
    2308                                 attachments.appendChild(del_attachments); 
    2309                         } 
    2310                         attachments.appendChild(document.createElement('BR')); 
    2311                 } 
    2312  
    2313                 attachments.id = "attachments_" + ID; 
    2314                 for (var i=0; i<info_msg.attachments.length; i++){ 
     2288        //k! 
     2289        if ( info_msg.attachments && info_msg.attachments.length > 0 ) 
     2290        { 
     2291                var div_attach = document.createElement("DIV"); 
     2292                div_attach.setAttribute("class", "expressomail-attachments"); 
     2293                div_attach.setAttribute("className", "expressomail-attachments"); //for IE 
     2294                 
     2295                var div_attach_lbl = document.createElement("span"); 
     2296                div_attach_lbl.setAttribute("class", "expressomail-attachments-label"); 
     2297                div_attach_lbl.setAttribute("className", "expressomail-attachments-label"); //for IE 
     2298                div_attach_lbl.innerHTML = get_lang("Attachments: "); 
     2299                 
     2300                var div_attach_list = document.createElement("UL"); 
     2301                div_attach_list.setAttribute("id", "attachments_" + ID); 
     2302                div_attach_list.setAttribute("class", "expressomail-attachments-list"); 
     2303                div_attach_list.setAttribute("className", "expressomail-attachments-list"); //for IE 
     2304                 
     2305                if(info_msg.attachments.length > 1) { 
     2306                        var li_link_attachment = document.createElement("LI"); 
     2307                        var link_attachment     = document.createElement("A"); 
     2308                        link_attachment.setAttribute("class", "expressomail-attachments-link"); 
     2309                        link_attachment.setAttribute("className", "expressomail-attachments-link"); //for IE 
     2310         
     2311                        if(proxy_mensagens.is_local_folder(current_folder)) 
     2312                                link_attachment.setAttribute("href", "javascript:expresso_local_messages.download_all_local_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
     2313                        else 
     2314                                link_attachment.setAttribute("href", "javascript:download_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
     2315                        link_attachment.innerHTML = " "+info_msg.attachments.length+' '+get_lang('files')+' :: '+get_lang('Download all atachments'); 
     2316                        li_link_attachment.appendChild(link_attachment); 
     2317                        div_attach_list.appendChild(li_link_attachment); 
     2318                } 
     2319                 
     2320                if(parseInt(preferences.remove_attachments_function)) 
     2321                { 
     2322                        var li_link_attachment = document.createElement("LI"); 
     2323                        var link_attachment     = document.createElement("A"); 
     2324                        link_attachment.setAttribute("class", "expressomail-attachments-link"); 
     2325                        link_attachment.setAttribute("className", "expressomail-attachments-link"); //for IE 
     2326                        link_attachment.setAttribute("href", "javascript:remove_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
     2327                        link_attachment.innerHTML = get_lang('remove all attachments'); 
     2328 
     2329                        li_link_attachment.appendChild(link_attachment); 
     2330                        div_attach_list.appendChild(li_link_attachment); 
     2331                } 
     2332                 
     2333                for (var i=0; i<info_msg.attachments.length; i++) 
     2334                { 
     2335                        var li_link_attachment = document.createElement("LI"); 
    23152336                        var link_attachment = document.createElement("A"); 
    23162337                        link_attachment.setAttribute("href", proxy_mensagens.link_anexo(info_msg,i)); 
    2317                         link_attachment.innerHTML = url_decode(info_msg.attachments[i].name); 
    2318                         link_attachment.innerHTML += " ("+borkb(info_msg.attachments[i].fsize)+")"; 
    2319  
    2320                         if((url_decode(info_msg.attachments[i].name).indexOf(".ics")!=-1) || 
    2321                                         (url_decode(info_msg.attachments[i].name).indexOf(".vcard")!=-1)) 
     2338                        link_attachment.innerHTML = url_decode(info_msg.attachments[i].name) + " ("+borkb(info_msg.attachments[i].fsize)+")"; 
     2339                        link_attachment.setAttribute("name", url_decode(info_msg.attachments[i].name)); 
     2340 
     2341                        //k trocar por match??? 
     2342                        if((url_decode(info_msg.attachments[i].name).indexOf(".ics")!=-1) || (url_decode(info_msg.attachments[i].name).indexOf(".vcard")!=-1)) 
    23222343                        { 
    23232344                                //Link para importar calendário 
     
    23312352                                link_attachment.appendChild(link_import_attachment); 
    23322353                        } 
    2333  
    2334                         link_attachment.innerHTML += '<br/>'; 
    2335                         attachments.appendChild(link_attachment); 
    2336                 } 
     2354                 
     2355                        li_link_attachment.appendChild(link_attachment); 
     2356                        div_attach_list.appendChild(li_link_attachment); 
     2357                } 
     2358                div_attach.appendChild(div_attach_lbl); 
     2359                div_attach.appendChild(div_attach_list); 
     2360                 
     2361                var tr6 = document.createElement("TR"); 
     2362                tr6.className = "tr_message_header"; 
     2363                var td6 = document.createElement("TD"); 
     2364                td6.setAttribute("colspan", "2"); 
     2365                td6.vAlign = "top"; 
     2366                td6.appendChild(div_attach); 
    23372367                tr6.appendChild(td6); 
    2338                 tr6.appendChild(attachments); 
    23392368                tbody_message_others_options.appendChild(tr6); 
    2340         } 
    2341  
    2342  
     2369        }        
     2370        //k!! 
    23432371        var div = document.createElement("DIV"); 
    23442372        div.id = "div_message_scroll_"+ID; 
    2345         div.style.background = 'WHITE'; 
    2346         div.style.overflow = "auto"; 
    2347         div.style.width = "100%"; 
     2373        div.setAttribute('class', 'div_message_scroll'); 
     2374        div.setAttribute('className', 'div_message_scroll'); //for IE 
    23482375        table_message_others_options.appendChild(tbody_message_others_options); 
    23492376        var tr = document.createElement("TR"); 
     
    24492476        //Make the thumbs of the message. 
    24502477        ////////////////////////////////////////////////////////////////////////////////////////////////////// 
    2451         if ((info_msg.thumbs)&&(info_msg.thumbs.length > 0)){ 
    2452                 var table_message_thumbs = document.createElement("TABLE"); 
    2453                 table_message_thumbs.width = "80%"; 
    2454                 table_message_thumbs.style.borderTop = "2px solid rgb(170, 170, 170)"; 
    2455                 var tbody_message_thumbs = document.createElement("TBODY"); 
    2456                 var tr = document.createElement("TR"); 
    2457                 tr.className = "tr_message_body"; 
    2458                 var td = document.createElement("TD"); 
    2459                 td.setAttribute("colSpan","2"); 
    2460                 td.id = "body_thumbs_"+ID; 
    2461                 td.innerHTML += "&nbsp;<font color='DARKBLUE' size='2'><b>"+info_msg.attachments.length+" "+get_lang("attachment")+(info_msg.attachments.length > 1 ? "s" : "")+" "+get_lang("in this message")+"</font></b>"; 
    2462                 var _link_attachments = ''; 
    2463                 if(info_msg.thumbs.length > 1){ 
    2464                         _link_attachments       = document.createElement("A"); 
    2465                         _link_attachments.className = "message_options"; 
    2466                          if(proxy_mensagens.is_local_folder(current_folder)) 
    2467                                 _link_attachments.setAttribute("href", "javascript:expresso_local_messages.download_all_local_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
     2478        //k 
     2479         
     2480        if ( (info_msg.thumbs) && (info_msg.thumbs.length > 0) ){ 
     2481                var div_thumbs = document.createElement("DIV"); 
     2482                div_thumbs.setAttribute("class", "expressomail-thumbs"); 
     2483                div_thumbs.setAttribute("className", "expressomail-thumbs"); //for IE 
     2484                 
     2485                var div_thumbs_lbl = document.createElement("DIV"); 
     2486                div_thumbs_lbl.setAttribute("class", "expressomail-thumbs-label"); 
     2487                div_thumbs_lbl.setAttribute("className", "expressomail-thumbs-label"); //for IE 
     2488                 
     2489                var div_thumbs_lbl_sp = document.createElement("SPAN"); 
     2490                div_thumbs_lbl_sp.setAttribute("class", "message_options"); 
     2491                div_thumbs_lbl_sp.setAttribute("className", "message_options"); //for IE 
     2492                var div_thumbs_lbl_st = document.createElement("STRONG"); 
     2493                div_thumbs_lbl_st.innerHTML = info_msg.attachments.length+" "+get_lang("attachment")+(info_msg.attachments.length > 1 ? "s" : "")+" "+get_lang("in this message"); 
     2494                var div_thumbs_lbl_a  = document.createElement("A"); 
     2495 
     2496                if(info_msg.thumbs.length > 1){                          
     2497                        if(proxy_mensagens.is_local_folder(current_folder)) 
     2498                                div_thumbs_lbl_a.setAttribute("href", "javascript:expresso_local_messages.download_all_local_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    24682499                        else 
    2469                                 _link_attachments.setAttribute("href", "javascript:download_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
    2470                         _link_attachments.innerHTML = get_lang('Download all atachments'); 
    2471                 } 
    2472  
    2473                 if(_link_attachments){ 
    2474                         td.innerHTML += " :: "; 
    2475                         td.appendChild(_link_attachments); 
    2476                 } 
    2477  
    2478                 td.innerHTML += "<BR><img src='templates/"+template+"/images/menu/ktip.png'>"+get_lang("<b>Tip:</b> For faster save, click over the image with <u>right button</u>."); 
    2479                 td.innerHTML += "<BR>"; 
     2500                                div_thumbs_lbl_a.setAttribute("href", "javascript:download_all_attachments('"+info_msg.msg_folder+"','"+info_msg.msg_number+"')"); 
     2501                        div_thumbs_lbl_a.innerHTML = get_lang('Download all atachments'); 
     2502                } else { 
     2503                        div_thumbs_lbl_a.setAttribute("style", "display:none; visibility:hidden;"); 
     2504                } 
     2505 
     2506                div_thumbs_lbl_sp.appendChild(div_thumbs_lbl_st); 
     2507                div_thumbs_lbl_sp.appendChild(document.createTextNode(' :: ')); 
     2508                div_thumbs_lbl_sp.appendChild(div_thumbs_lbl_a); 
     2509                div_thumbs_lbl.appendChild(div_thumbs_lbl_sp); 
     2510                 
     2511                var div_thumbs_lbl_sp2   = document.createElement("SPAN"); 
     2512                div_thumbs_lbl_sp2.setAttribute("class", "message_tips"); 
     2513                div_thumbs_lbl_sp2.setAttribute("className", "message_tips"); //for IE 
     2514                div_thumbs_lbl_sp2.innerHTML = get_lang("<strong>Tip:</strong> <span>For faster save, click over the image with <em>right button</em>.</span>"); 
     2515                 
     2516                var ul_thumbs_list = document.createElement("UL"); 
     2517                ul_thumbs_list.setAttribute("class", "expressomail-thumbs-list"); 
     2518                ul_thumbs_list.setAttribute("className", "expressomail-thumbs-list"); //for IE 
    24802519 
    24812520                for (var i=0; i<info_msg.thumbs.length; i++){ 
    2482                         if ((i % 4) == 0) 
    2483                                 td.innerHTML += "<BR>"; 
    2484                         td.innerHTML += info_msg.thumbs[i]; 
    2485                         td.innerHTML += "&nbsp;&nbsp;"; 
    2486                 } 
    2487                 tr.appendChild(td); 
    2488                 tbody_message_thumbs.appendChild(tr); 
    2489                 table_message_thumbs.appendChild(tbody_message_thumbs); 
    2490                 div.appendChild(table_message_thumbs); 
    2491         } 
     2521                        var li = document.createElement("LI"); 
     2522                        li.innerHTML += info_msg.thumbs[i]; 
     2523                        ul_thumbs_list.appendChild(li); 
     2524                } 
     2525                 
     2526                div_thumbs.appendChild(div_thumbs_lbl); 
     2527                div_thumbs.appendChild(div_thumbs_lbl_sp2); 
     2528                div_thumbs.appendChild(ul_thumbs_list); 
     2529                 
     2530                div.appendChild(div_thumbs); 
     2531        } 
     2532        //k!! 
    24922533        ////////////////////////////////////////////////////////////////////////////////////////////////////// 
    24932534        table_message.appendChild(tbody_message); 
     
    25102551                        show_div_address_full(ID,'cc'); 
    25112552        } 
    2512  
    2513 } 
     2553         
     2554        //k! 
     2555        /* 
     2556         * TODO: implementar o controle como preferência do usuário 
     2557         * 
     2558         */ 
     2559        var jcarousel = false; 
     2560         
     2561        if (jcarousel) { 
     2562                jQuery(document).ready(function() { 
     2563                        jQuery('.expressomail-thumbs-list').attr('id', 'expressomail-thumbs-list'+ID); 
     2564                        jQuery('.expressomail-thumbs-list').addClass('jcarousel-skin-default'); 
     2565                        jQuery('#expressomail-thumbs-list'+ID).jcarousel({ 
     2566                                // Configuration 
     2567                        }); 
     2568                }); 
     2569                 
     2570                //fancybox 
     2571                jQuery(document).ready(function() { 
     2572                        jQuery(".expressomail-thumbs-list li a").attr('onclick', 'return true;'); 
     2573                        jQuery(".expressomail-thumbs-list li a").fancybox({ 
     2574                                'hideOnContentClick': true, 
     2575                                'type': 'image' 
     2576                        }); 
     2577                }); 
     2578        } 
     2579        //k!! 
     2580} 
     2581  
    25142582function changeLinkState(el,state){ 
    25152583        el.innerHTML = get_lang(state); 
     
    25512619        } 
    25522620} 
     2621 
    25532622function draw_new_message(border_ID){ 
    25542623        connector.loadScript("color_palette"); 
     
    26462715        sel_from.id = "from_"+ID; 
    26472716        sel_from.name = "input_from"; 
    2648         sel_from.style.width = "70%"; 
     2717        sel_from.style.width = "100%"; 
    26492718        sel_from.setAttribute("wrap","soft"); 
    26502719        td_from.appendChild(sel_from); 
     
    26572726        var td1_2 = document.createElement("TD"); 
    26582727        tr1_2.style.display = 'none'; 
    2659         td1_2.innerHTML = get_lang("Reply to")+":"; 
     2728        td1_2.innerHTML = get_lang("Reply to")+":"; 
    26602729        td1_2.setAttribute("noWrap","true"); 
    26612730        td1_2.style.width = "1%"; 
    26622731 
    26632732        var td_replyto = document.createElement("TD"); 
    2664         td_replyto.setAttribute("noWrap","true"); 
     2733        td_replyto.setAttribute("noWrap","true"); 
    26652734        td_replyto.style.width = "100%"; 
    26662735 
    2667         var input_replyto = document.createElement('INPUT'); 
     2736        var input_replyto = document.createElement('INPUT'); 
    26682737        input_replyto.id = "replyto_"+ID; 
    2669         input_replyto.name = "input_replyto"; 
     2738        input_replyto.name = "input_replyto"; 
    26702739        input_replyto.setAttribute("tabIndex","1"); 
    2671         input_replyto.style.width = "100%"; 
     2740        input_replyto.style.width = "100%"; 
    26722741        input_replyto.setAttribute("wrap","soft"); 
    2673         input_replyto.onfocus = function(){clearTimeout(parseInt(setTimeOutLayer)); search_contacts('onfocus', this.id);}; 
     2742        input_replyto.onfocus = function(){clearTimeout(parseInt(setTimeOutLayer)); search_contacts('onfocus', this.id);}; 
    26742743        input_replyto.onblur = function(){setTimeOutLayer=setTimeout('search_contacts("lostfocus","'+this.id+'")',100);}; 
    26752744 
     
    30453114        input_subject.name = "input_subject"; 
    30463115        input_subject.setAttribute("tabIndex","1"); 
    3047         input_subject.style.width = "90%"; 
     3116        input_subject.style.width = "100%"; 
    30483117        input_subject.setAttribute("autocomplete","off"); 
    30493118        td_subject.appendChild(input_subject); 
     
    33513420        } 
    33523421} 
     3422 
    33533423function updateBoxBgColor(box){ 
    33543424        // Set first TR Class 
     
    36413711        content_id_0.appendChild(table); 
    36423712} 
    3643         var idx_cc = 0; 
    3644 function draw_plugin_cc(ID, addrs) 
    3645 { 
     3713var idx_cc = 0; 
     3714 
     3715function draw_plugin_cc(ID, addrs){ 
    36463716        connector.loadScript("ccQuickAdd"); 
    36473717 
     
    36813751        return to_addybook_add; 
    36823752} 
     3753 
    36833754function deny_email(email){ 
    36843755        connector.loadScript("filter"); 
     
    36933764 
    36943765} 
     3766 
    36953767function show_div_address_full(id, type) { 
    36963768        var div_address_full = Element("div_"+type+"address_full_"+id); 
     
    37163788        div_address_full.style.display=''; 
    37173789} 
     3790 
    37183791function draw_footer_box(num_msgs){ 
    37193792        folder = get_current_folder(); 
  • sandbox/2.2.0.2/expressoMail1_2/templates/default/main.css

    r4230 r4493  
     1@import url("expressomail.css"); 
     2 
    13pre{ 
    24        white-space: pre-wrap !important; /* css-3 */ 
     
    98100        width : 100%; 
    99101        color: black; 
    100         font-weight: bold; 
     102        font-weight: bold; 
    101103        background-color: #ffc; 
    102104        border-bottom:1px solid #cfcfcf; 
     
    154156        table-layout: fixed; 
    155157} 
    156 .font-menu 
    157 { 
    158     color: #000; 
    159 } 
    160  
    161 .font-menu-sel 
    162 { 
    163         color:#0000FF; 
     158.font-menu { 
     159        color:#000; 
     160} 
     161 
     162.font-menu-sel { 
     163        color:#0000FF; 
    164164} 
    165165 
     
    175175} 
    176176 
    177 .menu-sel 
    178 { 
     177.menu-sel{ 
    179178    text-decoration: none; 
    180179    text-align: center; 
     
    191190    cursor: pointer;     
    192191} 
    193 .menu 
    194 { 
     192.menu{ 
    195193    text-decoration: none; 
    196194    text-align: center; 
     
    207205} 
    208206 
    209 .last_menu 
    210 { 
     207.last_menu{ 
    211208        border-bottom: 1px solid #4a79b1; 
    212209        -moz-border-radius: 0px 0px 0px 0px; 
    213210} 
    214211 
    215  
    216 .table_message{ 
    217         background-image: url(../../../phpgwapi/templates/default/images/fundo_msg.png); 
    218         padding: 1px; 
    219         cursor: default; 
    220         border-width: 1px 1px 1px 1px; 
    221         border-spacing: 0px 0px; 
    222         border-style: outset outset outset outset; 
    223         border-color: gray gray gray gray; 
    224         border-collapse: separate; 
    225         -moz-border-radius: 3px 3px 3px 3px; 
    226 } 
    227212.table_top{ 
    228213        background-color: #FFFFFF; 
     
    259244} 
    260245 
    261 .suggestion_list 
    262 { 
     246.suggestion_list{ 
    263247background: white; 
    264248border: 1px solid; 
     
    266250} 
    267251         
    268 .suggestion_list ul 
    269 { 
     252.suggestion_list ul{ 
    270253padding: 0; 
    271254margin: 0; 
     
    273256} 
    274257 
    275 .suggestion_list a 
    276 { 
     258.suggestion_list a{ 
    277259text-decoration: none; 
    278260color: navy; 
    279261} 
    280262 
    281 .suggestion_list .selected 
    282 { 
     263.suggestion_list .selected{ 
    283264background: navy; 
    284265color: white; 
     
    286267         
    287268         
    288 .suggestion_list .selected a 
    289 { 
     269.suggestion_list .selected a{ 
    290270color: white; 
    291271} 
    292272 
    293 #autosuggest 
    294 { 
     273#autosuggest{ 
    295274display: none; 
    296275}  
     
    356335} 
    357336 
    358 .menu-folders 
    359 { 
     337.menu-folders{ 
    360338        text-align: center; 
    361339        text-decoration: none; 
     
    557535.sl { 
    558536        background-image: url(../../../phpgwapi/templates/default/images/foldertree_folderopen.png); 
    559  
    560 } 
    561 .dsused 
    562 { 
    563         background-image: url(../../../expressoMail1_2/templates/default/images/dsused.gif); 
    564 } 
    565  
    566 .divAppboxHeader 
    567 {       font-style:italic;       
     537} 
     538.dsused { 
     539        background-image: url(../../../expressoMail1_2/templates/default/images/dsused.gif); 
     540} 
     541 
     542.divAppboxHeader{ 
     543        font-style:italic;       
    568544        font-weight:normal; 
    569545        font-variant: small-caps;        
     
    578554        input[type="file"] 
    579555        { 
    580                       width:500px; 
     556                width:500px; 
    581557        } 
    582558} 
Note: See TracChangeset for help on using the changeset viewer.