Annotation of FreeBSD/tinderbox/webui/templates/paefchen/list_tinderd_queue.tpl, revision 1.1.2.1
1.1 as 1: <?
2: $header_title = 'Tinderd Administration';
3: include 'header.inc.tpl';
4: ?>
1.1.2.1 ! as 5: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/list_tinderd_queue.tpl,v 1.1 2008/01/05 12:25:17 as Exp $ //-->
1.1 as 6: <div class="subcontent">
7: <form method="get" action="index.php">
1.1.2.1 ! as 8: <input type="hidden" name="action" value="list_tinderd_queue" />
1.1 as 9: <table>
10: <tr>
1.1.2.1 ! as 11: <th>Host</th>
1.1 as 12: <th>Build</th>
1.1.2.1 ! as 13: <th></th>
! 14: </tr>
! 15: <tr>
! 16: <td>
! 17: <select name="filter_host_id">
! 18: <option></option>
! 19: <?foreach($all_hosts as $host) {?>
! 20: <option value="<?=$host['host_id']?>" <?if ($host_id == $host['host_id']) {?>selected="selected"<?}?> ><?=$host['host_name']?></option>
! 21: <?}?>
! 22: </select>
! 23: </td>
1.1 as 24: <td>
25: <select name="filter_build_id">
26: <option></option>
27: <?foreach($all_builds as $build) {?>
28: <option value="<?=$build['build_id']?>" <?if ($build_id == $build['build_id']) {?>selected="selected"<?}?> ><?=$build['build_name']?></option>
29: <?}?>
30: </select>
1.1.2.1 ! as 31: </td>
! 32: <td>
1.1 as 33: <input type="submit" name="display" value="display" />
34: </td>
35: </tr>
36: </table>
37: </form>
38: </div>
39:
40: <?if($errors){?>
41: <p style="color:#FF0000">
42: <?foreach($errors as $error){?>
43: <?=$error?><br />
44: <?}?>
45: </p>
46: <?}?>
47:
48: <table>
49: <tr>
1.1.2.1 ! as 50: <th>Host</th>
1.1 as 51: <th>Build</th>
52: <th>Priority</th>
53: <th>Port Directory</th>
54: <th>User</th>
55: <th style="width: 20px"> </th>
56: <th>Email On Completion</th>
57: <th> </th>
58: <th> </th>
59: <th> </th>
60: </tr>
61:
62: <?if(!$no_list){?>
63:
64: <?foreach($entries as $row) {?>
65: <form method="post" action="index.php">
66: <input type="hidden" name="action" value="change_tinderd_queue" />
67: <input type="hidden" name="entry_id" value="<?=$row['entry_id']?>" />
68: <input type="hidden" name="filter_build_id" value="<?=$build_id?>" />
1.1.2.1 ! as 69: <input type="hidden" name="filter_host_id" value="<?=$host_id?>" />
1.1 as 70: <tr>
71: <td>
72: <?if($row['modify'] == 1){?>
1.1.2.1 ! as 73: <select name="host_id">
! 74: <?foreach($all_hosts as $host) {?>
! 75: <option value="<?=$host['host_id']?>" <?if ($row['host'] == $host['host_name']) {?>selected<?}?> ><?=$host['host_name']?></option>
! 76: <?}?>
! 77: </select>
! 78: <?}else{?>
! 79: <?=$row['host']?>
! 80: <?}?>
! 81: </td>
! 82: <td>
! 83: <?if($row['modify'] == 1){?>
1.1 as 84: <select name="build_id">
85: <?foreach($all_builds as $build) {?>
86: <option value="<?=$build['build_id']?>" <?if ($row['build'] == $build['build_name']) {?>selected<?}?> ><?=$build['build_name']?></option>
1.1.2.1 ! as 87: <?}?>
1.1 as 88: </select>
89: <?}else{?>
90: <?=$row['build']?>
91: <?}?>
92: </td>
93: <td>
94: <?if($row['modify'] == 1){?>
95: <select name="priority">
96: <?foreach($row['all_prio'] as $prio) {?>
97: <option value="<?=$prio?>" <?if ($row['priority'] == $prio) {?>selected<?}?> ><?=$prio?></option>
98: <?}?>
99: </select>
100: <?}else{?>
101: <?=$row['priority']?>
102: <?}?>
103: </td>
104: <td><?=$row['directory']?></td>
105: <td><?=$row['user']?></td>
106: <td class="<?=$row['status_field_class']?>"> </td>
107: <td align="center">
108: <?if($row['modify'] == 1){?>
109: <input type="checkbox" name="email_on_completion" value="1" <?if($row['email_on_completion'] == 1 ) {?>checked="checked"<?}?> />
110: <?}else{?>
111: <?if($row['email_on_completion'] == 1 ) {?>X"<?}?>
112: <?}?>
113: </td>
114: <td>
115: <?if($row['modify'] == 1){?>
116: <input type="submit" name="change_tinderd_queue" value="save" />
117: <?}?>
118: </td>
119: <td>
120: <?if($row['delete'] == 1){?>
121: <input type="submit" name="change_tinderd_queue" value="delete" />
122: <?}?>
123: </td>
124: <td>
125: <?if($row['modify'] == 1){?>
126: <input type="submit" name="change_tinderd_queue" value="reset status" />
127: <?}?>
128: </td>
129: </tr>
130: </form>
131: <?}?>
132: <?}?>
133: <form method="post" action="index.php">
134: <input type="hidden" name="action" value="add_tinderd_queue" />
135: <input type="hidden" name="entry_id" value="<?=$row['entry_id']?>" />
136: <input type="hidden" name="filter_build_id" value="<?=$build_id?>" />
1.1.2.1 ! as 137: <input type="hidden" name="filter_host_id" value="<?=$host_id?>" />
1.1 as 138: <tr>
139: <td>
1.1.2.1 ! as 140: <select name="new_host_id">:
! 141: <?foreach($all_hosts as $host) {?>
! 142: <option value="<?=$host['host_id']?>" <?if ($new_host_id == $host['host_id']) {?>selected<?}?> ><?=$host['host_name']?></option>
! 143: <?}?>
! 144: </select>
! 145: </td>
! 146: <td>
1.1 as 147: <select name="new_build_id">
148: <?foreach($all_builds as $build) {?>
149: <option value="<?=$build['build_id']?>" <?if ($new_build_id == $build['build_id']) {?>selected<?}?> ><?=$build['build_name']?></option>
150: <?}?>
151: </select>
152: </td>
153: <td>
154: <select name="new_priority">
155: <?foreach($all_prio as $prio) {?>
156: <option value="<?=$prio?>" <?if ($new_priority == $prio) {?>selected<?}?> ><?=$prio?></option>
157: <?}?>
158: </select>
159: </td>
160: <td><input type="text" size="20" name="new_port_directory" value="<?=$new_port_directory?>" /></td>
161: <td> </td>
162: <td> </td>
163: <td align="center">
164: <input type="checkbox" name="new_email_on_completion" value="1" <?if($new_email_on_completion == 1 ) {?>checked="checked"<?}?> />
165: </td>
166: <td colspan="3"><input type="submit" name="add_tinderd_queue" value="add" /></td>
167: </tr>
168: </form>
169: </table>
170: <? include('footer.inc.tpl'); ?>