<? $this->title->create($this->Language('Models queue')); ?>

<form method="post">
<table class="content">
<tr>
	<th><?=$this->Language('queue');?></th>
	<th><?=$this->Language('model');?></th>
	<th><?=$this->Language('page');?></th>
	<th><?=$this->Language('position');?></th>
	<th><?=$this->Language('page position');?></th>
	<th></th>
</tr>
<?
$i = 1;
while($row = $this->templates->Assoc()){

	echo '<tr>
		<td><input type="text" name="queue['.$row['id'].']" value="'.$row['queue'].'" style="width:30px;"></td>
		<td>'.$row['name'].'</td>
		<td>'.$row['page'].'</td>
		<td>'.$row['position'].'</td>
		<td>'.$row['page_position'].'</td>
		'.($i == 1 ? '<td rowspan="'.$this->templates->Numrows.'"><input type="submit" name="update_queue" value="'.$this->Language('Update').'"></td>' : '').'
	</tr>';
	$i++;
}
?>
</table>
</form>