<?php

$appid	=	"vote";

/***************************/

$Modules[$appid] = array();

//模块名称
$Modules[$appid]["name"]	=	"投票";

//模块类型
$Modules[$appid]["model"]	=	"module";

//模块版本
$Modules[$appid]["version"]	=	"3.0";

//模块作者
$Modules[$appid]["author"]	=	"VeryIDE";

//模块网站
$Modules[$appid]["support"]	=	"http://www.veryide.com/";

//应用标识名称
$Modules[$appid]["appid"]	=	$appid;

/***************************/

//表单系统目录,相对于VeryIDE	*
//$Modules[$appid]["path"]	=	"../vote/";

//表单HTTP地址,绝对地址	*
//$Modules[$appid]["http"]	=	"../vote/";

//表单状态
$Modules[$appid]["state"]	=	array('<span class="text-no">已停用</a>','<span class="text-yes">使用中</a>','<span class="text-no">已过期</a>');

//操作菜单
$Modules[$appid]["tool"]	=	'<a href="javascript:Mo(\'#table tbody tr input[type=checkbox]\').checked( true ); void(0);">全选</a> / <a href="javascript:Mo(\'#table td input[type=checkbox]\').checked( false ); void(0);">不选</a> / <a href="javascript:Mo(\'#table td input[type=checkbox]\').checked(); void(0);">反选</a> - <a href="javascript:if(confirm(\'确定要启用所选吗?\')){ Mo(\'#formPost input[name=status]\').value(1); Mo(\'#formPost input[name=action]\').value(\'status\'); Mo(\'#formPost\').item(0).submit();}void(0);">启用所选</a> - <a href="javascript:if(confirm(\'确定要停用所选吗?\')){ Mo(\'#formPost input[name=status]\').value(0); Mo(\'#formPost input[name=action]\').value(\'status\'); Mo(\'#formPost\').item(0).submit(); }void(0);">停用所选</a> - <a href="javascript:if(confirm(\'确定要删除所选吗?\')){ Mo(\'#formPost input[name=action]\').value(\'delete\'); Mo(\'#formPost\').item(0).submit(); }void(0);">删除所选</a>';

//用户标识
$Modules[$appid]["sign"]	=	array('<span class="text-no">未确认</a>','<span class="text-yes">已确认</a>');

//搜索配置
$Modules[$appid]["search"]	=	array(
	"table"=>"{TableModPre}forms",
	"title"=>"投票",
	"where"=>" and appid='".$appid."' ",
	"keyword"=>"name",
	"private"=>" aid = ".$_SESSION["Manager"]["id"],
	"order"=>"id",
	"cache"=>"html/",
	"fieds"=>array("id"=>"ID","name"=>"选票名称","account"=>"创建者","f_view"=>"点击量"),
	"extra"=>array("name"=>"<a onclick='parent.Mo.Window(\"window\",\"搜索结果预览\" , \"poll.edit.php?fid={id}&action=edit\" , 900, 500 ,{});void(0);'>{name}</a>")
);

//权限配置
$Modules[$appid]["func"] = array(
							  "vote-add"=>"添加表单",
							  "vote-mod"=>"修改表单",
							  "vote-del"=>"删除表单",
							  "vote-data-dow"=>"下载用户数据",
							  "vote-data-dow"=>"删除用户数据"
							);
		
//左侧菜单
$Modules[$appid]["menu"] = array(
							  "新增选票"=>"vote.edit.php",
							  "管理选票"=>"vote.list.php"
							);
		
//选项风格
$Modules[$appid]["style"] = array(
							  "0"=>"",
							  "1"=>"{INPUT} {TAG}",
							  "2"=>"{INPUT} {TAG} <span>{DESC}</span>",
							  "3"=>'<img _src="{IMAGE}" alt="{TAG}" /> <br /> {INPUT}',
							  "4"=>'<img _src="{IMAGE}" alt="{TAG}" /> <br /> {TAG} <br /> {INPUT}',
							  "5"=>'<img _src="{IMAGE}" alt="{TAG}" /> <br /> {TAG} <br /> <span>{DESC}</span> <br /> {INPUT}',
							  "6"=>'<img _src="{IMAGE}" alt="{TAG}" /> <br /> {TAG} <br /> <strong>{COUNT}</strong> <br /> {INPUT}'
							);

//选项组类型
$Modules[$appid]["groups"]	=	array(
	"radio"=>"单选",
	"button"=>"按钮",
	"checkbox"=>"复选"
);
	
?>