http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95066

Revision: 95066
Author:   ankitgarg833
Date:     2011-08-20 06:02:24 +0000 (Sat, 20 Aug 2011)
Log Message:
-----------
<fieldset position fix.

Modified Paths:
--------------
    trunk/extensions/SemanticDrilldown/includes/SD_Utils.php

Modified: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php
===================================================================
--- trunk/extensions/SemanticDrilldown/includes/SD_Utils.php    2011-08-20 
05:54:04 UTC (rev 95065)
+++ trunk/extensions/SemanticDrilldown/includes/SD_Utils.php    2011-08-20 
06:02:24 UTC (rev 95066)
@@ -142,7 +142,8 @@
                        $enter_values_label.' <input size="40" 
name="sd_filter_values_starter" value="">
                        </p>';
                }
-               if( $filter_array['InputType'] != null){
+               
+               if( $filter_array['InputType'] != null){                
                        $input_type_val = $filter_array['InputType'];
                        $html_text .= '<p>'.$input_type_label.'
                        <select id="input_type_dropdown" 
name="sd_input_type_starter">
@@ -151,19 +152,29 @@
                        $html_text .= '<option selected 
value="'.$combo_box_value.'">'.$combo_box_label.'</option>
                        <option 
value="'.$date_range_value.'">'.$date_range_label.'</option>
                        </select>
-                       </p></fieldset>';               
+                       </p>';          
                        }else if( $input_type_val == $date_range_value ){
                        $html_text .= '<option 
value="'.$combo_box_value.'">'.$combo_box_label.'</option>
                        <option selected 
value="'.$date_range_value.'">'.$date_range_label.'</option>
                        </select>
-                       </p></fieldset>';               
+                       </p>';          
                        }else{
                        $html_text .= '<option 
value="'.$combo_box_value.'">'.$combo_box_label.'</option>
                        <option 
value="'.$date_range_value.'">'.$date_range_label.'</option>
                        </select>
-                       </p></fieldset>';                       
+                       </p>';                  
                        }
-               }                                                               
+               }else{          
+                       $html_text .= '<p>'.$input_type_label.'
+                       <select id="input_type_dropdown" 
name="sd_input_type_starter">
+                       <option selected 
value="">'.$values_list_label.'</option>';     
+                       $html_text .= '<option 
value="'.$combo_box_value.'">'.$combo_box_label.'</option>
+                       <option 
value="'.$date_range_value.'">'.$date_range_label.'</option>
+                       </select>
+                       </p>';                                          
+               }
+               
+               $html_text .= '</fieldset>';    
                $html_text_array[] = $html_text;
                $html_text = "";
                }
@@ -215,7 +226,7 @@
                global $wgContLang;
                
                $text = "";
-               $text .= '<fieldset style="background: 
#FF0080;"><legend>Filter</legend>';
+               $text .= '<fieldset style="background: 
#FDD;"><legend>Filter</legend>';
                $name_label = wfMsg( 'sd_createfilter_name' );
                $property_label = wfMsg( 'sd_createfilter_property' );
                $label_label = wfMsg( 'sd_createfilter_label' );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to