flea_setting.adv.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <h3>闲置市场首页幻灯</h3>
  6. <ul class="tab-base">
  7. <li><a href="JavaScript:void(0);" class="current"><span>闲置市场首页幻灯</span></a></li>
  8. </ul>
  9. </div>
  10. </div>
  11. <div class="fixed-empty"></div>
  12. <table class="table tb-type2" id="prompt">
  13. <tbody>
  14. <tr class="space odd">
  15. <th colspan="12" class="nobg"><div class="title">
  16. <h5>友情提示</h5>
  17. <span class="arrow"></span></div></th>
  18. </tr>
  19. <tr>
  20. <td><ul>
  21. <li>闲置首页幻灯广告,建议图片大小 240px * 220px</li>
  22. </ul></td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. <form method="post" enctype="multipart/form-data" name="form1">
  27. <input type="hidden" name="form_submit" value="ok" />
  28. <input type="hidden" name="old_adv_pic1" value="<?php echo $output['list'][1]['pic'];?>" />
  29. <input type="hidden" name="old_adv_pic2" value="<?php echo $output['list'][2]['pic'];?>" />
  30. <input type="hidden" name="old_adv_pic3" value="<?php echo $output['list'][3]['pic'];?>" />
  31. <input type="hidden" name="old_adv_pic4" value="<?php echo $output['list'][4]['pic'];?>" />
  32. <input type="hidden" name="old_adv_pic5" value="<?php echo $output['list'][5]['pic'];?>" />
  33. <table class="table tb-type2">
  34. <tbody>
  35. <tr>
  36. <td class="required"><label>闲置市场首页幻灯片广告-01:</label></td><td>连接地址:</td>
  37. </tr>
  38. <tr class="noborder">
  39. <td class="vatop rowform"><span class="type-file-show"><a class="nyroModal" rel="gal" href="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_PATH.'/'.$output['list'][1]['pic']);?>"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png"></a>
  40. </span><span class="type-file-box">
  41. <input name="adv_pic1" type="file" class="type-file-file" id="adv_pic1" size="30" hidefocus="true">
  42. <input type='text' name='textfield' id='textfield1' class='type-file-text' />
  43. <input type='button' name='button' id='button1' value='' class='type-file-button' />
  44. </span></td>
  45. <td class="vatop tips"><input class="txt" type="text" name="adv_url1" value="<?php echo $output['list'][1]['url'];?>" style=" width:300px;">
  46. </td>
  47. </tr>
  48. <tr>
  49. <td class="required"><label>闲置市场首页幻灯片广告-02:</label></td><td>连接地址:</td>
  50. </tr>
  51. <tr class="noborder">
  52. <td class="vatop rowform"><span class="type-file-show"><a class="nyroModal" rel="gal" href="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_PATH.'/'.$output['list'][2]['pic']);?>"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png"></a>
  53. </span><span class="type-file-box">
  54. <input name="adv_pic2" type="file" class="type-file-file" id="adv_pic2" size="30" hidefocus="true">
  55. <input type='text' name='textfield' id='textfield2' class='type-file-text' />
  56. <input type='button' name='button' id='button2' value='' class='type-file-button' />
  57. </span></td>
  58. <td class="vatop tips"><input class="txt" type="text" name="adv_url2" value="<?php echo $output['list'][2]['url'];?>" style=" width:300px;">
  59. </td>
  60. </tr>
  61. <tr>
  62. <td class="required"><label>闲置市场首页幻灯片广告-03:</label></td><td>连接地址:</td>
  63. </tr>
  64. <tr class="noborder">
  65. <td class="vatop rowform"><span class="type-file-show"><a class="nyroModal" rel="gal" href="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_PATH.'/'.$output['list'][3]['pic']);?>"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png"></a>
  66. </span><span class="type-file-box">
  67. <input name="adv_pic3" type="file" class="type-file-file" id="adv_pic3" size="30" hidefocus="true">
  68. <input type='text' name='textfield' id='textfield3' class='type-file-text' />
  69. <input type='button' name='button' id='button3' value='' class='type-file-button' />
  70. </span></td>
  71. <td class="vatop tips">
  72. <input class="txt" type="text" name="adv_url3" value="<?php echo $output['list'][3]['url'];?>" style=" width:300px;">
  73. </td>
  74. </tr>
  75. <tr>
  76. <td class="required"><label>闲置市场首页幻灯片广告-04:</label></td><td>连接地址:</td>
  77. </tr>
  78. <tr class="noborder">
  79. <td class="vatop rowform"><span class="type-file-show"><a class="nyroModal" rel="gal" href="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_PATH.'/'.$output['list'][4]['pic']);?>"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png"></a>
  80. </span><span class="type-file-box">
  81. <input name="adv_pic4" type="file" class="type-file-file" id="adv_pic4" size="30" hidefocus="true">
  82. <input type='text' name='textfield' id='textfield4' class='type-file-text' />
  83. <input type='button' name='button' id='button4' value='' class='type-file-button' />
  84. </span></td>
  85. <td class="vatop tips">
  86. <input class="txt" type="text" name="adv_url4" value="<?php echo $output['list'][4]['url'];?>" style=" width:300px;">
  87. </td>
  88. </tr>
  89. <tr>
  90. <td class="required"><label>闲置市场首页幻灯片广告-05:</label></td><td>连接地址:</td>
  91. </tr>
  92. <tr class="noborder">
  93. <td class="vatop rowform"><span class="type-file-show"><a class="nyroModal" rel="gal" href="<?php echo UPLOAD_SITE_URL.'/'.(ATTACH_PATH.'/'.$output['list'][5]['pic']);?>"><img class="show_image" src="<?php echo ADMIN_TEMPLATES_URL;?>/images/preview.png"></a>
  94. </span><span class="type-file-box">
  95. <input name="adv_pic5" type="file" class="type-file-file" id="adv_pic5" size="30" hidefocus="true">
  96. <input type='text' name='textfield' id='textfield5' class='type-file-text' />
  97. <input type='button' name='button' id='button5' value='' class='type-file-button' />
  98. </span></td>
  99. <td class="vatop tips">
  100. <input class="txt" type="text" name="adv_url5" value="<?php echo $output['list'][5]['url'];?>" style=" width:300px;">
  101. </td>
  102. </tr>
  103. </tbody>
  104. <tfoot>
  105. <tr class="tfoot">
  106. <td colspan="2" ><a href="JavaScript:void(0);" class="btn" onclick="document.form1.submit()"><span><?php echo $lang['nc_submit'];?></span></a></td>
  107. </tr>
  108. </tfoot>
  109. </table>
  110. </form>
  111. </div>
  112. <script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery.nyroModal/custom.min.js" charset="utf-8"></script>
  113. <link href="<?php echo RESOURCE_SITE_URL;?>/js/jquery.nyroModal/styles/nyroModal.css" rel="stylesheet" type="text/css" id="cssfile2" />
  114. <script type="text/javascript">
  115. // 模拟网站LOGO上传input type='file'样式
  116. $(function(){
  117. $("#adv_pic1").change(function(){$("#textfield1").val($(this).val());});
  118. $("#adv_pic2").change(function(){$("#textfield2").val($(this).val());});
  119. $("#adv_pic3").change(function(){$("#textfield3").val($(this).val());});
  120. $("#adv_pic4").change(function(){$("#textfield4").val($(this).val());});
  121. $("#adv_pic5").change(function(){$("#textfield5").val($(this).val());});
  122. // 上传图片类型
  123. $('input[class="type-file-file"]').change(function(){
  124. var filepatd=$(this).val();
  125. var extStart=filepatd.lastIndexOf(".");
  126. var ext=filepatd.substring(extStart,filepatd.lengtd).toUpperCase();
  127. if(ext!=".PNG"&&ext!=".GIF"&&ext!=".JPG"&&ext!=".JPEG"){
  128. alert("<?php echo $lang['circle_setting_adv_img_check'];?>");
  129. $(this).attr('value','');
  130. return false;
  131. }
  132. });
  133. $('#time_zone').attr('value','<?php echo $output['list_setting']['time_zone'];?>');
  134. $('.nyroModal').nyroModal();
  135. });
  136. </script>