* adjust code for task#757 which batch create todo.

This commit is contained in:
chencongzhi520@gmail.com
2012-05-01 00:54:21 +00:00
parent 42c4d84a62
commit ab2b2dcf22
11 changed files with 75 additions and 53 deletions
+10 -12
View File
@@ -11,28 +11,27 @@
*/
?>
<?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>
<caption><?php echo $lang->todo->batchCreate . $lang->colon . $date;?></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>
<th class='w-70px'><?php echo $lang->todo->pri;?></th>
<th class='w-p40'><?php echo $lang->todo->name;?></th>
<th class='w-p30'><?php echo $lang->todo->desc;?></th>
<th class='w-150px'><?php echo $lang->todo->beginAndEnd;?></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>
<td><?php echo html::select("types[$i]", $lang->todo->typeList, '', "onchange=loadList(this.value,$i+1) class='select-1'");?></td>
<td><?php echo html::select("pris[$i]", $lang->todo->priList, $pri, 'class=select-1');?></td>
<td><div id='<?php echo "nameBox" . ($i+1);?>' class='nameBox'><?php echo html::input("names[$i]", '', 'class="f-left text-1"'); echo "<span class='star'>*</span>";?></div></td>
<td><?php echo html::textarea("descs[$i]", '', "rows='2' class=text-1");?></td>
<td><?php echo html::select('begins[]', $times, '') . html::select('ends[]', $times, '');?><td>
</tr>
<?php endfor;?>
<tr>
@@ -45,4 +44,3 @@
</form>
<?php include './footer.html.php';?>
<script language='Javascript'>selectNext();</script>
<?php include '../../common/view/footer.html.php';?>