62,266
社区成员
发帖
与我相关
我的任务
分享投票调查:
<!-- 这里是 投票选择框 -->
<TR>
<TD ><LABEL><INPUT id=opt_508 onclick="check(this,8497,'sbj_8497[]',0);"
type=checkbox value=508 name=sbj_8497[]> <SPAN
class=option>收入5万 </SPAN></LABEL> </TD>
<!--这是 进度条和百分数 -->
<TD width=170>
<DIV class=process>
<DIV id=process style="WIDTH: 0px"></DIV></DIV></TD>
<TD id=process_8497_508 style="DISPLAY: none" (0%)</TD></TR>
<TR>
.........以下省了四个选项.......
<!--这是 js 控制进度条和显示投票数以及百分数的 -->
Count('8497','508','358','27.82');
Count('8497','509','369','28.67');
Count('8497','510','214','16.63');
Count('8497','511','332','25.8');
Count('8497','512','14','1.09');
if exists (select 1
from sysobjects
where id = object_id('调查表')
and type = 'U')
drop table 调查表
go
/*==============================================================*/
/* Table: 调查表 */
/*==============================================================*/
create table 调查表 (
调查编号 bigint identity,
调查名称 nvarchar(60) not null,
是否多选 bit null default 0,
选项一 nvarchar(60) null,
选项二 nvarchar(60) null,
选项三 nvarchar(60) null,
选项四 nvarchar(60) null,
得票一 int null default 0,
得票二 int null default 0,
得票三 int null default 0,
得票四 int null default 0,
添加时间 datetime null default getdate(),
constraint PK_调查表 primary key (调查编号)
)
go