国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
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.

104 lines
3.7KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>友情链接管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script src="js/main.js"></script>
  13. <script>
  14. function CheckSubmit()
  15. {
  16. if(document.form1.url.value=="http://"||document.form1.url.value=="")
  17. {
  18. document.form1.url.focus();
  19. ShowMsg("网址不能为空");
  20. return false;
  21. }
  22. if(document.form1.webname.value=="")
  23. {
  24. document.form1.webname.focus();
  25. ShowMsg("网站名称不能为空");
  26. return false;
  27. }
  28. return true;
  29. }
  30. </script>
  31. </head>
  32. <body>
  33. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  34. <tr>
  35. <td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="friendlink_main.php">友情链接管理</a> &gt; 增加链接</td>
  36. </tr>
  37. <tr>
  38. <td>
  39. <form action="friendlink_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();";>
  40. <input type="hidden" name="dopost" value="add">
  41. <table width="80%" cellspacing="1" cellpadding="3" class="table table-borderless">
  42. <tr>
  43. <td width="260" height="26">网址:</td>
  44. <td height="26"><input name="url" type="text" id="url" value="http://" class='pubinputs' style="width:260px"></td>
  45. </tr>
  46. <tr>
  47. <td height="26">网站名称:</td>
  48. <td><input name="webname" type="text" id="webname" size="30" class='pubinputs' style="width:260px"></td>
  49. </tr>
  50. <tr>
  51. <td height="26">排列位置:</td>
  52. <td><input name="sortrank" type="text" id="sortrank" value="1" class='pubinputs' style='width:60px'>(由小到大排列)</td>
  53. </tr>
  54. <tr>
  55. <td height="26">网站Logo:</td>
  56. <td><input name="logo" type="text" id="logo" size="30" class='pubinputs' style="width:260px">(88*31 gif或jpg)</td>
  57. </tr>
  58. <tr>
  59. <td height="26">上传Logo:</td>
  60. <td><input name="logoimg" type="file" id="logoimg" style="width:260px"></td>
  61. </tr>
  62. <tr>
  63. <td height="26">网站简况:</td>
  64. <td><textarea name="msg" id="msg" style="width:360px;height:50px"></textarea></td>
  65. </tr>
  66. <tr>
  67. <td height="26">站长Email:</td>
  68. <td><input name="email" type="text" id="email" class='pubinputs' style="width:260px"></td>
  69. </tr>
  70. <tr>
  71. <td height="26">网站类型:</td>
  72. <td>
  73. <select name="typeid" id="typeid" style="width:160px">
  74. <?php
  75. $dsql->SetQuery("select * from #@__flinktype");
  76. $dsql->Execute();
  77. while($row=$dsql->GetObject())
  78. {
  79. echo " <option value='".$row->id."'>".$row->typename."</option>";
  80. }
  81. ?>
  82. </select>
  83. </td>
  84. </tr>
  85. <tr>
  86. <td height="26">链接位置:</td>
  87. <td>
  88. <label><input type='radio' name='ischeck' value="1" checked='1'> 内页</label>
  89. <label><input type='radio' name='ischeck' value="2"/> 首页 </label>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td colspan="2" align="center" class="py-3">
  94. <button type="submit" name="Submit" class="btn btn-success btn-sm">提交</button>
  95. <button type="reset" name="Submit" onClick="location.href='<?php echo $ENV_GOBACK_URL?>';" class="btn btn-success btn-sm">返回</button>
  96. </td>
  97. </tr>
  98. </table>
  99. </form>
  100. </td>
  101. </tr>
  102. </table>
  103. </body>
  104. </html>