<?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="filterCreateNGWordContainerForm" 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=create_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>
</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 ?>

<script type="text/javascript" src="<?cs var:html_escape(StaticURI) ?>/js/jquery/metadata.js" charset="UTF-8"></script>
<script type="text/javascript" src="<?cs var:html_escape(StaticURI) ?>/js/jquery/validate.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
<!--
jQuery(function(){
jQuery("form#filterCreateNGWordContainerForm").validate({
    "rules": {
        "entry": { "required": true }
    },
    "messages": {
        "entry": { "required": "対象文字列を入力してください" }
    },
    "showErrors": Zeromin2.getFormErrorHandler("以下の入力エラーがあります")
});
});
//-->
</script>

<p>
<label for="entry" title="entry">対象文字列</label>
<input type="text" id="entry" name="entry" value="" />
</p>

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

<p>
<label for="to" title="to">置換文字列</label>
<input type="text" id="to" name="to" value="" />
</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="_OK" name="OK" value="load_ngword" />
<input type="hidden" id="_NG" name="NG" value="create_ngword" />
<input type="submit" value="登録" />
<br id="endmain" />
</div>

</form>

</div>

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