你好,欢迎来到电脑编程技巧与维护杂志社! 杂志社简介广告服务读者反馈编程社区  
合订本订阅
 
 
您的位置:杂志经典 / 跟高手学编程
ASP技术建立网络调查投票系统(八)
 

tp_flag_all=rs("调查项目"&i)+tp_flag_all

    next%>

    <tr>

        <td width=100% height=30><b><%=rs("调查题目")%></b></td>

    </tr>      

    <%

    tp_flag=split(server.htmlencode(replace(trim(rs("调查内容")),chr(10),"")),chr(13))

    for i=0 to ubound(tp_flag)

    if trim(tp_flag(i))<>"" then

    tp_flag_count=tp_flag_count+1

    if tp_flag_all=0 then

        t=0

    else

        t=rs("调查项目"&tp_flag_count)*100/tp_flag_all

    end if%> 

    <tr>

        <td align=left valign=top height=10>

            <table width=100% cellpadding="0" cellspacing="0" border=0>

                <tr>

                    <td height=8>&nbsp;[<%=xuanxiang(tp_flag_count)%>]<%=tp_flag(i)%></td>

                    <!--xuanxiang()函数在title.asp中已经定义,把数字转变为字母-->

                    <td width=300 align=left bgcolor="#cccccc" height=8>

                        <table background="images/bar3.gif" width=<%=int(t)%>% cellpadding="0" cellspacing="0" border=0>

                        <!--其中bar3.gif图片为显示柱型条-->

                            <tr>

                                <td height=8></td>

                            </tr>

                        </table>

                    </td>

                    <td width=30>&nbsp;<%=rs("调查项目"&tp_flag_count)%></td>

                </tr>

            </table>

        </td>

    </tr>

    <tr>

  推荐精品文章

·2024年12月目录 
·2024年11月目录 
·2024年10月目录 
·2024年9月目录 
·2024年8月目录 
·2024年7月目录 
·2024年6月目录 
·2024年5月目录 
·2024年4月目录 
·2024年3月目录 
·2024年2月目录 
·2024年1月目录
·2023年12月目录
·2023年11月目录

  联系方式
TEL:010-82561037
Fax: 010-82561614
QQ: 100164630
Mail:gaojian@comprg.com.cn

  友情链接
 
Copyright 2001-2010, www.comprg.com.cn, All Rights Reserved
京ICP备14022230号-1,电话/传真:010-82561037 82561614 ,Mail:gaojian@comprg.com.cn
地址:北京市海淀区远大路20号宝蓝大厦E座704,邮编:100089