1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- {include file="public/header" /}
- <div class="page">
- <form id="add_form" method="post" enctype="multipart/form-data">
- <table class="ds-default-table">
- <tbody>
- <tr class="noborder">
- <td class="required w120"><label class="validation">{$Think.lang.mansong_price}:</label></td>
- <td class="vatop rowform">
- <input type="text" id="promotion_mansong_price" name="promotion_mansong_price" value="{$setting.promotion_mansong_price}" class="txt">
- </td>
- <td class="vatop tips">{$Think.lang.mansong_price_explain}</td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script type="text/javascript">
- $(document).ready(function(){
- //页面输入内容验证
- $("#add_form").validate({
- errorPlacement: function(error, element){
- error.appendTo(element.parent().parent().find('td:last'));
- },
- rules : {
- promotion_mansong_price: {
- required : true,
- digits : true,
- min : 0
- }
- },
- messages : {
- promotion_mansong_price: {
- required : '{$Think.lang.mansong_price_error}',
- digits : '{$Think.lang.mansong_price_error}',
- min : '{$Think.lang.mansong_price_error}'
- }
- }
- });
- });
- </script>
|