Changeset 2642 for trunk/expressoMail1_2/js/jscode/draw_api_folders.js
- Timestamp:
- 04/27/10 16:58:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/jscode/draw_api_folders.js
r2630 r2642 224 224 else{ 225 225 if(div) 226 { 226 227 div.innerHTML = ''; 227 value = data['quota_percent']; 228 q_used = data['quota_used']; 229 table = document.getElementById("table_quota"); 230 if(table) 231 table.parentNode.removeChild(table); 232 table = document.createElement("TABLE"); 233 tbody = document.createElement("TBODY"); 234 table.appendChild(tbody); 235 table.id = "table_quota"; 236 table.width="102"; 237 table.border="0"; 238 table.cellSpacing = 0; 239 table.cellPadding = 0; 240 241 //tr1 = document.createElement("TR"); 242 td11 = document.createElement("TD"); 243 td11.align="center"; 244 td11.setAttribute("noWrap","true"); 245 td11.innerHTML += ' <span class="boxHeaderText">' + value+"% ("+q_used+"M/"+q_limit+"M)</span>"; 246 //tr1.appendChild(td11); 247 248 tr2 = document.createElement("TR"); 249 td21 = document.createElement("TD"); 250 td21.setAttribute("noWrap","true"); 251 td21.height="15"; 252 td22 = document.createElement("TD"); 253 td21.setAttribute("background", URL_SERVER + 'phpgwapi/templates/' + template + '/images/dsunused.gif'); 254 table221 = document.createElement("TABLE"); 255 tbody221 = document.createElement("TBODY"); 256 table221.appendChild(tbody221); 257 table221.style.width=value+"%"; 258 td21.width="102"; 259 table221.border="0"; 260 table221.cellSpacing = 0; 261 table221.cellPadding = 0; 262 tr221 = document.createElement("TR"); 263 td221 = document.createElement("TD"); 264 td221.height="15"; 265 if(value > 90) { 266 if(value >= 100) 267 write_msg(get_lang("Your Mailbox is 100% full! You must free more space or will not receive messages.")); 228 value = data['quota_percent']; 229 q_used = data['quota_used']; 230 table = document.getElementById("table_quota"); 231 if(table) 232 table.parentNode.removeChild(table); 233 table = document.createElement("TABLE"); 234 tbody = document.createElement("TBODY"); 235 table.appendChild(tbody); 236 table.id = "table_quota"; 237 table.width="102"; 238 table.border="0"; 239 table.cellSpacing = 0; 240 table.cellPadding = 0; 241 242 //tr1 = document.createElement("TR"); 243 td11 = document.createElement("TD"); 244 td11.align="center"; 245 td11.setAttribute("noWrap","true"); 246 td11.innerHTML += ' <span class="boxHeaderText">' + value+"% ("+q_used+"M/"+q_limit+"M)</span>"; 247 //tr1.appendChild(td11); 248 249 tr2 = document.createElement("TR"); 250 td21 = document.createElement("TD"); 251 td21.setAttribute("noWrap","true"); 252 td21.height="15"; 253 td22 = document.createElement("TD"); 254 td21.setAttribute("background", URL_SERVER + 'phpgwapi/templates/' + template + '/images/dsunused.gif'); 255 table221 = document.createElement("TABLE"); 256 tbody221 = document.createElement("TBODY"); 257 table221.appendChild(tbody221); 258 table221.style.width=value+"%"; 259 td21.width="102"; 260 table221.border="0"; 261 table221.cellSpacing = 0; 262 table221.cellPadding = 0; 263 tr221 = document.createElement("TR"); 264 td221 = document.createElement("TD"); 265 td221.height="15"; 266 if(value > 90) { 267 if(value >= 100) 268 write_msg(get_lang("Your Mailbox is 100% full! You must free more space or will not receive messages.")); 269 else 270 write_msg(get_lang("Warning: Your Mailbox is almost full!")); 271 td221.setAttribute("background","templates/"+template+"/images/dsalert.gif"); 272 } 273 else if(value > 80) 274 td221.setAttribute("background", URL_SERVER + 'expressoMail1_2/templates/' + template + '/images/dswarn.gif'); 268 275 else 269 write_msg(get_lang("Warning: Your Mailbox is almost full!")); 270 td221.setAttribute("background","templates/"+template+"/images/dsalert.gif"); 271 } 272 else if(value > 80) 273 td221.setAttribute("background", URL_SERVER + 'expressoMail1_2/templates/' + template + '/images/dswarn.gif'); 274 else 275 td221.className = 'dsused'; 276 277 tr221.appendChild(td221); 278 tbody221.appendChild(tr221); 279 td21.appendChild(table221); 280 tr2.appendChild(td21); 281 tr2.appendChild(td11); 282 283 //tr2.appendChild(td1); 284 285 tbody.appendChild(tr2); //Desenho 286 //tbody.appendChild(tr1); //Letras 287 div.appendChild(table); 276 td221.className = 'dsused'; 277 278 tr221.appendChild(td221); 279 tbody221.appendChild(tr221); 280 td21.appendChild(table221); 281 tr2.appendChild(td21); 282 tr2.appendChild(td11); 283 284 //tr2.appendChild(td1); 285 286 tbody.appendChild(tr2); //Desenho 287 //tbody.appendChild(tr1); //Letras 288 div.appendChild(table); 289 } 288 290 } 289 291 } … … 318 320 span_paging.className = "boxHeaderText"; 319 321 span_paging.align="right"; 320 document.getElementById("div_menu_c3").appendChild(span_paging); 322 var div_menu_c3 = document.getElementById("div_menu_c3"); 323 if ( div_menu_c3 ) 324 div_menu_c3.appendChild(span_paging); 321 325 } 322 326 span_paging.style.width="100%";
Note: See TracChangeset
for help on using the changeset viewer.