
<!-- admin/story/storyeditor_advanced.thtml { -->

{noscript}


<div id="advanced_editor" style="display: none;">
{navbar}

<form  name="frmstory" action="{site_admin_url}/story.php" method="post" enctype="multipart/form-data" onSubmit='set_postcontent();' id="admin-storyeditor_advanced" class="compact">
  <fieldset>
    <legend>記事の編集</legend><!-- Geeklog Japanese -->

    <dl>
      <dt>{lang_author}</dt>
      <dd>{story_author}</dd>

      <dt><label for="admin-storyeditor_advanced-title">{lang_title}</label></dt>
      <dd><input type="text" size="48" maxlength="255" value="{story_title}" name="title" id="admin-storyeditor_advanced-title" class="text"{xhtml}></dd>

      <dt><label for="admin-storyeditor-page_title">{lang_page_title}</label></dt>
      <dd><input type="text" size="48" maxlength="255" value="{page_title}" name="page_title" id="admin-storyeditor-page_title" class="text"{xhtml}></dd>

      <dt><label for="admin-storyeditor_advanced-sid">{lang_sid}</label></dt>
      <dd><input type="text" size="40" maxlength="40" value="{story_id}" name="sid" id="admin-storyeditor_advanced-sid" class="text"{xhtml}></dd>

      <dt{hide_meta}><label for="admin-storyeditor-metadescription">{lang_metadescription}</label></dt>
      <dd{hide_meta}><textarea name="meta_description" id="admin-storyeditor-metadescription" style="width:95%" rows="2">{meta_description}</textarea></dd>

      <dt{hide_meta}><label for="admin-storyeditor-metakeywords">{lang_metakeywords}</label></dt>
      <dd{hide_meta}><textarea name="meta_keywords" id="admin-storyeditor-metakeywords" style="width:95%" rows="2">{meta_keywords}</textarea></dd>

      <dt><label for="admin-storyeditor_advanced-tid">{lang_topic}</label></dt>
      <dd>
        <select name="tid" id="admin-storyeditor_advanced-tid">
          {topic_options}
        </select>
      </dd>

      <dt>{lang_hits}</dt>
      <dd>{story_hits}</dd>

      <dt>{lang_comments}</dt>
      <dd>{story_comments}</dd>

      <dt>{lang_trackbacks}</dt>
      <dd>{story_trackbacks}</dd>

      <dt>{lang_emails}</dt>
      <dd>{story_emails}</dd>

      <dt><label for="admin-storyeditor_advanced-show_topic_icon">{lang_show_topic_icon}</label></dt>
      <dd><input type="checkbox" {show_topic_icon_checked} name="show_topic_icon" id="admin-storyeditor_advanced-show_topic_icon"{xhtml}></dd>

      <dt><label for="admin-storyeditor_advanced-draft_flag">{lang_draft}</label></dt>
      <dd><input type="checkbox" {is_checked} name="draft_flag" id="admin-storyeditor_advanced-draft_flag"{xhtml}></dd>

      <dt><label for="admin-storyeditor_advanced-postmode">{lang_postmode}</label></dt>
      <dd>
        <select {change_editormode} name="postmode" id="sel_editmode">
          {post_options}
        </select>
      </dd>
    </dl>

  </fieldset>



  <fieldset id="admin-storyeditor_advanced-editor">
    <legend>エディタ</legend><!-- Geeklog Japanese -->
    <div id="text_editor" style="display: {show_texteditor};">
      <p id="editor_mode" class="description">{lang_allowed_html}</p> 
     <dl>
        <dt><label for="introtext">{lang_introtext}</label></dt>
        <dd>
          <ul class="navi">
            <li><img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" onclick="changeTextAreaSize('introtext','larger');"{xhtml}></li>
            <li><img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" onclick="changeTextAreaSize('introtext','smaller');"{xhtml}></li>
          </ul>
          <textarea cols="45" rows="14" name="introtext" id="introtext">{story_introtext}</textarea>
        </dd>

        <dt>
          <label for="bodytext">{lang_bodytext}</label>
        </dt>
        <dd>
          <ul class="navi">
            <li><img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" onclick="changeTextAreaSize('bodytext','larger');"{xhtml}></li>
            <li><img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" onclick="changeTextAreaSize('bodytext','smaller');"{xhtml}></li>
          </ul>
          <textarea cols="45" rows="14" name="bodytext" id="bodytext">{story_bodytext}</textarea>
        </dd>
      </dl>
    </div>

    <div id="html_editor" style="display: {show_htmleditor};">
      <p id="editor_mode" class="description">{lang_allowed_html}</p>

      <dl>
        <dt><label for="introhtml">{lang_introtext}</label></dt>
        <dd>
          <ul class="navi">
            <li><img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" onclick="changeHTMLTextAreaSize('introhtml','larger');"{xhtml}></li>
            <li><img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" onclick="changeHTMLTextAreaSize('introhtml','smaller');"{xhtml}></li>
            <li>
              {lang_toolbar}
              <select id="fckeditor_toolbar_selector" name="fckeditor_toolbar_selector" onchange="changeToolbar(this.value);">
                <option value="editor-toolbar1">{toolbar1}</option>
                <option value="editor-toolbar2" selected="selected">{toolbar2}</option>
                <option value="editor-toolbar3">{toolbar3}</option>
                <option value="Default">{toolbar5}</option>
              </select>
            </li>
          </ul>
          <textarea cols="45" rows="12" name="introhtml" id="introhtml">{story_introtext}</textarea>
        </dd>

        <dt><label for="bodyhtml">{lang_bodytext}</label></dt>
        <dd>
          <ul class="navi">
            <li><img src="{layout_url}/images/expand.png" title="{lang_expandhelp}" onclick="changeHTMLTextAreaSize('bodyhtml','larger');"{xhtml}></li>
            <li><img src="{layout_url}/images/collapse.png" title="{lang_reducehelp}" onclick="changeHTMLTextAreaSize('bodyhtml','smaller');"{xhtml}></li>
          </ul>
          <textarea cols="45" rows="20" name="bodyhtml" id="bodyhtml">{story_bodytext}</textarea>
        </dd>
      </dl>

    </div>
  </fieldset>



  <div id="se_options" style="display: none;">
  <div id="se_publish" style="display: none;">
  <fieldset>
    <legend>{lang_publishdate}</legend>

    <dl>
      <dt><label for="admin-storyeditor_advanced-publish_month">{lang_date}</label></dt>
      <dd>
        <select name="publish_month" id="admin-storyeditor_advanced-publish_month">
          {publish_month_options}
        </select>
        /
        <select name="publish_day" title="day">
          {publish_day_options}
        </select>
        /
        <select name="publish_year" title="year">
          {publish_year_options}
        </select>&nbsp;&nbsp;

        <select name="publish_hour" title="hour">
          {publish_hour_options}
        </select>
        :
        <select name="publish_minute" title="minute">
          {publish_minute_options}
        </select>

        {publishampm_selection}
      </dd>
      <dd class="description">{publish_date_explanation}</dd>
    </dl>
  </fieldset>

  <fieldset>
    <legend>{lang_publishoptions}</legend>

    <dl>
      <dt><label for="admin-storyeditor_advanced-featured">{lang_mode}</label></dt>
      <dd>
        {featured_options}
        <select name="frontpage">
          {frontpage_options}
        </select>
        <select name="commentcode">
          {comment_options}
        </select>
        <select name="trackbackcode">
          {trackback_options}
        </select>
      </dd>
      <dt><label for="admin-storyeditor-featured">{lang_cmt_disable}</label></dt>
      <dd>
        {lang_enabled}&nbsp;
        <input type="checkbox" name="cmt_close_flag" value="1" {is_checked5} onclick="enablecmtclose(this);"{xhtml}>
        &nbsp;
           <span dir="ltr">
               <select name="cmt_close_month" title="month">
                   {cmt_close_month_options}
           </select>
           /
           <select name="cmt_close_day" title="day">
              {cmt_close_day_options}
           </select>
           /
           <select name="cmt_close_year" title="year">
              {cmt_close_year_options}
           </select>&nbsp;&nbsp;

           <select name="cmt_close_hour" title="hour">
               {cmt_close_hour_options}
           </select>
           :
           <select name="cmt_close_minute" title="minute">
               {cmt_close_minute_options}
           </select>
               {cmt_close_ampm_selection}
           <input type="hidden" name="cmt_close_second" value="{cmt_close_second}"{xhtml}>
           </span>
      </dd>
    </dl>
  </fieldset>
  </div>

  <div id="se_images" style="display: none;">
  <fieldset>
    <legend>{lang_images}</legend>

    <dl>
      <dt><label for="file1">{lang_images}</label></dt>
      <dd>
        {saved_images}
        {image_form_elements}
      </dd>
    </dl>
  </fieldset>
  </div>



  <div id="se_archive" style="display: none;">
  <fieldset>
    <legend>{lang_archivetitle}</legend>

    <dl>
      <dt><label for="admin-storyeditor_advanced-archiveflag">{lang_archivetitle}</label></dt>
      <dd>
        {lang_enabled}&nbsp;
        <input type="checkbox" value="1" {is_checked2} onclick="enablearchive(this);" name="archiveflag" id="admin-storyeditor_advanced-archiveflag"{xhtml}>
        <input type="radio" name="statuscode" id="storycode10" value="10" {is_checked3}{xhtml}>{lang_optionarchive}
        &nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="statuscode" id="storycode11" value="11" {is_checked4}{xhtml}>
		&nbsp;{lang_optiondelete}
      </dd>

      <dt><label for="admin-storyeditor_advanced-expire_month"></label></dt>
      <dd>
        {lang_date}&nbsp;
        <select name="expire_month" id="admin-storyeditor_advanced-expire_month">
          {expire_month_options}
        </select>
        /
        <select name="expire_day" title="day">
          {expire_day_options}
        </select>
        /
        <select name="expire_year" title="year">
          {expire_year_options}
        </select>&nbsp;&nbsp;

        <select name="expire_hour" title="hour">
          {expire_hour_options}
        </select>
        :
        <select name="expire_minute" title="minute">
          {expire_minute_options}
        </select>
        {expireampm_selection}
      </dd>
    </dl>
  </fieldset>
  </div>



  <div  id="se_perms" style="display: none;">
  <fieldset>
    <legend>{lang_accessrights}</legend>

    <dl>
      <dt>{lang_owner}</dt>
      <dd>{owner_name}</dd>

      <dt><label for="group_id">{lang_group}</label></dt>
      <dd>{group_dropdown}</dd>

      <dt><label for="perm_owner">{lang_permissions}</label></dt>
      <dd class="description">{lang_perm_key}</dd>
      <dd>{permissions_editor}</dd>
      <dd class="description">{lang_permissions_msg}</dd>
    </dl>
  </fieldset>
  </div>
  </div>


  <div id="se_bottom" style="display:{show_submitoptions}">
  <ul class="submit">
    <li><input type="submit" value="{lang_save}" name="mode"{xhtml}></li>
    <li><input type="submit" value="{lang_preview}" name="mode"{xhtml}></li>
    <li><input type="submit" value="{lang_cancel}" name="mode"{xhtml}></li>
    <li>{delete_option}</li>
    <li>
      <input type="hidden" name="uid" value="{story_uid}"{xhtml}>
      <input type="hidden" name="publish_second" value="{publish_second}"{xhtml}>
      <input type="hidden" name="old_sid" value="{old_story_id}"{xhtml}>
      <input type="hidden" name="hour_mode" value="{hour_mode}"{xhtml}>
      <input type="hidden" name="expire_second" value="{expire_second}"{xhtml}>
      <input type="hidden" name="hits" value="{story_hits}"{xhtml}>
      <input type="hidden" name="comments" value="{story_comments}"{xhtml}>
      <input type="hidden" name="trackbacks" value="{story_trackbacks}"{xhtml}>
      <input type="hidden" name="numemails" value="{story_emails}"{xhtml}>
      <input type="hidden" name="owner_id" value="{owner_id}"{xhtml}>
      <input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
      {submission_option}
    </li>
  </ul>
  </div>
</form>
</div>

<div id="preview" style="display: {show_preview};">
  {preview_content}
</div>


<!-- } admin/story/storyeditor_advanced.thtml -->
