<?php
/**
 * ページの編集・削除画面
 *
 * Copyright (c) 2010-2011 SetucoCMS Project.(http://sourceforge.jp/projects/setucocms)
 * All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * @category   Setuco
 * @package    Admin
 * @subpackage View_Script_Page
 * @license    http://www.opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2
 * @copyright  Copyright (c) 2010 SetucoCMS Project.(http://sourceforge.jp/projects/setucocms)
 * @link
 * @version
 * @since      File available since Release 0.1.0
 * @param      Setuco_Form searchForm   検索フォーム
 * @param      Setuco_Form categoryForm カテゴリーフォーム
 * @param      Setuco_Form statusForm   状態フォーム
 * @param      bool        isSearched   検索結果ページかどうか
 * @author     charlesvineyard
 */
?>
<!-- topicPath START -->
<div id="topicPath">
    <p>
        <a href="<?php echo $this->baseUrl('/admin') ?>">トップ</a>
        <img src="<?php echo $this->baseUrl('/images/admin/share/topicPath.gif') ?>" width="6" height="11" alt="の中の" />
    </p>
    <p>ページの編集・削除</p>
</div>
<!-- topicpath END -->

<!-- section START -->
<div class="section">
    <div class="hAreaL">
        <div class="hAreaR">
            <div class="hArea">
                <h3><img src="<?php echo $this->baseUrl('/images/admin/page/h_pageAll.jpg'); ?>" width="135" height="18" alt="ページの編集・削除" /></h3>
            </div>
        </div>
    </div>
    <?php echo $this->partial('error-message.phtml', array('errorForm' => $this->searchForm)) ?>
    <?php echo $this->partial('action-message.phtml', array('flashMessages' => $this->flashMessages)) ?>
    <form enctype="application/x-www-form-urlencoded" action="<?php echo $this->searchForm->getAction() ?>" method="get">
        <div id="pageSearch">
            <dl class="over">
                <dt>
                    <label for="query">検索キーワード</label>
                </dt>

                <dd><?php echo $this->searchForm->getElement('query') ?></dd>
                <dd class="clear"><input id="search_type_and" type="radio" name="search_type" value="AND" /><label for="search_type_and">AND</label></dd>
                <dd><input id="search_type_or" type="radio" name="search_type" value="OR" checked="checked" /><label for="search_type_or">OR</label></dd>
                <dd class="clear"><?php echo $this->searchForm->getElement('targets') ?></dd>
                
            </dl>
            <dl class="under">
                <dt>カテゴリー</dt>
                <dd><?php echo $this->searchForm->getElement('category_id') ."\n" ?></dd>
                <dt>制作者</dt>
                <dd><?php echo $this->searchForm->getElement('account_id') ."\n" ?></dd>
                <dt>公開状態</dt>
                <dd><?php echo $this->searchForm->getElement('status') ."\n" ?></dd>
            </dl>
            <p><?php echo $this->searchForm->getElement('sub_search') ."\n" ?></p>
        </div>
    </form>
    <?php echo $this->partial('page-table.phtml', array(
            'pages' => $this->pages,
            'categoryForm' => $this->categoryForm,
            'statusForm' => $this->statusForm,
            'isSearched' => $this->isSearched,
            'params' => $this->params
        ))
    ?>
    <?php echo $this->paginator //ページャーの表示 ?>
</div>
<!-- section END -->
