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