Ignore:
Timestamp:
2007/03/12 11:10:34 (19 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/admin/mail/index.php

    r11757 r11759  
    165165        $objQuery->setorder("customer_id DESC"); 
    166166         
    167         // ¸¡º÷·ë²Ì¤Î¼èÆÀ            
    168         $is_mobile = false; 
    169         switch($_POST['mail_type']) { 
    170             case 1: 
    171                 $is_mobile = false; 
    172                 break; 
    173             case 2: 
    174                 $is_mobile = true;       
    175                 break; 
    176             default: 
    177                 $is_mobile = false; 
    178                 break; 
    179         } 
    180          
    181         $col = $objSelect->getMailMagazineColumn($is_mobile); 
     167        // ¸¡º÷·ë²Ì¤Î¼èÆÀ    
     168        $col = $objSelect->getMailMagazineColumn(lfGetIsMobile($_POST['mail_type'])); 
    182169        $objPage->arrResults = $objQuery->select($col, $from, $where, $arrval); 
    183170        //¸½ºß»þ¹ï¤Î¼èÆÀ 
     
    400387    $objSelect = new SC_CustomerList( lfConvertParam($arrData, $arrSearchColumn), "magazine" ); 
    401388     
    402     $search_data = $conn->getAll($objSelect->getListMailMagazine(), $objSelect->arrVal); 
     389    $search_data = $conn->getAll($objSelect->getListMailMagazine(lfGetIsMobile($_POST['mail_type'])), $objSelect->arrVal); 
    403390    $dataCnt = count($search_data); 
    404391     
     
    451438    return $arrCampaign; 
    452439} 
     440 
     441function lfGetIsMobile($mail_type) { 
     442    // ¸¡º÷·ë²Ì¤Î¼èÆÀ            
     443    $is_mobile = false; 
     444    switch($mail_type) { 
     445        case 1: 
     446            $is_mobile = false; 
     447            break; 
     448        case 2: 
     449            $is_mobile = true;       
     450            break; 
     451        default: 
     452            $is_mobile = false; 
     453            break; 
     454    } 
     455     
     456    return $is_mobile; 
     457} 
    453458?> 
Note: See TracChangeset for help on using the changeset viewer.