| 1 | {literal} |
|---|
| 2 | <script type="text/javascript"> |
|---|
| 3 | function GereChkbox(conteneur, a_faire) { |
|---|
| 4 | var blnEtat=null; |
|---|
| 5 | var Chckbox = document.getElementById(conteneur).firstChild; |
|---|
| 6 | while (Chckbox!=null) { |
|---|
| 7 | if (Chckbox.nodeName=="INPUT") |
|---|
| 8 | if (Chckbox.getAttribute("type")=="checkbox") { |
|---|
| 9 | blnEtat = (a_faire=='0') ? false : (a_faire=='1') ? true : (document.getElementById(Chckbox.getAttribute("id")).checked) ? false : true; |
|---|
| 10 | document.getElementById(Chckbox.getAttribute("id")).checked=blnEtat; |
|---|
| 11 | } |
|---|
| 12 | Chckbox = Chckbox.nextSibling; |
|---|
| 13 | } |
|---|
| 14 | } |
|---|
| 15 | </script> |
|---|
| 16 | {/literal} |
|---|
| 17 | |
|---|
| 18 | <div class="titrePage"> |
|---|
| 19 | <h2>{$AP_TITLE}</h2> |
|---|
| 20 | </div> |
|---|
| 21 | <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> |
|---|
| 22 | <table> |
|---|
| 23 | <tr> |
|---|
| 24 | <td align="right"><label for="title">{'ap_page_name'|@translate}</label> </td> |
|---|
| 25 | <td><input type="text" size="60" maxlength="255" value="{if isset($NAME)}{$NAME}{/if}" name="title" id="title"/></td> |
|---|
| 26 | </tr> |
|---|
| 27 | <tr> |
|---|
| 28 | <td align="right"><label for="permalink">{'Permalink'|@translate}</label> </td> |
|---|
| 29 | <td><input type="text" size="60" value="{if isset($PERMALINK)}{$PERMALINK}{/if}" name="permalink" id="permalink"/></td> |
|---|
| 30 | </tr> |
|---|
| 31 | <tr> |
|---|
| 32 | <td align="right"><label for="lang">{'ap_page_lang'|@translate}</label> </td> |
|---|
| 33 | <td> |
|---|
| 34 | {html_options name=lang id=lang options=$lang.OPTIONS selected=$lang.SELECTED} |
|---|
| 35 | </td> |
|---|
| 36 | </tr> |
|---|
| 37 | <tr><td> </td></tr> |
|---|
| 38 | <tr> |
|---|
| 39 | <td align="right"><label for="homepage">{'ap_set_as_homepage'|@translate}</label> </td> |
|---|
| 40 | <td><input type="checkbox" name="homepage" id="homepage" {if isset($HOMEPAGE) and $HOMEPAGE}checked="checked"{/if}"/> |
|---|
| 41 | <i>{'ap_homepage_tip'|@translate}</i></td> |
|---|
| 42 | </tr> |
|---|
| 43 | <tr> |
|---|
| 44 | <td align="right"><label for="standalone">{'ap_standalone_page'|@translate}</label> </td> |
|---|
| 45 | <td><input type="checkbox" name="standalone" id="standalone" {if isset($STANDALONE) and $STANDALONE}checked="checked"{/if}"/> |
|---|
| 46 | <i>{'ap_standalone_tip'|@translate}</i></td> |
|---|
| 47 | </tr> |
|---|
| 48 | |
|---|
| 49 | {if isset($user_perm)} |
|---|
| 50 | <tr> |
|---|
| 51 | <td colspan="2"><hr></td> |
|---|
| 52 | </tr> |
|---|
| 53 | <tr> |
|---|
| 54 | <td align="right">{'ap_authorized_users'|@translate} </td> |
|---|
| 55 | <td> |
|---|
| 56 | <div id="users"> |
|---|
| 57 | <input type="checkbox" name="users[]" id="guest" value="guest" {$user_perm.GUEST}><label> {'user_status_guest'|@translate}</label> |
|---|
| 58 | <input type="checkbox" name="users[]" id="generic" value="generic" {$user_perm.GENERIC}><label> {'user_status_generic'|@translate}</label> |
|---|
| 59 | <input type="checkbox" name="users[]" id="normal" value="normal" {$user_perm.NORMAL}><label> {'user_status_normal'|@translate}</label> |
|---|
| 60 | <input type="checkbox" name="users[]" id="admin" value="admin" checked="checked" disabled onclick="return false;"><label> {'user_status_admin'|@translate}</label> |
|---|
| 61 | </div> |
|---|
| 62 | </td> |
|---|
| 63 | </tr> |
|---|
| 64 | {/if} |
|---|
| 65 | |
|---|
| 66 | {if !empty($GROUPSELECTION)} |
|---|
| 67 | <tr> |
|---|
| 68 | <td colspan="2"><hr></td> |
|---|
| 69 | </tr> |
|---|
| 70 | <tr> |
|---|
| 71 | <td align="right">{'ap_authorized_group'|@translate} </td> |
|---|
| 72 | <td>{$GROUPSELECTION}</td> |
|---|
| 73 | </tr> |
|---|
| 74 | <tr> |
|---|
| 75 | <td></td> |
|---|
| 76 | <td><a href="javascript:GereChkbox('groups','1');">{'ap_select_all'|@translate}</a> / <a href="javascript:GereChkbox('groups','0');">{'ap_unselect_all'|@translate}</a> |
|---|
| 77 | <i> {'ap_guest'|@translate}</i></td> |
|---|
| 78 | </tr> |
|---|
| 79 | {/if} |
|---|
| 80 | </table> |
|---|
| 81 | <table style="width:95%;"> |
|---|
| 82 | <tr> |
|---|
| 83 | <td colspan="2" align="center"><br> |
|---|
| 84 | <b>{'ap_page_content'|@translate}</b><br> |
|---|
| 85 | <textarea name="ap_content" id="ap_content" rows="30" cols="50" style="width:100%;">{if isset($CONTENT)}{$CONTENT}{/if}</textarea> |
|---|
| 86 | </td> |
|---|
| 87 | </tr> |
|---|
| 88 | |
|---|
| 89 | <tr> |
|---|
| 90 | <td colspan="2" align="center"><br> |
|---|
| 91 | <input class="submit" type="submit" value="{'ap_save'|@translate}" name="save"> |
|---|
| 92 | {if isset($delete)} |
|---|
| 93 | <input class="submit" type="submit" value="{'ap_delete'|@translate}" name="delete" onclick="return confirm('Are you sure?'|@translate);"/> |
|---|
| 94 | {/if} |
|---|
| 95 | </tr> |
|---|
| 96 | </table> |
|---|
| 97 | |
|---|
| 98 | </form> |
|---|