国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

erraddsave.php 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * 纠错管理
  4. *
  5. * @version $Id: erraddsave.php 1 19:09 2010年7月12日Z tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2021, DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__) . '/config.php');
  12. require_once(DEDEINC . '/datalistcp.class.php');
  13. require_once(DEDEINC . '/common.func.php');
  14. if (empty($dopost)) $dopost = '';
  15. if (empty($fmdo)) $fmdo = '';
  16. function username($mid)
  17. {
  18. global $dsql;
  19. if (!isset($mid) || empty($mid)) {
  20. return "游客";
  21. exit();
  22. } else {
  23. $sql = "SELECT uname FROM `#@__member` WHERE `mid` = '$mid'";
  24. $row = $dsql->GetOne($sql);
  25. return $row['uname'];
  26. exit();
  27. }
  28. exit();
  29. }
  30. function typename($me)
  31. {
  32. switch ($me) {
  33. case $me == 1:
  34. return $me = "错别字";
  35. break;
  36. case $me == 2:
  37. return $me = "成语运用不当";
  38. break;
  39. case $me == 3:
  40. return $me = "专业术语写法不规则";
  41. break;
  42. case $me == 4:
  43. return $me = "产品与图片不符";
  44. break;
  45. case $me == 5:
  46. return $me = "事实年代以及内容错误";
  47. break;
  48. case $me == 6:
  49. return $me = "事实年代以及内容错误";
  50. break;
  51. case $me == 7:
  52. return $me = "其他错误";
  53. break;
  54. default:
  55. return $me = "未知错误";
  56. break;
  57. }
  58. }
  59. if ($dopost == "delete") {
  60. if ($id == '') {
  61. ShowMsg("参数无效!", "-1");
  62. exit();
  63. }
  64. if ($fmdo == 'yes') {
  65. $id = explode("`", $id);
  66. foreach ($id as $var) {
  67. $query = "DELETE FROM `#@__erradd` WHERE `id` = '$var'";
  68. $dsql->ExecuteNoneQuery($query);
  69. }
  70. ShowMsg("成功删除指定的文档!", "erraddsave.php");
  71. exit();
  72. } else {
  73. require_once(DEDEINC . "/oxwindow.class.php");
  74. $wintitle = "删除";
  75. $wecome_info = "<a href='erraddsave.php'>错误管理</a>::删除错误";
  76. $win = new OxWindow();
  77. $win->Init("erraddsave.php", "js/blank.js", "POST");
  78. $win->AddHidden("fmdo", "yes");
  79. $win->AddHidden("dopost", $dopost);
  80. $win->AddHidden("id", $id);
  81. $win->AddTitle("你确实要删除“ $id ”这些错误提示?");
  82. $winform = $win->GetWindow("ok");
  83. $win->Display();
  84. exit();
  85. }
  86. exit();
  87. }
  88. $sql = "SELECT * FROM `#@__erradd` ORDER BY id desc";
  89. $dlist = new DataListCP();
  90. $dlist->SetTemplet(DEDEADMIN . "/templets/erradd.htm");
  91. $dlist->SetSource($sql);
  92. $dlist->display();