<?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_Itemmanage_Change_Delete_Form
 * @author      H.Watanabe <hiroshi.watanabe@netnee.jp>
 * @access      public
 */
class Admin_Itemmanage_Change_Delete_Form
{
    var $view;
    var $itemupdate;
    var $from;

    var $result;
    var $castnmaaa;
    var $genrenm;
    var $img;
    
    var $title;
    var $pagename;
    
    var $itemdiv;
    var $jancode;
    var $hinban;
    var $itemtitle;
    var $release_date_start;
    var $release_date_end;
    var $publish_date_start;
    var $publish_date_end;
    var $maker_capital;
    var $maker_name;
    var $media;
    var $cast;
    var $situation;
    var $photo_situation;
    var $publish_situation;
    var $sort;
    var $genre_select;
    
    var $actionnm;
    var $genre;
    var $updcnt;
    var $cd;
    
    var $itemnm;
    var $itemnmkana;
    var $subtitle;
    var $makernm;
    var $labelnm;
    var $seriesnm;
    var $iteminfo;
    var $comment;
    var $itemdivnm;
    var $eirinnm;
    var $examgroupnm;
    var $examno;
    var $rankingrate;
    var $releasedate;
    var $item_basic_updcnt;

    var $originaltitle;
    var $productyear;
    var $productcountry;

    
    var $cas;
    var $jcd;

    var $itemexp;
    

    var $option01;
    var $option02;
    var $option03;
    var $option04;
    var $option05;
    var $option06;
    var $option07;
    var $option08;
    var $option09;
    var $option10;

    
    function execute()
    {
        
        $log =& LogFactory::getLog();
        $log->debug("Admin_Itemmanage_Change_Delete_Formが実行されました", "Admin_Itemmanage_Change_Delete_Form#execute");


        $this->result = $this->view->getOneItemRow(NULL);

        if ( !isset($this->itemnm)
                && !isset($this->itemnmkana)
                && !isset($this->makernm)
                && !isset($this->itemexp)
                && !isset($this->comment)
                && !isset($this->rankingrate)
                && !isset($this->releasedate)
                && !isset($this->option01)
                && !isset($this->option02)
                && !isset($this->option03)
                && !isset($this->option04)
                && !isset($this->option05)
                && !isset($this->option06)
                && !isset($this->option07)
                && !isset($this->option08)
                && !isset($this->option09)
                && !isset($this->option10)
                && !isset($this->updcnt) )
        {
            $this->itemnm         = $this->result["itemnm"];
            $this->itemnmkana     = $this->result["itemnmkana"];
            $this->makernm        = $this->result["makernm"];
            $this->itemexp        = $this->result["itemexp"];
            $this->comment        = $this->result["comment"];
            $this->genre          = $this->view->getGenrecdForItemcd($this->cd);
            $this->rankingrate    = $this->result["rankingrate"];
            $this->releasedate    = $this->result["releasedate"];
            $this->updcnt         = $this->result["item_basic_updcnt"];

            $this->option01       = $this->result["basic_option01"];
            $this->option02       = $this->result["basic_option02"];
            $this->option03       = $this->result["basic_option03"];
            $this->option04       = $this->result["basic_option04"];
            $this->option05       = $this->result["basic_option05"];
            $this->option06       = $this->result["basic_option06"];
            $this->option07       = $this->result["basic_option07"];
            $this->option08       = $this->result["basic_option08"];
            $this->option09       = $this->result["basic_option09"];
            $this->option10       = $this->result["basic_option10"];
        }
        
        return 'success';
    }
    function getOption() {
        return $this->itemupdate->getOptionList(100,200);
    }
    function getGenrenmList()
    {
        if (!empty($this->genre)) {
            if (is_array($this->genre)) {
                return $this->view->getGenreTree($this->genre);
            }
        }
        return "";
    }
}
?>
