<?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_Partial
 * @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      array       $category         カテゴリー情報の配列
 * @param      int         $page             現在表示しているページの番号 何ページ目を参照しているのか
 * @param      int         $editId           編集するカテゴリーのID
 * @author     suzuki-mar
 */
?>

<td>
    <span><?php echo $this->escape($this->category['name']) ?></span>

    <div class="rowEdit">
        <form action="<?php echo $this->baseUrl('/admin/category/update') ?>" method="post">
            <p>
                <input type="text" name="name" class="defaultInput" id="name<?php  echo $this->category['id'] ?>" value="<?php echo $this->escape($this->category['name']) ?>" />
                <input type="hidden" name="id" id="id<?php echo $this->category['id'] ?>" value="<?php echo $this->category['id'] ?>" />
                <input type="hidden" name="parent_id" id="parent_id<?php echo $this->category['id'] ?>" value="<?php echo $this->category['parent_id'] ?>" />
                <input type="submit" class="sub" value="保存" />
                <input type="button" name="canselButton" onclick="hideRowEdit(this)" value="キャンセル" />
            </p>
        </form>
    </div>
</td>

<td class="editButton">
    <a href="javascript:void(0)" onclick="showRowEdit(this)">
        <img src="<?php echo $this->baseUrl('/images/admin/share/btn_edit.png') ?>" alt="編集" width="27" height="27" />
    </a>
</td>

<?php $redirectUrl = $this->baseUrl("/admin/category/delete/id/{$this->category['id']}") ?>
<td>
    <a href='javascript:void(0)' onclick='confirmDeleteRedirect("<?php echo $redirectUrl ?>", "<?php echo $this->escape($this->category['name']) ?>");'>
        <img src="<?php echo $this->baseUrl('/images/admin/share/btn_delete.png') ?>" alt='削除' width='27' height='27' />
    </a>
</td>
