<?php

$appid	=	"adsview";

/***********基本配置************/

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

//模块名称
$_G['module']['adsview']['name']	=	"广告";

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

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

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

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

//模块网站
$_G['module']['adsview']["describe"]	=	"本工具帮助您管理网站的广告投放，并提供详细的效果报表";

//应用标识名称
$_G['module']['adsview']['appid']	=	$appid;

/***********高级配置************/

//操作菜单
$_G['module']['adsview']['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>';

//搜索配置
/*
	table	表名
	title	内容名称 [用于搜索]
	keyword	被搜索的字段 [用于搜索]
	private	私有数据统计条件 [用于统计]
	order	排序方式 [用于搜索]
	fieds	显示字段 [用于搜索]
	extra	输出扩展 [用于搜索]
*/
$_G['module']['adsview']['search']	=	array(
	"table"=>"{TableModPre}adsview",
	"title"=>"广告",
	"keyword"=>"name",
	"private"=>" aid = ".$_SESSION['Manager']['id'],
	"order"=>"id",
	"fieds"=>array("id"=>"ID","name"=>"广告名称","account"=>"创建者","custom"=>"客户","link"=>"链接地址"),
	"extra"=>array("name"=>"<a onclick='parent.Mo.Window(\"window\",\"搜索结果预览\" , \"module/adsview/adsview.list.php?s=id&q={id}\" , \"90%\" , 500 ,{});void(0);'>{name}</a>")
);

//用户权限
$_G['module']['adsview']['func'] = array(
							  "adsview-add"=>"添加广告",
							  "adsview-mod"=>"修改广告",
							  "adsview-del"=>"删除广告",
							  "adsview-dow"=>"下载报告",
							  "adsarea-add"=>"添加频道",
							  "adsarea-mod"=>"修改频道",
							  "adsarea-del"=>"删除频道",
							  "adstrade-mod"=>"修改订单",
							  "adstrade-del"=>"删除订单"
							);

//模块菜单
$_G['module']['adsview']['menu'] = array(
							  "新增广告"=>"adsview.edit.php",
							  "管理广告"=>"adsview.list.php",
							  "广告位"=>"adsarea.list.php",
							  "报告"=>"adsview.value.php"
							);
		
//页面接口
$_G['module']['adsview']['hooks'] = array( 'passport/naver' => 'Module::get_naver('.$appid.')' );

/***********扩展配置************/

//核心 JS 文件
$_G['module']['adsview']["core"]	=	"adsview.js";

//表单状态
$_G['module']['adsview']["type"]	=	array("","普通广告","随机广告","对联广告","文字广告","落幅广告（已弃用）","弹出窗口","内嵌框架 - IFRAME","滑出广告","图片轮换 - FLASH","滚动广告","漂浮广告","轮换广告 - 多种格式","自定义 - HTML 模板");

//用户标识
$_G['module']['adsview']["full"]	=	array("欠余款","款到齐","未付款");

//广告到期前多少天提醒
$_G['module']['adsview']["expire"]	=	10;

//广告到期在多少天前接爱预定
$_G['module']['adsview']["order"]	=	5;

//显示与点击倍率
$_G['module']['adsview']["multiple"]	=	10;

//状态信息
$_G['module']['adsview']['state']	=	array('<span class="text-no">已停用</a>','<span class="text-key">待播中</a>','<span class="text-yes">已在播</a>','<span class="text-yes">预定中</a>','<span class="text-gray">已过期</a>');

//订单查询
$_G['module']['adsview']["payment"]	=	VI_HOST.'module/adsview/content/service.php?action=query&trade={trade}';
	
?>