BVB Source Codes

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

Return Download Shandong kernel enterprise stand the source code: download search_keywords_main.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. setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/");
  4. if(empty($pagesize))
  5. {
  6.         $pagesize = 30;
  7. }
  8. if(empty($pageno))
  9. {
  10.         $pageno = 1;
  11. }
  12. if(empty($dopost))
  13. {
  14.         $dopost = '';
  15. }
  16. if(empty($orderby))
  17. {
  18.         $orderby = 'aid';
  19. }
  20.  
  21. //重载列表
  22. if($dopost=='getlist')
  23. {
  24.         AjaxHead();
  25.         GetKeywordList($dsql,$pageno,$pagesize,$orderby);
  26.         exit();
  27. }
  28.  
  29. //更新字段
  30. else if($dopost=='update')
  31. {
  32.         $aid = ereg_replace("[^0-9]","",$aid);
  33.         $count = ereg_replace("[^0-9]","",$count);
  34.         $keyword = trim($keyword);
  35.         $spwords = trim($spwords);
  36.         $dsql->ExecuteNoneQuery("Update `#@__search_keywords` set keyword='$keyword',spwords='$spwords',count='$count' where aid='$aid';");
  37.         AjaxHead();
  38.         GetKeywordList($dsql,$pageno,$pagesize,$orderby);
  39.         exit();
  40. }
  41.  
  42. //删除字段
  43. else if($dopost=='del')
  44. {
  45.         $aid = ereg_replace("[^0-9]","",$aid);
  46.         $dsql->ExecuteNoneQuery("Delete From `#@__search_keywords` where aid='$aid';");
  47.         AjaxHead();
  48.         GetKeywordList($dsql,$pageno,$pagesize,$orderby);
  49.         exit();
  50. }
  51.  
  52. //批量删除字段
  53. else if($dopost=='delall')
  54. {
  55.         foreach($aids as $aid)
  56.         {
  57.                 $dsql->ExecuteNoneQuery("Delete From `#@__search_keywords` where aid='$aid';");
  58.         }
  59.         ShowMsg("删除成功!",$ENV_GOBACK_URL);
  60.         exit();
  61. }
  62.  
  63. //第一次进入这个页面
  64. if($dopost=='')
  65. {
  66.         $row = $dsql->GetOne("Select count(*) as dd From `#@__search_keywords` ");
  67.         $totalRow = $row['dd'];
  68.         include(DEDEADMIN."/templets/search_keywords_main.htm");
  69. }
  70.  
  71. //获得特定的关键字列表
  72. function GetKeywordList($dsql,$pageno,$pagesize,$orderby='aid')
  73. {
  74.         global $cfg_phpurl;
  75.         $start = ($pageno-1) * $pagesize;
  76.         $printhead ="<form name='form3' action=\"search_keywords_main.php\" method=\"post\">
  77.    <input name=\"dopost\" type=\"hidden\" value=\"\">
  78.         <table width='98%' border='0' cellpadding='1' cellspacing='1' bgcolor='#D1DDAA' style='margin-bottom:3px'>
  79.    <tr align='center' bgcolor='#E9F4D5' height='24'>
  80.           <td width='5%'>选择</td>
  81.      <td width='6%' height='23'><a href='#' onclick=\"ReloadPage('aid')\"><u>ID</u></a></td>
  82.      <td width='20%'>关键字</td>
  83.      <td width='35%'>分词结果</td>
  84.      <td width='6%'><a href='#' onclick=\"ReloadPage('count')\"><u>频率</u></a></td>
  85.      <td width='6%'><a href='#' onclick=\"ReloadPage('result')\"><u>结果</u></a></td>
  86.      <td width='16%'><a href='#' onclick=\"ReloadPage('lasttime')\"><u>最后搜索时间</u></a></td>
  87.      <td>管理</td>
  88.    </tr>\r\n
  89.         ";
  90.         echo $printhead;
  91.         if($orderby=='result') $orderby = $orderby." asc";
  92.         else $orderby = $orderby." desc";
  93.         $dsql->SetQuery("Select * From #@__search_keywords order by $orderby limit $start,$pagesize ");
  94.         $dsql->Execute();
  95.         while($row = $dsql->GetArray())
  96.         {
  97.                 $line = "
  98.        
  99.      <tr align='center' bgcolor='#FFFFFF' onMouseMove=\"javascript:this.bgColor='#FCFEDA';\" onMouseOut=\"javascript:this.bgColor='#FFFFFF';\">
  100.           <td height='24'><input name=\"aids[]\" type=\"checkbox\" class=\"np\" value=\"{$row['aid']}\" /></td>
  101.      <td height='24'>{$row['aid']}</td>
  102.      <td><input name='keyword' type='text' id='keyword{$row['aid']}' value='{$row['keyword']}' class='ininput'></td>
  103.      <td><input name='spwords' type='text' id='spwords{$row['aid']}' value='{$row['spwords']}' class='ininput'></td>
  104.      <td><input name='count' type='text' id='count{$row['aid']}' value='{$row['count']}' class='ininput'></td>
  105.      <td><a href='{$cfg_phpurl}/search.php?kwtype=0&keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword' target='_blank'><u>{$row['result']}</u></a></td>
  106.      <td>".MyDate("Y-m-d H:i:s",$row['lasttime'])."</td>
  107.      <td>
  108.      <a href='#' onclick='UpdateNote({$row['aid']})'>更新</a> |
  109.      <a href='#' onclick='DelNote({$row['aid']})'>删除</a>
  110.      </td>
  111.    </tr>
  112.         ";
  113.                 echo $line;
  114.         }
  115.         echo "  <tr align='left' bgcolor='#E9F4D5' height='24'>
  116.                         <td colspan='8'>
  117.                 <a href='javascript:selAll()' class='coolbg np'>反选</a>
  118.                 <a href='javascript:noselAll()' class='coolbg np'>取消</a>
  119.            <a href='javascript:delall()' class='coolbg np'>删除</a>
  120.                    </td>
  121.                    </tr>\r\n";
  122.         echo "</table></form>\r\n";
  123. }
  124.  
  125. ?>
downloadsearch_keywords_main.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