* score rule add btn

This commit is contained in:
滔哥
2017-11-03 15:59:51 +08:00
parent 0a1b0abe87
commit 2feb6fc2a9
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -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,
+1 -1
View File
@@ -13,7 +13,7 @@
<div id='titlebar'>
<div class='heading'><?php echo html::icon($lang->icons['score']); ?><?php echo $lang->score->record; ?></div>
<div class='actions'>
<span class='btn disabled'><label><?php echo $lang->score->current; ?>:</label><?php echo $user->score; ?></span>
<a class='btn disabled'><strong><?php echo $lang->score->current; ?>:</strong><?php echo $user->score; ?></a>
<span class='btn disabled hidden'><label><?php echo $lang->score->level; ?>:</label><?php echo $user->scoreLevel; ?></span>
<?php if($this->app->user->admin == 1) echo html::a($this->createLink('score', 'rule'), $lang->my->scoreRule, '', "class='btn btn-primary'");?>
</div>
+1 -1
View File
@@ -13,7 +13,7 @@
<div id='titlebar'>
<div class='heading'><?php echo $lang->my->scoreRule; ?></div>
<div class='actions'>
<?php echo html::a($this->createLink('my', 'score'), $lang->score->common, '', "class='btn btn-primary'");?>
</div>
</div>
<table class="table table-striped">