From b900f39205de4b82e44067914c719f27aaef87ba Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 15 Apr 2010 06:28:55 +0000 Subject: [PATCH] + add the feature of export 2 csv. --- lib/front/front.class.php | 12 + module/bug/view/browse.html.php | 4 +- module/common/lang/zh-cn.php | 2 + module/file/control.php | 14 ++ module/file/lang/zh-cn.php | 5 +- module/group/lang/zh-cn.php | 1 + module/product/view/browse.html.php | 6 +- module/project/model.php | 28 ++- module/project/view/task.html.php | 5 +- module/project/view/taskheader.html.php | 1 + module/testcase/view/browse.html.php | 4 +- www/js/jquery/alert/raw.js | 235 +++++++++++++++++++ www/js/jquery/table2csv/raw.js | 102 ++++++++ www/theme/default/alert.css | 57 +++++ www/theme/default/images/alert/help.gif | Bin 0 -> 1582 bytes www/theme/default/images/alert/important.gif | Bin 0 -> 1492 bytes www/theme/default/images/alert/info.gif | Bin 0 -> 1487 bytes www/theme/default/images/alert/title.gif | Bin 0 -> 317 bytes www/theme/ie.6.css | 2 +- 19 files changed, 464 insertions(+), 14 deletions(-) create mode 100644 www/js/jquery/alert/raw.js create mode 100644 www/js/jquery/table2csv/raw.js create mode 100644 www/theme/default/alert.css create mode 100644 www/theme/default/images/alert/help.gif create mode 100644 www/theme/default/images/alert/important.gif create mode 100644 www/theme/default/images/alert/info.gif create mode 100644 www/theme/default/images/alert/title.gif diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 74bc90977e..5de619d9d2 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -278,6 +278,18 @@ class html { return " "; } + + /** + * create a export link. + * + * @static + * @access public + * @return string the reset button tag. + */ + public static function export2csv($label = '', $pluginTitle, $misc = '') + { + return "$label\n\n"; + } } class js diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index c0d5332a0d..9dd372963b 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -25,6 +25,7 @@ +