Changeset 16567


Ignore:
Timestamp:
2007/10/26 10:21:41 (17 years ago)
Author:
nanasess
Message:

エラー表示をわかりやすく修正

Location:
branches/feature-module-update/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/Smarty/templates/default/admin/basis/parameter.tpl

    r16044 r16567  
    6969    <div style="font-size: 80%; color: #666666"><!--{$arrComments[cnt]|escape}--></div> 
    7070    <div> 
    71       <input type="text" name="<!--{$arrKeys[cnt]|escape}-->" value="<!--{$arrValues[cnt]|escape}-->" size="64"> 
    72     <!--{assign var=key value=$arrKeys[cnt]}--> 
    73     <span class="red12"><!--{$arrErr.$key}--></span> 
     71      <!--{assign var=key value=$arrKeys[cnt]}--> 
     72      <input type="text" name="<!--{$arrKeys[cnt]|escape}-->" value="<!--{$arrValues[cnt]|escape}-->" size="64" style="<!--{if $arrErr.$key != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->"> 
     73      <span class="red12"><!--{$arrErr.$key}--></span> 
    7474    </div> 
    7575  </td> 
  • branches/feature-module-update/data/class/pages/admin/basis/LC_Page_Admin_Basis_Parameter.php

    r15730 r16567  
    7070            if (empty($this->arrErr)) { 
    7171                $this->update(); 
     72                $this->tpl_onload = "window.alert('パラメータの設定が完了しました。');"; 
    7273            } else { 
    7374                $this->arrValues = SC_Utils_Ex::getHash2Array($this->arrForm, 
    7475                                                              $this->arrKeys); 
     76                $this->tpl_onload = "window.alert('エラーが発生しました。入力内容をご確認下さい。');"; 
    7577            } 
     78 
    7679        } 
    7780 
Note: See TracChangeset for help on using the changeset viewer.