Changeset 183 for trunk/blocks/category_block.php
- Timestamp:
- Apr 20, 2009, 6:16:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/blocks/category_block.php
r122 r183 37 37 $form .= "<input type='hidden' name='options[1]' id='this_template' value='".htmlspecialchars($this_template,ENT_QUOTES)."' /><br />"; 38 38 $form .= "<br />"; 39 $form .= _MB_XP RESS_CAT_ALL_STR . " <input type='text' name='options[2]' value='" . $show_option_all . "' /><br />";40 $form .= _MB_XP RESS_CAT_ORDERBY .": ";39 $form .= _MB_XP2_CAT_ALL_STR . " <input type='text' name='options[2]' value='" . $show_option_all . "' /><br />"; 40 $form .= _MB_XP2_CAT_ORDERBY .": "; 41 41 $form .= "<select name='options[3]'>"; 42 42 if ($orderby =='name') 43 $form .= "<option value='name' selected='selected'>". _MB_XP RESS_CAT_NAME;43 $form .= "<option value='name' selected='selected'>". _MB_XP2_CAT_NAME; 44 44 else 45 $form .= "<option value='name'>". _MB_XP RESS_CAT_NAME;45 $form .= "<option value='name'>". _MB_XP2_CAT_NAME; 46 46 if ($orderby =='count') 47 $form .= "<option value='count' selected='selected'>". _MB_XP RESS_CAT_COUNT;47 $form .= "<option value='count' selected='selected'>". _MB_XP2_CAT_COUNT; 48 48 else 49 $form .= "<option value='count'>". _MB_XP RESS_CAT_COUNT;49 $form .= "<option value='count'>". _MB_XP2_CAT_COUNT; 50 50 if ($orderby =='ID') 51 $form .= "<option value='ID' selected='selected'>". _MB_XP RESS_CAT_ID;51 $form .= "<option value='ID' selected='selected'>". _MB_XP2_CAT_ID; 52 52 else 53 $form .= "<option value='ID'>". _MB_XP RESS_CAT_ID;53 $form .= "<option value='ID'>". _MB_XP2_CAT_ID; 54 54 $form .= "</select><br/>"; 55 55 56 $form .= _MB_XP RESS_SORT_ORDER .": ";56 $form .= _MB_XP2_SORT_ORDER .": "; 57 57 $form .= "<select name='options[4]'>"; 58 58 if ($order =='ASC') 59 $form .= "<option value='ASC' selected='selected'>" . _MB_XP RESS_SORT_ASC;59 $form .= "<option value='ASC' selected='selected'>" . _MB_XP2_SORT_ASC; 60 60 else 61 $form .= "<option value='ASC'>" . _MB_XP RESS_SORT_ASC;61 $form .= "<option value='ASC'>" . _MB_XP2_SORT_ASC; 62 62 if ($order =='DESC') 63 $form .= "<option value='DESC' selected='selected'>" . _MB_XP RESS_SORT_DESC;63 $form .= "<option value='DESC' selected='selected'>" . _MB_XP2_SORT_DESC; 64 64 else 65 $form .= "<option value='DESC'>" . _MB_XP RESS_SORT_DESC;65 $form .= "<option value='DESC'>" . _MB_XP2_SORT_DESC; 66 66 $form .= "</select><br/>"; 67 67 68 $form .= yes_no_radio_option('options[5]', _MB_XP RESS_SHOW_LAST_UPDATE , $show_last_updated) . "<br />" ;69 $form .= yes_no_radio_option('options[6]', _MB_XP RESS_SHOW_NUM_OF_POST , $show_count) . "<br />" ;70 $form .= yes_no_radio_option('options[7]', _MB_XP RESS_CAT_HIDE_EMPTY , $hide_empty) . "<br />" ;71 $form .= yes_no_radio_option('options[8]', _MB_XP RESS_DESC_FOR_TITLE , $use_desc_for_title) . "<br />" ;72 $form .= _MB_XP RESS_CAT_EXCLUDE . " <input type='text' name='options[9]' value='" . $exclude . "' size ='60' /><br />";73 $form .= _MB_XP RESS_CAT_INCLUDE . " <input type='text' name='options[10]' value='" . $includes . "' size ='60' /><br />";74 $form .= yes_no_radio_option('options[11]', _MB_XP RESS_CAT_HIERARCHICAL , $hierarchical) . "<br />" ;75 $form .= _MB_XP RESS_CAT_DEPTH . " <input type='text' name='options[12]' value='" . $depth . "' size ='8' /><br />";68 $form .= yes_no_radio_option('options[5]', _MB_XP2_SHOW_LAST_UPDATE , $show_last_updated) . "<br />" ; 69 $form .= yes_no_radio_option('options[6]', _MB_XP2_SHOW_NUM_OF_POST , $show_count) . "<br />" ; 70 $form .= yes_no_radio_option('options[7]', _MB_XP2_CAT_HIDE_EMPTY , $hide_empty) . "<br />" ; 71 $form .= yes_no_radio_option('options[8]', _MB_XP2_DESC_FOR_TITLE , $use_desc_for_title) . "<br />" ; 72 $form .= _MB_XP2_CAT_EXCLUDE . " <input type='text' name='options[9]' value='" . $exclude . "' size ='60' /><br />"; 73 $form .= _MB_XP2_CAT_INCLUDE . " <input type='text' name='options[10]' value='" . $includes . "' size ='60' /><br />"; 74 $form .= yes_no_radio_option('options[11]', _MB_XP2_CAT_HIERARCHICAL , $hierarchical) . "<br />" ; 75 $form .= _MB_XP2_CAT_DEPTH . " <input type='text' name='options[12]' value='" . $depth . "' size ='8' /><br />"; 76 76 return $form; 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.