[2588] | 1 | {* $Id: show_default.tpl 3187 2009-03-11 16:42:01Z patdenice $ *} |
---|
[3187] | 2 | {html_head} |
---|
| 3 | <link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css"> |
---|
| 4 | <style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style> |
---|
| 5 | {/html_head} |
---|
[2588] | 6 | {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} |
---|
| 7 | {known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"} |
---|
[2291] | 8 | <script type="text/javascript"> |
---|
[2588] | 9 | var editarea = "{$LOAD_EDITAREA}"; |
---|
| 10 | |
---|
| 11 | function loadEditarea() {ldelim} |
---|
| 12 | editAreaLoader.init({ldelim} |
---|
| 13 | id: "text" |
---|
| 14 | {foreach from=$EDITAREA_OPTIONS key=option item=value} |
---|
| 15 | , {$option}: {$value|editarea_quote} |
---|
| 16 | {/foreach} |
---|
| 17 | }); |
---|
| 18 | jQuery("#showedit").hide(); |
---|
| 19 | jQuery("#hideedit").show(); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | function unloadEditarea() {ldelim} |
---|
| 23 | editAreaLoader.delete_instance("text"); |
---|
| 24 | jQuery("#hideedit").hide(); |
---|
| 25 | jQuery("#showedit").show(); |
---|
| 26 | } |
---|
[2291] | 27 | </script> |
---|
| 28 | |
---|
[2588] | 29 | <div id="LocalFilesEditor"> |
---|
[3187] | 30 | <h1>{$TITLE}</h1> |
---|
[2588] | 31 | |
---|
| 32 | <textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea> |
---|
| 33 | |
---|
| 34 | <div id="editarea_buttons"> |
---|
| 35 | <a href="javascript:loadEditarea();" id="showedit">[{'locfiledit_enable_editarea'|@translate}]</a> |
---|
| 36 | <a href="javascript:unloadEditarea();" id="hideedit">[{'locfiledit_disable_editarea'|@translate}]</a> |
---|
| 37 | </div> |
---|
| 38 | |
---|
| 39 | </div> |
---|
| 40 | |
---|
| 41 | <script type="text/javascript"> |
---|
| 42 | jQuery("#editarea_buttons").show(); |
---|
| 43 | if (editarea == "on") loadEditarea(); |
---|
| 44 | </script> |
---|