block_grouptradehot.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: block_grouptradehot.php 23608 2011-07-27 08:10:07Z cnteacher $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_grouptrade', 'class/block/group');
  12. class block_grouptradehot extends block_grouptrade {
  13. function block_grouptradehot() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'grouptrade_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'orderby' => array(
  22. 'title' => 'grouptrade_orderby',
  23. 'type'=> 'mradio',
  24. 'value' => array(
  25. array('todayhots', 'grouptrade_orderby_todayhots'),
  26. array('weekhots', 'grouptrade_orderby_weekhots'),
  27. array('monthhots', 'grouptrade_orderby_monthhots'),
  28. ),
  29. 'default' => 'weekhots'
  30. ),
  31. 'gviewperm' => array(
  32. 'title' => 'grouptrade_gviewperm',
  33. 'type' => 'mradio',
  34. 'value' => array(
  35. array('0', 'grouptrade_gviewperm_only_member'),
  36. array('1', 'grouptrade_gviewperm_all_member')
  37. ),
  38. 'default' => '1'
  39. ),
  40. 'titlelength' => array(
  41. 'title' => 'grouptrade_titlelength',
  42. 'type' => 'text',
  43. 'default' => 40
  44. ),
  45. 'summarylength' => array(
  46. 'title' => 'grouptrade_summarylength',
  47. 'type' => 'text',
  48. 'default' => 80
  49. ),
  50. 'startrow' => array(
  51. 'title' => 'grouptrade_startrow',
  52. 'type' => 'text',
  53. 'default' => 0
  54. ),
  55. );
  56. }
  57. function name() {
  58. return lang('blockclass', 'blockclass_grouptrade_script_grouptradehot');
  59. }
  60. }
  61. ?>