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

friendlink_main.htm 5.2KB

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