* adjust order of project and product.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<?php foreach($products as $product):?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $product->id?></td>
|
||||
<td><?php echo $product->name?></td>
|
||||
<td class='a-left'><?php echo $product->name?></td>
|
||||
<td><?php echo html::input($product->id, $product->order, "size='5'")?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
@@ -309,7 +309,7 @@ class projectModel extends model
|
||||
->andWhere('t2.iscat')->eq(0)
|
||||
->beginIF($status == 'undone')->andWhere('t2.status')->ne('done')->fi()
|
||||
->beginIF($status != 'all' and $status != 'undone')->andWhere('status')->in($status)->fi()
|
||||
->orderBy($this->config->project->orderBy)
|
||||
->orderBy('`order`, status')
|
||||
->beginIF($limit)->limit($limit)->fi()
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table align='center' class='table-5'>
|
||||
<caption><?php echo $lang->project->statusUndone?></caption>
|
||||
<tr class='colhead'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->project->id?></th>
|
||||
<th><?php echo $lang->project->name?></th>
|
||||
<th class='w-80px'><?php echo $lang->project->status?></th>
|
||||
@@ -24,7 +24,7 @@
|
||||
<?php if($project->status == 'done') continue;?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $project->id?></td>
|
||||
<td><?php echo $project->name?></td>
|
||||
<td class='a-left'><?php echo $project->name?></td>
|
||||
<td><?php echo $lang->project->statusList[$project->status]?></td>
|
||||
<td><?php echo html::input($project->id, $project->order, "size='5'")?></td>
|
||||
</tr>
|
||||
@@ -35,7 +35,7 @@
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table align='center' class='table-5'>
|
||||
<caption><?php echo $lang->project->statusDone?></caption>
|
||||
<tr class='colhead'>
|
||||
<tr>
|
||||
<th class='w-80px'><?php echo $lang->project->id?></th>
|
||||
<th><?php echo $lang->project->name?></th>
|
||||
<th class='w-80px'><?php echo $lang->project->order?></th>
|
||||
@@ -44,7 +44,7 @@
|
||||
<?php if($project->status != 'done') continue;?>
|
||||
<tr class='a-center'>
|
||||
<td><?php echo $project->id?></td>
|
||||
<td><?php echo $project->name?></td>
|
||||
<td class='a-left'><?php echo $project->name?></td>
|
||||
<td><?php echo html::input($project->id, $project->order, "size='5'")?></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
|
||||
Reference in New Issue
Block a user