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

103 lines
3.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>高级搜索-<?php echo $cfg_webname;?></title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/style.css">
  10. </head>
  11. <body>
  12. <?php obtaintheme('top.htm');?>
  13. <main class="container py-3">
  14. <form name="form1" action="<?php echo $cfg_phpurl?>/search.php" method="get">
  15. <table class="table mb-0">
  16. <tr>
  17. <td width="160">网站栏目:</td>
  18. <td>
  19. <?php
  20. $tl = new TypeLink(0);
  21. $typeOptions = $tl->GetOptionArray(0,0,0);
  22. echo "<select name='typeid' class='form-control'>";
  23. echo "<option value='0' selected>不限栏目</option>";
  24. echo $typeOptions;
  25. echo "</select>";
  26. ?>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td>关键词:</td>
  31. <td><input name="q" type="text" id="q" class="form-control"></td>
  32. </tr>
  33. <tr>
  34. <td>发布时间:</td>
  35. <td>
  36. <select name="starttime" id="starttime">
  37. <option value="-1" selected>不限</option>
  38. <option value="7">一周以内</option>
  39. <option value="30">一个月内</option>
  40. <option value="90">三个月内</option>
  41. <option value="180">半年以内</option>
  42. </select>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>文档类型:</td>
  47. <td>
  48. <select name="channeltype" id="channeltype" class="form-control">
  49. <option value="0" selected>不限</option>
  50. <?php
  51. $dsql->SetQuery("SELECT id,typename FROM `#@__channeltype` ORDER BY id DESC");
  52. $dsql->Execute();
  53. while($row = $dsql->GetObject())
  54. {
  55. echo "<option value='".$row->id."'>".$row->typename."</option>";
  56. }
  57. ?>
  58. </select>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>排序方式:</td>
  63. <td>
  64. <select name="orderby" id="orderby" class="form-control">
  65. <option value="sortrank" selected>默认</option>
  66. <option value="senddate">收录时间</option>
  67. <option value="pubdate">发布时间</option>
  68. <option value="id">文档id</option>
  69. </select>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td>显示条数:</td>
  74. <td><input name="pagesize" type="text" id="pagesize" value="10" class="form-control"></td>
  75. </tr>
  76. <tr>
  77. <td>关键词模式:</td>
  78. <td>
  79. <label><input type="radio" name="kwtype" value="1" checked> 或</label>
  80. <label><input type="radio" name="kwtype" value="0"> 与</label>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>搜索文档:</td>
  85. <td>
  86. <select name="searchtype" id="searchtype" class="form-control">
  87. <option value="titlekeyword" selected>默认搜索</option>
  88. <option value="title">仅搜索标题</option>
  89. </select>
  90. </td>
  91. </tr>
  92. <tr>
  93. <td colspan="2">
  94. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  95. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  96. </td>
  97. </tr>
  98. </table>
  99. </form>
  100. </main>
  101. <?php obtaintheme('foot.htm');?>
  102. </body>
  103. </html>