BVB Source Codes

Shandong kernel enterprise stand the source code Show content_list.php Source code

Return Download Shandong kernel enterprise stand the source code: download content_list.php Source code - Download Shandong kernel enterprise stand the source code Source code - Type:.php
  1. <?php
  2. require_once(dirname(__FILE__)."/config.php");
  3. CheckRank(0,0);
  4. require_once(DEDEINC."/typelink.class.php");
  5. require_once(DEDEINC."/datalistcp.class.php");
  6. require_once(DEDEMEMBER."/inc/inc_list_functions.php");
  7. setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
  8. $cid = isset($cid) && is_numeric($cid) ? $cid : 0;
  9. $channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0;
  10. $mtypesid = isset($mtypesid) && is_numeric($mtypesid) ? $mtypesid : 0;
  11. if(!isset($keyword))
  12. {
  13.         $keyword = '';
  14. }
  15. if(!isset($arcrank))
  16. {
  17.         $arcrank = '';
  18. }
  19. $positionname = '';
  20. $menutype = 'content';
  21. $mid = $cfg_ml->M_ID;
  22. $tl = new TypeLink($cid);
  23. $cInfos = $tl->dsql->GetOne("Select arcsta,issend,issystem,usertype From `#@__channeltype`  where id='$channelid'; ");
  24. if(!is_array($cInfos))
  25. {
  26.         ShowMsg('模型不存在', '-1');
  27.         exit();
  28. }
  29. $arcsta = $cInfos['arcsta'];
  30. $dtime = time();
  31. $maxtime = $cfg_mb_editday * 24 *3600;
  32.  
  33. //禁止访问无权限的模型
  34. if($cInfos['usertype'] !='' && $cInfos['usertype']!=$cfg_ml->M_MbType)
  35. {
  36.         ShowMsg('你无权限访问该部分', '-1');
  37.         exit();
  38. }
  39.  
  40. if($cid==0)
  41. {
  42.         $row = $tl->dsql->GetOne("Select typename From #@__channeltype where id='$channelid'");
  43.         if(is_array($row))
  44.         {
  45.                 $positionname = $row['typename'];
  46.         }
  47. }
  48. else
  49. {
  50.         $positionname = str_replace($cfg_list_symbol,"",$tl->GetPositionName())." ";
  51. }
  52. $whereSql = " where arc.channel = '$channelid' And arc.mid='$mid' ";
  53. if($keyword!='')
  54. {
  55.         $keyword = cn_substr(trim(ereg_replace("[><\|\"\r\n\t%\*\.\?\(\)\$ ;,'%-]","",stripslashes($keyword))),30);
  56.         $keyword = addslashes($keyword);
  57.         $whereSql .= " And (arc.title like '%$keyword%') ";
  58. }
  59. if($cid!=0)
  60. {
  61.         $whereSql .= " And arc.typeid in (".GetSonIds($cid).")";
  62. }
  63.  
  64. //增加分类查询
  65. if($arcrank == '1'){
  66.         $whereSql .= " And arc.arcrank >= 0";
  67. }else if($arcrank == '-1'){
  68.         $whereSql .= " And arc.arcrank = -1";
  69. }else if($arcrank == '-2'){
  70.         $whereSql .= " And arc.arcrank = -2";
  71. }
  72.  
  73. $classlist = '';
  74. $dsql->SetQuery("SELECT * FROM `#@__mtypes` WHERE `mid` = '$cfg_ml->M_ID';");
  75. $dsql->Execute();
  76. while ($row = $dsql->GetArray())
  77. {
  78.         $classlist .= "<option value='content_list.php?channelid=".$channelid."&mtypesid=".$row['mtypeid']."'>".$row['mtypename']."</option>\r\n";
  79. }
  80. if($mtypesid != 0 )
  81. {
  82.         $whereSql .= " And arc.mtype = '$mtypesid'";
  83. }
  84. $query = "select arc.id,arc.typeid,arc.senddate,arc.flag,arc.ismake,arc.channel,arc.arcrank,
  85.        arc.click,arc.title,arc.color,arc.litpic,arc.pubdate,arc.mid,tp.typename,ch.typename as channelname
  86.        from `#@__archives` arc
  87.        left join `#@__arctype` tp on tp.id=arc.typeid
  88.        left join `#@__channeltype` ch on ch.id=arc.channel
  89.       $whereSql order by arc.senddate desc ";
  90. $dlist = new DataListCP();
  91. $dlist->pageSize = 20;
  92. $dlist->SetParameter("dopost","listArchives");
  93. $dlist->SetParameter("keyword",$keyword);
  94. $dlist->SetParameter("cid",$cid);
  95. $dlist->SetParameter("channelid",$channelid);
  96. $dlist->SetTemplate(DEDEMEMBER."/templets/content_list.htm");
  97. $dlist->SetSource($query);
  98. $dlist->Display();
  99. ?>
downloadcontent_list.php Source code - Download Shandong kernel enterprise stand the source code Source code
Related Source Codes/Software:
Dede V2.2 dance music program - This system is based on DEDE5.7 sp1 production dan... 2016-11-11
Search engine v1.0 eight grams of novels - This program consists of WEB side and collection p... 2016-11-11
A thief free Jacky novel CMS, support for multiple station collection, support pseudo original SEO - A thief free Jacky novel CMS, support for multiple... 2016-11-11
Kunlun lubricating oil companies stand the source code - Just testing, free, source code is very beautiful ... 2016-11-11
Imitation of Chinese stationmaster net source dreams to 5.7 sp1 source code - Exactly the same and the Director of China network... 2016-11-11
Newscoop CMS v4.0.4 multilingual version - Newscoop is a content management system is mainly ... 2016-11-11
Ku978 navigator free send you department (with acquisition module) - Is I purchase the commercial version of this progr... 2016-11-11
Think of concise message this v1.1 - Wisdom of concise message this V1.1 main functions... 2016-11-11
nvidia-docker - Build and run Docker containers leveraging NVIDIA ... 2017-04-08
quickstart - Angular 2 QuickStart - source from the documentati... 2017-04-08
jQuery-Autocomplete - Ajax Autocomplete for jQuery allows you to easily ... 2017-04-08
Android-Best-Practices - Android best practice examples 2017-04-08
Bootstrap-Admin-Template - Metis - Free Bootstrap Admin Dashboard Template ... 2017-04-08
CocoaSPDY - SPDY for iOS and OS X 2017-04-08
parse-dashboard - A dashboard for managing your Parse apps that aren... 2017-04-08
HoloEverywhere - NO LONGER MAINTAINED. DEVELOP FOR 4.X+ DUDE. 2017-04-08
side-comments - [UNMAINTAINED] An interface component to give your... 2017-04-08
SVG-Morpheus - JavaScript library enabling SVG icons to morph fro... 2017-04-08

 Back to top