- Timestamp:
- 04/29/05 14:21:46 (7 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/Content/ContentGroup.php
r593 r601 390 390 $html .= "<div class='admin_section_tools'>\n"; 391 391 $name = "content_group_".$this->id."_element_".$element->GetId()."_erase"; 392 $html .= "<input type='submit' name='$name' value='"._("Delete")."' onclick='submit();'>";392 $html .= "<input type='submit' name='$name' value='"._("Delete")."'>"; 393 393 $html .= "</div>\n"; 394 394 $html .= "</li>\n"; … … 397 397 $html .= "<b>"._("Add a new content OR select previously created content")."</b><br>"; 398 398 $html .= self :: getNewContentUI("content_group_{$this->id}_new_element")."<br>"; 399 $html .= self :: getSelectContentUI("content_group_{$this->id}_existing_element" );399 $html .= self :: getSelectContentUI("content_group_{$this->id}_existing_element", "AND content_id != '$this->id'"); 400 400 $html .= "<input type='submit' name='content_group_{$this->id}_existing_element_add' value='"._("Add")."'>"; 401 401 $html .= "</li>\n"; … … 695 695 /** Retreives the user interface of this object. Anything that overrides this method should call the parent method with it's output at the END of processing. 696 696 * @param $subclass_admin_interface Html content of the interface element of a children 697 * @param boolean $hide_elements allows the child class ( for example 698 * Pattern Language) to tell the content group not to display elements ) for 699 * elements that need to be hidden before subscription 697 700 * @return The HTML fragment for this interface */ 698 public function getUserUI($subclass_user_interface = null )701 public function getUserUI($subclass_user_interface = null, $hide_elements = false) 699 702 { 700 703 $html = ''; … … 702 705 $html .= "<div class='user_ui_object_class'>ContentGroup (".get_class($this)." instance)</div>\n"; 703 706 704 $display_elements = $this->getDisplayElements(); 705 if (count($display_elements) > 0) 706 { 707 foreach ($display_elements as $display_element) 708 { 709 // If the content group logging is disabled, all the children will inherit this property temporarly 710 if($this->getLoggingStatus() == false) 711 $display_element->setLoggingStatus(false); 712 $html .= $display_element->getUserUI(); 713 } 714 } 715 else 716 { 717 $html .= '<p class="warningmsg">'._("Sorry, no elements available at this hotspot or all elements of the content group have already been shown")."</p>\n"; 718 } 707 if($hide_elements == false) 708 { 709 $display_elements = $this->getDisplayElements(); 710 if (count($display_elements) > 0) 711 { 712 foreach ($display_elements as $display_element) 713 { 714 // If the content group logging is disabled, all the children will inherit this property temporarly 715 if($this->getLoggingStatus() == false) 716 $display_element->setLoggingStatus(false); 717 $html .= $display_element->getUserUI(); 718 } 719 } 720 else 721 { 722 $html .= '<p class="warningmsg">'._("Sorry, no elements available at this hotspot or all elements of the content group have already been shown")."</p>\n"; 723 } 724 } 719 725 720 726 $html .= $subclass_user_interface;
