block_tradenew.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_tradenew.php 25525 2011-11-14 04:39:11Z zhangguosheng $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. require_once libfile('block_trade', 'class/block/forum');
  12. class block_tradenew extends block_trade {
  13. function block_tradenew() {
  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. 'titlelength' => array(
  25. 'title' => 'tradelist_titlelength',
  26. 'type' => 'text',
  27. 'default' => 40
  28. ),
  29. 'summarylength' => array(
  30. 'title' => 'tradelist_summarylength',
  31. 'type' => 'text',
  32. 'default' => 80
  33. ),
  34. 'startrow' => array(
  35. 'title' => 'tradelist_startrow',
  36. 'type' => 'text',
  37. 'default' => 0
  38. ),
  39. );
  40. }
  41. function name() {
  42. return lang('blockclass', 'blockclass_trade_script_tradenew');
  43. }
  44. function cookparameter($parameter) {
  45. $parameter['orderby'] = 'dateline';
  46. return parent::cookparameter($parameter);
  47. }
  48. }
  49. ?>