123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.flea_seo}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <div class="fixed-empty"></div>
- <form id="form1" method="post" enctype="multipart/form-data" name="form1">
- <table class="ds-default-table">
- <tbody>
- <tr>
- <td colspan="2" class="required"><label for="flea_site_title">{$Think.lang.flea_site_title}:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input id="flea_site_title" name="flea_site_title" value="{$list_setting.flea_site_title}" class="txt" type="text" /></td>
- <td></td>
- </tr>
- <tr>
- <td colspan="2" class="required"><label for="flea_site_description">{$Think.lang.flea_site_description}:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><textarea name="flea_site_description" rows="6" class="tarea" id="flea_site_description">{$list_setting.flea_site_description}</textarea></td>
- <td class="vatop tips"><span class="vatop rowform">{$Think.lang.site_description_notice}</span></td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.flea_site_keywords}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform"><input id="flea_site_keywords" name="flea_site_keywords" value="{$list_setting.flea_site_keywords}" class="txt" type="text" /></td>
- <td class="vatop tips"><span class="vatop rowform">{$Think.lang.site_keyword_notice}</span></td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="2" ><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- {include file="public/footer" /}
- <script type="text/javascript">
- // 模拟网站LOGO上传input type='file'样式
- $(function(){
- var textButton="<input type='text' name='textfield' id='textfield1' class='type-file-text' /><input type='button' name='button' id='button1' value='上传' class='type-file-button' />"
- $(textButton).insertBefore("#site_logo");
- $("#site_logo").change(function(){
- $("#textfield1").val($("#site_logo").val());
- });
- // 上传图片类型
- $('input[class="type-file-file"]').change(function(){
- var filepatd=$(this).val();
- var extStart=filepatd.lastIndexOf(".");
- var ext=filepatd.substring(extStart,filepatd.lengtd).toUpperCase();
- if(ext!=".PNG"&&ext!=".GIF"&&ext!=".JPG"&&ext!=".JPEG"){
- layer.alert("{$Think.lang.default_img_wrong}");
- $(this).attr('value','');
- return false;
- }
- });
- });
- </script>
- <script type="text/javascript">
- $(function() {
- $('#form1').validate({
- errorPlacement: function(error, element) {
- error.appendTo(element.parent().parent().find('td:last'));
- },
- rules: {
- flea_site_title : {
- maxlength:30
- },
- flea_site_description : {
- maxlength:100
- },
- flea_site_keywords : {
- maxlength:30
- }
- },
- messages: {
- flea_site_title : {
- maxlength: '{$Think.lang.flea_site_title_error}'
- },
- flea_site_description : {
- maxlength: '{$Think.lang.flea_site_description_error}'
- },
- flea_site_keywords : {
- maxlength: '{$Think.lang.flea_site_keywords_error}'
- }
- }
- });
- });
- </script>
|