自:
http://www.discuz.net/th...1-1-1.html论坛问卷,可以方便进行社区调查或收集会员资料。还可以用来制作简单的论坛试题,带计分功能。
以前做过一个,不过修改超复杂,而且容易出错,估计可以排到[超难]安装这类。因此这个五一重新写了个问卷,利用了后台接口。所以目前安装非常简单,上传文件+SQL就可以完成。不兼容之前的版本~以前安装过5。0那个的请删除掉。
升级数据库:
mysql4.0 或以下
复制程式
CREATE TABLE `cdb_ques` (
`qid` int(10) unsigned NOT NULL auto_increment,
`subject` varchar(255) NOT NULL default '',
`dateline` int(10) NOT NULL default Ɔ',
`uid` mediumint(8) NOT NULL default Ɔ',
`username` varchar(255) NOT NULL default '',
`exp` int(10) NOT NULL default Ɔ',
`person` mediumint(8) NOT NULL default ཐ',
`stop` tinyint(1) NOT NULL default Ɔ',
`price` tinyint(1) NOT NULL default Ɔ',
PRIMARY KEY (`qid`)
) ENGINE=MyISAM;
CREATE TABLE `cdb_quesoption` (
`id` int(10) unsigned NOT NULL auto_increment,
`qid` int(10) unsigned NOT NULL,
`type` text NOT NULL default '',
`check` mediumtext NOT NULL default '',
`question` mediumtext NOT NULL default '',
`key` mediumtext NOT NULL default '',
`open` tinyint(1) NOT NULL default Ƈ',
`mark` mediumint(8) NOT NULL default Ɔ',
`amust` tinyint(1) NOT NULL default Ƈ',
`answeruser` mediumtext NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
CREATE TABLE `cdb_queslog` (
`lid` int(10) unsigned NOT NULL auto_increment,
`uid` int(10) unsigned NOT NULL default Ɔ',
`username` varchar(255) NOT NULL default '',
`dateline` int(10) NOT NULL default Ɔ',
`qid` int(10) unsigned NOT NULL,
`id` int(10) unsigned NOT NULL default Ɔ',
`answer` mediumtext NOT NULL default '',
`mark` mediumint(8) NOT NULL default Ɔ',
KEY (`lid`)
) TYPE=MyISAM;
mysql 4.1或以上
复制程式
CREATE TABLE `cdb_ques` (
`qid` int(10) unsigned NOT NULL auto_increment,
`subject` varchar(255) NOT NULL default '',
`dateline` int(10) NOT NULL default Ɔ',
`uid` mediumint(8) NOT NULL default Ɔ',
`username` varchar(255) NOT NULL default '',
`exp` int(10) NOT NULL default Ɔ',
`person` mediumint(8) NOT NULL default ཐ',
`stop` tinyint(1) NOT NULL default Ɔ',
`price` tinyint(1) NOT NULL default Ɔ',
PRIMARY KEY (`qid`)
) ENGINE=MyISAM DEFAULT CHARSET=big5;
CREATE TABLE `cdb_quesoption` (
`id` int(10) unsigned NOT NULL auto_increment,
`qid` int(10) unsigned NOT NULL,
`type` text NOT NULL default '',
`check` mediumtext NOT NULL default '',
`question` mediumtext NOT NULL default '',
`key` mediumtext NOT NULL default '',
`open` tinyint(1) NOT NULL default Ƈ',
`mark` mediumint(8) NOT NULL default Ɔ',
`amust` tinyint(1) NOT NULL default Ƈ',
`answeruser` mediumtext NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=big5;
CREATE TABLE `cdb_queslog` (
`lid` int(10) unsigned NOT NULL auto_increment,
`uid` int(10) unsigned NOT NULL default Ɔ',
`username` varchar(255) NOT NULL default '',
`dateline` int(10) NOT NULL default Ɔ',
`qid` int(10) unsigned NOT NULL,
`id` int(10) unsigned NOT NULL default Ɔ',
`answer` mediumtext NOT NULL default '',
`mark` mediumint(8) NOT NULL default Ɔ',
KEY (`lid`)
) TYPE=MyISAM DEFAULT CHARSET=big5;