Changeset 22012 for branches/version-2_12-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Seo.php
- Timestamp:
- 2012/08/30 14:15:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_Seo.php
r21867 r22012 144 144 function lfUpdPageData($arrUpdData = array()) { 145 145 $objQuery =& SC_Query_Ex::getSingletonInstance(); 146 $sql = ''; 147 148 // SQL生成 149 $sql .= ' UPDATE '; 150 $sql .= ' dtb_pagelayout '; 151 $sql .= ' SET '; 152 $sql .= ' author = ? , '; 153 $sql .= ' description = ? , '; 154 $sql .= ' keyword = ? '; 155 $sql .= ' WHERE '; 156 $sql .= ' device_type_id = ? '; 157 $sql .= ' AND page_id = ? '; 158 $sql .= ' '; 159 160 // SQL実行 161 $ret = $objQuery->query($sql, $arrUpdData); 162 163 return $ret; 146 147 $table = 'dtb_pagelayout'; 148 $sqlval = array( 149 'author' => $arrUpdData[0], 150 'description' => $arrUpdData[1], 151 'keyword' => $arrUpdData[2], 152 ); 153 $where = 'device_type_id = ? AND page_id = ?'; 154 $arrWhereVal = array( 155 $arrUpdData[3], 156 $arrUpdData[4], 157 ); 158 159 return $objQuery->update($table, $sqlval, $where, $arrWhereVal); 164 160 } 165 161
Note: See TracChangeset
for help on using the changeset viewer.