From 1a0473ef845435cc5d458ed1802b0039200a3024 Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Thu, 11 Apr 2013 06:16:31 +0000 Subject: [PATCH] * finish task#1227. --- lib/front/front.class.php | 13 +++++++++++++ module/bug/view/create.html.php | 2 +- module/bug/view/view.html.php | 2 +- module/build/view/create.html.php | 2 +- module/build/view/edit.html.php | 2 +- module/dept/view/browse.html.php | 2 +- module/doc/view/create.html.php | 2 +- module/doc/view/edit.html.php | 2 +- module/my/view/changepassword.html.php | 2 +- module/my/view/editprofile.html.php | 2 +- module/product/view/order.html.php | 2 +- module/productplan/view/create.html.php | 2 +- module/productplan/view/edit.html.php | 2 +- module/project/view/create.html.php | 2 +- module/project/view/edit.html.php | 2 +- module/project/view/importbug.html.php | 2 +- module/project/view/order.html.php | 4 ++-- module/release/view/create.html.php | 2 +- module/release/view/edit.html.php | 2 +- module/story/view/batchcreate.html.php | 2 +- module/story/view/create.html.php | 2 +- module/story/view/view.html.php | 2 +- module/task/view/batchcreate.html.php | 2 +- module/task/view/create.html.php | 2 +- module/task/view/editestimate.html.php | 2 +- module/task/view/recordestimate.html.php | 2 +- module/task/view/view.html.php | 2 +- module/testcase/view/batchcreate.html.php | 2 +- module/testcase/view/create.html.php | 2 +- module/testcase/view/view.html.php | 2 +- module/testtask/view/create.html.php | 2 +- module/testtask/view/edit.html.php | 2 +- module/todo/view/batchcreate.html.php | 2 +- module/todo/view/create.html.php | 2 +- module/todo/view/edit.html.php | 2 +- module/tree/view/browse.html.php | 2 +- module/user/view/batchcreate.html.php | 2 +- module/user/view/batchedit.html.php | 2 +- module/user/view/create.html.php | 2 +- module/user/view/edit.html.php | 2 +- www/theme/default/style.css | 1 + 41 files changed, 54 insertions(+), 40 deletions(-) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 3133de0f83..3ea8449e35 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -432,6 +432,19 @@ EOT; return " "; } + /** + * gobackButton + * + * @static + * @access public + * @return void + */ + public static function gobackButton() + { + global $lang; + return ""; + } + /** * Create common button. * diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 82606d6944..cc2aaef2a9 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -100,7 +100,7 @@ js::set('page', 'create'); - + diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index 21f5ec79df..976953d491 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -68,7 +68,7 @@
id&comment=true")?>'> - +
diff --git a/module/build/view/create.html.php b/module/build/view/create.html.php index ca0c8f7abf..d9741772b3 100644 --- a/module/build/view/create.html.php +++ b/module/build/view/create.html.php @@ -103,7 +103,7 @@ build->desc;?> - + diff --git a/module/build/view/edit.html.php b/module/build/view/edit.html.php index becca832f9..0b7478add0 100644 --- a/module/build/view/edit.html.php +++ b/module/build/view/edit.html.php @@ -122,7 +122,7 @@ build->desc;?> desc), "rows='15' class='area-1'");?> - project);?> + project);?> diff --git a/module/dept/view/browse.html.php b/module/dept/view/browse.html.php index fcf9603175..f0495c9d2b 100644 --- a/module/dept/view/browse.html.php +++ b/module/dept/view/browse.html.php @@ -56,7 +56,7 @@ - + diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index 99acc883e8..ed2d2a48d8 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -64,7 +64,7 @@ fetch('file', 'buildform', 'fileCount=2');?> - + diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index 21f439d4c1..8ca6c5628f 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -59,7 +59,7 @@ $(document).ready(function() - + product) . html::hidden('project', $doc->project);?> diff --git a/module/my/view/changepassword.html.php b/module/my/view/changepassword.html.php index faf0f965af..114fd9d409 100755 --- a/module/my/view/changepassword.html.php +++ b/module/my/view/changepassword.html.php @@ -27,7 +27,7 @@ - + diff --git a/module/my/view/editprofile.html.php b/module/my/view/editprofile.html.php index 7cf7eef903..b5da7dfc69 100644 --- a/module/my/view/editprofile.html.php +++ b/module/my/view/editprofile.html.php @@ -93,7 +93,7 @@ zipcode);?> - + diff --git a/module/product/view/order.html.php b/module/product/view/order.html.php index 16004413e0..523d2c807e 100644 --- a/module/product/view/order.html.php +++ b/module/product/view/order.html.php @@ -25,7 +25,7 @@ id, $product->order, "size='5'")?> - + diff --git a/module/productplan/view/create.html.php b/module/productplan/view/create.html.php index 590b603b80..753c09e773 100644 --- a/module/productplan/view/create.html.php +++ b/module/productplan/view/create.html.php @@ -44,7 +44,7 @@ id); ?> diff --git a/module/productplan/view/edit.html.php b/module/productplan/view/edit.html.php index 875c59ae8f..600372aeb4 100644 --- a/module/productplan/view/edit.html.php +++ b/module/productplan/view/edit.html.php @@ -40,7 +40,7 @@ id); ?> diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index a49be6bc60..29416975a0 100644 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -97,7 +97,7 @@ $(document).ready(function() - + diff --git a/module/project/view/edit.html.php b/module/project/view/edit.html.php index aed90a5bbe..bff06257a2 100644 --- a/module/project/view/edit.html.php +++ b/module/project/view/edit.html.php @@ -85,7 +85,7 @@ project->whitelist;?> whitelist);?> - + diff --git a/module/project/view/importbug.html.php b/module/project/view/importbug.html.php index 0989210eba..91862cefa5 100755 --- a/module/project/view/importbug.html.php +++ b/module/project/view/importbug.html.php @@ -53,7 +53,7 @@ var browseType = '';
show();?>
-
import) . html::resetButton();?>
+
import) . html::gobackButton();?>
diff --git a/module/project/view/order.html.php b/module/project/view/order.html.php index 2b3f753af3..f9ebf8786a 100644 --- a/module/project/view/order.html.php +++ b/module/project/view/order.html.php @@ -29,7 +29,7 @@ id, $project->order, "size='5'")?> - +
@@ -48,7 +48,7 @@ id, $project->order, "size='5'")?> - +
diff --git a/module/release/view/create.html.php b/module/release/view/create.html.php index 322a041d71..80affb6a43 100644 --- a/module/release/view/create.html.php +++ b/module/release/view/create.html.php @@ -39,7 +39,7 @@ release->desc;?> - + diff --git a/module/release/view/edit.html.php b/module/release/view/edit.html.php index e66793b83e..03f90abf9e 100644 --- a/module/release/view/edit.html.php +++ b/module/release/view/edit.html.php @@ -109,7 +109,7 @@ desc), "rows='20' class='area-1'");?> - product);?> + product);?> diff --git a/module/story/view/batchcreate.html.php b/module/story/view/batchcreate.html.php index fd456c7944..da8a2e0f0e 100644 --- a/module/story/view/batchcreate.html.php +++ b/module/story/view/batchcreate.html.php @@ -38,7 +38,7 @@ story->reviewList, 0, "class='text-1'");?> - + diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index cb946134a1..774473f26d 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -73,7 +73,7 @@ story->legendAttatch;?> fetch('file', 'buildform');?> - + diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index bbbf11d13e..7f06328b4f 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -72,7 +72,7 @@
id")?>'> - +
diff --git a/module/task/view/batchcreate.html.php b/module/task/view/batchcreate.html.php index 1edaed9585..13b13feb7a 100644 --- a/module/task/view/batchcreate.html.php +++ b/module/task/view/batchcreate.html.php @@ -57,7 +57,7 @@ task->priList, $pri, 'class=select-1');?> - + diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index 36815a7ec8..d58ea005b2 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -99,7 +99,7 @@ task->afterChoices, 'continueAdding');?> - + diff --git a/module/task/view/editestimate.html.php b/module/task/view/editestimate.html.php index a7133bad76..26d409ee1a 100644 --- a/module/task/view/editestimate.html.php +++ b/module/task/view/editestimate.html.php @@ -33,7 +33,7 @@ - + diff --git a/module/task/view/recordestimate.html.php b/module/task/view/recordestimate.html.php index 2309b8e521..03a8fa3a6b 100644 --- a/module/task/view/recordestimate.html.php +++ b/module/task/view/recordestimate.html.php @@ -63,7 +63,7 @@ - + diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php index ac4ceebcda..43863737dd 100644 --- a/module/task/view/view.html.php +++ b/module/task/view/view.html.php @@ -68,7 +68,7 @@
id&comment=true")?>'> - +
diff --git a/module/testcase/view/batchcreate.html.php b/module/testcase/view/batchcreate.html.php index a94dabdf88..8d1c04a765 100644 --- a/module/testcase/view/batchcreate.html.php +++ b/module/testcase/view/batchcreate.html.php @@ -36,7 +36,7 @@ - + diff --git a/module/testcase/view/create.html.php b/module/testcase/view/create.html.php index 45e1ceade7..faf82702f7 100644 --- a/module/testcase/view/create.html.php +++ b/module/testcase/view/create.html.php @@ -92,7 +92,7 @@ fetch('file', 'buildform');?> - + diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php index 5b8ee5c31f..8e1377eb64 100644 --- a/module/testcase/view/view.html.php +++ b/module/testcase/view/view.html.php @@ -87,7 +87,7 @@
id&comment=true")?>'> - +
diff --git a/module/testtask/view/create.html.php b/module/testtask/view/create.html.php index b85ed43b06..bf7ed8ef4c 100644 --- a/module/testtask/view/create.html.php +++ b/module/testtask/view/create.html.php @@ -64,7 +64,7 @@ - + diff --git a/module/testtask/view/edit.html.php b/module/testtask/view/edit.html.php index 39ebbecd15..6d3b3f297a 100644 --- a/module/testtask/view/edit.html.php +++ b/module/testtask/view/edit.html.php @@ -57,7 +57,7 @@ report), "rows=10 class='area-1'");?> - + diff --git a/module/todo/view/batchcreate.html.php b/module/todo/view/batchcreate.html.php index c980734b3b..8d400f705f 100755 --- a/module/todo/view/batchcreate.html.php +++ b/module/todo/view/batchcreate.html.php @@ -44,7 +44,7 @@ - + diff --git a/module/todo/view/create.html.php b/module/todo/view/create.html.php index fc06a86bf6..87c2b370e9 100644 --- a/module/todo/view/create.html.php +++ b/module/todo/view/create.html.php @@ -57,7 +57,7 @@ - + diff --git a/module/todo/view/edit.html.php b/module/todo/view/edit.html.php index 51d68c8b95..4a69ae35dc 100644 --- a/module/todo/view/edit.html.php +++ b/module/todo/view/edit.html.php @@ -60,7 +60,7 @@ - + diff --git a/module/tree/view/browse.html.php b/module/tree/view/browse.html.php index 79c6fc5cd8..e0359245e4 100644 --- a/module/tree/view/browse.html.php +++ b/module/tree/view/browse.html.php @@ -92,7 +92,7 @@ diff --git a/module/user/view/batchcreate.html.php b/module/user/view/batchcreate.html.php index 56ac4c01bc..0abc3d8419 100644 --- a/module/user/view/batchcreate.html.php +++ b/module/user/view/batchcreate.html.php @@ -48,7 +48,7 @@ - + diff --git a/module/user/view/batchedit.html.php b/module/user/view/batchedit.html.php index d56af1ad0a..71f5abcd31 100644 --- a/module/user/view/batchedit.html.php +++ b/module/user/view/batchedit.html.php @@ -40,7 +40,7 @@ id]", $user->join, "class='w-p70 date'");?> - + diff --git a/module/user/view/create.html.php b/module/user/view/create.html.php index 8387c03428..74127615a3 100644 --- a/module/user/view/create.html.php +++ b/module/user/view/create.html.php @@ -62,7 +62,7 @@ user->genderList, 'm');?> - + diff --git a/module/user/view/edit.html.php b/module/user/view/edit.html.php index 80f0c402b0..a209fbf3d8 100644 --- a/module/user/view/edit.html.php +++ b/module/user/view/edit.html.php @@ -91,7 +91,7 @@ user->zipcode;?> zipcode, "class='text-3'");?> - + diff --git a/www/theme/default/style.css b/www/theme/default/style.css index 39a27edb64..a6b5ecf385 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -111,6 +111,7 @@ a {text-decoration:none;} .button-s{padding:2px 10px 2px 10px; font-size:14px; cursor:pointer} .button-r{padding:2px 10px 2px 10px; font-size:14px; cursor:pointer; color:gray} +.button-g{padding:2px 10px 2px 10px; font-size:14px; cursor:pointer; color:gray} .button-c{padding:2px 10px 2px 10px; font-size:14px; cursor:pointer} .button-d{color:blue; font-size:14px; cursor:pointer}