1 {if $RestoreMode}
3 <h2>{t}Restoring object snapshots{/t}</h2>
4 <p class="seperator"> </p>
5 <br>
6 {t}This procedure will restore a snapshot of the selected object. It will replace the existing object after pressing the restore button.{/t}
7 <br>
8 <p class="seperator"> </p>
9 <br>
10 <table summary="" style="width:100%">
11 {if !$restore_deleted}
12 <tr>
13 <td>
14 <b>{t}Object{/t}</b>
15 {$CurrentDN}
16 </td>
17 </tr>
18 {/if}
19 <tr>
20 <td>
21 <br>
22 {if $CountSnapShots==0}
23 {t}There is no snapshot available that could be restored{/t}
24 {else}
25 {t}Choose a snapshot and click the folder image, to restore the snapshot{/t}
26 {/if}
27 </td>
28 </tr>
29 <tr>
30 <td>
31 {$SnapShotDivlist}
32 </td>
33 </tr>
34 </table>
36 <p class="seperator"> </p>
37 <p>
38 <div style="width:100%; text-align:right;">
39 <input type='submit' name='CancelSnapshot' value='{t}Cancel{/t}'>
40 </div></p>
42 {else}
44 <h2>{t}Creating object snapshots{/t}</h2>
45 <p class="seperator"> </p>
46 <br>
47 {t}This procedure will create a snapshot of the selected object. It will be stored inside a special branch of your directory system and can be restored later on.{/t}
48 <br>
49 <p class="seperator"> </p>
50 <br>
51 <table summary="" style="width:100%">
52 <tr>
53 <td>
54 <b>{t}Object{/t}</b>
55 </td>
56 <td style="width:95%">
57 {$CurrentDN}
58 </td>
59 </tr>
60 <tr>
61 <td>
62 <b>{t}Timestamp{/t}</b>
63 </td>
64 <td>
65 {$CurrentDate}
66 </td>
67 </tr>
68 <tr>
69 <td style="vertical-align:top;" colspan="2">
70 <br>
71 {t}Reason for generating this snapshot{/t}<br>
72 <textarea name="CurrentDescription" style="width:100%;height:160px;">{$CurrentDescription}</textarea>
73 </td>
74 </tr>
75 </table>
77 <p class="seperator"> </p>
78 <p>
79 <div style="width:100%; text-align:right;">
80 <input type='submit' name='CreateSnapshot' value='{t}Continue{/t}'>
81
82 <input type='submit' name='CancelSnapshot' value='{t}Cancel{/t}'>
83 </div></p>
85 <script language="JavaScript" type="text/javascript">
86 <!-- // First input field on page
87 document.mainform.CurrentDescription.focus();
88 -->
89 </script>
90 {/if}