1 | {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} |
---|
2 | {html_head}{literal} |
---|
3 | <script type="text/javascript"> |
---|
4 | jQuery().ready( function () { |
---|
5 | jQuery('#title').focusout(function () { |
---|
6 | if (jQuery('#permalink').val() == '' && auto_permalink) |
---|
7 | jQuery.post("plugins/AdditionalPages/admin/ajax.php", { str: this.value }, function(data) { |
---|
8 | jQuery('#permalink').val(data); |
---|
9 | auto_permalink = false; |
---|
10 | }); |
---|
11 | }); |
---|
12 | }); |
---|
13 | var auto_permalink = true; |
---|
14 | </script> |
---|
15 | <style type="text/css"> |
---|
16 | #mainConf { margin:0; } |
---|
17 | .groups { margin-top:15px; } |
---|
18 | .groups input { margin-right:5px; } |
---|
19 | .groups label { margin-right:10px; display: inline-block; overflow: hidden; white-space: nowrap; line-height:1.3em;} |
---|
20 | .groups div { float:right; width:74%; line-height:1.3em;} |
---|
21 | </style> |
---|
22 | {/literal}{/html_head} |
---|
23 | |
---|
24 | <div class="titrePage"> |
---|
25 | <h2>{$AP_TITLE}</h2> |
---|
26 | </div> |
---|
27 | <form method="post" action="" class="properties" id="configContent" ENCTYPE="multipart/form-data"> |
---|
28 | <fieldset id="mainConf"> |
---|
29 | <legend></legend> |
---|
30 | <ul> |
---|
31 | <li> |
---|
32 | <span class="property"> |
---|
33 | <label for="title">{'ap_page_name'|@translate}</label> |
---|
34 | </span> |
---|
35 | <input type="text" size="60" maxlength="255" value="{if isset($NAME)}{$NAME}{/if}" name="title" id="title"/> |
---|
36 | </li> |
---|
37 | |
---|
38 | <li> |
---|
39 | <span class="property"> |
---|
40 | <label for="permalink">{'Permalink'|@translate}</label> |
---|
41 | </span> |
---|
42 | <input type="text" size="60" value="{if isset($PERMALINK)}{$PERMALINK}{/if}" name="permalink" id="permalink"/> |
---|
43 | </li> |
---|
44 | |
---|
45 | <li> |
---|
46 | <span class="property"> |
---|
47 | <label for="lang">{'ap_page_lang'|@translate}</label> |
---|
48 | </span> |
---|
49 | {html_options name=lang id=lang options=$lang.OPTIONS selected=$lang.SELECTED} |
---|
50 | </li> |
---|
51 | |
---|
52 | <li style="margin-top:15px;"> |
---|
53 | <span class="property"> |
---|
54 | <label for="homepage">{'ap_set_as_homepage'|@translate}</label> |
---|
55 | </span> |
---|
56 | <input type="checkbox" name="homepage" id="homepage" {if isset($HOMEPAGE) and $HOMEPAGE}checked="checked"{/if}/> |
---|
57 | <i>{'ap_homepage_tip'|@translate}</i> |
---|
58 | </li> |
---|
59 | |
---|
60 | <li> |
---|
61 | <span class="property"> |
---|
62 | <label for="standalone">{'ap_standalone_page'|@translate}</label> |
---|
63 | </span> |
---|
64 | <input type="checkbox" name="standalone" id="standalone" {if isset($STANDALONE) and $STANDALONE}checked="checked"{/if}/> |
---|
65 | <i>{'ap_standalone_tip'|@translate}</i> |
---|
66 | </li> |
---|
67 | |
---|
68 | {if isset($level_perm)} |
---|
69 | <li style="margin-top:15px;"> |
---|
70 | <span class="property"> |
---|
71 | <label for="privacy">{'Privacy level'|@translate}</label> |
---|
72 | </span> |
---|
73 | <select name="level" size="1">{html_options options=$level_perm selected=$level_selected id=privacy}</select> |
---|
74 | </li> |
---|
75 | {/if} |
---|
76 | |
---|
77 | {if isset($users)} |
---|
78 | <li class="groups" style="margin-top:15px;"> |
---|
79 | <span class="property"> |
---|
80 | <label for="users">{'ap_authorized_users'|@translate}</label> |
---|
81 | </span> |
---|
82 | {html_checkboxes options=$users selected=$selected_users name=users} |
---|
83 | </li> |
---|
84 | {/if} |
---|
85 | |
---|
86 | {if isset($groups)} |
---|
87 | <li class="groups" style="margin-top:15px;"> |
---|
88 | <span class="property"> |
---|
89 | <label for="groups">{'ap_authorized_group'|@translate}</label> |
---|
90 | </span> |
---|
91 | <div>{html_checkboxes options=$groups selected=$selected_groups name=groups}</div> |
---|
92 | </li> |
---|
93 | <li class="groups"> |
---|
94 | <div> |
---|
95 | <a href="#" onClick="jQuery('input[name^=\'groups\']').attr('checked', 'checked');return false;">{'ap_select_all'|@translate}</a> / |
---|
96 | <a href="#" onClick="jQuery('input[name^=\'groups\']').attr('checked', '');return false;">{'ap_unselect_all'|@translate}</a> |
---|
97 | </div> |
---|
98 | </li> |
---|
99 | {/if} |
---|
100 | </ul> |
---|
101 | </fieldset> |
---|
102 | <table style="width:95%;"> |
---|
103 | <tr> |
---|
104 | <td colspan="2" align="center"><br> |
---|
105 | <b>{'ap_page_content'|@translate}</b><br> |
---|
106 | <textarea name="ap_content" id="ap_content" rows="30" cols="50" style="width:100%;">{if isset($CONTENT)}{$CONTENT}{/if}</textarea> |
---|
107 | </td> |
---|
108 | </tr> |
---|
109 | |
---|
110 | <tr> |
---|
111 | <td colspan="2" align="center"><br> |
---|
112 | <input class="submit" type="submit" value="{'ap_save'|@translate}" name="save"> |
---|
113 | {if isset($delete)} |
---|
114 | <input class="submit" type="submit" value="{'ap_delete'|@translate}" name="delete" onclick="return confirm('Are you sure?'|@translate);"/> |
---|
115 | {/if} |
---|
116 | </tr> |
---|
117 | </table> |
---|
118 | </form> |
---|