예제 #1
0
 function getInfoForHeaderAsHTML()
 {
     $retour = parent::getInfoForHeaderAsHTML();
     $dublin_core_array = $this->_item->getDublinCoreArray();
     if (!empty($dublin_core_array)) {
         $retour .= '   <!-- Begin Dublin Core Data (Material) -->' . "\n";
     }
     foreach ($dublin_core_array as $key => $value) {
         //since a quotationmark " in the dublin core array is taken literally and makes some problems, we substitute quot with two apostrophs: " => ''
         $retour .= '   <meta name="' . $key . '" content="' . str_replace("\"", "''", $value) . '"/>' . "\n";
     }
     if (!empty($dublin_core_array)) {
         $retour .= '   <!-- End Dublin Core Data (Material) -->' . "\n";
     }
     return $retour;
 }
예제 #2
0
 function getInfoForHeaderAsHTML()
 {
     global $cs_color;
     $retour = parent::getInfoForHeaderAsHTML();
     if (!empty($this->_item)) {
         $retour .= '   <!-- BEGIN Styles -->' . LF;
         $retour .= '   <style type="text/css">' . LF;
         $color_array = $this->_item->getColorArray();
         $color = $color_array['table_background'];
         if (!empty($color)) {
             $cs_color['room_title'] = $color;
             $this->_room_title_color = $color;
             $cs_color['room_background'] = $color_array['content_background'];
         }
         $session = $this->_environment->getSession();
         $session_id = $session->getSessionID();
         #    $retour .= '    table.room_window { background-color: '.$cs_color['room_title'].'; width: 31em;}'.LF;
         $retour .= '    td.detail_view_content_room_window {background-color:' . $cs_color['room_background'] . ';padding: 3px;text-align: left;}' . LF;
         $retour .= '    td.header_left_no_logo {text-align: left; width:1%; vertical-align: middle; font-size: x-large; font-weight: bold; height: 50px; padding-top: 3px;padding-bottom: 3px;padding-right: 3px; padding-left: 15px; }' . LF;
         $retour .= '    img { border: 0px; }' . LF;
         $retour .= '    img.logo_small { height: 40px; }' . LF;
         $retour .= '    table.room_window {margin:0px; padding:5px 10px 5px 10px; ';
         if (isset($color_array['page_title'])) {
             $retour .= ' color: ' . $color_array['page_title'] . ';';
         } else {
             $retour .= ' color: #000000;';
         }
         if ($color_array['schema'] == 'SCHEMA_OWN') {
             if ($this->_item->getBGImageFilename()) {
                 global $c_single_entry_point;
                 if ($this->_item->issetBGImageRepeat()) {
                     $retour .= 'background: url(' . $c_single_entry_point . '?cid=' . $this->_item->getItemID() . '&mod=picture&fct=getfile&picture=' . $this->_item->getBGImageFilename() . ') repeat; ';
                 } else {
                     $retour .= 'background: url(' . $c_single_entry_point . '?cid=' . $this->_item->getItemID() . '&mod=picture&fct=getfile&picture=' . $this->_item->getBGImageFilename() . ') no-repeat; ';
                 }
             }
         } elseif (file_exists('htdocs/css/images/bg-' . $color_array['schema'] . '.jpg')) {
             if (isset($color_array['repeat_background']) and $color_array['repeat_background'] == 'xy') {
                 $retour .= 'background: url(css/images/bg-' . $color_array['schema'] . '.jpg) repeat; ';
             } elseif (isset($color_array['repeat_background']) and $color_array['repeat_background'] == 'x') {
                 $retour .= 'background: url(css/images/bg-' . $color_array['schema'] . '.jpg) repeat-x; ';
             } elseif (isset($color_array['repeat_background']) and $color_array['repeat_background'] == 'y') {
                 $retour .= 'background: url(css/images/bg-' . $color_array['schema'] . '.jpg) repeat-y; ';
             } else {
                 $retour .= 'background: url(css/images/bg-' . $color_array['schema'] . '.jpg) no-repeat; ';
             }
         }
         $retour .= ' background-color:' . $color_array['content_background'] . '; ' . LF;
         $retour .= '   </style>' . LF;
         $retour .= '   <!-- END Styles -->' . LF;
     }
     return $retour;
 }
예제 #3
0
 function _getSubItemTitleAsHTML($item, $pos_number)
 {
     if ($item->getItemType() == 'annotation') {
         return parent::_getSubItemTitleAsHTML($item, $pos_number);
     }
     $retour = '';
     if (!empty($pos_number)) {
         $retour .= $pos_number . '. ';
     }
     $title = $this->_text_as_html_short($this->_compareWithSearchText($item->getSubject()));
     $text_converter = $this->_environment->getTextConverter();
     if (isset($text_converter)) {
         $title = $text_converter->parseText2ID($title);
         unset($text_converter);
     }
     $retour .= $title;
     return $retour;
 }
예제 #4
0
 function getInfoForHeaderAsHTML()
 {
     $retour = parent::getInfoForHeaderAsHTML();
     $retour .= '   <!-- BEGIN Styles -->' . LF;
     $retour .= '   <style type="text/css">' . LF;
     $retour .= '    img.logo_small { height: 40px; }' . LF;
     $retour .= '   </style>' . LF;
     $retour .= '   <!-- END Styles -->' . LF;
     return $retour;
 }