function _newsMLDetails() { global $_ARRAYLANG, $_CONFIG; if (isset($_REQUEST['providerId']) && isset($this->_objNewsML->arrCategories[$_REQUEST['providerId']])) { $paging = ""; $providerId = intval($_REQUEST['providerId']); $this->pageTitle = 'NewsML'; $this->_objTpl->loadTemplateFile('module_feed_newsml_details.html'); $this->_objTpl->setVariable('FEED_NEWSML_TITLE', str_replace('%NAME%', $this->_objNewsML->arrCategories[$providerId]['name'], $_ARRAYLANG['TXT_FEED_NEWS_MSG_OF'])); $this->_objNewsML->readDocuments($providerId); $arrNewsMLDocuments = $this->_objNewsML->getDocuments($providerId); if (count($arrNewsMLDocuments) > 0) { $rowNr = 0; if (count($arrNewsMLDocuments) > intval($_CONFIG['corePagingLimit'])) { if (isset($_GET['pos'])) { $pos = intval($_GET['pos']); } else { $pos = 0; } $paging = $_ARRAYLANG['TXT_FEED_NEWS_MESSAGES'] . ' ' . getPaging(count($arrNewsMLDocuments), $pos, "&cmd=Feed&act=newsML&tpl=details&providerId=" . $providerId, $_ARRAYLANG['TXT_NEWS_MESSAGES'], true); } else { $pos = 0; } $this->_objTpl->setVariable(array('TXT_FEED_MARKED' => $_ARRAYLANG['TXT_FEED_MARKED'], 'TXT_FEED_MARK_ALL' => $_ARRAYLANG['TXT_FEED_MARK_ALL'], 'TXT_FEED_REMOVE_CHOICE' => $_ARRAYLANG['TXT_FEED_REMOVE_CHOICE'], 'TXT_FEED_DELETE_MARKED' => $_ARRAYLANG['TXT_FEED_DELETE_MARKED'], 'TXT_FEED_BACK' => $_ARRAYLANG['TXT_FEED_BACK'], 'TXT_FEED_TITLE' => $_ARRAYLANG['TXT_FEED_TITLE'], 'TXT_FEED_DATE' => $_ARRAYLANG['TXT_FEED_DATE'], 'TXT_FEED_FUNCTIONS' => $_ARRAYLANG['TXT_FEED_FUNCTIONS'], 'TXT_FEED_ACTION_COULD_NOT_BE_UNDONE' => $_ARRAYLANG['TXT_FEED_ACTION_COULD_NOT_BE_UNDONE'], 'TXT_CONFIRM_DELETE_NEWS_MSG' => $_ARRAYLANG['TXT_CONFIRM_DELETE_NEWS_MSG'], 'TXT_CONFIRM_DELETE_NEWS_MSGS' => $_ARRAYLANG['TXT_CONFIRM_DELETE_NEWS_MSGS'])); $this->_objTpl->setGlobalVariable(array('FEED_NEWSML_PROVIDERID' => $providerId, 'TXT_FEED_SHOW_NEWS_MSG' => $_ARRAYLANG['TXT_FEED_SHOW_NEWS_MSG'], 'TXT_FEED_DELETE_NEWS_MSG' => $_ARRAYLANG['TXT_FEED_DELETE_NEWS_MSG'])); foreach ($arrNewsMLDocuments as $newsMLDocumentId => $arrNewsMLDocument) { if ($rowNr >= $pos && $rowNr < $pos + intval($_CONFIG['corePagingLimit'])) { $this->_objTpl->setVariable(array('FEED_NEWSML_ID' => $newsMLDocumentId, 'FEED_NEWSML_CATID' => $providerId, 'FEED_NEWSML_LIST_ROW_CLASS' => $rowNr % 2 == 0 ? "row2" : "row1", 'FEED_NEWSML_TITLE' => $arrNewsMLDocument['headLine'], 'FEED_NEWSML_DATE' => date(ASCMS_DATE_FORMAT, $arrNewsMLDocument['thisRevisionDate']), 'FEED_NEWSML_RANK' => $arrNewsMLDocument['urgency'])); $this->_objTpl->parse('feed_newsml_list'); } $rowNr++; } $this->_objTpl->touchBlock('feed_newsml_data'); $this->_objTpl->hideBlock('feed_newsml_nodata'); } else { $this->_objTpl->setVariable(array('TXT_FEED_NO_NEWS_MSGS_PRESENT' => $_ARRAYLANG['TXT_FEED_NO_NEWS_MSGS_PRESENT'], 'TXT_FEED_BACK' => $_ARRAYLANG['TXT_FEED_BACK'])); $this->_objTpl->touchBlock('feed_newsml_nodata'); $this->_objTpl->hideBlock('feed_newsml_data'); } $this->_objTpl->setVariable('FEED_NEWSML_LIST_PARSING', $paging); } else { $this->_newsMLOverview(); } }