第一次安装的方法:
一、把文件上传到根目录
二、执行SQL语句:
CREATE TABLE IF NOT EXISTS `uchome_app_bet` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`username` varchar(50) DEFAULT NULL,
`leibie` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL COMMENT '??????',
`title2` varchar(255) NOT NULL,
`shuiwei1` float NOT NULL,
`shuiwei2` float NOT NULL,
`peilv` float NOT NULL,
`bet_amount` int(11) NOT NULL,
`description` varchar(255) NOT NULL COMMENT '??????',
`type` enum('radio','checkbox') NOT NULL DEFAULT 'radio',
`answer_count` int(11) NOT NULL DEFAULT '0',
`bet_count` int(11) NOT NULL DEFAULT '0',
`created` int(11) NOT NULL DEFAULT '0',
`expiretime` int(11) NOT NULL DEFAULT '0',
`bifen1` int(11) NOT NULL,
`bifen2` int(11) NOT NULL,
`close_bet_user_name` text,
`close_bet` int(11) NOT NULL DEFAULT '0',
`zhuangying` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=111 ;
CREATE TABLE IF NOT EXISTS `uchome_app_bet_answer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`bet_id` int(11) NOT NULL DEFAULT '0',
`answer` varchar(255) NOT NULL COMMENT '????????',
`answer2` varchar(255) NOT NULL,
`num` int(11) NOT NULL DEFAULT '0' COMMENT '???',
`beted_amount` int(11) NOT NULL,
`beted_amount2` int(11) NOT NULL,
`created_time` int(11) NOT NULL,
`closedtime` int(11) NOT NULL,
`bet_user_id` int(11) NOT NULL,
`bet_user_name` text NOT NULL,
`bebeted_user_name` text NOT NULL,
`bebeted_user_id` int(11) NOT NULL,
`bet_shuiwei1` float NOT NULL,
`bet_shuiwei2` float NOT NULL,
`peilv` float NOT NULL,
`bet_jiesuan` int(11) NOT NULL,
`close_bet` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `vote_id` (`bet_id`)
) ENGINE=MyISAM DEFAULT CHARSET=gbk AUTO_INCREMENT=216 ;
CREATE TABLE IF NOT EXISTS `uchome_app_bet_bet` (
`id` int(11) NOT NULL,
`bebeted_user_id` int(11) NOT NULL,
`bebeted_user_name` text CHARACTER SET gbk NOT NULL,
`beted_user_id` int(11) NOT NULL,
`beted_user_name` text CHARACTER SET gbk NOT NULL,
`bet_match_id` int(11) NOT NULL,
`bet_team_id` int(11) NOT NULL,
`bet_team_name` text CHARACTER SET gbk NOT NULL,
`bet_amount` int(11) NOT NULL,
`bet_shuiwei` int(11) NOT NULL,
`bet_time` int(11) NOT NULL,
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
3)打开template\default\header.htm页面
在“
<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>
”的下面添加一行:
“<li><img src="image/icon/dp.gif"><a href="info.php?do=info">投注</a>></li>”
4)打开info.php页面,可以对系统管理员ID进行设置:
//系统管理员ID,请修改成管理员ID,这样能删除所有人发布的问答
define("ADMIN_ID","1");
”
5)进后管理员后,“高级应用”-->“缓存更新”-->勾上“模板文件缓存”-->“缓存更新” |