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

160 lines
4.8KB

  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>网址书签管理 - 会员中心 - <?php echo $cfg_webname; ?></title>
  6. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  7. <script type="text/javascript" src="../static/js/jquery.js"></script>
  8. <script type="text/javascript" src="templets/js/main.js"></script>
  9. <script type="text/javascript" src="templets/js/load.js"></script>
  10. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  11. <script type="text/javascript" language="javascript">
  12. <!--
  13. var reMethod = "<?php echo ($cfg_soft_lang == 'utf-8') ? 'POST' : 'GET';?>";
  14. //增加链接
  15. function AddnewLink(){
  16. var taget_obj = $Obj('linkList');
  17. var linktype,getquery;
  18. getquery = "";
  19. if($Obj('title').value==''){
  20. alert('链接标题不能为空!');
  21. return false;
  22. }
  23. getquery += "&title="+$Obj('title').value;
  24. if($Obj('url').value==''){
  25. alert('链接网址不能为空!');
  26. return false;
  27. }
  28. getquery += "&url="+$Obj('url').value;
  29. $("#linkList").html("正在处理..!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>.");
  30. $.ajax({
  31. type: reMethod,
  32. url: "flink_main.php",
  33. data: "dopost=addnew"+getquery,
  34. dataType: 'html',
  35. success: function(result)
  36. {
  37. $("#linkList").html(result);
  38. }
  39. });
  40. }
  41. //更新类目
  42. function UpdateType(tid){
  43. var taget_obj = $Obj('linkList');
  44. var linktype,getquery;
  45. getquery = "";
  46. if($Obj('title'+tid).value==''){
  47. alert('链接标题不能为空!');
  48. return false;
  49. }
  50. getquery += "&title="+$Obj('title'+tid).value;
  51. if($Obj('url'+tid).value==''){
  52. alert('链接网址不能为空!');
  53. return false;
  54. }
  55. getquery += "&url="+$Obj('url'+tid).value;
  56. $("#linkList").html("正在处理..!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>.");
  57. $.ajax({
  58. type: reMethod,
  59. url: "flink_main.php",
  60. data: "dopost=update&aid="+tid+getquery,
  61. dataType: 'html',
  62. success: function(result)
  63. {
  64. $("#linkList").html(result);
  65. }
  66. });
  67. }
  68. //删除链接
  69. function DelType(tid){
  70. var taget_obj = $Obj('linkList');
  71. var titlename = $Obj('title'+tid).value;
  72. if(!window.confirm('你确定要删除链接:'+titlename+' 吗?')){ return false; }
  73. $("#linkList").html("正在处理..!<br>[<a href='javascript:ReLoadList(0)'><u>重新加载列表</u></a>.");
  74. $.ajax({
  75. type: reMethod,
  76. url: "flink_main.php",
  77. data: "dopost=del&aid="+tid,
  78. dataType: 'html',
  79. success: function(result)
  80. {
  81. $("#linkList").html(result);
  82. }
  83. });
  84. }
  85. //重载类目
  86. function ReLoadList(oby){
  87. var taget_obj = $Obj('typeList');
  88. $.ajax({
  89. type: reMethod,
  90. url: "flink_main.php",
  91. data: "dopost=reload",
  92. dataType: 'html',
  93. success: function(result)
  94. {
  95. $("#linkList").html(result);
  96. }
  97. });
  98. }
  99. -->
  100. </script>
  101. </head>
  102. <body>
  103. <div id="main">
  104. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  105. <div id="content" class="w960 clearfix">
  106. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  107. <div id="mcpmain">
  108. <div id="appTab">
  109. <ul>
  110. <li><a href="mtypes.php">分类管理</a></li>
  111. <li class="thisTab"><a href="flink_main.php">书签管理</a></li>
  112. <li><a href="edit_space_info.php"><span>空间设置</span></a></li>
  113. <li><a href="spaceskin.php">风格选择</a></li>
  114. </ul>
  115. </div>
  116. <script type="text/javascript" src="js/table_function.js"></script>
  117. <div id="mainCp" class="postForm">
  118. <h3 class="meTitle"><strong>书签管理</strong></h3>
  119. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  120. <thead>
  121. <tr>
  122. <td width="20%" align="right">链接名称:</td>
  123. <td><input name="title" type="text" id="title" class="intxt" style="width:170px;" />
  124. <button class="button2 ml5" type="submit" onclick='AddnewLink()'>增加</button></td>
  125. </tr>
  126. </thead>
  127. <thead>
  128. <tr>
  129. <td height="10"></td>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr>
  134. <td width="20%" align="right">链接网址:</td>
  135. <td><input name="url" type="text" id="url" class="intxt" value="http://" /></td>
  136. </tr>
  137. </tbody>
  138. </table>
  139. <h3 class="meTitle" style="padding-top: 10px;"><strong>已有链接管理</strong></h3>
  140. <div id="linkList" class="postForm doPost">
  141. <?php GetLinkList($dsql); ?>
  142. </div>
  143. <!--主操作区域 -->
  144. </div>
  145. </div>
  146. </div>
  147. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  148. </div>
  149. </body>
  150. </html>