2 <script type="text/javascript">
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();
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();
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();
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="" />
40 <table class="light" style="width:90%">
43 <th>{$msg_location}</th>
44 <th>{$msg_access}</th>
45 <th colspan="3">{$msg_title}</th>
46 <th>{$msg_actions}</th>
48 {counter start=0 assign=cnt print=0}
49 {foreach from=$childpages item=page}
50 <tr{if $cnt % 2} class="odd"{/if}>
52 <img class="fileicon" src="{$page.icon}" />
53 <a href="{$page.click}">{if $page.location==''}<i>home</i>{else}{$page.location}{/if}</a>
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>
58 {foreach from=$page.actions item=action}
59 {a lnk=$action class="action"}
69 <th>{$msg_version}</th>
71 <th>{$msg_author}</th>
73 <th>{$msg_actions}</th>
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>
84 {foreach from=$entry.actions item=lnk}
85 {a lnk=$lnk class="action" title=$lnk[0]}