<?php
if (!defined('IN_MYMPS')){
    die('FORBIDDEN');
}

$ele = array(
	'information'=>'信息',
	'member'=>'会员',
	'siteabout'=>'站务',
	'plugin'=>'插件'
);

$element[information] = array(
	'信息'=>array(
			'table'=>'information',
			'url'=>'information.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			)
		);
		
$element[member] = array(
	'个人'=>array(
			'table'=>'member',
			'where'=> 'WHERE if_corp = \'0\'',
			'url'=>'member.php?if_corp=0'
			),
	'商家'=>array(
			'table'=>'member',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid' AND if_corp = '1'" : 'WHERE if_corp = \'1\'',
			'url'=>'member.php?if_corp=1'
			)
		);
		
$element[siteabout] = array(
	'公告'=>array(
			'table'=>'announce',
			'url'=>'announce.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			),
	'链接'=>array(
			'table'=>'flink',
			'url'=>'friendlink.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			)
		);
		
$element[plugin] = array(
	'新闻'=>array(
			'table'=>'news',
			'url'=>'news.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			),
	'优惠券'=>array(
			'table'=>'coupon',
			'url'=>'coupon_list.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			),
	'团购'=>array(
			'table'=>'group',
			'url'=>'group_list.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			),
	'商品'=>array(
			'table'=>'goods',
			'url'=>'goods_list.php',
			'where'=>$admin_cityid ? "WHERE cityid = '$admin_cityid'" : ''
			)
			
		);
?>