$SORT = "500";
    }
    if (!isset($MAILBOX_ID)) {
        $MAILBOX_ID = $find_mailbox_id;
    }
    if ($ID > 0) {
        $ACTION_VARS = $ar_res["ACTION_VARS"];
    }
}
if ($message || $ID == 0) {
    $DB->InitTableVarsForEdit("b_mail_filter", "", "str_", "", true);
    $ar_CONDITIONS = $CONDITIONS;
} else {
    $ar_CONDITIONS = array();
    if ($ID > 0) {
        $res = CMailFilterCondition::GetList(array("id" => "asc"), array("FILTER_ID" => $ID));
        while ($ar = $res->Fetch()) {
            $ar_CONDITIONS[$ar["ID"]] = $ar;
        }
    }
}
if (!is_array($ar_CONDITIONS)) {
    $ar_CONDITIONS = array();
}
if (!$message) {
    $ar_CONDITIONS["n1"] = array();
    $ar_CONDITIONS["n2"] = array();
    $ar_CONDITIONS["n3"] = array();
}
$sDocTitle = $ID > 0 ? preg_replace("'#ID#'i", $ID, GetMessage("MAIL_FLT_EDT_TITILE_1")) : GetMessage("MAIL_FLT_EDT_TITILE_2");
$APPLICATION->SetTitle($sDocTitle);
示例#2
0
	function GetByID($ID)
	{
		global $DB;
		return CMailFilterCondition::GetList(Array(), Array("ID"=>$ID));
	}
示例#3
0
文件: mail.php 项目: rasuldev/torino
 public static function GetByID($ID)
 {
     global $DB;
     return CMailFilterCondition::GetList(array(), array("ID" => $ID));
 }