12345678910111213141516171819202122232425262728293031323334 |
- <style type="text/css">
- #vote-show{ border:1px solid #e5e5e5; padding:0 1px; color:#535353}
- #vote-show h2{background:url("{IMG_PATH}vote/show_bg.png") repeat-x 0 0;height:26px; line-height:26px; padding-left:10px}
- #vote-show h2 span{font-size:14px;background:url("{IMG_PATH}vote/vote_bg.gif") no-repeat scroll 0 1px transparent;padding-left:18px; color:#145aa3; }
- #vote-show h3{ font-size:12px; font-weight:normal; line-height:26px; height:26px}
- #vote-show .content{ padding:8px 10px 15px}
- .vote_bar{width:100%; height:13px; border:1px solid #999; position:relative; overflow:hidden; margin-bottom:8px; background-color:#f6f6f7}
- .vote_bar div{background: url({IMG_PATH}admin_img/x_bg.png) repeat-x left -194px; float: left; position:relative; height:16px;_height:13px}
- .vote_bar span{display:block; position:absolute; left:0; top:0; width:100%; text-align:center; height:16px; font-size:10px; line-height:12px; vertical-align:middle; z-index:200}
- </style>
- <div id="vote-show">
- <form name="myform" id="myform" action="{APP_PATH}index.php?m=vote&c=index&a=post&subjectid={$subjectid}" method="post" target="_blank">
- <h2><span>{$subject}</span></h2>
- <div class="content">
- <input type="hidden" name="subjectid" value="{$subjectid}">
- {loop $options $r}
- {$i++}
- {if $vote_data['total']==0 }
- {php $per=0;}
- {else}
- {php $per=intval($vote_data[$r['optionid']]/$vote_data['total']*100);}
- {/if}
- <h3><input type={if $ischeckbox=='0'}"radio"{else}"checkbox"{/if} name="radio[]" id="radio" value="{$r['optionid']}" {$check_status} /> <label for="option_0">{$i}.{$r['option']}</label></h3>
- <div class="vote_bar"><span>{$per}%</span><div style="width: {$per}%;"></div></div>
- {/loop}
-
- <div class="bk10"></div>
- <div class="btn" style="{$display}"><input type="submit" value="提交"></div> <span class="f12">共有<font color="#0066FF">{$vote_data['total']}</font>人参与投票 </span>
- </div>
- </form>
- </div>
|