Changeset 16887 for branches/beta/html


Ignore:
Timestamp:
2007/12/04 09:47:50 (14 years ago)
Author:
naka
Message:

メールテンプレートバージョンアップ用修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/html/admin/basis/mail_template_1.3.0-1.4.5.php

    r16886 r16887  
    3636$objQuery->update("dtb_mailtemplate", $arrVal, "template_id = ?", array('2')); 
    3737 
     38$arrRet = $objQuery->select("template_id, header, footer, body", "dtb_mailtemplate", "del_flg = 0"); 
     39 
     40foreach($arrRet as $array) { 
     41    $arrVal = array(); 
     42    // ËÜʸ¤¬Ì¤ÀßÄê¤Î¾ì¹ç 
     43    if($array['body'] == "") { 
     44        $arrVal['body'] = $array['header'] . "\n{order}\n" . $array['footer']; 
     45        $objQuery->update("dtb_mailtemplate", $arrVal, "template_id = ?", array($array['template_id'])); 
     46    } 
     47} 
     48 
    3849$message.= "¥Ç¡¼¥¿¤ò¹¹¿·¤·¤Þ¤·¤¿¡£<br />\n"; 
    3950print($message); 
    4051 
    4152?> 
     53 
     54 
     55$message.= "¥Ç¡¼¥¿¤ò¹¹¿·¤·¤Þ¤·¤¿¡£<br />\n"; 
     56print($message); 
     57 
     58?> 
Note: See TracChangeset for help on using the changeset viewer.