<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://www.we7.cc" versionCode="0.51">
	<application setting="false">
		<name><![CDATA[微投票]]></name>
		<identifie><![CDATA[vote]]></identifie>
		<version><![CDATA[1.04]]></version>
		<type><![CDATA[activity]]></type>
		<ability><![CDATA[投票系统]]></ability>
		<description><![CDATA[图片、文字，单选，多选]]></description>
		<author><![CDATA[WeEngine Team & ewei]]></author>
		<url><![CDATA[]]></url>
	</application>
	<platform>
		<handles>
			<message type="text" />
		</handles>
		<rule embed="true" />
	</platform>
	<bindings>
            <rule>
			<entry title="查看投票记录" do="votelist" state="" direct="false" />
		</rule>
            	<menu>
		<entry title="微投票管理" do="manage" state="" direct="false" />
		</menu>
                                  <home call="getItemTiles" />
	</bindings>
	<install><![CDATA[
CREATE TABLE IF NOT EXISTS `ims_vote_fans` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `from_user` varchar(50) default '',
  `rid` int(11) default 0,
  `votes` varchar(255) default '',
  `votetime` int(11) default 0,
   PRIMARY KEY (`id`),
    KEY `indx_rid` (`rid`),
    KEY `indx_votetime` (`votetime`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_vote_option` (
  `id` int(10) AUTO_INCREMENT,
  `rid` int(10) default 0,
  `title` varchar(50) default '',
  `description` varchar(255) default '',
  `thumb` varchar(60) default '',
  `content` text default '',
  `vote_num` int(11) default 0,
  PRIMARY KEY (`id`),
  KEY `indx_rid` (`rid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `ims_vote_reply` (
  `id` int(10) AUTO_INCREMENT,
  `rid` int(10) default 0,
  `weid` int(10) default 0,
  `title` varchar(50) default '',
  `description` varchar(255) default '',
  `thumb` varchar(60) default '',
  `votetype` tinyint(4) default 0,
  `votetotal` int(10) default 0,
    `status` int(10) default 0,
    `votenum` int(10) default 0,
    `votetimes` int(10) default 0,
    `votelimit` int(10) default 0,
    `viewnum` int(10) default 0,
    `starttime` int(10) default 0,
    `endtime` int(10) default 0,
    `isimg` int(10) default 0,
    `isshow` int(10) default 0,
  `share_title` varchar(200) DEFAULT '',
  `share_desc` varchar(300) DEFAULT '',
  `share_url` varchar(100) DEFAULT '',
  `share_txt` varchar(500) DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `indx_rid` (`rid`),KEY `indx_weid` (`weid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;]]></install>
	<uninstall><![CDATA[
drop table if exists ims_vote_reply;
            drop table if exists ims_vote_option;
            drop table if exists ims_vote_fans;
            
]]></uninstall>
	<upgrade><![CDATA[upgrade.php]]></upgrade>
</manifest>