Changeset 5131 for trunk/contactcenter/js/ccIEContacts.js
- Timestamp:
- 11/03/11 11:17:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/js/ccIEContacts.js
r3334 r5131 47 47 this.el.style.top = "0px"; 48 48 this.el.style.width = this.wWidth + 'px'; 49 this.el.style.height = this.wHeight + 'px';49 this.el.style.height = this.wHeight + 100+'px'; 50 50 if(is_ie) { 51 this.el.style.width = " 430";51 this.el.style.width = "650"; 52 52 this.el.style.overflowY = "auto"; 53 53 this.el.style.overflowX = "hidden"; 54 54 } 55 55 else { 56 this.el.style.overflowY = "auto"; 56 57 this.el.style.overflow = "-moz-scrollbars-vertical"; 57 58 } … … 75 76 var lang_outl2k_pt = Element('cc_msg_outlook_2k_pt').value; 76 77 var lang_outl2k_en = Element('cc_msg_outlook_2k_en').value; 78 var lang_outl03 = Element('cc_msg_outlook_2003').value; 77 79 var lang_expresso_default_csv = Element('cc_msg_expresso_default_csv').value; 78 80 79 81 80 82 this.el.innerHTML = 81 '<div align="left" id="divAppbox" ><table width="100%" border=0>'+83 '<div align="left" id="divAppbox" width="90%" ><table width="100%" border=0>'+ 82 84 '<tr><td style="border-bottom:1px solid black"><input onclick="javascript:ccIEContacts.changeOptions(this.value)" id="type" type="radio" name="type" value="i" style="border:0" checked>'+lang_import_contacts+ 83 85 ' <input onclick="javascript:ccIEContacts.changeOptions(this.value)" id="type" type="radio" name="type" style="border:0" value="e"/>'+lang_export_contacts+' <br></td></tr>'+ 84 86 '</table>'+ 85 '<table border=0 height=" 208px" width="100%" id="import_span">'+87 '<table border=0 height="100%" width="100%" id="import_span">'+ 86 88 '<tr><td>'+ 87 89 '<font color="DARKBLUE" size="2">'+lang_expresso_info_csv+'</font></td></tr>'+ … … 91 93 '<option value="outlook">'+("Outlook Express")+'</option>'+ 92 94 '<option value="outlook2000">'+("Outlook 2000")+'</option>'+ 95 '<option value="outlook2003">'+("Outlook 2003")+'</option>'+ 93 96 '<option value="thunderbird">'+("Mozilla Thunderbird")+'</option>'+ 94 97 '<option value="expresso" selected>'+lang_expresso_default+'</option></select><br>'+ … … 102 105 '<input type="button" value='+lang_close_win+' onClick="javascript:ccIEContacts.close()"></center></td></tr>'+ 103 106 '<tr><td height="10px" align="center" nowrap><span style="visibility:hidden" id="s_info2"></span></td></tr></table>'+ 104 '<table border=0 height=" 208px" width="100%" style="display:none" id="export_span">'+107 '<table border=0 height="100%" width="100%" style="display:none" id="export_span">'+ 105 108 '<tr><td>'+ 106 109 '<font color="DARKBLUE" size="2">'+ lang_msg_expresso_info_csv+'</font></td></tr>'+ … … 112 115 '<option value="outlook2000_pt-BR">'+lang_outl2k_pt+'</option>'+ 113 116 '<option value="outlook2000_en">'+lang_outl2k_en+'</option>'+ 117 '<option value="outlook2003">'+lang_outl03+'</option>'+ 114 118 '<option value="thunderbird">'+lang_moz_tb+'</option>'+ 115 119 '</select>'+ 116 120 '</td></tr>'+ 117 '<tr><td align="center"> </td></tr>'+118 121 '<tr><td nowrap><center><input id="export_button" type="button" value='+lang_export_contacts+ ' onClick="javascript:ccIEContacts.exportCSV(this)"> '+ 119 122 '<input type="button" value='+lang_close_win+ ' onClick="javascript:ccIEContacts.close()"></center></td></tr>'+ … … 121 124 } 122 125 this.showWindow(); 126 if(Element('s_info')) 127 Element('s_info').style.visibility = 'hidden'; 128 ccIEContacts.cleanInfo(); 123 129 } 124 130 … … 131 137 content_id: this.el.id, 132 138 width: (this.wWidth +(is_ie ? 41 : 0)) +'px', 133 height: this.wHeight + 'px',139 height: this.wHeight +100+'px', 134 140 title_color: '#3978d6', 135 141 bg_color: '#eee', … … 166 172 var l_2 = '<font face="Verdana" size="1" color="RED">['+args[2]+lang_failure+']</font>'; 167 173 var l_3 = '<font face="Verdana" size="1" color="DARKBLUE">['+args[3]+lang_exists+']</font>'; 174 if(args[2]) 168 175 var l_4 = '<br><a font face="Verdana" size="1" href="javascript:ccIEContacts.showFailures(\''+args[4]+'\')">'+lang_show_more_info+'</a>'; 169 176 var l_error = '<span style="height:15px;background:#cc4444"> <font face="Verdana" size="1" color="WHITE">'+lang_import_fail+ ' </font></span>'; … … 172 179 if(args[0] == 'success') { 173 180 174 for(i = 1; i < 5; i++) {181 for(i = 1; i < 4; i++) { 175 182 status += " "+eval('l_'+i); 183 } 184 if(args[2]){ 185 status += " "+eval('l_4'); 176 186 } 177 187 Element('s_info').innerHTML = ' <font face="Verdana" size="1" color="BLACK"><b>'+lang_import_finish+'</b></font><br> '+status; … … 200 210 cIEContacts.prototype.importCSV = function () 201 211 { 212 ccIEContacts.cleanInfo(); 202 213 var lang_msg_invalid_csv = Element('cc_msg_invalid_csv').value; 203 214 var form = document.formCSV; … … 223 234 args[3] = data._existing ? data._existing : 0; 224 235 args[4] = data._failure_status 225 236 if(args[1] > 0) 237 ccTree.setCatalog("0.0"); 226 238 } 227 239 _this.importWriteStatus(args);
Note: See TracChangeset
for help on using the changeset viewer.