setting.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {include file="public/header" /}
  2. <div class="page">
  3. <form method="post" name="form_setting" id="form_setting">
  4. <table class="ds-default-table">
  5. <tbody>
  6. <tr class="noborder">
  7. <td class="required w150"><label class="validation">{$Think.lang.snsalbum_allow_upload_max_count}:</label></td>
  8. <td class="vatop rowform"><input type="text" class="txt" value="{$list_setting.malbum_max_sum}" name="malbum_max_sum" id="malbum_max_sum"></td>
  9. <td class="vatop tips">{$Think.lang.snsalbum_allow_upload_max_count_tip}</td>
  10. </tr>
  11. </tbody>
  12. <tfoot>
  13. <tr class="tfoot">
  14. <td colspan="2" ><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  15. </tr>
  16. </tfoot>
  17. </table>
  18. </form>
  19. </div>
  20. <script type="text/javascript">
  21. $(document).ready(function(){
  22. $('#form_setting').validate({
  23. errorPlacement: function(error, element){
  24. error.appendTo(element.parent().parent().find('td:last'));
  25. },
  26. rules : {
  27. malbum_max_sum : {
  28. required : true,
  29. digits : true
  30. }
  31. },
  32. messages : {
  33. malbum_max_sum : {
  34. required : '{$Think.lang.snsalbum_pls_input_figures}',
  35. digits : '{$Think.lang.snsalbum_pls_input_figures}'
  36. }
  37. }
  38. });
  39. });
  40. </script>