설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

add.htm 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. {include file="header.htm" /}
  2. <body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
  3. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. {include file="bar.htm" /}
  8. <form class="form-horizontal" id="post_form" action="{:weapp_url('Makewaphtml/Makewaphtml/add')}" method="post">
  9. <div class="ncap-form-default">
  10. <dl class="row">
  11. <dt class="tit">
  12. <label for="title"><em>*</em>网站名称</label>
  13. </dt>
  14. <dd class="opt">
  15. <input type="text" name="title" value="" id="title" class="input-txt">
  16. <span class="err"></span>
  17. <p class="notic"></p>
  18. </dd>
  19. </dl>
  20. <dl class="row">
  21. <dt class="tit">
  22. <label for="url"><em>*</em>网址URL</label>
  23. </dt>
  24. <dd class="opt">
  25. <input type="text" name="url" placeholder="http://" id="url" class="input-txt">
  26. <span class="err"></span>
  27. <p class="notic"></p>
  28. </dd>
  29. </dl>
  30. <dl class="row">
  31. <dt class="tit">
  32. <label for="logo_local"><em>*</em>上传Logo</label>
  33. </dt>
  34. <dd class="opt">
  35. <div class="input-file-show div_logo_local">
  36. <span class="show">
  37. <a id="img_a_local" class="nyroModal" rel="gal" href="javascript:void(0);" onmouseout="layer.close(layer_tips);" target="_blank">
  38. <i id="img_i_local" class="fa fa-picture-o"></i>
  39. </a>
  40. </span>
  41. <span class="type-file-box">
  42. <input type="text" id="logo_local" name="logo_local" value="" class="type-file-text" autocomplete="off">
  43. <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
  44. <input class="type-file-file" onClick="GetUploadify(1,'','system','img_call_back','{:U('Uploadify/upload')}')" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
  45. </span>
  46. </div>
  47. <input type="text" id="logo_remote" name="logo_remote" value="" placeholder="http://" class="input-txt" style="display: none;">
  48. &nbsp;
  49. <label><input type="checkbox" name="is_remote" id="is_remote" value="1" onClick="clickRemote(this, 'logo');">远程图片</label>
  50. <span class="err"></span>
  51. <p class="notic">建议尺寸 88 * 31 (像素) 的gif或jpg文件</p>
  52. </dd>
  53. </dl>
  54. <dl class="row">
  55. <dt class="tit">
  56. <label for="sort_order">排序</label>
  57. </dt>
  58. <dd class="opt">
  59. <input type="text" name="sort_order" value="100" id="sort_order" class="input-txt">
  60. <span class="err"></span>
  61. <p class="notic">越小越靠前</p>
  62. </dd>
  63. </dl>
  64. <dl class="row">
  65. <dt class="tit">
  66. <label for="intro">网站备注</label>
  67. </dt>
  68. <dd class="opt">
  69. <textarea rows="5" cols="80" id="intro" name="intro" style="height:80px;" placeholder="备注一些站长联系方式、信息等内容"></textarea>
  70. <p class="notic"></p>
  71. </dd>
  72. </dl>
  73. <dl class="row">
  74. <dt class="tit">
  75. <label>新窗口打开</label>
  76. </dt>
  77. <dd class="opt">
  78. <div class="onoff">
  79. <label for="target1" class="cb-enable selected">是</label>
  80. <label for="target0" class="cb-disable ">否</label>
  81. <input id="target1" name="target" value="1" type="radio" checked="checked">
  82. <input id="target0" name="target" value="0" type="radio">
  83. </div>
  84. <p class="notic">点击链接在新窗口打开</p>
  85. </dd>
  86. </dl>
  87. <div class="bot">
  88. <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. <script type="text/javascript">
  94. // 判断输入框是否为空
  95. function checkForm(){
  96. if($('input[name=title]').val() == ''){
  97. showErrorMsg('网站名称不能为空!');
  98. $('input[name=title]').focus();
  99. return false;
  100. }
  101. if($('input[name=url]').val() == ''){
  102. showErrorMsg('网址URL不能为空!');
  103. $('input[name=url]').focus();
  104. return false;
  105. }
  106. if ($('input[name=is_remote]').is(':checked')) {
  107. if($('input[name=logo_remote]').val() == ''){
  108. showErrorMsg('请上传网站Logo图片!');
  109. $('input[name=logo_remote]').focus();
  110. return false;
  111. }
  112. } else {
  113. if($('input[name=logo_local]').val() == ''){
  114. showErrorMsg('请上传网站Logo图片!');
  115. $('input[name=logo_local]').focus();
  116. return false;
  117. }
  118. }
  119. layer_loading('正在处理');
  120. $('#post_form').submit();
  121. }
  122. function img_call_back(fileurl_tmp)
  123. {
  124. $("#logo_local").val(fileurl_tmp);
  125. $("#img_a_local").attr('href', fileurl_tmp);
  126. $("#img_i_local").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
  127. }
  128. </script>
  129. {include file="footer.htm" /}