Changeset 952 in svn


Ignore:
Timestamp:
2012-07-03T08:46:00+02:00 (3 years ago)
Author:
Xuefer
Message:

disable submit button like textarea when enable_eval not enabled. adds note about it

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common-zh-simplified-utf-8.lang.php

    r936 r952  
    119119        'Editing Variable %s'
    120120        => '正在编辑变量 %s',
     121        'Set %s in config to enable'
     122        => '请在配置文件中设置 %s 启用本功能',
    121123        ''
    122124        => '',
  • trunk/admin/common-zh-traditional-utf-8.lang.php

    r936 r952  
    119119        'Editing Variable %s'
    120120        => '正在编辑变量 %s',
     121        'Set %s in config to enable'
     122        => '請在配置文件中設置 %s 啟用本功能',
    121123        ''
    122124        => '',
  • trunk/admin/edit.tpl.php

    r605 r952  
    88        <legend><?php echo sprintf(_T("Editing Variable %s"), $h_name); ?></legend>
    99        <textarea name="value" style="width: 100%; height: 200px; overflow-y: auto" <?php echo $editable ? "" : "disabled=disabled"; ?>><?php echo $h_value; ?></textarea><br>
    10         <input type="submit">
     10        <input type="submit" <?php echo $editable ? "" : "disabled=disabled"; ?>>
     11        <?php
     12        if (!$editable) {
     13            echo sprintf(_T("Set %s in config to enable"), "\$config['enable_eval'] = true");
     14        }
     15        ?>
    1116    </fieldset>
    1217</form>
Note: See TracChangeset for help on using the changeset viewer.