<?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.Label.Update.Done
 * @author      netnee <mail@example.com>
 * @access      public
 */
class Admin_Datamanage_Label_Update_Done
{
    var $c_label;
    var $session;
    
    var $makercd;
    var $code;
    var $name;
    var $kana;
    var $recdiv;
    var $updcnt;
    var $upduser;
    var $div;
    
    var $row;
    var $title;
    var $actionnm;
    var $pagename;
    var $from;              //ページング番号
    
    var $srcword;            //検索値
    var $srcrecommenddiv;    //おすすめ区分
    
    var $srcdispnum;        // 表示件数

    function execute()
    {
        $data = $this->session->getParameter("label");
        
        $recdiv = $data["recdiv"];
        if($recdiv <> 1) $recdiv = 2 ;
        
        $this->row = $this->c_label->update($data["makercd"],
                                           $data["code"],
                                           $data["name"], 
                                           $data["kana"], 
                                           $recdiv, 
                                           $data["updcnt"],
                                           $this->upduser);
        if (!$this->row) return "input";
        return 'success';
    }
}
?>
