Changeset 1092 for trunk/wifidog-auth/wifidog/classes/Content.php
- Timestamp:
- 09/07/06 04:38:25 (5 years ago)
- Files:
-
- 1 modified
-
trunk/wifidog-auth/wifidog/classes/Content.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/Content.php
r1091 r1092 559 559 $html .= "<td>\n"; 560 560 $name = "{$user_prefix}_" . $content->GetId() . "_edit"; 561 $html .= "<input type='button' class='submit' name='$name' value='" . _("Edit") . "' onClick='window. location.href = \"" . GENERIC_OBJECT_ADMIN_ABS_HREF . "?object_class=Content&action=edit&object_id=" . $content->GetId() . "\";'>\n";561 $html .= "<input type='button' class='submit' name='$name' value='" . _("Edit") . "' onClick='window.open(\"" . GENERIC_OBJECT_ADMIN_ABS_HREF . "?object_class=Content&action=edit&object_id=" . $content->GetId() . "\");'>\n"; 562 562 $name = "{$user_prefix}_" . $content->GetId() . "_erase"; 563 563 $html .= "<input type='submit' class='submit' name='$name' value='" . _("Remove") . "'>"; … … 734 734 } 735 735 736 $html .= _("Add existing content") . ": ";736 $html .= _("Add reusable content from library") . ": "; 737 737 } 738 738 … … 1025 1025 public function getUserUI($subclass_user_interface = null) { 1026 1026 $html = ''; 1027 $html .= "<div class='user_ui_main_outer " . get_class($this) . "'>\n"; 1027 $this->isSimpleContent() ? $isSimpleContentClass = 'isSimpleContent' : $isSimpleContentClass = null; 1028 $html .= "<div class='user_ui_main_outer " . get_class($this) . " $isSimpleContentClass'>\n"; 1028 1029 $html .= "<div class='user_ui_main_inner'>\n"; 1029 1030 … … 1039 1040 } 1040 1041 1041 $html .= "<table><tr>\n"; 1042 if($this->isSimpleContent()) 1043 { 1044 $html .= "\n$subclass_user_interface\n"; 1045 } 1046 else{ 1047 $html .= "<table><tr>\n"; 1042 1048 $html .= "<td>\n$subclass_user_interface</td>\n"; 1043 1044 1049 $html .= "<td>\n"; 1050 } 1045 1051 $authors = $this->getAuthors(); 1046 1052 if (count($authors) > 0) { … … 1077 1083 } 1078 1084 } 1079 1085 if(!$this->isSimpleContent()) 1086 { 1080 1087 $html .= "</td>\n"; 1081 1088 $html .= "</tr></table>\n"; 1082 1089 } 1083 1090 $html .= "</div>\n"; 1084 1091 $html .= "</div>\n"; … … 1270 1277 /* is_persistent */ 1271 1278 $html .= "<li class='admin_element_item_container admin_section_edit_persistant'>\n"; 1272 $html .= "<div class='admin_element_label'>" . _("Is p ersistent (reusable and read-only)?") . ": </div>\n";1279 $html .= "<div class='admin_element_label'>" . _("Is part of reusable content library (protected from deletion)?") . ": </div>\n"; 1273 1280 $html .= "<div class='admin_element_data'>\n"; 1274 1281 $name = "content_" . $this->id . "_is_persistent";
