|
@@ -7,6 +7,27 @@ $option = array
|
|
|
2 => '冻结',
|
|
|
);
|
|
|
|
|
|
+$button = array();
|
|
|
+$list_button = Dever::config('base', 'project')->passport_list_button;
|
|
|
+
|
|
|
+if (Dever::project('score')) {
|
|
|
+ $button += array
|
|
|
+ (
|
|
|
+ '用户积分列表' => array('list', 'user&project=score&oper_parent=user&oper_project=passport'),
|
|
|
+ '用户等级列表' => array('list', 'user_level&project=score&oper_parent=user&oper_project=passport'),
|
|
|
+ );
|
|
|
+
|
|
|
+ if (!$list_button) {
|
|
|
+ $list_button = array();
|
|
|
+ }
|
|
|
+
|
|
|
+ $list_button += array
|
|
|
+ (
|
|
|
+ 'list100' => array('积分', '"user&project=score&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
|
|
|
+ 'list101' => array('等级', '"user_level&project=score&search_option_uid={id}&oper_parent=user&oper_project=passport"'),
|
|
|
+ );
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
$level = function()
|
|
|
{
|
|
@@ -17,8 +38,7 @@ $system = function()
|
|
|
{
|
|
|
$array = array();
|
|
|
$info = Dever::db('passport/system')->state();
|
|
|
- if($info)
|
|
|
- {
|
|
|
+ if ($info) {
|
|
|
$array += $info;
|
|
|
}
|
|
|
return $array;
|
|
@@ -28,8 +48,7 @@ $profession = function()
|
|
|
{
|
|
|
$array = array();
|
|
|
$info = Dever::db('passport/profession')->state();
|
|
|
- if($info)
|
|
|
- {
|
|
|
+ if ($info) {
|
|
|
$array += $info;
|
|
|
}
|
|
|
return $array;
|
|
@@ -401,8 +420,10 @@ return array
|
|
|
(
|
|
|
'excel' => true,
|
|
|
|
|
|
+ 'button' => $button,
|
|
|
+
|
|
|
# 列表
|
|
|
- 'list_button' => Dever::config('base', 'project')->passport_list_button,
|
|
|
+ 'list_button' => $list_button,
|
|
|
),
|
|
|
|
|
|
# 更新表结构
|