<?php

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

//模块名称
$_G['module']['form']['name']	=	"表单";

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

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

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

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

//模块网站
$_G['module']['form']["describe"]	=	"你可以自定义表单和选项，用来制作数据收集工具。";

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

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

//操作菜单
$_G['module']['form']['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']['form']['sign']	=	array('<span class="text-no">未确认</a>','<span class="text-yes">已确认</a>');

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

//用户数据扩展
if( $_SESSION['Manager']['id'] ){
	$_G['module']['form']["value"]	=	array('MODIFY'=>'编辑','PAYMENT'=>'支付');
}else{
	$_G['module']['form']["value"]	=	array('PAYMENT'=>'支付');
}


//权限配置
$_G['module']['form']['func'] = array(
							  "form-add"=>"添加表单",
							  "form-mod"=>"修改表单",
							  "form-del"=>"删除表单",
							  "form-data-dow"=>"下载用户数据",
							  "form-data-del"=>"删除用户数据",
							  "form-other"=>"<span class='text-yes'>包含他人表单</span>"
							);

//模块菜单
$_G['module']['form']['menu'] = array(
							  "新增表单"=>"form.edit.php",
							  "管理表单"=>"form.list.php"
							);

//页面接口
/*
$_G['module']['form']['hooks'] = array(
							 "start:panel-tab"=>"form_tab",
							 "start:panel-box"=>"form_box"
							);
*/

//选项组类型
$_G['module']['form']["group"]	=	array(
	"radio"=>"单选",
	"checkbox"=>"复选",
	"text"=>"单行输入",
	"textarea"=>"多行输入",
	"select"=>"下拉选框",
	"file"=>"文件上传"
);

//订单查询
$_G['module']['form']["payment"]	=	VI_HOST.'module/form/content/?id={fid}&action=trade&trade={id}';	
?>