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

136 lines
5.3KB

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