<div class="col-sm-6">	
						<div class="panel panel-default" id="<?php 
                echo str_replace(' ', '', $building['categories'][$category_id]);
                ?>
">
							<div class="panel-heading">
								<h3 class="panel-title"><?php 
                echo $building['categories'][$category_id];
                ?>
</h3>
							</div>
							<div class="panel-body">

							<?php 
                $checkbox_fields = Idp_Main::getCheckboxFields('name');
                foreach ($attribute_values as $attribute_value) {
                    if ($attribute_value['visible'] == 0) {
                        continue;
                        // do not show attribute, if it is marked as not visible
                    }
                    ?>
								<p>
									<strong>
										<span data-toggle="tooltip" title="<?php 
                    echo $attribute_value['description'];
                    ?>
"><?php 
                    echo $attribute_value['attribute'];
                    ?>
</span>: 
 function printAttributeList()
 {
     $this->control_me = true;
     $checkbox_fields = Idp_Main::getCheckboxFields('name');
     //define layout for bullet points
     $bullet_list = array();
     $bullet_list['bullet'] = chr(149);
     $bullet_list['margin'] = '';
     $bullet_list['indent'] = 2;
     $bullet_list['spacer'] = 0;
     foreach ($this->building['categories'] as $category_id => $category) {
         $bullet_list['text'] = array();
         if ($category === 'Allgemeines') {
             continue;
         }
         $attribute_values = Idp_Main::getBuildingAttributeValues($this->building['id'], $category_id);
         $attr_value_count = count($attribute_values);
         if ($attr_value_count == 0) {
             continue;
         }
         for ($j = 0; $j < $attr_value_count; $j++) {
             if (in_array($attribute_values[$j]['attribute'], $checkbox_fields)) {
                 if ($attribute_values[$j]['value'] === '0') {
                     $attribute_values[$j]['value'] = "Nein";
                 } else {
                     if ($attribute_values[$j]['value'] === '1') {
                         $attribute_values[$j]['value'] = "Ja";
                     }
                 }
             }
             $bullet_list['text'][$j] = utf8_decode($attribute_values[$j]['attribute'] . ": " . $attribute_values[$j]['value']);
         }
         $height_of_cell = 4 + $attr_value_count * 4;
         // mm, height of a category with its title and content
         $space_left = $this->page_height - ($this->GetY() + $this->bottom_margin);
         if ($height_of_cell > $space_left) {
             $this->AddPage();
             // page break
             $this->pagebreak = true;
         }
         if ($this->pagebreak && $this->control_me) {
             $this->top_second_page = $this->GetY();
             $this->left_second_page = $this->GetX();
             $this->SetX($this->left_second_page + 120);
             $this->control_me = false;
         }
         $this->SetFont('Helvetica', 'B', 10);
         $this->MultiCell(0, 5, utf8_decode($category), 0);
         $this->SetFont('Helvetica', '', 10);
         if ($this->pagebreak) {
             $this->SetX($this->GetX() + 120);
         }
         $this->MultiCellBltArray(60, 4, $bullet_list);
         unset($bullet_list['text']);
         //reset for next category
         if ($this->pagebreak) {
             $this->SetX($this->GetX());
         }
         $this->end_position_values = $this->GetY() + 5;
     }
 }