edit.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {include file="public/header" /}
  2. <div class="page">
  3. <form id="post_form" method="post" name="form1" enctype="multipart/form-data">
  4. <table class="ds-default-table">
  5. <tbody>
  6. <tr class="noborder">
  7. <td class="vatop rowform">{$payment.payment_name}</td>
  8. <td class="vatop tips"></td>
  9. </tr>
  10. {notempty name="payment.payment_config"}
  11. {foreach name="payment.payment_config" item="config" key="key"}
  12. <tr>
  13. <td colspan="2" class="required">{$config.lable}</td>
  14. </tr>
  15. <tr class="noborder">
  16. <td class="vatop rowform">
  17. {if $config.type == 'file'}
  18. <input name="cfg_value2_key_{$key}" id="{$config.name}" type="file">
  19. {if $config.value}
  20. <p>已上传{$config.value}</p>
  21. {/if}
  22. <input name="cfg_name2[key_{$key}]" type="hidden" value="{$config.name}" />
  23. {else}
  24. {if $config.type == 'text'}
  25. <input name="cfg_value[key_{$key}]" id="{$config.name}" value="{$config.value}" class="txt" type="text">
  26. {elseif $config.type == 'password'}
  27. <input name="cfg_value[key_{$key}]" id="{$config.name}" value="{$config.value}" class="txt" type="password">
  28. {elseif $config.type == 'radio'}
  29. <div class="onoff">
  30. <label for="{$config.name}1" class="cb-enable {if $config.value}selected{/if}" ><span>{$Think.lang.ds_yes}</span></label>
  31. <label for="{$config.name}0" class="cb-disable {if $config.value == '0'}selected{/if}" ><span>{$Think.lang.ds_no}</span></label>
  32. <input type="radio" {if $config.value == '1'}checked="checked"{/if} value="1" name="cfg_value[key_{$key}]" id="{$config.name}1">
  33. <input type="radio" {if $config.value == '0'}checked="checked"{/if} value="0" name="cfg_value[key_{$key}]" id="{$config.name}0">
  34. </div>
  35. {elseif $config.type == 'textarea'}
  36. <textarea name="cfg_value[key_{$key}]" style="width:520px;height:100px;">{$config.value}</textarea>
  37. {/if}
  38. <input name="cfg_name[key_{$key}]" type="hidden" value="{$config.name}" />
  39. {/if}
  40. </td>
  41. <td class="vatop tips">{$config.desc|raw}</td>
  42. </tr>
  43. {/foreach}
  44. {/notempty}
  45. <tr>
  46. <td colspan="2" class="required">{$Think.lang.payment_index_enable}</td>
  47. </tr>
  48. <tr class="noborder">
  49. <td class="vatop rowform onoff"><label for="payment_state1" class="cb-enable {if $payment.payment_state}selected{/if}" ><span>{$Think.lang.ds_yes}</span></label>
  50. <label for="payment_state2" class="cb-disable {if $payment.payment_state == '0'}selected{/if}" ><span>{$Think.lang.ds_no}</span></label>
  51. <input type="radio" {if $payment.payment_state == '1'}checked="checked"{/if} value="1" name="payment_state" id="payment_state1">
  52. <input type="radio" {if $payment.payment_state == '0'}checked="checked"{/if} value="0" name="payment_state" id="payment_state2"></td>
  53. <td class="vatop tips"></td>
  54. </tr>
  55. </tbody>
  56. <tfoot>
  57. <tr class="tfoot">
  58. <td colspan="15">
  59. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  60. <a href="JavaScript:void(0);" class="btn" onclick="history.go(-1)"><span>{$Think.lang.ds_back}</span></a>
  61. </td>
  62. </tr>
  63. </tfoot>
  64. </table>
  65. </form>