block_groupactivitycity.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_groupactivitycity.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_groupactivity', 'class/block/group');
  12. class block_groupactivitycity extends block_groupactivity {
  13. function block_groupactivitycity() {
  14. $this->setting = array(
  15. 'gtids' => array(
  16. 'title' => 'groupactivity_gtids',
  17. 'type' => 'mselect',
  18. 'value' => array(
  19. ),
  20. ),
  21. 'place' => array(
  22. 'title' => 'groupactivity_place',
  23. 'type' => 'text'
  24. ),
  25. 'class' => array(
  26. 'title' => 'groupactivity_class',
  27. 'type' => 'select',
  28. 'value' => array()
  29. ),
  30. 'orderby' => array(
  31. 'title' => 'groupactivity_orderby',
  32. 'type'=> 'mradio',
  33. 'value' => array(
  34. array('dateline', 'groupactivity_orderby_dateline'),
  35. array('weekstart', 'groupactivity_orderby_weekstart'),
  36. array('monthstart', 'groupactivity_orderby_monthstart'),
  37. array('weekexp', 'groupactivity_orderby_weekexp'),
  38. array('monthexp', 'groupactivity_orderby_monthexp'),
  39. ),
  40. 'default' => 'dateline'
  41. ),
  42. 'gviewperm' => array(
  43. 'title' => 'groupactivity_gviewperm',
  44. 'type' => 'mradio',
  45. 'value' => array(
  46. array('0', 'groupactivity_gviewperm_only_member'),
  47. array('1', 'groupactivity_gviewperm_all_member')
  48. ),
  49. 'default' => '1'
  50. ),
  51. 'titlelength' => array(
  52. 'title' => 'groupactivity_titlelength',
  53. 'type' => 'text',
  54. 'default' => 40
  55. ),
  56. 'summarylength' => array(
  57. 'title' => 'groupactivity_summarylength',
  58. 'type' => 'text',
  59. 'default' => 80
  60. ),
  61. 'startrow' => array(
  62. 'title' => 'groupactivity_startrow',
  63. 'type' => 'text',
  64. 'default' => 0
  65. ),
  66. );
  67. }
  68. function name() {
  69. return lang('blockclass', 'blockclass_groupactivity_script_groupactivitycity');
  70. }
  71. }
  72. ?>