<?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.Mailmanage.Mailmagazine.Form
 * @author      Netnee <mail@example.com>
 * @access      public
 */
class Admin_Mailmanage_Mailmagazine_Form
{
    var $session;
    
    var $d_mail;
    
    var $title;
    var $actionnm;
    var $pagename;
    
    var $data;
    var $cd;
    var $mailcd;
    var $mailtitle;
    var $mailbody;
    var $senddate;
    var $target;
    var $target_str;
    var $sendstate;
    var $sendstate_str;
    var $updcnt;
    
    
    function execute()
    {
        if (!empty($this->cd)){
            $this->data = $this->d_mail->selectKey($this->cd);
        }
        
        if (!empty($this->data)){
            $this->mailcd        = $this->cd;
            $this->mailtitle     = $this->data[0]["mailtitle"];
            $this->mailbody      = $this->data[0]["mailbody"];
            $this->senddate      = $this->data[0]["senddate"];
            $this->target        = $this->data[0]["target"];
            $this->target_str    = $this->data[0]["target_str"];
            $this->sendstate     = $this->data[0]["sendstate"];
            $this->sendstate_str = $this->data[0]["sendstate_str"];
            $this->updcnt        = $this->data[0]["updcnt"];
        }
        
        return 'success';
    }
}
?>
