- Timestamp:
- 2007/11/03 00:50:39 (15 years ago)
- Location:
- branches/feature-module-update/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/admin/ownersstore/log.tpl
r16582 r16663 74 74 </td> 75 75 <td bgcolor="#ffffff" width="518" class="fs10n"> 76 <!--{assign var="key" value="install_log"}--> 77 <textarea name="<!--{$key}-->" cols="60" rows="8" class="area70" maxlength="" style=""><!--{$arrForm[$key]|escape}--></textarea> 76 <textarea name="" 77 cols="60" 78 rows="8" 79 class="area70" 80 maxlength="" 81 style=""><!--{$log|escape}--></textarea> 78 82 </td> 79 83 </tr> -
branches/feature-module-update/data/class/pages/admin/ownersstore/LC_Page_Admin_OwnersStore_Log.php
r16582 r16663 62 62 SC_Utils::sfIsSuccess(new SC_Session()); 63 63 64 $arrModuleData = $this->getModuleData(); 65 $log = ''; 66 if (count($arrModuleData)) { 67 foreach($arrModuleData as $module) { 68 $name = $module['module_name']; 69 $update_date = SC_Utils_Ex::sfDispDBDate($module['update_date']); 70 71 $log .= sprintf("[%s] %s モジュール が更新されました。\n", $update_date, $name); 72 } 73 } 74 75 $this->log = $log; 76 64 77 // ページ出力 65 78 $objView = new SC_AdminView(); … … 76 89 parent::destroy(); 77 90 } 91 92 function getModuleData() { 93 $objQuery = new SC_Query; 94 $objQuery->setOrder('update_date desc'); 95 $arrRet = $objQuery->select('*', 'dtb_module'); 96 return empty($arrRet) ? array() : $arrRet; 97 } 78 98 } 79 99 ?>
Note: See TracChangeset
for help on using the changeset viewer.