国内流行的内容管理系统(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.

103 lines
3.9KB

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