Example #1
0
function current_manageteam($selector = 'edit', $id = 0)
{
    $selector = $selector ? $selector : 'edit';
    $a = array("/manage/team/edit.php?id={$id}" => '基本信息', "/manage/team/editvoucher.php?id={$id}" => '商户券信息', "/manage/team/editzz.php?id={$id}" => '杂项信息', "/manage/team/editseo.php?id={$id}" => 'SEO信息');
    $l = "/manage/team/{$selector}.php?id={$id}";
    return current_link($l, $a);
}
Example #2
0
function current_managenews($selector = 'edit', $id = 0)
{
    $selector = $selector ? $selector : 'edit';
    $a = array("/manage/news/edit.php?id={$id}" => '基本信息');
    $l = "/manage/news/{$selector}.php?id={$id}";
    return current_link($l, $a);
}
Example #3
0
function mcurrent_vote($selector='index'){
	$a = array(
		'/manage/vote/index.php' => '首页',
		'/manage/vote/feedback.php' => '反馈',
		'/manage/vote/question.php' => '问题',
	);
	$l = "/manage/vote/{$selector}.php";
	return current_link($l,$a,true);
}
Example #4
0
function current_teamcategory($gid='0') {
	global $city;
	$a = array(
			'/tg/index.php' => '所有',
			);
	foreach(option_hotcategory('group') AS $id=>$name) {
		$a["/tg/index.php?gid={$id}"] = $name;
	}
	$l = "/tg/index.php?gid={$gid}";
	if (!$gid) $l = "/tg/index.php";
	return current_link($l, $a, true);
}
Example #5
0
function current_teamcategory($gid = '0')
{
    global $city;
    $a = array('/team/goods.php' => '所有');
    foreach (option_category('group') as $id => $name) {
        $a["/team/goods.php?gid={$id}"] = $name;
    }
    $l = "/team/goods.php?gid={$gid}";
    if (!$gid) {
        $l = "/team/goods.php";
    }
    return current_link($l, $a, true);
}
Example #6
0
function current_system_index($s = null)
{
    global $city;
    $filter = array('a' => 'AAAAAAA', 'b' => 'BBBBBBBBB', 'c' => 'CCCCCCCC', 'd' => 'DDDDDDDDD', 'e' => 'EEEEEEEEE');
    $a['/manage/system/index.php'] = '基本';
    foreach ($filter as $id => $name) {
        $a["/manage/system/index.php?s={$id}"] = $name;
    }
    $l = '/manage/system/index.php';
    if ($s) {
        $l = "/manage/system/index.php?s={$s}";
    }
    return current_link($l, $a, true);
}
Example #7
0
function current_teamcategory($gid = '0')
{
    global $city;
    $a = array('/team/seconds.php' => '所有');
    $categorys = DB::LimitQuery('category', array('condition' => array('zone' => 'group', 'fid' => '0', 'display' => 'Y'), 'order' => 'ORDER BY sort_order DESC, id DESC'));
    $categorys = Utility::OptionArray($categorys, 'id', 'name');
    foreach ($categorys as $id => $name) {
        $a["/team/seconds.php?gid={$id}"] = $name;
    }
    $l = "/team/seconds.php?gid={$gid}";
    if (!$gid) {
        $l = "/team/seconds.php";
    }
    return current_link($l, $a, true);
}
Example #8
0
function current_system_option($s = null)
{
    global $city;
    if (option_yes('daysign')) {
        $filter = array('a' => '页面设置', 'b' => '地址重写', 'c' => '登录设置', 'd' => '每日签到设置');
    } else {
        $filter = array('a' => '页面设置', 'b' => '地址重写', 'c' => '登录设置');
    }
    $a['/manage/system/option.php'] = '基本选项';
    foreach ($filter as $id => $name) {
        $a["/manage/system/option.php?s={$id}"] = $name;
    }
    $l = '/manage/system/option.php';
    if ($s) {
        $l = "/manage/system/option.php?s={$s}";
    }
    return current_link($l, $a, true);
}
Example #9
0
function mcurrent_credit($selector = null)
{
    $a = array('/manage/credit/index.php' => '积分记录', '/manage/credit/settings.php' => '积分规则', '/manage/credit/goods.php' => '商品兑换');
    $l = "/manage/credit/{$selector}.php";
    return current_link($l, $a, true);
}
Example #10
0
function mcurrent_charity($selector = null)
{
    $a = array('/manage/charity/charity.php' => 'Charity');
    $l = "/manage/charity/{$selector}.php";
    return current_link($l, $a, true);
}
Example #11
0
function mcurrent_news($selector = null)
{
    $a = array('/manage/news/index.php' => '当前新闻', '/manage/news/edit.php' => '添加新闻');
    $l = "/manage/news/{$selector}.php";
    return current_link($l, $a, true);
}
Example #12
0
function current_team_category($gid = '0')
{
    global $city;
    $city_id = $city['id'];
    $today = strtotime(date('Y-m-d'));
    $condition = array('team_type' => 'normal', "begin_time <= '{$today}'", "end_time > '{$today}'");
    $condition[] = "(city_ids like '%@{$city_id}@%' or city_ids like '%@0@%') or (city_ids = '' and city_id in(0,{$city_id}))";
    $categorys = DB::LimitQuery('category', array('condition' => array('zone' => 'group', 'fid' => '0', 'display' => 'Y'), 'order' => 'ORDER BY sort_order DESC, id DESC'));
    $categorys = Utility::OptionArray($categorys, 'id', 'name');
    $a = array();
    foreach ($categorys as $id => $name) {
        $condition['group_id'] = $id;
        $num = Table::Count('team', $condition);
        if (option_yes('rewritecity')) {
            $a["/{$city['ename']}?gid={$id}"] = $name . '(' . $num . ')';
        } else {
            $a["/index.php?gid={$id}"] = $name . '(' . $num . ')';
        }
    }
    if (option_yes('rewritecity')) {
        $l = "/{$city['ename']}?gid={$gid}";
    } else {
        $l = "/index.php?gid={$gid}";
    }
    if (!$gid) {
        $l = "/index.php";
    }
    return current_link($l, $a, true);
}
Example #13
0
function current_ask($selector = 'ask', $id = 0)
{
    $a = array("/team/ask.php?id={$id}" => '团购答疑', "/team/transfer.php?id={$id}" => '求购转让');
    $l = "/team/{$selector}.php?id={$id}";
    return current_link($l, $a, true);
}
Example #14
0
File: sms.php Project: noikiy/mdwp
function current_system_sms($s=null) {
	global $city;
	$filter = array(
		'a' => '短信模板'
	);
	$a['/manage/system/sms.php'] = '基本选项';
	foreach($filter AS $id=>$name) {
		$a["/manage/system/sms.php?s={$id}"] = $name;
	}
	$l = '/manage/system/sms.php';
	if ($s) $l = "/manage/system/sms.php?s={$s}";
	return current_link($l, $a, true);
}
Example #15
0
function mcurrent_system($selector = null)
{
    $a = array('/manage/system/index.php' => '基本', '/manage/system/option.php' => '选项', '/manage/system/bulletin.php' => '公告', '/manage/system/pay.php' => '支付', '/manage/system/email.php' => '邮件', '/manage/system/sms.php' => '短信', '/manage/system/city.php' => '城市', '/manage/system/page.php' => '页面', '/manage/system/cache.php' => '缓存', '/manage/system/skin.php' => '皮肤', '/manage/system/template.php' => '模板', '/manage/system/upgrade.php' => '升级');
    $l = "/manage/system/{$selector}.php";
    return current_link($l, $a, true);
}
Example #16
0
function mcurrent_activity($selector=null) {

	$a = array(
		'/manage/activity/index.php' => '活动首页',
		'/manage/activity/create.php' => '添加活动',
	);

	$l = "/manage/activity/{$selector}.php";
	return current_link($l,$a,true);

}
Example #17
0
function current_team_category_child($gid,$sid) {
	$categorys = DB::LimitQuery('category', array(
		'condition' => array( 'zone' => 'group','fid' => $gid,'display' => 'Y' ),
		'order' => 'ORDER BY sort_order DESC, id ASC',
	));
	$categorys = Utility::OptionArray($categorys, 'id', 'name');
	if($gid!=0){
		$a = array();
		foreach($categorys AS $id=>$name) {
			$num= Table::Count('team',array("sub_id"=>$id));
			if(option_yes('rewritecity')){
				$a["/{$city['ename']}?gid=$gid&sid=$id"] = $name.'('.$num.')';
			}else{
				$a["/index.php?gid=$gid&sid=$id"] = $name.'('.$num.')';
			}
		}
		if(option_yes('rewritecity')){
			$l = "/{$city['ename']}?gid=$gid&sid=$sid";
		}else{
			$l = "/index.php?gid=$gid&sid=$sid";
		}	
		return current_link($l, $a, true);
	}
}