} camp_html_goto_page("/$ADMIN/article_types/"); exit(0); } } // // Otherwise, we are in preview mode, so render up a preview // if ($ok) { // // calculate where this article is in relation to all the articles of the src type // $articlesArray = $src->getArticlesArray(); if (!count($articlesArray)) { $errMsgs[] = getGS("No articles."); $ok = false; } if ($ok) { $f_cur_preview = trim(Input::get('f_cur_preview', 'int', $articlesArray[0])); // The currently previewed article $tmp = array_keys($articlesArray, $f_cur_preview); $curPos = $tmp[0]; // used for calculating the next / prev arrows // calculate the first language of an article number // and also the number of translations associated with an article number global $g_ado_db; $sql = "SELECT * FROM X$f_src WHERE NrArticle=$f_cur_preview"; $rows = $g_ado_db->GetAll($sql); if (!count($rows)) {