diff --git a/Makefile b/Makefile
index f511627ccc..29150c6eb1 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,6 @@ zentaoxx:
cp -r xuanxuan/config/* zentaoxx/config/
cp -r xuanxuan/module/* zentaoxx/module/
cp -r xuanxuan/www/* zentaoxx/www/
- mv zentaoxx/www/xuanxuan.php zentaoxx/www/x.php
sed -i 's/site,//' zentaoxx/module/chat/model.php
sed -i 's/admin, g/g/' zentaoxx/module/chat/model.php
sed -i '/password = md5/d' zentaoxx/module/chat/control.php
diff --git a/module/build/view/view.html.php b/module/build/view/view.html.php
index 8776806523..9d46ee6a17 100644
--- a/module/build/view/view.html.php
+++ b/module/build/view/view.html.php
@@ -39,8 +39,8 @@ tbody tr td:first-child input{display:none;}
deleted)
{
- common::printIcon('build', 'edit', "buildID=$build->id", $build);
- common::printIcon('build', 'delete', "buildID=$build->id", $build, 'button', 'trash', 'hiddenwin');
+ if(common::hasPriv('build', 'edit')) echo html::a($this->createLink('build', 'edit', "buildID=$build->id"), " " . $this->lang->edit, '', "class='btn btn-link' title='{$this->lang->edit}'");
+ if(common::hasPriv('build', 'delete')) echo html::a($this->createLink('build', 'delete', "buildID=$build->id"), " " . $this->lang->delete, '', "class='btn btn-link' title='{$this->lang->delete}' target='hiddenwin'");
}
?>
diff --git a/module/productplan/view/view.html.php b/module/productplan/view/view.html.php
index 0428e7f782..fe944726c9 100644
--- a/module/productplan/view/view.html.php
+++ b/module/productplan/view/view.html.php
@@ -37,9 +37,9 @@
deleted)
{
- if(common::hasPriv('productplan', 'create') and $plan->parent <= '0') echo html::a($this->createLink('productplan', 'create', "product={$plan->product}&branch={$plan->branch}&parent={$plan->id}"), "" . $this->lang->productplan->children , '', "class='btn btn-link' title='{$this->lang->productplan->children}'");
- common::printIcon('productplan', 'edit', "planID=$plan->id", $plan);
- common::printIcon('productplan', 'delete', "planID=$plan->id", $plan, 'button', 'trash', 'hiddenwin');
+ if(common::hasPriv('productplan', 'create') and $plan->parent <= '0') echo html::a($this->createLink('productplan', 'create', "product={$plan->product}&branch={$plan->branch}&parent={$plan->id}"), " " . $this->lang->productplan->children , '', "class='btn btn-link' title='{$this->lang->productplan->children}'");
+ if(common::hasPriv('productplan', 'edit')) echo html::a($this->createLink('productplan', 'edit', "planID=$plan->id"), " " . $this->lang->edit, '', "class='btn btn-link' title='{$this->lang->edit}'");
+ if(common::hasPriv('productplan', 'delete')) echo html::a($this->createLink('productplan', 'delete', "planID=$plan->id"), " " . $this->lang->delete, '', "class='btn btn-link' title='{$this->lang->delete}' target='hiddenwin'");
}
?>
@@ -57,16 +57,27 @@
'>
- deleted)
- {
- $batchMisc = common::hasPriv('story', 'batchCreate') ? 'btn btn-link' : "disabled";
- $batchLink = common::hasPriv('story', 'batchCreate') ? $this->createLink('story', 'batchCreate', "productID=$plan->product&branch=$plan->branch&moduleID=0&story=0&project=0&plan={$plan->id}") : '#';
- echo html::a($batchLink, "
" . $lang->story->batchCreate . '', '', "class='$batchMisc'");
- common::printIcon('story', 'create', "productID=$plan->product&branch=$plan->branch&moduleID=0&storyID=0&projectID=0&bugID=0&planID=$plan->id", $plan, 'button', 'plus');
- }
- if(common::hasPriv('productplan', 'linkStory')) echo html::a("javascript:showLink($plan->id, \"story\")", '
' . $lang->productplan->linkStory, '', "class='btn btn-primary'");
- ?>
+ deleted):?>
+
+
+ createLink('story', 'create', "productID=$plan->product&branch=$plan->branch&moduleID=0&storyID=0&projectID=0&bugID=0&planID=$plan->id") : '#';
+ $createMisc = common::hasPriv('story', 'create') ? 'btn btn-secondary' : " btn btn-secondary disabled";
+ echo html::a($createLink, "" . $lang->story->create . "", '', "class='$createMisc'");
+ ?>
+
+
+
+
+ id, \"story\")", '
' . $lang->productplan->linkStory, '', "class='btn btn-primary'");?>
diff --git a/module/release/view/view.html.php b/module/release/view/view.html.php
index 4778d230ed..baeeaec607 100644
--- a/module/release/view/view.html.php
+++ b/module/release/view/view.html.php
@@ -36,10 +36,10 @@
if(common::hasPriv('release', 'changeStatus', $release))
{
$changedStatus = $release->status == 'normal' ? 'terminate' : 'normal';
- echo html::a(inlink('changeStatus', "releaseID=$release->id&status=$changedStatus"), '
', 'hiddenwin', "class='btn btn-link' title='{$lang->release->changeStatusList[$changedStatus]}'");
+ echo html::a(inlink('changeStatus', "releaseID=$release->id&status=$changedStatus"), '
' . $lang->release->changeStatusList[$changedStatus], 'hiddenwin', "class='btn btn-link' title='{$lang->release->changeStatusList[$changedStatus]}'");
}
- common::printIcon('release', 'edit', "releaseID=$release->id", $release);
- common::printIcon('release', 'delete', "releaseID=$release->id", $release, 'button', 'trash', 'hiddenwin');
+ if(common::hasPriv('release', 'edit')) echo html::a($this->createLink('release', 'edit', "releaseID=$release->id"), "
" . $this->lang->edit, '', "class='btn btn-link' title='{$this->lang->edit}'");
+ if(common::hasPriv('release', 'delete')) echo html::a($this->createLink('release', 'delete', "releaseID=$release->id"), "
" . $this->lang->delete, '', "class='btn btn-link' title='{$this->lang->delete}' target='hiddenwin'");
}
?>
diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php
index c4d7931499..cc647909e7 100644
--- a/module/task/view/view.html.php
+++ b/module/task/view/view.html.php
@@ -343,8 +343,20 @@
getClientLang() == 'en' ? 'w-90px' : 'w-70px';?>
+
+ | task->estimate;?> |
+ estimate . $lang->workingHour;?> |
+
- | task->estStarted;?> |
+ task->consumed;?> |
+ consumed, 2) . $lang->workingHour;?> |
+
+
+ | task->left;?> |
+ left . $lang->workingHour;?> |
+
+
+ | task->estStarted;?> |
estStarted;?> |
@@ -360,18 +372,6 @@
?>
-
- | task->estimate;?> |
- estimate . $lang->workingHour;?> |
-
-
- | task->consumed;?> |
- consumed, 2) . $lang->workingHour;?> |
-
-
- | task->left;?> |
- left . $lang->workingHour;?> |
-
diff --git a/xuanxuan/www/upgradexuanxuan.php b/xuanxuan/www/upgradexuanxuan.php
deleted file mode 100644
index 007d588641..0000000000
--- a/xuanxuan/www/upgradexuanxuan.php
+++ /dev/null
@@ -1,27 +0,0 @@
-loadCommon();
-$common->loadModel('chat')->upgrade();
-
-/* Flush the buffer. */
-echo helper::removeUTF8Bom(ob_get_clean());
diff --git a/xuanxuan/www/xuanxuan.php b/xuanxuan/www/x.php
similarity index 100%
rename from xuanxuan/www/xuanxuan.php
rename to xuanxuan/www/x.php