Changeset 688 for temp


Ignore:
Timestamp:
2006/12/11 17:10:56 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php

    r687 r688  
    138138                $width = intval($percent)*4; 
    139139                //$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                 $options[$i]['image'] = "<img src='".XOOPS_URL."/themes/default/img/main/bar01.jpg' width='". $width ."' height='9' alt='". intval($percent) ."'  style='vertical-align: middle;'/>"; 
     140                if($width != "") { 
     141                    $options[$i]['image'] = "<img src='".XOOPS_URL."/themes/default/img/main/bar01.jpg' width='". $width ."' height='9' alt='". intval($percent) ."'  style='vertical-align: middle;'/>"; 
     142                } else { 
     143                    $options[$i]['image'] = ""; 
     144                } 
    141145            } 
    142146            $options[$i]['percent'] = sprintf(" %d %% (%d)", $percent, $option->getVar("option_count")); 
Note: See TracChangeset for help on using the changeset viewer.