Commit | Line | Data |
---|---|---|
6855525e JL |
1 | <form method="post" action="{$post}"> |
2 | <input type="hidden" name="action" value="update" /> | |
3 | <input type="hidden" name="dir" value="{$page_obj.PID}" /> | |
d0b659f7 | 4 | <input type="hidden" name="from" value="{$from}" /> |
6855525e JL |
5 | <table class="light" style="width:70%"> |
6 | <tr> | |
7 | <th colspan="2">{$msg_properties}</th> | |
8 | </tr> | |
9 | {if $page_obj.parent} | |
10 | <tr> | |
11 | <td>{$msg_parent}</td> | |
12 | <td> | |
13 | {html_options name='pedit_parent' options=$parent_opts selected=$page_obj.parent} | |
14 | </td> | |
15 | </tr> | |
16 | {else} | |
17 | <input type="hidden" name="pedit_parent" value="0"/> | |
18 | {/if} | |
19 | <tr> | |
20 | <td>{$msg_location}</td> | |
21 | <td> | |
22 | {if $page_obj.PID && $page_obj.location==''} | |
23 | <i>home</i> | |
24 | {else} | |
25 | <input type="text" name="pedit_location" value="{$page_obj.location}" /> | |
26 | {/if} | |
27 | </td> | |
28 | </tr> | |
29 | <tr> | |
30 | <td>{$msg_title}</td> | |
31 | <td><input type="text" name="pedit_title" value="{$page_obj.title|escape}" /></td> | |
32 | </tr> | |
33 | <tr> | |
34 | <td>{$msg_page_template}</td> | |
35 | <td>{html_options name='pedit_template' selected=$page_obj.template options=$templates}</td> | |
36 | </tr> | |
37 | <tr> | |
38 | <td>{$msg_status}</td> | |
39 | <td> | |
40 | {html_options name='pedit_status' options=$status_opts selected=$page_obj.status} | |
41 | </td> | |
42 | </tr> | |
43 | <tr> | |
44 | <td>{$msg_read_perms}</td> | |
45 | <td> | |
46 | <select name="pedit_perms"> | |
47 | {flags table=$table field='perms' selected=$page_obj.perms} | |
48 | </select> | |
49 | </td> | |
50 | </tr> | |
51 | <tr> | |
52 | <td>{$msg_write_perms}</td> | |
53 | <td> | |
54 | <select name="pedit_wperms"> | |
55 | {flags table=$table field='wperms' selected=$page_obj.wperms} | |
56 | </select> | |
57 | </td> | |
58 | </tr> | |
59 | ||
60 | ||
61 | <tr> | |
62 | <td><input type="submit" value="{$msg_submit}" /></td> | |
63 | <td><input type="reset" value="{$msg_reset}" /></td> | |
64 | </tr> | |
65 | </table> | |
66 | </form> | |
67 | ||
68 | {if $smarty.request.dir} | |
69 | ||
70 | {if $word} | |
71 | ||
72 | <table class="light" style="width:70%"> | |
73 | <tr> | |
74 | <th>{$word}</th> | |
75 | </tr> | |
76 | <tr> | |
77 | <td> | |
78 | <p> | |
79 | {$wordblab} | |
80 | </p> | |
81 | {if $wordfile} | |
82 | <p> | |
83 | {$wordfile} : {a lnk=$wordlnk} | |
84 | </p> | |
85 | {/if} | |
86 | <p> | |
87 | {$wordsend} | |
88 | </p> | |
89 | <form name="import" method="post" action="{$post}" enctype="multipart/form-data"> | |
90 | <input type="hidden" name="action" value="import" /> | |
91 | <input type="hidden" name="dir" value="{$dir}" /> | |
92 | <input type="file" name="wordfile" /> | |
93 | <input type="submit" value="{$send}" /> | |
94 | </form> | |
95 | </td> | |
96 | </tr> | |
97 | </table> | |
98 | ||
99 | {/if} | |
100 | ||
101 | {if !$wordfile} | |
102 | <br/> | |
103 | ||
104 | <table class="light" style="width:70%"> | |
105 | <tr> | |
106 | <th>{$html}</th> | |
107 | </tr> | |
108 | <tr> | |
109 | <td> | |
110 | <p> | |
111 | {$htmlblab} | |
112 | </p> | |
113 | <p> | |
114 | {$htmlstrip} | |
115 | </p> | |
116 | <form name="import" method="post" action="{$post}" enctype="multipart/form-data"> | |
117 | <input type="hidden" name="action" value="import" /> | |
118 | <input type="hidden" name="dir" value="{$dir}" /> | |
119 | <input type="file" name="htmlfile" /> | |
120 | <input type="submit" value="{$send}" /> | |
121 | </form> | |
122 | </td> | |
123 | </tr> | |
124 | {/if} | |
125 | </table> | |
126 | ||
127 | {/if} |