* finish task#757
This commit is contained in:
Executable
+48
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* The batch create view of todo module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
|
||||
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
|
||||
* @author Congzhi Chen <congzhi@cnezsoft.com>
|
||||
* @package todo
|
||||
* @version $Id: create.html.php 2741 2012-04-07 07:24:21Z areyou123456 $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<form method='post'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->todo->batchCreate;?></caption>
|
||||
<tr>
|
||||
<th class='w-20px'><?php echo $lang->idAB;?></th>
|
||||
<th class='w-150px'><?php echo $lang->todo->date;?></th>
|
||||
<th class='w-100px'><?php echo $lang->todo->type;?></th>
|
||||
<th class='w-100px'><?php echo $lang->todo->pri;?></th>
|
||||
<th class='w-400px'><?php echo $lang->todo->name;?></th>
|
||||
<th class='w-300px'><?php echo $lang->todo->desc;?></th>
|
||||
</tr>
|
||||
|
||||
<?php $pri = 3;?>
|
||||
<?php for($i = 0; $i < $config->todo->batchCreate; $i++):?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td><?php echo html::input("date[$i]", $date, "class='select-2 date'"); echo "<span class='star'>*</span>";?></td>
|
||||
<td><?php echo html::select("type[$i]", $lang->todo->typeList, '', "onchange=loadList(this.value,$i+1) class='select-1'");?></td>
|
||||
<td><?php echo html::select("pri[$i]", $lang->todo->priList, $pri, 'class=select-1');?></td>
|
||||
<td><div id='<?php echo "nameBox" . ($i+1);?>'><?php echo html::input("name[$i]", '', 'class=text-1'); echo "<span class='star'>*</span>";?></div></td>
|
||||
<td><?php echo html::textarea("desc[$i]", '', "rows='1' class='text-1'");?></td>
|
||||
</tr>
|
||||
<?php endfor;?>
|
||||
<tr>
|
||||
<td colspan='6'>
|
||||
<div class='half-left red'><?php echo $lang->todo->notes;?></div>
|
||||
<div class='half-right'><?php echo html::submitButton() . html::resetButton();?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php include './footer.html.php';?>
|
||||
<script language='Javascript'>selectNext();</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
@@ -1,8 +1,17 @@
|
||||
<script language='Javascript'>
|
||||
account='<?php echo $app->user->account;?>';
|
||||
customHtml = $('#nameBox').html();
|
||||
function loadList(type)
|
||||
{
|
||||
if(arguments[1])
|
||||
{
|
||||
divID = '#nameBox' + arguments[1];
|
||||
customHtml = $('#nameBox' + arguments[1]).html();
|
||||
}
|
||||
else
|
||||
{
|
||||
divID = '#nameBox';
|
||||
customHtml = $('#nameBox').html();
|
||||
}
|
||||
if(type == 'bug')
|
||||
{
|
||||
link = createLink('bug', 'ajaxGetUserBugs', 'account=' + account);
|
||||
@@ -14,11 +23,11 @@ function loadList(type)
|
||||
|
||||
if(type == 'bug' || type == 'task')
|
||||
{
|
||||
$('#nameBox').load(link);
|
||||
$(divID).load(link);
|
||||
}
|
||||
else if(type == 'custom')
|
||||
{
|
||||
$('#nameBox').html(customHtml);
|
||||
$(divID).html(customHtml);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user