Example #1
0
for ($i = 1; $i <= 8; $i++) {
    ?>
<tr>
<td width="5%" align="center"><?php 
    echo $i;
    ?>
</td>
        <td width="12%" align="right">
投票标题
<div class="blank5"></div>
图片url
</td>
        <td width="1%">&nbsp;</td>
        <td width="70%">
<?php 
    echo form::input("vote[{$i}]", vote::title(@$data['aid'], $i), 'class="input" ');
    ?>
<span class="hotspot" onmouseover="tooltip.show('填写内容中投票内容名称!');" onmouseout="tooltip.hide();">
<img src="<?php 
    echo $skin_path;
    ?>
/images/remind.gif" alt="" width="14" height="20"  style="margin-left:10px; margin-right:5px;">
</span>
<div class="blank5"></div>
<?php 
    echo form::input("vote_image[{$i}]", vote::img(@$data['aid'], $i), 'class="input" ');
    ?>
<span class="hotspot" onmouseover="tooltip.show('填写内容中投票内容图片地址!');" onmouseout="tooltip.hide();">
<img src="<?php 
    echo $skin_path;
    ?>
Example #2
0
        ?>
:</h5>
            <ul>
                
                
                <?php 
        $i = 1;
        while (vote::title($aid, $i)) {
            ?>

                <li>
                    <span class="num"><?php 
            echo $i;
            ?>
</span> <span><?php 
            echo vote::title($aid, $i);
            ?>
</span>
                        <?php 
            if (vote::img($aid, $i)) {
                ?>
                        <img src="<?php 
                echo vote::img($aid, $i);
                ?>
" />
                        <?php 
            }
            ?>
      
                    <div class=optionbar><div style="width: <?php 
            echo vote::get($aid, $i) * 3 + 5;