From 2feb6fc2a9d64c0fef3e7eae68a236811c2d6c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=94=E5=93=A5?= Date: Fri, 3 Nov 2017 15:59:51 +0800 Subject: [PATCH] * score rule add btn --- db/update9.5.1.sql | 1 + module/my/view/score.html.php | 2 +- module/score/view/rule.html.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/db/update9.5.1.sql b/db/update9.5.1.sql index 8e729a639e..1d573eaf76 100644 --- a/db/update9.5.1.sql +++ b/db/update9.5.1.sql @@ -80,6 +80,7 @@ ALTER TABLE `zt_team` ADD PRIMARY KEY (`project`, `task`, `account`); ALTER TABLE `zt_user` ADD `score` INT(12) NOT NULL DEFAULT '0' AFTER `deleted`; ALTER TABLE `zt_user` ADD `scoreLevel` INT(11) NOT NULL DEFAULT '0' AFTER `score`; +-- DROP TABLE IF EXISTS `zt_score`; CREATE TABLE `zt_score` ( `id` bigint(12) unsigned NOT NULL AUTO_INCREMENT, `account` varchar(30) NOT NULL, diff --git a/module/my/view/score.html.php b/module/my/view/score.html.php index d61caeecaf..e010443d6f 100644 --- a/module/my/view/score.html.php +++ b/module/my/view/score.html.php @@ -13,7 +13,7 @@
icons['score']); ?>score->record; ?>
- score; ?> + score->current; ?>:score; ?> app->user->admin == 1) echo html::a($this->createLink('score', 'rule'), $lang->my->scoreRule, '', "class='btn btn-primary'");?>
diff --git a/module/score/view/rule.html.php b/module/score/view/rule.html.php index dbdfe1abfa..edf70c2960 100644 --- a/module/score/view/rule.html.php +++ b/module/score/view/rule.html.php @@ -13,7 +13,7 @@
my->scoreRule; ?>
- + createLink('my', 'score'), $lang->score->common, '', "class='btn btn-primary'");?>