<?php

Doo::loadCore ( 'db/DooModel' );

class emailList extends DooModel {
	
	public $eid;
	public $Email1;
	public $Email2;
	public $Email3;
	public $Email4;
	public $Email5;
	
	public $EmailName1;
	public $EmailName2;
	public $EmailName3;
	public $EmailName4;
	public $EmailName5;
	public $stype;
	public $title;
	public $content;
	public $time;
	
	public $_table = 'zh_emailList';
	public $_primarykey = 'eid';
	public $_fields = array ('eid', 'Email1', 'Email2', 'Email3', 'Email4', 'Email5', 'EmailName1', 'EmailName2','EmailName3', 'EmailName4','EmailName5',
	'stype','title', 'content','time');
	
	public function __construct() {
		parent::setupModel ( __CLASS__ );
	}
	
	/**
	 * 获取邮件任务
	 
	function get_email_task() {
		$sql = "select * from " . $this->_table;
		
		$query = Doo::db ()->query ( $sql );
		
		$result = $query->fetchAll ();
		
		return $result;
	}
	*/
	/**
	 * 获取邮件任务
	 * @param unknown_type $tid
	
	function get_email_task_by_tid($tid = 0) {
		$sql = "select * from " . $this->_table . " where tid=" . $tid;
		
		$query = Doo::db ()->query ( $sql );
		
		$result = $query->fetch ();
		
		return $result;
	}
	 */
}

?>