public_html/layout/professional/admin/story/storyeditor_advanced.thtml
author Dirk Haun <dirk@haun-online.de>
Sun, 04 Oct 2009 18:07:39 +0200
branchHEAD
changeset 7361 cb9ad1e4b759
parent 7279 3bea8d29e64c
child 7510 fd75c85d005a
permissions -rw-r--r--
Cosmetics: Removed some <b> tags from the story editor templates
     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 -->
     2 <noscript>
     3     <div class="pluginAlert aligncenter" style="border:1px dashed #ccc;margin-top:10px;padding:15px;">{lang_nojavascript}
     4     <p>{no_javascript_return_link}</p>
     5     </div>
     6 </noscript>
     7 <script type="text/javascript">
     8     // Setup editor path for FCKeditor JS Functions
     9     geeklogEditorBasePath = "{site_url}/fckeditor/";
    10 </script>
    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>
    13 <br{xhtml}>
    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=''
    18     </script>
    19     {navbar}
    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;">
    22             <tr>
    23                 <td style="width:20%;" class="alignright">{lang_author}:</td>
    24                 <td>{story_author}<input type="hidden" name="uid" value="{story_uid}"{xhtml}></td>
    25             </tr>
    26             <tr>
    27                 <td class="alignright">{lang_title}:</td>
    28                 <td><input type="text" size="48" maxlength="128" name="title" value="{story_title}"{xhtml}></td>
    29             </tr>
    30             <tr>
    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>
    33             </tr>
    34             <tr>
    35                 <td valign="top" align="right">{lang_metadescription}:</td>
    36                 <td><textarea name="meta_description" style="width:100%" rows="2">{meta_description}</textarea></td>
    37             </tr>
    38             <tr>
    39                 <td valign="top" align="right">{lang_metakeywords}:</td>
    40                 <td><textarea name="meta_keywords" style="width:100%" rows="2">{meta_keywords}</textarea></td>
    41             </tr>            
    42             <tr>
    43                 <td class="alignright">{lang_topic}:</td>
    44                 <td>
    45                     <select name="tid">
    46                         {topic_options}
    47                     </select>
    48                 </td>
    49             </tr>
    50             <tr>
    51                 <td class="alignright">{lang_story_stats}:</td>
    52                 <td>
    53                   <table cellspacing="0" cellpadding="3" style="width:50%;">
    54                     <tr>
    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>
    61                     </tr>
    62                  </table>
    63                 </td>
    64             </tr>
    65             <tr>
    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>&nbsp;<select id="sel_editmode" name="postmode" {change_editormode}>{post_options}</select></td>
    68             </tr>
    69         </table>
    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};">
    72             {lang_introtext}:
    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>
    76             {lang_bodytext}:
    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>
    80         </div>
    81         <!-- HTML Editor -->
    82         <div id="html_editor" style="margin-top:10px; padding-left:10px; border:1px solid #ECE9D8;display:{show_htmleditor};">
    83             {lang_introtext}:
    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}:&nbsp;
    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>
    92                 </select>
    93             </span>
    94             <textarea id="introhtml" style="padding:5px 10px 5px 10px;" name="introhtml" cols="45" rows="12">{story_introtext}</textarea>
    95             {lang_bodytext}:
    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>
    99         </div>
   100         <div id="editor_mode" style="margin-top:10px;border:1px solid #ECE9D8;display:{show_htmleditor};">
   101             {lang_allowed_html}
   102         </div>
   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%;">
   107                         <tr>
   108                             <td class="alignright" style="vertical-align:top;">{lang_date}:</td>
   109                             <td>
   110                               <span dir="ltr">
   111                                 <select name="publish_month">
   112                                     {publish_month_options}
   113                                 </select>
   114                                 /
   115                                 <select name="publish_day">
   116                                     {publish_day_options}
   117                                 </select>
   118                                 /
   119                                 <select name="publish_year">
   120                                     {publish_year_options}
   121                                 </select>&nbsp;&nbsp;
   122                                 <select name="publish_hour">
   123                                     {publish_hour_options}
   124                                 </select>
   125                                 :
   126                                 <select name="publish_minute">
   127                                     {publish_minute_options}
   128                                 </select>
   129                                 {publishampm_selection}
   130                                 <input type="hidden" name="publish_second" value="{publish_second}"{xhtml}>
   131                               </span><br{xhtml}><br{xhtml}>
   132                               {publish_date_explanation}
   133                             </td>
   134                         </tr>
   135                     </table>
   136                 </fieldset>
   137                 <fieldset style="margin-top:10px;"><legend>{lang_publishoptions}</legend>
   138                     <table cellspacing="3" cellpadding="3" style="width:100%;">
   139                         <tr>
   140                             <td>
   141                                 {featured_options}
   142                             </td>
   143                             <td style="width:75%;">
   144                                 <select name="frontpage">
   145                                     {frontpage_options}
   146                                 </select>
   147                             </td>
   148                         </tr>
   149                         <tr>
   150                             <td>
   151                                 <select name="commentcode">
   152                                     {comment_options}
   153                                 </select>
   154                             </td>
   155                             <td>
   156                                 <select name="trackbackcode">
   157                                     {trackback_options}
   158                                 </select>
   159                             </td>
   160                          </tr>
   161                          <tr>
   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}>
   164                                             <span dir="ltr">
   165                                                 <select name="cmt_close_month">
   166                                                     {cmt_close_month_options}
   167                                                  </select>
   168                                                  /
   169                                                  <select name="cmt_close_day">
   170                                                     {cmt_close_day_options}
   171                                                  </select>
   172                                                  /
   173                                                  <select name="cmt_close_year">
   174                                                     {cmt_close_year_options}
   175                                                  </select>&nbsp;&nbsp;
   176                                                  <select name="cmt_close_hour">
   177                                                      {cmt_close_hour_options}
   178                                                  </select>
   179                                                  :
   180                                                  <select name="cmt_close_minute">
   181                                                      {cmt_close_minute_options}
   182                                                  </select>
   183                                                      {cmt_close_ampm_selection}
   184                                                   <input type="hidden" name="cmt_close_second" value="{cmt_close_second}"{xhtml}>
   185                                                       </span><br{xhtml}>
   186                                         </td>
   187 
   188                         </tr>
   189                     </table>
   190                 </fieldset>
   191             </div>
   192             <div id="se_images" style="display:none;">
   193                 <fieldset style="margin-top:10px;"><legend>{lang_images}</legend>
   194                     {saved_images}
   195                     {image_form_elements}
   196                 </fieldset>
   197             </div>
   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%;">
   202                         <tr>
   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}
   208                                 </label>&nbsp;
   209                                 <label for="storycode11">
   210                                     <input type="radio" name="statuscode" id="storycode11" value="11" {is_checked4}{xhtml}>{lang_optiondelete}
   211                                 </label>
   212                             </td>
   213                         </tr>
   214                         <tr>
   215                             <td class="alignright" style="vertical-align:top;padding-right:5px;">{lang_date}:</td>
   216                             <td colspan="2">
   217                               <span dir="ltr">
   218                                 <select id="expire_month" name="expire_month">
   219                                     {expire_month_options}
   220                                 </select>
   221                                 <select name="expire_day">
   222                                     {expire_day_options}
   223                                 </select>
   224                                 <select name="expire_year">
   225                                     {expire_year_options}
   226                                 </select>
   227                                 <select name="expire_hour">
   228                                     {expire_hour_options}
   229                                 </select>&nbsp;:
   230                                 <select name="expire_minute">
   231                                     {expire_minute_options}
   232                                 </select>
   233                                 {expireampm_selection}
   234                                 <input type="hidden" name="expire_second" value="{expire_second}"{xhtml}>
   235                               </span><br{xhtml}>
   236                             </td>
   237                         </tr>
   238                     </table>
   239                 </fieldset>
   240             </div>
   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>
   247                 {permissions_editor}
   248                 <p>{lang_permissions_msg}</p>
   249             </fieldset>
   250         </div>
   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>
   255             {delete_option}
   256             {submission_option}
   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}>
   260         </div>
   261     </form>
   262     <div id="preview" style="width:100%; border:1px dashed grey; padding:0; margin-top:10px; display:{show_preview};">
   263         <div style="margin:10px;">
   264             {preview_content}
   265         </div>
   266     </div>
   267 
   268     <script type="text/javascript">
   269         <!-- This code will only be executed by a browser that suppports Javascript -->
   270 
   271         var jstest = {showarchivedisabled};
   272         if (jstest) {
   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;
   281 
   282         }
   283         var jstest2 = {showcmtclosedisabled};
   284         if (jstest2) {
   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;
   291         }
   292     </script>
   293 </div>