block_threadspecified.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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_threadspecified.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_thread', 'class/block/forum');
  12. class block_threadspecified extends block_thread {
  13. function block_threadspecified() {
  14. $this->setting = array(
  15. 'tids' => array(
  16. 'title' => 'threadlist_tids',
  17. 'type' => 'text'
  18. ),
  19. 'uids' => array(
  20. 'title' => 'threadlist_uids',
  21. 'type' => 'text'
  22. ),
  23. 'keyword' => array(
  24. 'title' => 'threadlist_keyword',
  25. 'type' => 'text'
  26. ),
  27. 'fids' => array(
  28. 'title' => 'threadlist_fids',
  29. 'type' => 'mselect',
  30. 'value' => array()
  31. ),
  32. 'typeids' => array(
  33. 'title' => 'threadlist_typeids',
  34. 'type' => 'text'
  35. ),
  36. 'special' => array(
  37. 'title' => 'threadlist_special',
  38. 'type' => 'mcheckbox',
  39. 'value' => array(
  40. array(1, 'threadlist_special_1'),
  41. array(2, 'threadlist_special_2'),
  42. array(3, 'threadlist_special_3'),
  43. array(4, 'threadlist_special_4'),
  44. array(5, 'threadlist_special_5'),
  45. array(0, 'threadlist_special_0'),
  46. ),
  47. 'default' => array('0')
  48. ),
  49. 'viewmod' => array(
  50. 'title' => 'threadlist_viewmod',
  51. 'type' => 'radio'
  52. ),
  53. 'rewardstatus' => array(
  54. 'title' => 'threadlist_special_reward',
  55. 'type' => 'mradio',
  56. 'value' => array(
  57. array(0, 'threadlist_special_reward_0'),
  58. array(1, 'threadlist_special_reward_1'),
  59. array(2, 'threadlist_special_reward_2')
  60. ),
  61. 'default' => 0,
  62. ),
  63. 'picrequired' => array(
  64. 'title' => 'threadlist_picrequired',
  65. 'type' => 'radio',
  66. 'value' => '0'
  67. ),
  68. 'titlelength' => array(
  69. 'title' => 'threadlist_titlelength',
  70. 'type' => 'text',
  71. 'default' => 40
  72. ),
  73. 'summarylength' => array(
  74. 'title' => 'threadlist_summarylength',
  75. 'type' => 'text',
  76. 'default' => 80
  77. ),
  78. );
  79. }
  80. function name() {
  81. return lang('blockclass', 'blockclass_thread_script_threadspecified');
  82. }
  83. }
  84. ?>