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

<?cs if:BBS ?><?cs include:"zeromin2/menu_bbs.cs" ?><?cs else ?><?cs include:"zeromin2/menu.cs" ?><?cs /if ?>

<div id="sidebar">
  <div>
    <p class="title"></p>
    <a href="<?cs var:html_escape(ZerominScript) ?>?class=filter&amp;method=load_ip&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;item=<?cs var:html_escape(Item) ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">IPアドレス制限</a><br />
    <a href="<?cs var:html_escape(ZerominScript) ?>?class=filter&amp;method=load_host&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;item=<?cs var:html_escape(Item) ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">ホスト制限</a><br />
  </div>
</div>

<div id="main">

<form id="filterEditNGWordContainerForm" 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;
<?cs if:BBS ?>
  <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;
<?cs /if ?>
  <a href="<?cs var:html_escape(ZerominScript) ?>?class=filter&amp;method=load_ip&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;item=<?cs var:html_escape(Item) ?>&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=filter&amp;method=load_ngword&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;item=<?cs var:html_escape(Item) ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">NGワード制限</a>
  &gt;
  <a href="<?cs var:html_escape(ZerominScript) ?>?class=filter&amp;method=edit_ngword&amp;bbs=<?cs var:html_escape(BBS) ?>&amp;id=<?cs var:html_escape(Id) ?>&amp;item=<?cs var:html_escape(Item) ?>&amp;<?cs var:html_escape(SessionName) ?>=<?cs var:html_escape(Session) ?>" onclick="Zeromin2.redirect(this);return false">NGワード編集</a>
</div>

<h1>NGワード編集</h1>

<?cs if:Code0 ?><div class="" id="notify"></div><?cs /if ?>
<?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 ?>

<p>
<label for="__entry" title="entry">対象文字列</label>
<input type="text" id="__entry" name="_entry" value="<?cs var:html_escape(Entry) ?>" disabled="disabled" />
<input type="hidden" id="entry" name="entry" value="<?cs var:html_escape(Entry) ?>" />
</p>

<p>
 <label for="type" title="type">対処方法</label>
 <select id="type" name="type" title="type">
  <option value="1"<?cs if:Type1 ?> selected="selected"<?cs /if ?>>書き込み禁止</option>
  <option value="2"<?cs if:Type2 ?> selected="selected"<?cs /if ?>>対象文字列の削除</option>
  <option value="4"<?cs if:Type4 ?> selected="selected"<?cs /if ?>>「置換文字列」に置換</option>
 </select>
</p>

<p>
 <label for="apply" title="apply">適用範囲<br />
 <select id="apply" name="apply" title="apply" multiple="multiple">
  <option value="1"<?cs if:Apply1 ?> selected="selected"<?cs /if ?>>全体</option>
  <option value="2"<?cs if:Apply2 ?> selected="selected"<?cs /if ?>>名前欄</option>
  <option value="4"<?cs if:Apply4 ?> selected="selected"<?cs /if ?>>メール欄</option>
  <option value="8"<?cs if:Apply8 ?> selected="selected"<?cs /if ?>>本文</option>
  <option value="16"<?cs if:Apply16 ?> selected="selected"<?cs /if ?>>サブジェクト</option>
 </select>
</p>

<p>
<label for="to" title="to">置換文字列</label>
<input type="text" id="to" name="to" value="<?cs var:html_escape(To) ?>" />
</p>

<div class="formFooter">
<input type="hidden" id="_<?cs var:html_escape(SessionName) ?>" name="<?cs var:html_escape(SessionName) ?>" value="<?cs var:html_escape(Session) ?>" />
<input type="hidden" id="_token" name="token" value="<?cs var:html_escape(Token) ?>" />
<input type="hidden" id="_class" name="class" value="filter" />
<input type="hidden" id="_method" name="method" value="save_ngword" />
<input type="hidden" id="_bbs" name="bbs" value="<?cs var:html_escape(BBS) ?>" />
<input type="hidden" id="_id" name="id" value="<?cs var:html_escape(Id) ?>" />
<input type="hidden" id="_OK" name="OK" value="load_ngword" />
<input type="hidden" id="_NG" name="NG" value="edit_ngword" />
<input type="submit" value="更新" />
<br id="endmain" />
</div>

</form>

</div>

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