Changeset 691 for temp/test-xoops.ec-cube.net/html/modules
- Timestamp:
- 2006/12/11 17:14:23 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php
r690 r691 138 138 $width = intval($percent)*4; 139 139 //$options[$i]['image'] = "<img src='".XOOPS_URL."/modules/xoopspoll/images/colorbars/".$option->getVar("option_color", "E")."' height='14' width='".$width."' align='middle' alt='".intval($percent)." %' />"; 140 echo "test => ".$width; 141 if($width != "") { 142 $options[$i]['image'] = "<img src='".XOOPS_URL."/themes/default/img/main/bar01.jpg' width='". $width ."' height='9' alt='". intval($percent) ."' style='vertical-align: middle;'/>"; 143 } else { 144 $options[$i]['image'] = ""; 145 } 140 $options[$i]['image'] = "<img src='".XOOPS_URL."/themes/default/img/main/bar01.jpg' width='". $width ."' height='9' alt='". intval($percent) ."' style='vertical-align: middle;'/>"; 146 141 } 147 142 $options[$i]['percent'] = sprintf(" %d %% (%d)", $percent, $option->getVar("option_count"));
Note: See TracChangeset
for help on using the changeset viewer.
