index.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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' => '一:Table Edit的配置',
  15. 'description' => '对于数据的编辑,需要做的事情',
  16. 'content' => [
  17. ['配置项','详细说明'],
  18. ['函数DEMO:','
  19. [<br/>
  20. \'label\'=>\'Ebay Site\',<br/>
  21. \'name\'=>\'ebaystore\',<br/>
  22. \'display\'=>[<br/>
  23. \'type\' => \'inputString\',<br/>
  24. ],<br/>
  25. \'require\' => 1,<br/>
  26. ],<br/>
  27. <br/>
  28. '
  29. ],
  30. ['label','显示的label'],
  31. ['name','数据库中的字段名称'],
  32. ['display','显示的方式,有下面几种方式:
  33. [
  34. \'type\' => \' 类型 \' ,
  35. \'data\' => \' 数据\',
  36. ]
  37. type的值有:
  38. 1.inputString 字符串的input
  39. 2.inputDate 时间格式的input
  40. 3.inputEmail email格式的input
  41. 4.inputPassword 密码格式的input
  42. 5.select 下拉条格式的select
  43. data 只有在select的情况下有效
  44. 里面存放的数组。用于生成select。
  45. '],
  46. ['require',''],
  47. ],
  48. ];
  49. echo \fec\helpers\CDoc::tableformat($array);
  50. ?>
  51. <div style="clear:both"></div>
  52. </div>