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

121 lines
5.3KB

  1. {dede:config.pagesize value="20"/}
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  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" type='text/css'>
  10. <script language="javascript" src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script language="javascript" src="js/main.js"></script>
  13. <script language='javascript'>
  14. function Sel(stype) {
  15. for (var i = 0; i < document.getElementsByName('aids').length; i++) {
  16. if (stype == 'all') document.getElementsByName('aids')[i].checked = true;
  17. else document.getElementsByName('aids')[i].checked = false;
  18. }
  19. }
  20. function checkSubmit() {
  21. var str = '';
  22. for (var i = 0; i < document.getElementsByName('aids').length; i++) {
  23. if (document.getElementsByName('aids')[i].checked) {
  24. if (str == '') str += document.getElementsByName('aids')[i].value;
  25. else str += ',' + document.getElementsByName('aids')[i].value;
  26. }
  27. }
  28. if (str == '') {
  29. ShowMsg('您没选择任何内容');
  30. return false;
  31. } else {
  32. location = "friendlink_edit.php?aids=" + str + "&dopost=delall";
  33. }
  34. }
  35. </script>
  36. </head>
  37. <body>
  38. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  39. <tr>
  40. <td height="26" background="../static/web/img/tbg.gif" colspan="8" style="padding-left:10px">
  41. <div style="float:left">
  42. 友情链接管理
  43. </div>
  44. <div style="float:right;padding-right:10px">
  45. <a href="friendlink_add.php" class="btn btn-success btn-sm">增加链接</a>
  46. <a href="friendlink_type.php" class="btn btn-success btn-sm">网站类型管理</a>
  47. <a href='{dede:global name=' cfg_phpurl' /}/flink.php' target='_blank' class="btn btn-success btn-sm">友情链接预览</a>
  48. </div>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td height="30" align="center" bgcolor="#f8f8f8" colspan="8">
  53. <form action="friendlink_main.php" name="form1" method="get">
  54. <table cellspacing="0" cellpadding="3" class="table table-borderless">
  55. <tr>
  56. <td width="90px">关键词:</td>
  57. <td width="270"><input name="keyword" type="text" id="keyword" style="width:260px" value="<?php echo $keyword; ?>"></td>
  58. <td width="170">
  59. <select name="ischeck" id="ischeck" style="width:160px">
  60. <?php
  61. foreach($selCheckArr as $k=>$v)
  62. {
  63. if($k==$ischeck) echo "<option value='$k' selected>$v</option>";
  64. else echo "<option value='$k'>$v</option>";
  65. }
  66. ?>
  67. </select>
  68. </td>
  69. <td>
  70. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  71. </td>
  72. </tr>
  73. </table>
  74. </form>
  75. </td>
  76. </tr>
  77. <form name='form1' method='post' action='friendlink_edit.php' onSubmit='return checkSubmit();'>
  78. <input type='hidden' name='dopost' value='delall'>
  79. <input type='hidden' name='allid' value=''>
  80. <tr align="center" bgcolor="#FBFCE2" height="26">
  81. <td width="6%">选择</td>
  82. <td width="23%">网站名称</td>
  83. <td width="12%">网站Logo</td>
  84. <td width="15%">站长Email</td>
  85. <td width="15%">时间</td>
  86. <td width="8%">状态</td>
  87. <td width="8%">顺序</td>
  88. <td width="15%">管理</td>
  89. </tr>
  90. {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'}
  91. <tr height="26" align="center" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#ffffff';">
  92. <td><input type='checkbox' name='aids' value='{dede:field.id/}' class='np'></td>
  93. <td>{dede:field.webname function='dede_htmlspecialchars(@me)'/}<br><i>地址:{dede:field.url/}</i> </td>
  94. <td>{dede:field.logo function="GetPic(@me)"/}</td>
  95. <td>{dede:field.email/}</td>
  96. <td>{dede:field.dtime function="MyDate('Y-m-d',@me)"/}</td>
  97. <td>{dede:field.ischeck function="GetSta(@me)"/}</td>
  98. <td>{dede:field.sortrank/}</td>
  99. <td>
  100. <a href='friendlink_edit.php?id={dede:field.id/}&dopost=getedit' class="btn btn-success btn-sm">修改</a>
  101. <a href='friendlink_edit.php?id={dede:field.id/}&dopost=delete' class="btn btn-success btn-sm">删除</a>
  102. </td>
  103. </tr>
  104. {/dede:datalist}
  105. </form>
  106. <tr>
  107. <td colspan="8">
  108. <a href='javascript:;' onclick='Sel("all")' class="btn btn-success btn-sm">全选</a>
  109. <a href='javascript:;' onclick='Sel("none")' class="btn btn-success btn-sm">取消</a>
  110. <a href='javascript:;' onclick='checkSubmit()' class="btn btn-success btn-sm">批量删除</a>
  111. </td>
  112. </tr>
  113. <tr align="center" bgcolor="#f8f8f8" height="36">
  114. <td colspan="8">{dede:pagelist listsize='6'/}</td>
  115. </tr>
  116. </table>
  117. </td>
  118. </tr>
  119. </table>
  120. </body>
  121. </html>