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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * 友情链接管理
  4. *
  5. * @version $Id: friendlink_main.php 1 8:48 2010年7月13日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2020, 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. setcookie('ENV_GOBACK_URL', $dedeNowurl, time()+3600, '/');
  14. if(empty($keyword)) $keyword = '';
  15. if(empty($ischeck)) {
  16. $ischeck = 0;
  17. $ischeckSql = '';
  18. } else {
  19. if($ischeck==-1) $ischeckSql = " And ischeck < 1 ";
  20. else $ischeckSql = " And ischeck='$ischeck' ";
  21. }
  22. $selCheckArr = array(0=>'不限类型', -1=>'未审核', 1=>'内页', 2=>'首页');
  23. $sql = "SELECT * FROM `#@__flink` WHERE CONCAT(`url`,`webname`,`email`) LIKE '%$keyword%' $ischeckSql ORDER BY dtime desc";
  24. $dlist = new DataListCP();
  25. $dlist->SetParameter('keyword', $keyword);
  26. $dlist->SetParameter('ischeck', $ischeck);
  27. $dlist->SetTemplet(DEDEADMIN.'/templets/friendlink_main.htm');
  28. $dlist->SetSource($sql);
  29. $dlist->display();
  30. function GetPic($pic)
  31. {
  32. if($pic=='') return '无图标';
  33. else return "<img src='$pic' width='88' height='31' border='0' />";
  34. }
  35. function GetSta($sta)
  36. {
  37. if($sta==1) return '内页';
  38. if($sta==2) return '首页';
  39. else return '未审核';
  40. }