Changeset 16825
- Timestamp:
- 2007/11/28 14:16:01 (19 years ago)
- Location:
- branches/beta
- Files:
-
- 31 added
- 2 edited
-
data/Smarty/templates/admin/home.tpl (modified) (3 diffs)
-
data/module/Services (added)
-
data/module/Services/JSON (added)
-
data/module/Services/JSON.php (added)
-
data/module/Services/JSON/LICENSE (added)
-
data/module/Services/JSON/Test-JSON.php (added)
-
data/module/Services/JSON/doc (added)
-
data/module/Services/JSON/doc/Services_JSON (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_AssocArray_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_Empties_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_EncDec_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_Error.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_ErrorSuppression_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_NestedArray_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_Object_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_Spaces_Comments_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/Services_JSON_UnquotedKeys_TestCase.html (added)
-
data/module/Services/JSON/doc/Services_JSON/_JSON_php.html (added)
-
data/module/Services/JSON/doc/Services_JSON/_Test-JSON_php.html (added)
-
data/module/Services/JSON/doc/blank.html (added)
-
data/module/Services/JSON/doc/classtrees_Services_JSON.html (added)
-
data/module/Services/JSON/doc/elementindex.html (added)
-
data/module/Services/JSON/doc/elementindex_Services_JSON.html (added)
-
data/module/Services/JSON/doc/errors.html (added)
-
data/module/Services/JSON/doc/index.html (added)
-
data/module/Services/JSON/doc/li_Services_JSON.html (added)
-
data/module/Services/JSON/doc/media (added)
-
data/module/Services/JSON/doc/media/banner.css (added)
-
data/module/Services/JSON/doc/media/stylesheet.css (added)
-
data/module/Services/JSON/doc/packages.html (added)
-
data/module/Services/JSON/doc/todolist.html (added)
-
html/admin/home.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/data/Smarty/templates/admin/home.tpl
r17 r16825 153 153 <tr> 154 154 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_day_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_day_left.jpg" width="12" height="10" alt="" border="0"></td> 155 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_bg01.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt=""><span class="infodate"><!--{$arrInfo[i] [0]}--></span></td>155 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_bg01.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/icon.jpg" width="15" height="9" alt=""><span class="infodate"><!--{$arrInfo[i].disp_date|sfDispDBDate}--></span></td> 156 156 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_day_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_day_right.jpg" width="5" height="10" alt="" border="0"></td> 157 157 </tr> … … 159 159 <tr> 160 160 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_bottom_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="12" height="1" alt=""></td> 161 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_bg02.jpg" class="infottl"><!--{$arrInfo[i] [1]}--></td>161 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_bg02.jpg" class="infottl"><!--{$arrInfo[i].title}--></td> 162 162 <td background="<!--{$smarty.const.URL_DIR}-->img/contents/infottl_bottom_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="5" height="1" alt=""></td> 163 163 </tr> … … 165 165 <tr><td height="5"></td></tr> 166 166 <tr> 167 <td colspan="3" class="fs10"><span class="info"><!--{$arrInfo[i] [2]}--></span></td>167 <td colspan="3" class="fs10"><span class="info"><!--{$arrInfo[i].body}--></span></td> 168 168 </tr> 169 169 <!--{/section}--> -
branches/beta/html/admin/home.php
r380 r16825 5 5 * http://www.lockon.co.jp/ 6 6 */ 7 7 8 require_once("./require.php"); 9 require_once DATA_PATH . 'module/Services/JSON.php'; 8 10 9 11 class LC_Page { … … 197 199 } 198 200 199 // ¤ªÃΤ餻¼èÆÀ 200 function lfGetInfo() { 201 // ¹¹¿·¾ðÊó¤òºÇ¿·¤Ë¤¹¤ë 202 $objQuery = new SC_Query(); 203 $path = UPDATE_HTTP . "info.txt"; 204 $fp = @fopen($path, "rb"); 205 206 $arrRet = array(); 207 if(!$fp) { 208 sfErrorHeader(">> " . $path . "¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£"); 209 } else { 210 while (!feof($fp)) { 211 $arrRet[] = $arrCSV = fgetcsv($fp, UPDATE_CSV_LINE_MAX); 212 } 213 fclose($fp); 214 } 215 216 return $arrRet; 217 } 218 201 /** 202 * ¥ê¥ê¡¼¥¹¾ðÊó¤ò¼èÆÀ¤¹¤ë. 203 * 204 * @return unknown 205 */ 206 function lfGetInfo() { 207 $query = ''; 208 // TODO ¥µ¥¤¥È¾ðÊó¤ÎÁ÷¿®²ÄÈÝÀßÄê¤ò¹Ô¤¦ 209 if (true) { 210 $query = '?site_url=' . SITE_URL . '&eccube_version=' . ECCUBE_VERSION; 211 } 212 213 $url = UPDATE_HTTP2 . $query; 214 $jsonStr = @file_get_contents($url); 215 216 $objJson = new Services_JSON; 217 $arrTmpData = is_string($jsonStr) ? $objJson->decode($jsonStr) : null; 218 219 if (empty($arrTmpData)) { 220 SC_Utils_Ex::sfErrorHeader(">> ¹¹¿·¾ðÊó¤Î¼èÆÀ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£"); 221 return array(); 222 } 223 224 $arrTemp = array(); 225 foreach ($arrTmpData as $objData) { 226 $arrTemp[] = get_object_vars($objData); 227 } 228 229 foreach($arrTemp as $array) { 230 foreach($array as $key => $val) { 231 $temp[$key] = mb_convert_encoding($val, CHAR_CODE, 'UTF-8'); 232 } 233 $arrInfo[] = $temp; 234 } 235 236 return $arrInfo; 237 } 219 238 220 239
Note: See TracChangeset
for help on using the changeset viewer.
