block_tradehot.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_tradehot.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_trade', 'class/block/forum');
  12. class block_tradehot extends block_trade {
  13. function block_tradehot() {
  14. $this->setting = array(
  15. 'fids' => array(
  16. 'title' => 'tradelist_fids',
  17. 'type' => 'mselect',
  18. 'value' => array()
  19. ),
  20. 'viewmod' => array(
  21. 'title' => 'threadlist_viewmod',
  22. 'type' => 'radio'
  23. ),
  24. 'orderby' => array(
  25. 'title' => 'tradelist_orderby',
  26. 'type'=> 'mradio',
  27. 'value' => array(
  28. array('todayhots', 'tradelist_orderby_todayhots'),
  29. array('weekhots', 'tradelist_orderby_weekhots'),
  30. array('monthhots', 'tradelist_orderby_monthhots'),
  31. ),
  32. 'default' => 'weekhots'
  33. ),
  34. 'titlelength' => array(
  35. 'title' => 'tradelist_titlelength',
  36. 'type' => 'text',
  37. 'default' => 40
  38. ),
  39. 'summarylength' => array(
  40. 'title' => 'tradelist_summarylength',
  41. 'type' => 'text',
  42. 'default' => 80
  43. ),
  44. 'startrow' => array(
  45. 'title' => 'tradelist_startrow',
  46. 'type' => 'text',
  47. 'default' => 0
  48. ),
  49. );
  50. }
  51. function name() {
  52. return lang('blockclass', 'blockclass_trade_script_tradehot');
  53. }
  54. }
  55. ?>