1 <!-- Hide the Advanced Editor as Javascript is required. If JS is not enabled then the message below in the <nonscript> tags will be displayed -->
3 <div class="pluginAlert aligncenter" style="border:1px dashed #ccc;margin-top:10px;padding:15px;">{lang_nojavascript}
4 <p>{no_javascript_return_link}</p>
7 <script type="text/javascript">
8 // Setup editor path for FCKeditor JS Functions
9 geeklogEditorBasePath = "{site_url}/fckeditor/";
11 <script type="text/javascript" src="{site_url}/javascript/advanced_editor.js"></script>
12 <script type="text/javascript" src="{site_url}/javascript/storyeditor_fckeditor.js"></script>
14 <div id="advanced_editor" style="display:none;">
15 <!-- Hide the Advanced Editor as Javascript is required. If JS is enabled then the JS below will un-hide it -->
16 <script type="text/javascript">
17 document.getElementById('advanced_editor').style.display=''
20 <form name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" onsubmit='set_postcontent();'>
21 <table id='adveditor' cellspacing="0" cellpadding="3" style="width:100%; margin-top:10px; border:1px solid #ECE9D8;">
23 <td style="width:20%;" class="alignright">{lang_author}:</td>
24 <td>{story_author}<input type="hidden" name="uid" value="{story_uid}"{xhtml}></td>
27 <td class="alignright">{lang_title}:</td>
28 <td><input type="text" size="48" maxlength="128" name="title" value="{story_title}"{xhtml}></td>
31 <td class="alignright" style="vertical-align:top;">{lang_sid}:</td>
32 <td><input type="text" dir="ltr" size="48" maxlength="40" name="sid" value="{story_id}"{xhtml}></td>
35 <td valign="top" align="right">{lang_metadescription}:</td>
36 <td><textarea name="meta_description" style="width:100%" rows="2">{meta_description}</textarea></td>
39 <td valign="top" align="right">{lang_metakeywords}:</td>
40 <td><textarea name="meta_keywords" style="width:100%" rows="2">{meta_keywords}</textarea></td>
43 <td class="alignright">{lang_topic}:</td>
51 <td class="alignright">{lang_story_stats}:</td>
53 <table cellspacing="0" cellpadding="3" style="width:50%;">
55 <td class="alignright">{lang_hits}:</td>
56 <td><input type="hidden" name="hits" value="{story_hits}"{xhtml}>{story_hits}</td>
57 <td class="alignright">{lang_comments}:</td>
58 <td><input type="hidden" name="comments" value="{story_comments}"{xhtml}>{story_comments}</td>
59 <td class="alignright">{lang_emails}:</td>
60 <td><input type="hidden" name="numemails" value="{story_emails}"{xhtml}>{story_emails}</td>
66 <td class="alignright">{lang_show_topic_icon}:<input type="checkbox" name="show_topic_icon" {show_topic_icon_checked}{xhtml}> </td>
67 <td style="padding-left:25px;">{lang_draft}:<input type="checkbox" name="draft_flag" {is_checked}{xhtml}><span style="padding-left:30px;">{lang_postmode}:</span> <select id="sel_editmode" name="postmode" {change_editormode}>{post_options}</select></td>
70 <!-- Basic textarea field - no editor -->
71 <div id="text_editor" style="width:100%; margin-top:10px; padding-left:10px; border:1px solid #ECE9D8;display:{show_texteditor};">
73 <img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" alt="" onclick="changeTextAreaSize('introtext','larger');"{xhtml}>
74 <img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" alt="" onclick="changeTextAreaSize('introtext','smaller');"{xhtml}>
75 <textarea id="introtext" style="width:100%; padding:5px 10px 5px 10px;" name="introtext" cols="45" rows="14">{story_introtext}</textarea>
77 <img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" alt="" onclick="changeTextAreaSize('bodytext','larger');"{xhtml}>
78 <img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" alt="" onclick="changeTextAreaSize('bodytext','smaller');"{xhtml}>
79 <textarea id="bodytext" style="padding:5px 10px 5px 10px; width:100%;" name="bodytext" cols="45" rows="14">{story_bodytext}</textarea>
82 <div id="html_editor" style="margin-top:10px; padding-left:10px; border:1px solid #ECE9D8;display:{show_htmleditor};">
84 <img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" alt="" onclick="changeHTMLTextAreaSize('introhtml','larger');"{xhtml}>
85 <img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" alt="" onclick="changeHTMLTextAreaSize('introhtml','smaller');"{xhtml}>
86 <span style="padding-left:15px;">{lang_toolbar}:
87 <select id="fckeditor_toolbar_selector" name="fckeditor_toolbar_selector" onchange="changeToolbar(this.value);">
88 <option value="editor-toolbar1">{toolbar1}</option>
89 <option value="editor-toolbar2" selected="selected">{toolbar2}</option>
90 <option value="editor-toolbar3">{toolbar3}</option>
91 <option value="Default">{toolbar5}</option>
94 <textarea id="introhtml" style="padding:5px 10px 5px 10px;" name="introhtml" cols="45" rows="12">{story_introtext}</textarea>
96 <img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" alt="" onclick="changeHTMLTextAreaSize('bodyhtml','larger');"{xhtml}>
97 <img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" alt="" onclick="changeHTMLTextAreaSize('bodyhtml','smaller');"{xhtml}>
98 <textarea id="bodyhtml" style="padding:5px 10px 5px 10px;" name="bodyhtml" cols="45" rows="20">{story_bodytext}</textarea>
100 <div id="editor_mode" style="margin-top:10px;border:1px solid #ECE9D8;display:{show_htmleditor};">
103 <div id="se_options" style="width:100%; margin-top:10px; border:1px solid #ECE9D8; display:none;">
104 <div id="se_publish" style="display:none;">
105 <fieldset><legend>{lang_publishdate}</legend>
106 <table cellspacing="0" cellpadding="3" style="width:100%;">
108 <td class="alignright" style="vertical-align:top;">{lang_date}:</td>
111 <select name="publish_month">
112 {publish_month_options}
115 <select name="publish_day">
116 {publish_day_options}
119 <select name="publish_year">
120 {publish_year_options}
121 </select>
122 <select name="publish_hour">
123 {publish_hour_options}
126 <select name="publish_minute">
127 {publish_minute_options}
129 {publishampm_selection}
130 <input type="hidden" name="publish_second" value="{publish_second}"{xhtml}>
131 </span><br{xhtml}><br{xhtml}>
132 {publish_date_explanation}
137 <fieldset style="margin-top:10px;"><legend>{lang_publishoptions}</legend>
138 <table cellspacing="3" cellpadding="3" style="width:100%;">
143 <td style="width:75%;">
144 <select name="frontpage">
151 <select name="commentcode">
156 <select name="trackbackcode">
162 <td>{lang_cmt_disable}:</td>
163 <td class="alignleft" style="vertical-align:top;" colspan="1">{lang_enabled}:<input type="checkbox" name="cmt_close_flag" value="1" {is_checked5} onclick="enablecmtclose(this);"{xhtml}>
165 <select name="cmt_close_month">
166 {cmt_close_month_options}
169 <select name="cmt_close_day">
170 {cmt_close_day_options}
173 <select name="cmt_close_year">
174 {cmt_close_year_options}
175 </select>
176 <select name="cmt_close_hour">
177 {cmt_close_hour_options}
180 <select name="cmt_close_minute">
181 {cmt_close_minute_options}
183 {cmt_close_ampm_selection}
184 <input type="hidden" name="cmt_close_second" value="{cmt_close_second}"{xhtml}>
192 <div id="se_images" style="display:none;">
193 <fieldset style="margin-top:10px;"><legend>{lang_images}</legend>
195 {image_form_elements}
198 <div id="se_archive" style="display:none;">
199 <fieldset style="margin-top:10px;">
200 <legend>{lang_archivetitle}</legend>
201 <table cellspacing="0" cellpadding="3" style="width:100%;">
203 <td class="alignright" style="width:20%; padding-right:5px;">{lang_option}:</td>
204 <td style="width:20%;">{lang_enabled}:<input type="checkbox" name="archiveflag" value="1" {is_checked2} onclick="enablearchive(this);"{xhtml}></td>
205 <td class="alignleft">
206 <label for="storycode10">
207 <input type="radio" name="statuscode" id="storycode10" value="10" {is_checked3}{xhtml}>{lang_optionarchive}
209 <label for="storycode11">
210 <input type="radio" name="statuscode" id="storycode11" value="11" {is_checked4}{xhtml}>{lang_optiondelete}
215 <td class="alignright" style="vertical-align:top;padding-right:5px;">{lang_date}:</td>
218 <select id="expire_month" name="expire_month">
219 {expire_month_options}
221 <select name="expire_day">
224 <select name="expire_year">
225 {expire_year_options}
227 <select name="expire_hour">
228 {expire_hour_options}
230 <select name="expire_minute">
231 {expire_minute_options}
233 {expireampm_selection}
234 <input type="hidden" name="expire_second" value="{expire_second}"{xhtml}>
241 <fieldset id="se_perms" style="margin-top:10px; display:none;">
242 <legend>{lang_permissions}</legend>
243 <p>{lang_owner}: {owner_name}<input type="hidden" name="owner_id" value="{owner_id}"{xhtml}></p>
244 <p>{lang_group}: {group_dropdown}</p>
245 <p>{lang_permissions}:</p>
246 <p>{lang_perm_key}</p>
248 <p>{lang_permissions_msg}</p>
251 <div id="se_bottom" style="width:100%; padding:3px; margin-top:20px;display:{show_submitoptions}">
252 <input type="submit" value="{lang_save}" name="mode"{xhtml}>
253 <span style="padding-right:10px;padding-left:10px;"><input type="submit" value="{lang_preview}" name="mode"{xhtml}></span>
254 <span style="padding-right:50px;"><input type="submit" value="{lang_cancel}" name="mode"{xhtml}></span>
257 <input type="hidden" name="old_sid" value="{old_story_id}"{xhtml}>
258 <input type="hidden" name="hour_mode" value="{hour_mode}"{xhtml}>
259 <input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
262 <div id="preview" style="width:100%; border:1px dashed grey; padding:0; margin-top:10px; display:{show_preview};">
263 <div style="margin:10px;">
268 <script type="text/javascript">
269 <!-- This code will only be executed by a browser that suppports Javascript -->
271 var jstest = {showarchivedisabled};
273 document.frmstory.expire_month.disabled=true;
274 document.frmstory.expire_day.disabled=true;
275 document.frmstory.expire_year.disabled=true;
276 document.frmstory.expire_hour.disabled=true;
277 document.frmstory.expire_minute.disabled=true;
278 document.frmstory.expire_ampm.disabled=true;
279 document.frmstory.storycode10.disabled=true;
280 document.frmstory.storycode11.disabled=true;
283 var jstest2 = {showcmtclosedisabled};
285 document.frmstory.cmt_close_month.disabled=true;
286 document.frmstory.cmt_close_day.disabled=true;
287 document.frmstory.cmt_close_year.disabled=true;
288 document.frmstory.cmt_close_hour.disabled=true;
289 document.frmstory.cmt_close_minute.disabled=true;
290 document.frmstory.cmt_close_ampm.disabled=true;