Changeset 1226 for trunk/wifidog-auth/wifidog/classes/ProfileField.php
- Timestamp:
- 05/17/07 16:25:43 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/ProfileField.php
r1192 r1226 219 219 else 220 220 $content_id = "'".$db->escapeString($content->getId())."'"; 221 221 222 222 $_retVal = $db->execSqlUpdate("UPDATE profile_fields SET content_id = $content_id WHERE profile_field_id = '{$this->getId()}'", false); 223 223 $this->refresh(); … … 286 286 throw new Exception("Could not retrieve the associated content type filter."); 287 287 288 288 289 289 return $html; 290 290 } … … 324 324 //echo "ProfileField::getUserUI()"; 325 325 $html = ""; 326 $template_field = $this->getProfileTemplateField(); 327 $html .= "<div class='user_ui_profile_field ".$template_field->getSemanticId()."'>\n"; 328 329 $content_label = $template_field->getDisplayLabelContent(); 330 if(!empty($content_label)){ 331 $html .= "<div class='profile_field_label'>".$content_label->getUserUI()."</div>\n"; 332 } 333 326 334 $content_field = $this->getContentField(); 327 335 if(!empty($content_field)) { 328 $template_field = $this->getProfileTemplateField();329 $html .= "<div class='user_ui_profile_field ".$template_field->getSemanticId()."'>\n";330 $content_label = $template_field->getDisplayLabelContent();331 if(!empty($content_label)){332 $html .= "<div class='profile_field_label'>".$content_label->getUserUI()."</div>\n";333 }334 336 // Display the actual value from the profile field 335 337 $html .= "<div class='profile_field_content'>".$content_field->getUserUI()."</div>\n"; 336 $html .= "</div>\n";337 }338 } 339 $html .= "</div>\n"; 338 340 339 341 return $html;
