<?php

$_G['module']['pk'] = array();

//模块名称
$_G['module']['pk']['name']	=	"辩论";

//模块类型
$_G['module']['pk']['model']	=	"module";

//模块版本
$_G['module']['pk']['version']	=	"3.0";

//模块作者
$_G['module']['pk']['author']	=	"VeryIDE";

//模块网站
$_G['module']['pk']['support']	=	"http://www.veryide.com/";

//模块网站
$_G['module']['pk']["describe"]	=	"正方还是反方，大家来PK一下吧";

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

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

//操作菜单
$_G['module']['pk']['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=state]\').value(1); Mo(\'#formPost input[name=action]\').value(\'state\'); Mo(\'#formPost\').submit();}void(0);">启用所选</a> - <a href="javascript:if(confirm(\'确定要停用所选吗?\')){ Mo(\'#formPost input[name=state]\').value(0); Mo(\'#formPost input[name=action]\').value(\'state\'); Mo(\'#formPost\').submit(); }void(0);">停用所选</a> - <a href="javascript:if(confirm(\'确定要删除所选吗?\')){ Mo(\'#formPost input[name=action]\').value(\'delete\'); Mo(\'#formPost\').submit(); }void(0);">删除所选</a>';

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

//正反方颜色
$_G['module']['pk']["color"]	=	array('','blue','green');

//评论每页数量
$_G['module']['pk']["pagesize"]	=	5;

//搜索配置
$_G['module']['pk']['search']	=	array(
	"table"=>"{TableModPre}form",
	"title"=>"擂台",
	"where"=>" and appid='pk' ",
	"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\",\"搜索结果预览\" , \"pk.edit.php?fid={id}&action=edit\" , 900, 500 ,{});void(0);'>{name}</a>")
);

//权限配置
$_G['module']['pk']['func'] = array(
							  "pk-add"=>"添加表单",
							  "pk-mod"=>"修改表单",
							  "pk-del"=>"删除表单",
							  "pk-data-dow"=>"下载用户数据",
							  "pk-data-del"=>"删除用户数据",
							  "pk-other"=>"<span class='text-yes'>包含他人表单</span>"
							);
							
//模块菜单
$_G['module']['pk']['menu'] = array(
							  "新增辩论"=>"pk.edit.php",
							  "管理辩论"=>"pk.list.php"
							);