| 1 | {literal} |
| 2 | <script type="text/javascript"> |
| 3 | <!-- |
| 4 | function page_delete( mypage, myloc ) { |
| 5 | if (confirm ("You are about to delete the page '" + myloc + "' and all its contents. Do you want to proceed?")) { |
| 6 | document.operations.action.value = "page_delete"; |
| 7 | document.operations.target.value = mypage; |
| 8 | document.operations.submit(); |
| 9 | return true; |
| 10 | } |
| 11 | } |
| 12 | function file_delete( mypage, myfile ) { |
| 13 | if (confirm ("You are about to delete the file '" + myfile + "'. Do you want to proceed?")) { |
| 14 | document.operations.action.value = "file_delete"; |
| 15 | document.operations.target.value = myfile; |
| 16 | document.operations.submit(); |
| 17 | return true; |
| 18 | } |
| 19 | } |
| 20 | function file_rename( mypage, myfile ) { |
| 21 | if ((newname = prompt ("Rename '" + myfile + "' to", myfile)) != null) { |
| 22 | document.operations.action.value = "file_rename"; |
| 23 | document.operations.target.value = myfile; |
| 24 | document.operations.newname.value = newname; |
| 25 | document.operations.submit(); |
| 26 | return true; |
| 27 | } |
| 28 | } |
| 29 | // --> |
| 30 | </script> |
| 31 | {/literal} |
| 32 | |
| 33 | <form method="post" action="{$post}" name="operations"> |
| 34 | <input type="hidden" name="dir" value="{$smarty.request.dir}" /> |
| 35 | <input type="hidden" name="target" value=""/> |
| 36 | <input type="hidden" name="newname" value=""/> |
| 37 | <input type="hidden" name="action" value="" /> |
| 38 | </form> |
| 39 | |
| 40 | <table class="light" style="width:90%"> |
| 41 | {if $childpages} |
| 42 | <tr> |
| 43 | <th>{$msg_location}</th> |
| 44 | <th>{$msg_access}</th> |
| 45 | <th colspan="3">{$msg_title}</th> |
| 46 | <th>{$msg_actions}</th> |
| 47 | </tr> |
| 48 | {counter start=0 assign=cnt print=0} |
| 49 | {foreach from=$childpages item=page} |
| 50 | <tr{if $cnt % 2} class="odd"{/if}> |
| 51 | <td> |
| 52 | <img class="fileicon" src="{$page.icon}" /> |
| 53 | <a href="{$page.click}">{if $page.location==''}<i>home</i>{else}{$page.location}{/if}</a> |
| 54 | </td> |
| 55 | <td><img class="fileicon" alt="{$msg_read_perms} : {$page.perms}" title="{$msg_read_perms} : {$page.perms}" src="{$page.iperms}" /><img class="fileicon" alt="{$msg_write_perms} : {$page.wperms}" title="{$msg_write_perms} : {$page.wperms}" src="{$page.iwperms}" /></td> |
| 56 | <td colspan="3"><b>{$page.title|escape}</b></td> |
| 57 | <td> |
| 58 | {foreach from=$page.actions item=action} |
| 59 | {a lnk=$action class="action"} |
| 60 | {/foreach} |
| 61 | </td> |
| 62 | </tr> |
| 63 | {counter} |
| 64 | {/foreach} |
| 65 | {/if} |
| 66 | {if $childfiles} |
| 67 | <tr> |
| 68 | <th>{$msg_file}</th> |
| 69 | <th>{$msg_version}</th> |
| 70 | <th>{$msg_date}</th> |
| 71 | <th>{$msg_author}</th> |
| 72 | <th>{$msg_size}</th> |
| 73 | <th>{$msg_actions}</th> |
| 74 | </tr> |
| 75 | {counter start=0 assign=cnt print=0} |
| 76 | {foreach from=$childfiles item=entry} |
| 77 | <tr{if $cnt % 2} class="odd"{/if}> |
| 78 | <td><img class="fileicon" src="{$entry.icon}" alt="" />{a lnk=$entry.file}</td> |
| 79 | <td>{a lnk=$entry.rev}</td> |
| 80 | <td class="logdate">{$entry.date}</td> |
| 81 | <td class="logauthor">{$entry.author}</td> |
| 82 | <td class="filesize">{$entry.size}</td> |
| 83 | <td> |
| 84 | {foreach from=$entry.actions item=lnk} |
| 85 | {a lnk=$lnk class="action" title=$lnk[0]} |
| 86 | {/foreach} |
| 87 | </td> |
| 88 | </tr> |
| 89 | {counter} |
| 90 | {/foreach} |
| 91 | {/if} |
| 92 | </table> |