<[include file="common/group_list.tpl"]>
<div id="contents">
<[include file="common/group_menu.tpl"]>
  <br />
  <div id="site-info">
    <table width="100%">
      <tr>
        <td width="50%" align="left">
          <h3><img src="<[$TEMPLATE_DIR]>/img/icon_large/henshu.jpg" align="absmiddle" style="margin-right:8px;">記事編集</h3>
        </td>
        <td width="50%" align="right" valign="bottom"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('upload','','<[$TEMPLATE_DIR]>/img/btn/image_on.gif',1)" onclick="MM_openBrWindow('./index.php?mode=5&group_code=<[$current_group.group_code]>&entry_code=<[$current_entry.entry_code]>','Upload','scrollbars=yes,width=800,height=600')"><img name="upload" border="0" src="<[$TEMPLATE_DIR]>/img/btn/image_off.gif" alt="画像の一覧・新規登録"></a></td>
      </tr>
    </table>
    <[include file="common/error.tpl"]>
    <[include file="common/message.tpl"]>
    <form method="post" action="./index.php?mode=14&group_code=<[$current_group.group_code]>&entry_code=<[$current_entry.entry_code]>" name="form">
    <input name="state" type="hidden" value="<[$state]>" />
      <fieldset style="width:100%;">
      <legend>記事の設定</legend>
      <table width="100%" border="0">
        <tr>
          <td width="200">タイトル</td>
          <td><input name="title" type="text" value="<[$title|escape]>" size="50" <[popup text="記事のタイトルを入力してください。" fgcolor="#FFFFC8" bgcolor="#000000" delay="500"]> /></td>
        </tr>
        <tr>
          <td width="200">カテゴリ</td>
          <td>
            <select name="category" <[popup text="記事のカテゴリを選択してください。" fgcolor="#FFFFC8" bgcolor="#000000" delay="500"]>>
              <option value="">なし</option>
            <[foreach from=$group_category_array item=group_category]>
              <option value="<[$group_category.category_code]>"<[if $group_category.category_code == $category]> selected<[/if]>><[$group_category.category_name|escape]></option>
            <[/foreach]>
            </select>
          </td>
        </tr>
        <tr>
          <td width="200">掲載日付</td>
          <td>
            <[html_select_date field_order="YMD" month_format="%m" start_year="-$START_YEAR" end_year="+$END_YEAR" time=$date]>
          </td>
        </tr>
      </table>
      </fieldset>
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td style="text-align:left;"><input type="submit" value="　確　　認　" />&nbsp;<input type="button" onclick="location.href='./index.php?mode=1&group_code=<[$current_group.group_code]>'" value="一覧へ戻る" /></td>
          <td style="text-align:right;"><input type="button" onclick="document.form.state.value=4;document.form.submit();" value="下書き保存" /></td>
        </tr>
      </table>
      <fieldset style="width:100%;">
      <legend>記事本文</legend>
      <table width="100%" border="0">
        <tr>
          <td>
            <[tinymce BasePath="extlib/TinyMCE/" elements="body" value=$body width="100%" height="480" theme="advanced" plugins="table,contextmenu,emotions,save,searchreplace,youtube" theme_advanced_buttons1="separator,code,search,replace,separator,cut,copy,paste,separator,undo,redo,separator,justifyleft,justifycenter,justifyright,separator,bullist,numlist,outdent,indent,separator,table,image,youtube,hr,separator,link,unlink,anchor,separator,visualaid" theme_advanced_buttons2="separator,fontsizeselect,separator,bold,italic,underline,strikethrough,separator,sub,sup,separator,forecolor,backcolor" theme_advanced_buttons3=""]>
          </td>
        </tr>
      </table>
      </fieldset>
      <fieldset style="width:100%;">
      <legend>更新通知</legend>
      <table width="100%" border="0">
        <tr>
          <td>
            <label for="ping" <[popup text="更新pingを送信する場合はチェックを入れてください。<br />※更新を通知する場合、送信に多少時間がかかる場合があります。" fgcolor="#FFFFC8" width="300" bgcolor="#000000" delay="500"]>><input name="ping" id="ping" type="checkbox" value="1"<[if $ping > 0]> checked<[/if]>/>&nbsp;更新を通知する（更新を通知した場合、この記事は編集後すぐに公開されます）<label>
          </td>
        </tr>
      </table>
      </fieldset>
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td style="text-align:left;"><input type="submit" value="　確　　認　" />&nbsp;<input type="button" onclick="location.href='./index.php?mode=1&group_code=<[$current_group.group_code]>'" value="一覧へ戻る" /></td>
          <td style="text-align:right;"><input type="button" onclick="document.form.state.value=4;document.form.submit();" value="下書き保存" /></td>
        </tr>
      </table>
    </form>
  </div>
</div>