Ignore:
Timestamp:
2012/02/15 19:56:17 (12 years ago)
Author:
Seasoft
Message:

#1625 (typo修正・ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Holiday.php

    r21481 r21514  
    101101            if (count($this->arrErr) <= 0) { 
    102102                // 新規作成 
    103                 if ($post['holiday_id'] == "") { 
     103                if ($post['holiday_id'] == '') { 
    104104                    $this->lfInsertClass($this->arrForm, $_SESSION['member_id']); 
    105105                } 
     
    164164        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    165165 
    166         $where = "holiday_id = ?"; 
    167         return $objQuery->select("title, month, day", 'dtb_holiday', $where, array($holiday_id)); 
     166        $where = 'holiday_id = ?'; 
     167        return $objQuery->select('title, month, day', 'dtb_holiday', $where, array($holiday_id)); 
    168168    } 
    169169 
     
    171171        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    172172 
    173         $where = "del_flg <> 1"; 
    174         $objQuery->setOrder("rank DESC"); 
    175         return $objQuery->select("holiday_id, title, month, day", 'dtb_holiday', $where); 
     173        $where = 'del_flg <> 1'; 
     174        $objQuery->setOrder('rank DESC'); 
     175        return $objQuery->select('holiday_id, title, month, day', 'dtb_holiday', $where); 
    176176    } 
    177177 
     
    201201        $sqlval['day'] = $arrData['day']; 
    202202        $sqlval['update_date'] = 'CURRENT_TIMESTAMP'; 
    203         $where = "holiday_id = ?"; 
     203        $where = 'holiday_id = ?'; 
    204204        // UPDATEの実行 
    205205        $ret = $objQuery->update('dtb_holiday', $sqlval, $where, array($arrData['holiday_id'])); 
     
    238238        if (!isset($arrErr['date'])) { 
    239239            $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    240             $where = "del_flg = 0 AND month = ? AND day = ?"; 
     240            $where = 'del_flg = 0 AND month = ? AND day = ?'; 
    241241            $arrval = array($post['month'], $post['day']); 
    242242            if (!empty($post['holiday_id'])) { 
    243                 $where .= " AND holiday_id <> ?"; 
     243                $where .= ' AND holiday_id <> ?'; 
    244244                $arrval[] = $post['holiday_id']; 
    245245            } 
    246             $arrRet = $objQuery->select("count(holiday_id) as count", 'dtb_holiday', $where, $arrval); 
     246            $arrRet = $objQuery->select('count(holiday_id) as count', 'dtb_holiday', $where, $arrval); 
    247247 
    248248            // 編集中のレコード以外に同じ日付が存在する場合 
    249249            if ($arrRet[0]['count'] > 0) { 
    250                 $arrErr['date'] = "※ 既に同じ日付の登録が存在します。<br>"; 
     250                $arrErr['date'] = '※ 既に同じ日付の登録が存在します。<br>'; 
    251251            } 
    252252        } 
Note: See TracChangeset for help on using the changeset viewer.