index.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. ?>
  10. <div style="margin:10px;">
  11. <br/>
  12. <?php
  13. $array = [
  14. 'title' => '一:BLOCK Search配置',
  15. 'description' => 'block search 部分配置的说明',
  16. 'content' => [
  17. ['配置项','详细说明'],
  18. ['函数DEMO:','
  19. # 定义搜索部分字段格式<br/>
  20. public function getSearchArr(){<br/>
  21. &nbsp;&nbsp;$data = [<br/>
  22. &nbsp;&nbsp;&nbsp;&nbsp;[ # selecit的Int 类型<br/>
  23. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'type\'=>\'select\',<br/>
  24. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'title\'=>\'状态\',<br/>
  25. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'name\'=>\'status\',<br/>
  26. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'columns_type\' =>\'int\', # int使用标准匹配, string使用模糊查询<br/>
  27. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'value\'=> ErpSyncStatus::getStatus(),<br/>
  28. &nbsp;&nbsp;&nbsp;&nbsp;],<br/>
  29. &nbsp;&nbsp;&nbsp;&nbsp;[ # 时间区间类型搜索<br/>
  30. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'type\'=>\'inputdatefilter\',<br/>
  31. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'name\'=> \'sync_date\',<br/>
  32. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'columns_type\' =>\'string\',<br/>
  33. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'value\'=>[<br/>
  34. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'get\'=>\'同步开始时间\',<br/>
  35. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \'lt\' =>\'同步结束时间\',<br/>
  36. &nbsp;&nbsp;&nbsp;&nbsp; ]<br/>
  37. &nbsp;&nbsp;],<br/>
  38. &nbsp;&nbsp;];<br/>
  39. &nbsp;&nbsp;return $data;<br/>
  40. }<br/>
  41. '
  42. ],
  43. ['字段说明','
  44. type是显示的方式: select inputtext inputdate inputdatefilter inputfilter filterselect<br/>
  45. &nbsp;&nbsp; 1.select 是下拉条<br/>
  46. &nbsp;&nbsp; 2.inputtext 是普通的输入框<br/>
  47. &nbsp;&nbsp; 3.inputdate 是填写时间的输入框<br/>
  48. &nbsp;&nbsp; 4.inputdatefilter 是开始和结束时间的两个输入框<br/>
  49. &nbsp;&nbsp; 5.inputfilter 是填写值的两个输入框<br/>
  50. &nbsp;&nbsp; 6.chosen_select 带有搜索的select<br/>
  51. title :显示的文字<br/>
  52. name : 在数据库中的字段名<br/>
  53. columns_type:代表字段的类型,分为下面几种类型:<br/>
  54. &nbsp;&nbsp; 1.空值,代表字符串的完全匹配搜索<br/>
  55. &nbsp;&nbsp; 2.string(模糊) 字符串模糊搜索 <br/>
  56. &nbsp;&nbsp; 3.int 先做int类型转换,在做值的匹配查询<br/>
  57. &nbsp;&nbsp; 4.float 先做float类型转换,在做值的匹配查询 <br/>
  58. &nbsp;&nbsp; 5.date 时间字符串的完全匹配查询。相当于空值。<br/>
  59. value :是附加操作。<br/>
  60. '],
  61. ['详细组合1.select和inputtext','
  62. columns_type可用的值:<br/>
  63. 1.string(模糊)<br/>
  64. 2.int<br/>
  65. 3.float<br/>
  66. 4.date<br/>
  67. 5.空值 代表字符串的完全匹配<br/>
  68. '],
  69. ['详细组合2.inputdatefilter','
  70. columns_type可用的值:<br/>
  71. 1.float,如果数据库中存放的时间为时间戳(float类型),那么需要使用float,
  72. 前台传递的时间字符串会被改变成时间戳。
  73. <br/>
  74. 2.空值,数据库如果存放的是时间类型,这里是空值<br/>
  75. '],
  76. ['详细组合3.inputfilter','
  77. 1.空值,代表的是字符串大小区间比较<br/>
  78. 2.int,代表的是int类型大小区间比较<br/>
  79. 3.float,代表的是float类型大小区间比较<br/>
  80. '],
  81. ],
  82. ];
  83. echo \fec\helpers\CDoc::tableformat($array);
  84. ?>
  85. <div style="clear:both"></div>
  86. </div>