From 70c2c3c3b7e13cc5d6f9e0ee7f67f5b2853de329 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 4 Mar 2010 06:11:26 +0000 Subject: [PATCH] + add the date plugin. --- trunk/module/build/view/create.html.php | 3 +- trunk/module/build/view/edit.html.php | 3 +- trunk/module/common/datepicker.html.php | 28 + trunk/module/productplan/view/create.html.php | 5 +- trunk/module/productplan/view/edit.html.php | 5 +- trunk/module/project/control.php | 2 +- trunk/module/project/view/create.html.php | 5 +- trunk/module/project/view/edit.html.php | 5 +- trunk/module/release/view/create.html.php | 3 +- trunk/module/release/view/edit.html.php | 3 +- trunk/module/task/view/create.html.php | 5 +- trunk/module/task/view/edit.html.php | 3 +- trunk/module/testtask/model.php | 1 + trunk/module/testtask/view/create.html.php | 5 +- trunk/module/testtask/view/edit.html.php | 5 +- trunk/module/user/view/create.html.php | 3 +- trunk/module/user/view/edit.html.php | 3 +- trunk/www/js/jquery/datepicker/date.js | 502 ++++++++++++++++++ trunk/www/js/jquery/datepicker/min.js | 1 + trunk/www/theme/default/datepicker.css | 127 +++++ .../default/images/datepicker/calendar.png | Bin 0 -> 1091 bytes 21 files changed, 695 insertions(+), 22 deletions(-) create mode 100644 trunk/module/common/datepicker.html.php create mode 100644 trunk/www/js/jquery/datepicker/date.js create mode 100644 trunk/www/js/jquery/datepicker/min.js create mode 100644 trunk/www/theme/default/datepicker.css create mode 100644 trunk/www/theme/default/images/datepicker/calendar.png diff --git a/trunk/module/build/view/create.html.php b/trunk/module/build/view/create.html.php index 057d81b4f3..0290d59617 100644 --- a/trunk/module/build/view/create.html.php +++ b/trunk/module/build/view/create.html.php @@ -23,6 +23,7 @@ */ ?> +
@@ -41,7 +42,7 @@ - + diff --git a/trunk/module/build/view/edit.html.php b/trunk/module/build/view/edit.html.php index 05b2f7204b..4ab6b69696 100644 --- a/trunk/module/build/view/edit.html.php +++ b/trunk/module/build/view/edit.html.php @@ -23,6 +23,7 @@ */ ?> +
build->date;?>' />' />
build->scmPath;?>
@@ -41,7 +42,7 @@ - + diff --git a/trunk/module/common/datepicker.html.php b/trunk/module/common/datepicker.html.php new file mode 100644 index 0000000000..c172069c0b --- /dev/null +++ b/trunk/module/common/datepicker.html.php @@ -0,0 +1,28 @@ + + + + diff --git a/trunk/module/productplan/view/create.html.php b/trunk/module/productplan/view/create.html.php index 11aab5c789..558ef291e1 100644 --- a/trunk/module/productplan/view/create.html.php +++ b/trunk/module/productplan/view/create.html.php @@ -23,6 +23,7 @@ */ ?> +
build->date;?>
build->scmPath;?>
@@ -37,11 +38,11 @@ - + - + diff --git a/trunk/module/productplan/view/edit.html.php b/trunk/module/productplan/view/edit.html.php index dc4723cfd3..d2ffd850d8 100644 --- a/trunk/module/productplan/view/edit.html.php +++ b/trunk/module/productplan/view/edit.html.php @@ -23,6 +23,7 @@ */ ?> +
productplan->begin;?>
productplan->end;?>
productplan->desc;?>
@@ -37,11 +38,11 @@ - + - + diff --git a/trunk/module/project/control.php b/trunk/module/project/control.php index a1d1bc55ee..1eec9b3e7a 100644 --- a/trunk/module/project/control.php +++ b/trunk/module/project/control.php @@ -94,7 +94,7 @@ class project extends control $tasks = $this->loadModel('task')->getProjectTasks($projectID, $orderBy, $pager); /* 赋值。*/ - $this->view->tasks = $tasks; + $this->view->tasks = $tasks ? $tasks : array(); $this->view->tabID = 'task'; $this->view->pager = $pager->get(); $this->view->recTotal = $pager->recTotal; diff --git a/trunk/module/project/view/create.html.php b/trunk/module/project/view/create.html.php index ec16c279f2..255513d510 100644 --- a/trunk/module/project/view/create.html.php +++ b/trunk/module/project/view/create.html.php @@ -23,6 +23,7 @@ */ ?> +
productplan->begin;?>begin, 'class="text-3"');?>begin, 'class="text-3 date"');?>
productplan->end;?>end, 'class="text-3"');?>end, 'class="text-3 date"');?>
productplan->desc;?>
@@ -43,11 +44,11 @@ --> - + - + diff --git a/trunk/module/project/view/edit.html.php b/trunk/module/project/view/edit.html.php index 607a45a599..c02ba53209 100644 --- a/trunk/module/project/view/edit.html.php +++ b/trunk/module/project/view/edit.html.php @@ -23,6 +23,7 @@ */ ?> +
project->begin;?>
project->end;?>
project->teamname;?>
@@ -43,11 +44,11 @@ --> - + - + diff --git a/trunk/module/release/view/create.html.php b/trunk/module/release/view/create.html.php index aa59a7c4ec..f86bb775ef 100644 --- a/trunk/module/release/view/create.html.php +++ b/trunk/module/release/view/create.html.php @@ -23,6 +23,7 @@ */ ?> +
project->begin;?>
project->end;?>
project->teamname;?>
@@ -37,7 +38,7 @@ - + diff --git a/trunk/module/release/view/edit.html.php b/trunk/module/release/view/edit.html.php index f39f822dbf..9e2e31f4c1 100644 --- a/trunk/module/release/view/edit.html.php +++ b/trunk/module/release/view/edit.html.php @@ -23,6 +23,7 @@ */ ?> +
release->date;?>' />' />
@@ -41,7 +42,7 @@ - + diff --git a/trunk/module/task/view/create.html.php b/trunk/module/task/view/create.html.php index 1fa64020f1..5ecbae8637 100644 --- a/trunk/module/task/view/create.html.php +++ b/trunk/module/task/view/create.html.php @@ -24,6 +24,7 @@ ?> +
release->date;?>
release->desc;?>