<?cs include:"zeromin2/header.cs" ?>

<?cs include:"zeromin2/menu_bbs.cs" ?>

<?cs include:"zeromin2/plugin_right_menu.cs" ?>

<div id="main">

<form id="iconContainerForm" action="<?cs var:html_escape(ZerominScript) ?>" method="post">

<div id="navhead">
  <hr />
  <a href="<?cs var:html_escape(ZerominScript) ?>?class=bbs&amp;method=load&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">掲示板管理</a>
  &gt;
  <a href="<?cs var:html_escape(ZerominScript) ?>?class=bbs&amp;method=load_index&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">インデックス</a>
  &gt;
  <a href="<?cs var:html_escape(ZerominScript) ?>?class=icon&amp;method=load&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">アイコン管理</a>
  &gt;
  <a href="<?cs var:html_escape(ZerominScript) ?>?class=icon&amp;method=edit_form&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;icon=<?cs var:Id ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">アイコン「<?cs var:Name ?>」の編集</a>
</div>

<h1>アイコン「<?cs var:Name ?>」の編集</h1>

<?cs if:Code0 ?>
<?cs if:Done_icon_save ?><div class="noticeSuccess" id="notify"><p>アイコン設定を保存しました</p></div><?cs /if ?>
<?cs if:Done_icon_edit_form ?><div class="" id="notify"></div><?cs /if ?>
<?cs else ?>
<?cs if:Code1 ?><div class="noticeFailed" id="notify"><p>実行権限がありません</p></div><?cs /if ?>
<?cs if:Code2 ?><div class="noticeFailed" id="notify"><p>編集しようとしたアイコンはデータベース上に登録されていません</p></div><?cs /if ?>
<?cs /if ?>

<p>
<img src="<?cs var:html_escape(URL) ?>/<?cs if:!IsGlobal ?><?cs var:BBSName ?>/<?cs /if ?><?cs var:html_escape(Id) ?>.<?cs var:Extension ?>" alt="<?cs var:html_escape(Name) ?>"  width="<?cs var:html_escape(Width) ?>" height="<?cs var:html_escape(Height) ?>" />
</p>

<p>
<label for="__name" title="name">名前</label>
<input type="text" id="__name" name="name" size="25" value="<?cs var:Name ?>" />
</p>

<p>
<label for="description" title="description">説明</label>
<input type="text" id="description" name="description" size="50" value="<?cs var:html_escape(Description) ?>" />
</p>

<p>
<label for="pass" title="pass">使用可能なキャップ名</label>
<select id="pass" name="pass"><option value="">なし</option>
<?cs each:item = Caps ?><option value="<?cs var:item.id ?>"<?cs if:item.selected ?> selected="selected"<?cs /if ?>><?cs var:item.name ?></option>
<?cs /each ?></select>
</p>

<div class="formFooter">
<input type="hidden" name="<?cs var:html_escape(SessionName) ?>" value="<?cs var:html_escape(Session) ?>" />
<input type="hidden" name="token" value="<?cs var:html_escape(Token) ?>" />
<input type="hidden" name="class" value="icon" />
<input type="hidden" name="method" value="save" />
<input type="hidden" name="bbs" value="<?cs var:BBS ?>" />
<input type="hidden" name="icon" value="<?cs var:Id ?>" />
<input type="hidden" name="OK" value="edit_form" />
<input type="hidden" name="NG" value="edit_form" />
<input type="submit" value="更新" />
<br id="endmain" />
</div>

</form>

</div>

<?cs include:"zeromin2/footer.cs" ?>
