Changeset 6cd0099 in github
- Timestamp:
- Sep 12, 2008 12:48:23 PM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- b1c97d1
- Parents:
- 85a9130
- Files:
-
- 4 edited
-
CHANGELOG (modified) (1 diff)
-
bin/quotaimg.php (modified) (1 diff)
-
program/steps/mail/func.inc (modified) (4 diffs)
-
skins/default/templates/mail.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r203ee44 r6cd0099 7 7 - Added possibility to view all headers in message view 8 8 - Fixed splitter drag/resize on Opera (#1485170) 9 - Fixed quota img height/width setting from template (#1484857) 9 10 10 11 2008/09/12 (thomasb) -
bin/quotaimg.php
rf8895e8 r6cd0099 160 160 161 161 $quota_width = $quota / 100 * $width; 162 imagefilledrectangle($im, $border, 0, $quota , $height-2*$border, $fill);162 imagefilledrectangle($im, $border, 0, $quota_width, $height-2*$border, $fill); 163 163 164 164 $string = $quota . '%'; -
program/steps/mail/func.inc
r1c499ae r6cd0099 447 447 448 448 $out = '<span' . $attrib_str . '>'; 449 $out .= rcmail_quota_content( );449 $out .= rcmail_quota_content(NULL, $attrib); 450 450 $out .= '</span>'; 451 451 return $out; … … 456 456 * 457 457 */ 458 function rcmail_quota_content($quota=NULL )458 function rcmail_quota_content($quota=NULL, $attrib=NULL) 459 459 { 460 460 global $IMAP, $COMM_PATH, $RCMAIL; … … 482 482 if ($display == 'image' && function_exists('imagegif')) 483 483 { 484 $attrib = array('width' => 100, 'height' => 14); 484 if (!$attrib['width']) 485 $attrib['width'] = isset($_SESSION['quota_width']) ? $_SESSION['quota_width'] : 100; 486 else 487 $_SESSION['quota_width'] = $attrib['width']; 488 489 if (!$attrib['height']) 490 $attrib['height'] = isset($_SESSION['quota_height']) ? $_SESSION['quota_height'] : 14; 491 else 492 $_SESSION['quota_height'] = $attrib['height']; 493 485 494 $quota_text = sprintf('<img src="./bin/quotaimg.php?u=%s&q=%d&w=%d&h=%d" width="%d" height="%d" alt="%s" title="%s / %s" />', 486 495 $quota['used'], $quota['total'], … … 488 497 $attrib['width'], $attrib['height'], 489 498 $quota_text, 490 show_bytes($quota[ "used"] * 1024),491 show_bytes($quota[ "total"] * 1024));499 show_bytes($quota['used'] * 1024), 500 show_bytes($quota['total'] * 1024)); 492 501 } 493 502 } -
skins/default/templates/mail.html
re5686f4 r6cd0099 110 110 <roundcube:button command="select-none" label="none" classAct="active" /> 111 111 <roundcube:if condition="env:quota" /> 112 <roundcube:label name="quota" />: <roundcube:object name="quotaDisplay" display="image" width="1 20" id="quotadisplay" />112 <roundcube:label name="quota" />: <roundcube:object name="quotaDisplay" display="image" width="100" id="quotadisplay" /> 113 113 <roundcube:endif /> 114 114 </div>
Note: See TracChangeset
for help on using the changeset viewer.
