block_tradespecified.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_tradespecified.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_tradespecified extends block_trade {
  13. function block_tradespecified() {
  14. $this->setting = array(
  15. 'tids' => array(
  16. 'title' => 'tradelist_tids',
  17. 'type' => 'text'
  18. ),
  19. 'viewmod' => array(
  20. 'title' => 'threadlist_viewmod',
  21. 'type' => 'radio'
  22. ),
  23. 'uids' => array(
  24. 'title' => 'tradelist_uids',
  25. 'type' => 'text'
  26. ),
  27. 'keyword' => array(
  28. 'title' => 'tradelist_keyword',
  29. 'type' => 'text'
  30. ),
  31. 'fids' => array(
  32. 'title' => 'tradelist_fids',
  33. 'type' => 'mselect',
  34. 'value' => array()
  35. ),
  36. 'titlelength' => array(
  37. 'title' => 'tradelist_titlelength',
  38. 'type' => 'text',
  39. 'default' => 40
  40. ),
  41. 'summarylength' => array(
  42. 'title' => 'tradelist_summarylength',
  43. 'type' => 'text',
  44. 'default' => 80
  45. ),
  46. );
  47. }
  48. function name() {
  49. return lang('blockclass', 'blockclass_trade_script_tradespecified');
  50. }
  51. }
  52. ?>