本帖最后由 netolive 于 2010-5-2 17:02 编辑
说明:
这段代码是..在12楼的体无完肤的基础上修改的...
主要说明两点..
12楼的没有定义字符串导致乱码..现已修正..
第二就是字段名的前缀问题...我这里是pre的前缀..大家根据自己的情况来修改
DROP TABLE IF EXISTS pre_common_member_profile_setting; 删除数据库表(注意表前缀)
CREATE TABLE pre_common_member_profile_setting 新建表 注意前缀
下面的一样 最好用替换- DROP TABLE IF EXISTS pre_common_member_profile_setting;
- CREATE TABLE pre_common_member_profile_setting (
- fieldid varchar(255) CHARACTER SET gbk COLLATE gbk_chinese_ci NULL default '' COMMENT 'profile字段标志符',
- available tinyint(1) NOT NULL default '0' COMMENT '是否可用',
- invisible tinyint(1) NOT NULL default '0' COMMENT '是否隐藏',
- needverify tinyint(1) NOT NULL default '0' COMMENT '是否需要审核',
- title varchar(255) CHARACTER SET gbk COLLATE gbk_chinese_ci NULL default '' COMMENT '栏目标题',
- description varchar(255) CHARACTER SET gbk COLLATE gbk_chinese_ci NULL default '' COMMENT '解释说明',
- displayorder smallint(6) unsigned NOT NULL default '0' COMMENT '显示顺序',
- required tinyint(1) NOT NULL default '0' COMMENT '是否必填内容',
- unchangeable tinyint(1) NOT NULL default '0' COMMENT '不可修改',
- showinthread tinyint(1) NOT NULL default '0' COMMENT '在帖子中显示',
- allowsearch tinyint(1) NOT NULL default '0' COMMENT '是否可搜索',
- formtype varchar(255) CHARACTER SET gbk COLLATE gbk_chinese_ci NULL COMMENT '表单元素类型',
- size smallint(6) unsigned NOT NULL default '0' COMMENT '内容最大长度',
- choices text CHARACTER SET gbk COLLATE gbk_chinese_ci NULL COMMENT '选填内容',
- validate text CHARACTER SET gbk COLLATE gbk_chinese_ci NULL COMMENT '验证数据的正则表达式',
- PRIMARY KEY (fieldid)
- ) ENGINE=MyISAM COMMENT='个人信息扩展表' ,ENGINE=MyISAM DEFAULT CHARSET=gbk;
- INSERT INTO pre_common_member_profile_setting VALUES ('gender','1','0','0','性别','','0','0','0','0','1','select','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('birthyear','1','0','0','出生年
- 份','','0','0','0','0','1','select','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('birthmonth','1','0','0','出生月
- 份','','0','0','0','0','0','select','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('birthday','1','0','0','出生日
- 期','','0','0','0','0','0','select','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('constellation','1','1','0','星座','星座(根据生日自动计
- 算)','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('zodiac','1','1','0','生肖','生肖(根据生日自动计
- 算)','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('telephone','1','1','0','固定电话','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('mobile','1','1','0','手机','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('idcardtype','1','1','0','证件号类型','身份证 护照 驾驶证
- 等','0','0','0','0','0','select','0','身份证\n护照\n驾驶证','');
- INSERT INTO pre_common_member_profile_setting VALUES ('idcard','1','1','0','证件号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('address','1','1','0','邮寄地址','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('zipcode','1','1','0','邮编','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('nationality','0','0','0','国籍','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('birthprovince','1','0','0','出生省
- 份','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('birthcity','1','0','0','出生城市','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('resideprovince','1','0','0','居住省
- 份','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('residecity','1','0','0','居住城
- 市','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('residedist','1','0','0','居住县','居住行政区/
- 县','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('residecommunity','1','0','0','居住小
- 区','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('residesuite','0','0','0','房间','小区、写字楼门牌
- 号','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('graduateschool','1','0','0','毕业学
- 校','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('education','1','0','0','学历','','0','0','0','0','0','select','0','博士\n硕
- 士\n本科\n专科\n中学\n小学\n其它','');
- INSERT INTO pre_common_member_profile_setting VALUES ('company','1','0','0','公司','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('occupation','1','0','0','职业','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('position','1','0','0','职位','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('revenue','1','0','0','年收入','单位
- 元','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('affectivestatus','1','1','0','情感状
- 态','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('lookingfor','1','0','0','交友目的','希望在网站找到什么样的朋
- 友','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('bloodtype','1','1','0','血
- 型','','0','0','0','0','0','select','0','A\nB\nAB\nO\n其它','');
- INSERT INTO pre_common_member_profile_setting VALUES ('height','0','1','0','身高','单位 cm','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('weight','0','1','0','体重','单位 kg','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('alipay','1','1','0','支付宝帐号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('icq','0','1','0','ICQ号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('qq','1','1','0','QQ号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('yahoo','0','1','0','YAHOO帐号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('msn','1','1','0','MSN帐号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('taobao','1','1','0','阿里旺旺帐
- 号','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('site','1','0','0','个人主页','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('bio','1','1','0','自我介绍','','0','0','0','0','0','textarea','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('interest','1','0','0','兴趣爱
- 好','','0','0','0','0','0','textarea','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field1','0','1','0','自定义字段1','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field2','0','1','0','自定义字段2','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field3','0','1','0','自定义字段3','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field4','0','1','0','自定义字段4','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field5','0','1','0','自定义字段5','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field6','0','1','0','自定义字段6','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field7','0','1','0','自定义字段7','','0','0','0','0','0','text','0','','');
- INSERT INTO pre_common_member_profile_setting VALUES ('field8','0','1','0','自定义字段8','','0','0','0','0','0','text','0','','');
复制代码 AD下自己的站:星麓社区:湖南高校联盟..湖南大学生联盟 http://www.6cs.net |