[134] | 1 | <form id="search" action="?a=admin_standings" method="post"> |
---|
| 2 | <table class="kb-subtable"> |
---|
| 3 | <tr><td>Type:</td><td>Text: (3 letters minimum)</td></tr> |
---|
| 4 | <tr><td><select id="searchtype" name="searchtype"> |
---|
| 5 | <option value="alliance">Alliance</option> |
---|
| 6 | <option value="corp">Corporation</option> |
---|
| 7 | </select></td><td><input id="searchphrase" name="searchphrase" type="text" size="30"/></td> |
---|
| 8 | <td><input type="submit" name="submit" value="Search"/></td> |
---|
| 9 | </tr> |
---|
| 10 | </table> |
---|
| 11 | </form> |
---|
| 12 | {if $search} |
---|
| 13 | <table class="kb-table" cellspacing="1"> |
---|
| 14 | <tr class="kb-table-header"><td colspan="5">Search results</td></tr> |
---|
| 15 | <tr class="kb-table-header"><td>Typ</td><td>Result</td><td>Standing</td><td>Comment</td><td> </td></tr> |
---|
| 16 | {section name=res loop=$results} |
---|
| 17 | <tr class="kb-table-row-even"> |
---|
| 18 | <td><form id="search" action="?a=admin_standings" method="post"> |
---|
| 19 | <input type="hidden" name="sta_id" value="{$results[res].link}"> |
---|
| 20 | {$results[res].typ}</td><td>{$results[res].descr}</td> |
---|
| 21 | <td align="center"><input type="text" value="" size="3" name="standing"></td> |
---|
| 22 | <td align="center"><input type="text" value="" size="20" name="comment"></td> |
---|
| 23 | <td align="center"><input type="submit" name="submit" value="Add"></form></td> |
---|
| 24 | </tr> |
---|
| 25 | {sectionelse} |
---|
| 26 | <tr class="kb-table-row-even"><td>No results.</td></tr> |
---|
| 27 | {/section} |
---|
| 28 | </table> |
---|
| 29 | {/if} |
---|
| 30 | <br/> |
---|
| 31 | <!-- |
---|
| 32 | <script language="javascript"> |
---|
| 33 | {literal} |
---|
| 34 | function geninput(object,id,value,orgval) |
---|
| 35 | { |
---|
| 36 | if (document.getElementById('ship_'+id)) |
---|
| 37 | { |
---|
| 38 | return; |
---|
| 39 | } |
---|
| 40 | object.innerHTML = '<input type="text" id="ship_'+id+'" name="ship['+id+']" value="'+value+'" onblur="checkinput(this,\''+value+'\',\''+orgval+'\',\''+id+'\');">'; |
---|
| 41 | document.getElementById('ship_'+id).focus(); |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | function checkinput(object,value,oldvalue,id) |
---|
| 45 | { |
---|
| 46 | if (object.value == value) |
---|
| 47 | { |
---|
| 48 | document.getElementById('tbrid_'+id).innerHTML = oldvalue; |
---|
| 49 | } |
---|
| 50 | } |
---|
| 51 | {/literal} |
---|
| 52 | </script> |
---|
| 53 | --> |
---|
| 54 | <div class="block-header2">Standings</div> |
---|
| 55 | <form id="search" action="?a=admin_standings" method="POST"> |
---|
| 56 | <table class="kb-table"> |
---|
| 57 | {section name=opt loop=$standings} |
---|
| 58 | <tr class="kb-table-header"><td colspan="5">{$standings[opt].name}</td></tr> |
---|
| 59 | <tr class="kb-table-header"><td>Name</td><td>Standing</td><td>Comment</td><td> </td></tr> |
---|
| 60 | {section name=idx loop=$standings[opt].list} |
---|
| 61 | <tr class="kb-table-row-even"> |
---|
| 62 | <td><b>{$standings[opt].list[idx].text}</b>{$standings[opt].list[idx].descr}</td> |
---|
| 63 | <td align="right">{$standings[opt].list[idx].value}</td> |
---|
| 64 | <td align="center">{$standings[opt].list[idx].comment}</td> |
---|
| 65 | <td><a href="{$standings[opt].list[idx].link}">Delete</a></td> |
---|
| 66 | <!-- |
---|
| 67 | <td width="180" align="right" id="tbrid_{$standings[opt].list[idx].id}" onClick="geninput(this,'{$standings[opt].list[idx].id}','{$standings[opt].list[idx].value}','{$standings[opt].list[idx].value}');">{$standings[opt].list[idx].value}</td> |
---|
| 68 | --> |
---|
| 69 | {/section} |
---|
| 70 | {sectionelse} |
---|
| 71 | <tr><td>None.</td></tr> |
---|
| 72 | {/section} |
---|
| 73 | </table> |
---|
| 74 | <input type="submit" name="submit" value="Save"> |
---|
| 75 | </form> |
---|