Changeset 120 for trunk/blocks/archives_block.php
- Timestamp:
- Mar 18, 2009, 10:59:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/archives_block.php
r110 r120 19 19 { 20 20 $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ; 21 $t ype = empty( $options[1] ) ? false : true;22 $ limit = empty( $options[2] ) ? '10' : $options[2];23 $ show_post_count = empty( $options[3] ) ? false : true ;24 $ drop_down = empty( $options[4] ) ? false : true ;25 $ this_template = empty( $options[5] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[3] );21 $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_category.html' : trim( $options[1] ); 22 $type = empty( $options[2] ) ? false : true ; 23 $limit = empty( $options[3] ) ? '10' : $options[3] ; 24 $show_post_count = empty( $options[4] ) ? false : true ; 25 $drop_down = empty( $options[5] ) ? false : true ; 26 26 27 27 require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php'); … … 32 32 33 33 $form .= "<br />" . yes_no_radio_option('options[1]', _MB_XPRESS_ARC_TYPE , $type,$a_month,$a_week); 34 $form .= "<br />" . _MB_XPRESS_COUNT . " <input type='text' name='options[ 2]' value='" . $limit . "' />";35 $form .= "<br />" . yes_no_radio_option('options[ 3]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count);36 $form .= "<br />" . yes_no_radio_option('options[ 4]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down);34 $form .= "<br />" . _MB_XPRESS_COUNT . " <input type='text' name='options[3]' value='" . $limit . "' />"; 35 $form .= "<br />" . yes_no_radio_option('options[4]', _MB_XPRESS_SHOW_NUM_OF_POST , $show_post_count); 36 $form .= "<br />" . yes_no_radio_option('options[5]', _MB_XPRESS_SHOW_DROP_DOWN , $drop_down); 37 37 // $form .="<br /><input type='text' size='60' name='options[5]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' />"; 38 38
Note: See TracChangeset
for help on using the changeset viewer.