<?php
/**
 * @copyright ONE/DEPO Project
 * @license   PHP License 3.01 <http://www.php.net/license/3_01.txt>
 */


/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * ジャンル登録完了
 *
 * @package     Admin.Datamanage.Genre.Insert.Done
 * @author      netnee T.Otogawa <tomokazu.otogawa@netnee.jp>
 * @access      public
 */
class Admin_Datamanage_Genre_Insert_Done
{
    var $c_genre;
    var $session;

    var $name;
    var $dispsort;
    var $pcd;
    var $upduser;

    var $row;
    var $title;
    var $pagename;
    var $actionnm;

    var $v;
    var $srcword;       //検索値
    var $srcdispnum;    // 表示件数

    function execute()
    {
        $data = $this->session->getParameter("genre");

        $this->row = $this->c_genre->insert($data["name"],
                                            $data["dispsort"],
                                            (empty($data["pcd"])) ? NULL : $data["pcd"],
                                            $this->upduser);
        if (!$this->row) return "input";
        return 'success';
    }
}
?>
