1<h1><?php echo $this->getLang('admin headline')?></h1>
2
3<form action="<?php echo script()?>" method="post">
4    <div class="no">
5        <input type="hidden" name="do" value="admin" />
6        <input type="hidden" name="page" value="labeled" />
7        <input type="hidden" name="id" value="<?php echo hsc($ID)?>" />
8        <input type="hidden" name="sectok" value="<?php echo hsc(getSecurityToken())?>" />
9    </div>
10
11<table class="inline">
12    <tr>
13        <th><?php echo $this->getLang('admin label name')?></th>
14        <th><?php echo $this->getLang('admin label color')?></th>
15        <th><?php echo $this->getLang('admin order')?></th>
16        <th><?php echo $this->getLang('admin action')?></th>
17    </tr>
18    <tr>
19        <td><input type="text" name="newlabel[name]" class="edit" /></td>
20        <td><input type="" name="newlabel[color]" class="edit" /></td>
21        <td><input type="" name="newlabel[order]" class="edit" /></td>
22        <td><input type="submit" class="button" name="action[create]" value="<?php echo $this->getLang('admin create')?>" /></td>
23    </tr>
24<?php foreach ($labels as $label => $opts): ?>
25<?php $label = hsc($label); ?>
26    <tr>
27        <td>
28            <input class="edit" type="text" value="<?php echo $label ?>" name="labels[<?php echo $label ?>][name]" />
29        </td>
30        <td>
31            <input class="edit" style="color: <?php echo $opts['color'] ?>" type="text"
32                value="<?php echo $opts['color'] ?>" name="labels[<?php echo $label ?>][color]" />
33        </td>
34        <td>
35            <input class="edit" type="text" value="<?php echo $opts['ordernr'] ?>" name="labels[<?php echo $label ?>][order]" />
36        </td>
37        <td>
38            <input type="submit" name="action[delete][<?php echo $label ?>]" class="button"
39                value="<?php echo $this->getLang('admin delete')?>" />
40        </td>
41    </tr>
42<?php endforeach; ?>
43</table>
44
45<input type="submit" name="action[save]" value="<?php echo $this->getLang('admin save')?>" class="button" />
46</form>