+ add ajaxGetProduct method.

* change the create doc link.
This commit is contained in:
wangchunsheng
2010-08-03 05:48:50 +00:00
parent 33cc066309
commit eaf2c97f8e
5 changed files with 11 additions and 1 deletions

View File

@@ -645,4 +645,11 @@ class project extends control
exit;
}
}
/* 获得某一项目所对应的产品。*/
public function ajaxGetProducts($projectID)
{
$products = $this->project->getProducts($projectID);
die(html::select('product', $products, '', 'class="select-3"'));
}
}

View File

@@ -90,6 +90,7 @@ $lang->project->manageMembers = 'Manage team members';
$lang->project->unlinkMember = 'Remove member';
$lang->project->unlinkStory = 'Remove story';
$lang->project->importTask = 'Import tasks undone';
$lang->project->ajaxGetProducts= "API: get project's products";
/* 分组浏览.*/
$lang->project->listTask = 'List';

View File

@@ -90,6 +90,7 @@ $lang->project->manageMembers = '团队管理';
$lang->project->unlinkMember = '移除成员';
$lang->project->unlinkStory = '移除需求';
$lang->project->importTask = '导入之前未完';
$lang->project->ajaxGetProducts= '接口:获得项目产品列表';
/* 分组浏览。*/
$lang->project->listTask = '列表方式';

View File

@@ -90,6 +90,7 @@ $lang->project->manageMembers = '團隊管理';
$lang->project->unlinkMember = '移除成員';
$lang->project->unlinkStory = '移除需求';
$lang->project->importTask = '導入之前未完';
$lang->project->ajaxGetProducts= "介面:獲得項目產品列表";
/* 分組瀏覽。*/
$lang->project->listTask = '列表方式';

View File

@@ -28,7 +28,7 @@
<div class='yui-d0'>
<table class='table-1 fixed colored tablesorter' align='center'>
<caption class='caption-tr'><?php common::printLink('doc', 'create', "libID=project&projectID=$project->id", $lang->doc->create);?></caption>
<caption class='caption-tr'><?php common::printLink('doc', 'create', "libID=project&moduleID=0&productID=0&projectID=$project->id&from=project", $lang->doc->create);?></caption>
<thead>
<tr class='colhead'>
<th class='w-id'><?php echo $lang->idAB;?></th>