0) { $h = mysql_query("SELECT CURRENT_IN_ARCHIVAL FROM PUBL_PREFERENCES_EXTENDED WHERE ID_JOUR=".$ID_JOUR.""); $hw = mysql_fetch_row($h); $cur = $hw[0]; } if($akc=='zmienLANG') { $_SESSION[LANGJOUR]=$_POST[LNGJOUR]; } if (session_is_registered("LANGJOUR") == false) { if(isset($ID_JOUR)) $_SESSION['LANGJOUR'] = getPrimaryLang($ID_JOUR); else $_SESSION['LANGJOUR'] = 'EN'; } $LANG = $_SESSION['LANGJOUR']; // echo "
LANG: $LANG
\n"; // echo "
ID_JOUR: $ID_JOUR
\n"; /* if($LANG == "PL" && $ID_JOUR == 7883) { $plik = "/home/copernicus/docs/Journals/szablony/headers/jour/7883/header_psychologia.jpg"; echo $plik; } if($LANG == "EN" && $ID_JOUR == 7883) { $plik = "/home/copernicus/docs/Journals/szablony/headers/jour/7883/header_psychologia_en.jpg"; echo $plik; } */ // echo $_GET[TEMP] . '
'; //$LANG = "EN"; include("style_array.php"); function getPrimaryLang($ID_JOUR) { global $mysql_link; $query = "SELECT * FROM JOUR_WWW_LANG WHERE ID_JOUR=".$ID_JOUR; $result = mysql_query($query, $mysql_link) or die ("$sql
\n" . mysql_error()); while($row=mysql_fetch_array($result)) { if($row['PRIMARY_LANG'] == 1) return $row['LANG_ISO']; } return 'EN'; } function domenaczasop($ID_JOUR) { global $mysql_link; //var_dump($ID_JOUR); $sql = "SELECT DOMENA FROM JOUR_EXTENDED_PANEL WHERE (ID_JOUR='$ID_JOUR')"; $result = mysql_query($sql, $mysql_link) or die ("$sql
\n" . mysql_error()); while($row=mysql_fetch_row($result)) { $domena=checkurl($row[0]); } if ( $ID_JOUR != 4181 ) return $domena; else return '4181.indexcopernicus.com'; } function jeststatart($ICID, $ID_JOUR) { global $mysql_link; $jeststat = false; $q = "SELECT STAT_ARTICLE_".$ID_JOUR.".ID_STAT FROM STAT_ARTICLE_".$ID_JOUR." WHERE (STAT_ARTICLE_".$ID_JOUR.".WHAT = 'F') AND (STAT_ARTICLE_".$ID_JOUR.".ICID = '$ICID') LIMIT 1"; //$q = "SELECT STAT_ARTICLE.ID_STAT FROM STAT_ARTICLE WHERE (STAT_ARTICLE.WHAT = 'F') AND (STAT_ARTICLE.ICID = '$ICID') LIMIT 1"; $mysql_result42 = mysql_query($q, $mysql_link) or die ("$q
\n" . mysql_error()); if (mysql_num_rows($mysql_result42) > 0) { $jeststat = true; } return $jeststat; } function checklangWWW($ID_JOUR) { global $mysql_link; $tablicajezykow = array(); $sql1 = "SELECT JOUR_WWW_LANG.LANG_ISO, `LANO`.LANGUAGE FROM JOUR_WWW_LANG INNER JOIN `LANO` ON (JOUR_WWW_LANG.LANG_ISO = `LANO`.ABBREV_ISO) WHERE (ID_JOUR = $ID_JOUR) AND (`LANO`.ID_REF = 3)"; //echo "
$sql1
\n"; $result1 = mysql_query($sql1, $mysql_link) or die ("$sql1
\n" . mysql_error()); while($row1=mysql_fetch_row($result1)) { $tablicajezykow[$row1[0]]=$row1[1]; } return $tablicajezykow; } // end func function displaynaglboxika($nazwaboxika, $aligntextu = "center", $nrboxika = 0, $display) { global $ID_JOUR; if ($ID_JOUR == 8723) { $style_link = "font-size:13px;"; } print ("
$nazwaboxika
"); echo"
"; /* print("
 » $nazwaboxika
"); */ } // end func function stopkaboxika() { print ("
"); } // end func function pobierztlumaczenie($ID, $ISO_LNG, $ID_JOUR) { global $mysql_link; if ($ID_JOUR == 206) { $ID_JOUR = 206; } elseif ($ISO_LNG == "EN") { $sql1 = "Select NAZWA from `JOUR_WWW_TRANSLATE` WHERE ID = $ID AND LANG_ISO = 'EN' AND ID_JOUR = $ID_JOUR"; $result = mysql_query($sql1, $mysql_link); if (mysql_num_rows($result) == 0) { $ID_JOUR = 0; } } $sql1 = "Select NAZWA from `JOUR_WWW_TRANSLATE` WHERE ID = $ID AND LANG_ISO = '$ISO_LNG' AND ID_JOUR = $ID_JOUR"; //echo "
$sql1

\n"; $result = mysql_query($sql1, $mysql_link) or die ("$sql1
\n" . mysql_error()); while($row=mysql_fetch_row($result)) { $text=stripslashes($row[0]); } if (mysql_num_rows($result) == 0 or $text == "") { $sql1 = "Select NAZWA from `JOUR_WWW_TRANSLATE` WHERE ID = $ID AND LANG_ISO = '$ISO_LNG' AND ID_JOUR = 0"; $result1 = mysql_query($sql1, $mysql_link) or die ("$sql1
\n" . mysql_error()); if (mysql_num_rows($result1) == 0) { $sql1 = "Select NAZWA from `JOUR_WWW_TRANSLATE` WHERE ID = $ID AND LANG_ISO = 'EN' AND ID_JOUR = 0"; $result1 = mysql_query($sql1, $mysql_link) or die ("$sql1
\n" . mysql_error()); } while($row1=mysql_fetch_row($result1)) { $text=stripslashes($row1[0]); } } return $text; } // end func function pobierzIDstrony($IDSYSTEM, $ISO_LNG, $ID_JOUR) { global $mysql_link; $result = mysql_query(" SELECT PAGE_ID, PAGE_ACTIVE FROM `JOUR_PAGES` WHERE IDSYSTEM = $IDSYSTEM AND LANG_ISO = '$ISO_LNG' AND ID_JOUR = $ID_JOUR "); if( $result === FALSE ) return ''; while( $row = mysql_fetch_row($result) ) { if( $row[1] != '0' ) { $PAGE_ID=$row[0]; } else { $PAGE_ID = null; } } return $PAGE_ID; } function pobierzTYTstrony($IDSTRONY, $NAZWA) { global $mysql_link, $LANG, $ID_JOUR; if( !empty($NAZWA) ) return $NAZWA; if( is_null($IDSTRONY) ) return 'Page not found'; $resource = mysql_query(' SELECT PAGE_TITLE, IDSYSTEM FROM `JOUR_PAGES` WHERE PAGE_ID = ' . $IDSTRONY ); while( $row = mysql_fetch_row($resource) ) { $PAGE_TITLE = stripslashes($row[0]); $IDSYSTEM = $row[1]; } if( $IDSYSTEM > 0 ) { $resource = mysql_query(' SELECT IDTRANSLATE FROM JOUR_PAGE_SYSTEM WHERE ID_SYSTEM_PAGE = "' . $IDSYSTEM . '" '); while( $row11 = mysql_fetch_row($resource) ) $PAGE_TITLE = pobierztlumaczenie($row11[0], $LANG, $ID_JOUR); } return $PAGE_TITLE; } function pobierzTRESCstrony($IDSTRONY) { global $mysql_link; $result = mysql_query(" SELECT PAGE_TEXT FROM `JOUR_PAGES` WHERE PAGE_ID = $IDSTRONY LIMIT 1 "); if( $result === FALSE ) return 'Error Page not found.'; $row = mysql_fetch_row($result); $PAGE_TEXT = stripslashes($row[0]); return $PAGE_TEXT; } function displayboxik($dzial, $stronawww = "") { global $LANG, $ID_JOUR, $mysql_link; $dostepnejezyki = checklangWWW($ID_JOUR); //echo "test: $dzial == $stronawww
\n"; if ($dzial == $stronawww || $ID_JOUR == 5896 || $ID_JOUR == 9723 || $ID_JOUR == 8689 || $ID_JOUR == 9765 ) { $display = "block"; } else { $display = "none"; } if ($dzial == "s5") { $tytul = pobierztlumaczenie(5, $LANG, $ID_JOUR); displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); $sql = "SELECT `JOUR_NEWS_CATEGORIES`.NEWS_CAT_NAME, COUNT(`JOUR_NEWS`.NEWS_ID) AS FIELD_1, `JOUR_NEWS`.NEWS_CAT_ID FROM `JOUR_NEWS_CATEGORIES` INNER JOIN `JOUR_NEWS` ON (`JOUR_NEWS_CATEGORIES`.NEWS_CAT_ID = `JOUR_NEWS`.NEWS_CAT_ID) WHERE (`JOUR_NEWS_CATEGORIES`.ID_JOUR = $ID_JOUR) AND (`JOUR_NEWS_CATEGORIES`.NEWS_CAT_VISIBLE = 1) AND (`JOUR_NEWS_CATEGORIES`.LANG_ISO = '$LANG') AND (`JOUR_NEWS`.NEWS_DATE <= CURRENT_DATE()) AND (`JOUR_NEWS`.NEWS_DATE_NOT_PUB >= CURRENT_DATE()) GROUP BY NEWS_CAT_NAME ORDER BY `JOUR_NEWS_CATEGORIES`.NEWS_CAT_NAME"; $result = mysql_query($sql, $mysql_link) or die ("$sql
\n" . mysql_error()); if ($ID_JOUR == 8723) { $style_link = "style='font-size:13px;'"; } while($row=mysql_fetch_row($result)) { print ("
".stripslashes($row[0])." ($row[1])
"); } stopkaboxika(); } elseif ($dzial == "s6") { $sql = "SELECT JOUR_ISSUE.ID_ISSUE, JOUR_ISSUE.VOLUME, JOUR_ISSUE.ISSUE, JOUR_ISSUE.YEAR, JOUR_ISSUE.ID_ISSUE_TYPE FROM JOUR_ISSUE WHERE (JOUR_ISSUE.ID_JOUR = '$ID_JOUR') ORDER BY JOUR_ISSUE.`YEAR` DESC, JOUR_ISSUE.SORT DESC LIMIT 0,1"; $sql = "SELECT IF( LENGTH(JOUR_ISSUE.ISSUE) < 2, CONCAT( '0', JOUR_ISSUE.ISSUE ) , JOUR_ISSUE.ISSUE ) AS F1, JOUR_ISSUE.VOLUME, JOUR_ISSUE.ISSUE, JOUR_ISSUE.YEAR, JOUR_ISSUE.ID_ISSUE_TYPE, JOUR_ISSUE.ID_ISSUE FROM JOUR_ISSUES_DISPLAY INNER JOIN JOUR_ISSUE ON (JOUR_ISSUES_DISPLAY.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) WHERE (JOUR_ISSUE.ID_JOUR = '$ID_JOUR') AND (JOUR_ISSUES_DISPLAY.`SHOW` = 1) ORDER BY JOUR_ISSUE.`YEAR` DESC, F1 DESC LIMIT 0,1"; //echo "$sql\n"; $result = mysql_query($sql, $mysql_link) or die ("$sql
\n" . mysql_error()); while($row=mysql_fetch_row($result)) { $issue = ""; $idssuenew=$row[5]; //echo "issue: $row[2]\n";; if ($row[4] == 2 and $row[2] != "" and $row[2] != 0) { $issue = " " . pobierztlumaczenie(29, $LANG, $ID_JOUR) . " " . $row[2] . ""; } elseif ($row[4] == 1 and $row[2] != "" and $row[2] != 0) { $issue = " " . pobierztlumaczenie(9, $LANG, $ID_JOUR) . " ".$row[2].""; } elseif ($row[4] == 3 and $row[2] != "" and $row[2] != 0) { $issue = " " . pobierztlumaczenie(30, $LANG, $ID_JOUR) . " ".$row[2].""; } if ($ID_JOUR=="23" or $vol=="0"){ if ($row[1]=="2013"){ $opisostatniego = "Special Issue, $row[3]$issue"; } else{ $opisostatniego = "".pobierztlumaczenie(8, $LANG, $ID_JOUR)." $row[1], $row[3]$issue"; } } else { $opisostatniego = "".pobierztlumaczenie(8, $LANG, $ID_JOUR)." $row[1], $row[3]$issue"; } //echo "idssuenew: $idssuenew
\n"; } $tytul = pobierztlumaczenie(6, $LANG, $ID_JOUR); displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); if ($ID_JOUR == 8723) { $style_link = "style='font-size:13px;'"; } print ("

$opisostatniego
"); if($ID_JOUR<>2669) { display_okladkaJOUR($ID_JOUR, "float:none; border-style:solid; border-color:#000000; border-width:1px;"); } print ("
"); print ("
\"\"
"); if ($ID_JOUR == 9480) { } stopkaboxika(); } elseif ($dzial == "s8") { $tytul = pobierztlumaczenie(10, $LANG, $ID_JOUR); displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); if ($ID_JOUR == 8723) { $style_link = "font-size:13px;"; } print ("
"); stopkaboxika(); } elseif ($dzial=='s9') { $tytul = pobierztlumaczenie(36, $LANG, $ID_JOUR); displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); if ($ID_JOUR == 8723) { $style_link = "style='font-size:13px;'"; } print ("
"); stopkaboxika(); } elseif ($dzial=='s10') { /** * Jesli nie aktywne nie wyswietla */ $Check = mysql_query("SELECT * FROM `JOUR_EXTENDED_PANEL` WHERE `ID_JOUR` =".$ID_JOUR); $Check = mysql_fetch_assoc($Check); $Show = ( $Check['EXTENDED'] == 0 ) ? false : true; if ( $Show ) { //authors pathways $tytul = pobierztlumaczenie(55, $LANG, $ID_JOUR); displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); if ($ID_JOUR == 8723) { $style_link = "style='font-size:13px;'"; } print ("
"); echo ""; echo ""; $a = mysql_query("SELECT FEE FROM PUBL_PREFERENCES_PAYMENT WHERE ID_JOUR='$ID_JOUR'"); $aw = mysql_fetch_row($a); include("/home/copernicus/docs/publisher_panel/imw.php"); if ($aw[0] == '2' || $aw[0] == '3' ) { if ($dumb) { } else { echo""; } } echo"
"; /* print("
"); */ stopkaboxika(); } } elseif($dzial=='s12' AND count($dostepnejezyki) > 1) { //languages $tytul = pobierztlumaczenie(34, $LANG, $ID_JOUR); displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); echo "
".pobierztlumaczenie(34, $LANG, $ID_JOUR).":
 "); stopkaboxika(); } elseif ($dzial == "s7") { //$tytul = ; //displaynaglboxika($tytul); displaynaglboxika(pobierztlumaczenie(7, $LANG, $ID_JOUR), "left", $dzial, $display); $content = "
"; //$q = mysql_query("SELECT // JOUR_ISSUE.ID_JOUR, // JOUR_ISSUE.VOLUME, // JOUR_ISSUE.`YEAR`, // JOUR_ISSUE.ID_ISSUE //FROM // JOUR_ISSUES_DISPLAY // INNER JOIN JOUR_ISSUE ON (JOUR_ISSUES_DISPLAY.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) //WHERE // (JOUR_ISSUE.ID_JOUR = '$ID_JOUR') //GROUP BY // VOLUME, // YEAR //ORDER BY // JOUR_ISSUE.`YEAR` DESC, // JOUR_ISSUE.VOLUME DESC LIMIT 0,1"); //$re = mysql_fetch_row($q); //$ostatni_issue = $re[3]; $q = mysql_query("SELECT JOUR_ISSUE.ID_ISSUE, JOUR_ISSUE.VOLUME, JOUR_ISSUE.ISSUE, JOUR_ISSUE.YEAR, JOUR_ISSUE.ID_ISSUE_TYPE FROM JOUR_ISSUES_DISPLAY INNER JOIN JOUR_ISSUE ON (JOUR_ISSUES_DISPLAY.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) WHERE (JOUR_ISSUE.ID_JOUR = '$ID_JOUR') AND (JOUR_ISSUES_DISPLAY.`SHOW` = 1) ORDER BY JOUR_ISSUE.`YEAR` DESC, JOUR_ISSUE.ISSUE DESC LIMIT 0,1"); $re = mysql_fetch_row($q); $ostatni_issue = $re[0]; if($cur==0 && $ostatni_issue > 0) { $q = "SELECT JOUR_ISSUE.ID_JOUR, JOUR_ISSUE.VOLUME, JOUR_ISSUE.`YEAR`, JOUR_ISSUE.ID_ISSUE FROM JOUR_ISSUES_DISPLAY INNER JOIN JOUR_ISSUE ON (JOUR_ISSUES_DISPLAY.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) WHERE (JOUR_ISSUE.ID_JOUR = '$ID_JOUR' AND JOUR_ISSUE.ID_ISSUE <> ".$ostatni_issue.") GROUP BY VOLUME, YEAR ORDER BY JOUR_ISSUE.`YEAR` DESC, JOUR_ISSUE.VOLUME DESC"; //echo $q; } else { $q = "SELECT JOUR_ISSUE.ID_JOUR, JOUR_ISSUE.VOLUME, JOUR_ISSUE.`YEAR`, JOUR_ISSUE.ID_ISSUE FROM JOUR_ISSUES_DISPLAY INNER JOIN JOUR_ISSUE ON (JOUR_ISSUES_DISPLAY.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) WHERE (JOUR_ISSUE.ID_JOUR = '$ID_JOUR') GROUP BY VOLUME, YEAR ORDER BY JOUR_ISSUE.`YEAR` DESC, JOUR_ISSUE.VOLUME DESC"; } $wers1 = 1; $mysql_result = mysql_query($q, $mysql_link) or die ("$q
\n" . mysql_error()); while($row=mysql_fetch_row($mysql_result)) { $vol = $row[1]; $rok = $row[2]; if (strlen($wers1)==1) $print_wers1 = "00" . $wers1; elseif (strlen($wers1)==2) $print_wers1 = "0" . $wers1; $q2 = "SELECT JOUR_ISSUE.ISSUE, ISSUE_TYPE.ID_ISSUE_TYPE, JOUR_ISSUE.COVER_ISSUE, JOUR_ISSUE.ID_ISSUE FROM ISSUE_TYPE INNER JOIN JOUR_ISSUE ON (ISSUE_TYPE.ID_ISSUE_TYPE = JOUR_ISSUE.ID_ISSUE_TYPE) INNER JOIN JOUR_ISSUES_DISPLAY ON (JOUR_ISSUE.ID_ISSUE = JOUR_ISSUES_DISPLAY.ID_ISSUE) WHERE (JOUR_ISSUES_DISPLAY.ID_JOUR = '$ID_JOUR') AND (JOUR_ISSUE.`YEAR` = '$rok') AND (JOUR_ISSUE.VOLUME = '$vol') AND (ISSUE_TYPE.ID_LANG = 3) ORDER BY JOUR_ISSUE.SORT DESC"; $wers2 = 1; $mysql_result2 = mysql_query($q2, $mysql_link) or die ("$q2
\n" . mysql_error()); $row2=mysql_fetch_row($mysql_result2); if ($ID_JOUR == 8723) { $style_link = "style='font-size:13px;line-height: 14px;'"; } //echo "test: '$row2[0]' -> \n " . mysql_num_rows($mysql_result2) . "
"; if (mysql_num_rows($mysql_result2) == 1 and ($row2[0] == 0 or $row2[0] == null)) { if ($wers1 != 1) $content .= "
"; $content .= ""; if ($ID_JOUR=="23" or $vol=="0"){ if ($vol=="2013"){ $content .= "Special Issue, $rok\n"; } else{ $content .= "".pobierztlumaczenie(8, $LANG, $ID_JOUR)." $vol, $rok\n"; } } else { $content .= "".pobierztlumaczenie(8, $LANG, $ID_JOUR)." $vol, $rok\n"; } } else { if ($wers1 != 1) $content .= "
"; $content .= ""; if ($ID_JOUR=="23"){ if ($vol=="2013" or $vol=="0"){ $content .= "Special Issue, $rok\n"; } else{ $content .= "".pobierztlumaczenie(8, $LANG, $ID_JOUR)." $vol, $rok
\n"; } } else { $content .= "".pobierztlumaczenie(8, $LANG, $ID_JOUR)." $vol, $rok\n"; } $content .= "\n"; if($cur==0 && $ostatni_issue > 0) { $q2 = "SELECT JOUR_ISSUE.ISSUE, ISSUE_TYPE.ID_ISSUE_TYPE, JOUR_ISSUE.COVER_ISSUE, JOUR_ISSUE.ID_ISSUE FROM ISSUE_TYPE INNER JOIN JOUR_ISSUE ON (ISSUE_TYPE.ID_ISSUE_TYPE = JOUR_ISSUE.ID_ISSUE_TYPE) INNER JOIN JOUR_ISSUES_DISPLAY ON (JOUR_ISSUE.ID_ISSUE = JOUR_ISSUES_DISPLAY.ID_ISSUE) WHERE (JOUR_ISSUES_DISPLAY.ID_JOUR = '$ID_JOUR') AND (JOUR_ISSUE.`YEAR` = '$rok') AND (JOUR_ISSUE.VOLUME = '$vol') AND (ISSUE_TYPE.ID_LANG = 3) AND JOUR_ISSUE.ID_ISSUE <> ".$ostatni_issue." ORDER BY JOUR_ISSUE.SORT DESC"; //echo $q2; } else { $q2 = "SELECT JOUR_ISSUE.ISSUE, ISSUE_TYPE.ID_ISSUE_TYPE, JOUR_ISSUE.COVER_ISSUE, JOUR_ISSUE.ID_ISSUE FROM ISSUE_TYPE INNER JOIN JOUR_ISSUE ON (ISSUE_TYPE.ID_ISSUE_TYPE = JOUR_ISSUE.ID_ISSUE_TYPE) INNER JOIN JOUR_ISSUES_DISPLAY ON (JOUR_ISSUE.ID_ISSUE = JOUR_ISSUES_DISPLAY.ID_ISSUE) WHERE (JOUR_ISSUES_DISPLAY.ID_JOUR = '$ID_JOUR') AND (JOUR_ISSUE.`YEAR` = '$rok') AND (JOUR_ISSUE.VOLUME = '$vol') AND (ISSUE_TYPE.ID_LANG = 3) ORDER BY JOUR_ISSUE.SORT DESC"; } $mysql_result2 = mysql_query($q2, $mysql_link) or die ("$q2
\n" . mysql_error()); while($row2=mysql_fetch_row($mysql_result2)) { $nr = $row2[0]; $idissue = $row2[1]; $miesiac = stripslashes($row2[2]); if ($nr == 0) { $nr = ""; } $dostepny = 1; //to tzreba bedzie zmienic i zrobic ready caly issue if (strlen($wers2)==1) $print_wers2 = "00" . $wers2; elseif (strlen($wers2)==2) $print_wers2 = "0" . $wers2; $content .= "
"; if ($dostepny == 1) $content .= ""; else $content .= "   "; if ($idissue == 2) { $content .= pobierztlumaczenie(29, $LANG, $ID_JOUR) . " " . $nr . ""; } elseif ($idissue == 1) { $content .= pobierztlumaczenie(9, $LANG, $ID_JOUR) . " $nr"; } elseif ($idissue == 3) { $content .= pobierztlumaczenie(30, $LANG, $ID_JOUR) . " $nr"; } if ($miesiac) $content .= " ($miesiac)"; if ($dostepny == 1) $content .= "\n"; else $content .= "\n"; $wers2++; } } $content .= "
\n"; $wers1++; } $content .= "
\n"; $content .= " "; print ("$content"); $kk = "SELECT `PUBL_PREFERENCES_EXTENDED`.SELL FROM `PUBL_PREFERENCES_EXTENDED` WHERE (`PUBL_PREFERENCES_EXTENDED`.ID_JOUR = ".$ID_JOUR.")"; $mkkk = mysql_query($kk); $ile_el = mysql_fetch_row($mkkk); if($ile_el[0] == 1) { echo"
Buy archival issues »
"; } stopkaboxika(); } elseif (is_numeric($dzial) == true) { $a = mysql_query("SELECT * FROM JOUR_PAGE_CATEGORIES WHERE ID_JOUR='$ID_JOUR' AND PAGE_CAT_VISIBLE='1' AND PAGE_CAT_ID = $dzial AND LANG_ISO='$LANG' ORDER BY PAGE_CAT_ID"); while($aw = mysql_fetch_row($a)) { $tytul = stripslashes($aw[3]); $contentboxika = stripslashes($aw[5]); } //echo"tt $dzial"; displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); if ($contentboxika != '') { print ("
".$contentboxika."
"); } $b = mysql_query("SELECT * FROM JOUR_PAGES WHERE ID_JOUR='$ID_JOUR' AND PAGE_ACTIVE='1' AND LANG_ISO='$LANG' AND PAGE_CAT_ID='$dzial' ORDER BY KOLEJ"); if (mysql_num_rows($b) > 0) { print ("
"); } if ($ID_JOUR == 8723) { $style_link = "style='font-size:13px;'"; } while($bw = mysql_fetch_row($b)) { echo""; } if (mysql_num_rows($b) > 0) { print ("
".stripslashes($bw[3])."
"); } stopkaboxika(); } } // end func function impactfactor() { $tytul = "Impact Factor"; displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); print ("
Now: 1.595
 
"); stopkaboxika(); } function banneryMSM() { $tytul = "Journals Databases"; displaynaglboxika($tytul, $aligntextu = "center", $dzial, $display); print ("

"); stopkaboxika(); } ?>
' . $text . '

'; } echo '
'; switch( $level ) { case 4 : $a = mysql_query(' SELECT JOUR_ISSUE.VOLUME, JOUR_ISSUE.ISSUE, JOUR_ISSUE.`YEAR`, `ISSUE_TYPE`.ISSUE_TYPE_NAME FROM JOUR_ISSUE INNER JOIN `ISSUE_TYPE` USING( ID_ISSUE_TYPE ) WHERE JOUR_ISSUE.ID_ISSUE = ' . $id_issue . ' AND JOUR_ISSUE.ID_JOUR = ' . $ID_JOUR . ' AND `ISSUE_TYPE`.ID_LANG = 3 '); $aw = mysql_fetch_row($a); if( $aw[3] == 'Regular Issue' ) { echo ''; } if( $aw[3] == 'Special Issue' ) { echo ''; } else { echo ''; } $c = mysql_query(' SELECT TAKIESAMEPREFIXY FROM PUBL_PREFERENCES_EXTENDED WHERE ID_JOUR = ' . $ID_JOUR ); $cw = mysql_fetch_row($c); if( $cw[0] == 1 ) //wyswietlam sekcjami { $a = mysql_query(" SELECT JOUR_SECTIONS.PREFIX, JOUR_SECTIONS.NAZWA FROM IC_ARTICLE INNER JOIN JOUR_ISSUE ON (IC_ARTICLE.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) INNER JOIN JOUR_SECTIONS ON (JOUR_ISSUE.ID_JOUR = JOUR_SECTIONS.ID_JOUR) AND (IC_ARTICLE.PG_PREFIX = JOUR_SECTIONS.PREFIX) WHERE IC_ARTICLE.ID_ISSUE = " . $ctrl_tab['ID_ISSUE'] . " AND IC_ARTICLE.READY = 'Yes' AND JOUR_SECTIONS.ID_JOUR = " . $ID_JOUR . " AND JOUR_SECTIONS.LANG_ISO = 'EN' GROUP BY JOUR_SECTIONS.PREFIX ORDER BY JOUR_SECTIONS.KOLEJNOSC"); while( $aw = mysql_fetch_row($a) ) { echo ""; $ctrl_tab['JOUR'] = GetJournalInfo($ID_JOUR); if( $electronic == 1 ) { $ctrl_tab['LISTA_ART'] = GetListaArtykulow_section_el($ctrl_tab['ID_ISSUE'], $aw[0]); // print_r($ctrl_tab['LISTA_ART']); } else { $ctrl_tab['LISTA_ART'] = GetListaArtykulow_section($ctrl_tab['ID_ISSUE'], $aw[0]); // print_r($ctrl_tab['LISTA_ART']); } $ctrl_tab['ISSUE_INFO'] = GetIssueInfo($ctrl_tab['ID_ISSUE']); echo '"); } //WYSWIETLAM BEZ PREFIXOW jesli sa $r = mysql_query(' SELECT * FROM IC_ARTICLE INNER JOIN JOUR_ISSUE ON (IC_ARTICLE.ID_ISSUE = JOUR_ISSUE.ID_ISSUE) WHERE IC_ARTICLE.ID_ISSUE = ' . $ctrl_tab['ID_ISSUE'] . ' AND IC_ARTICLE.READY = "Yes" AND JOUR_ISSUE.ID_JOUR = ' . $ID_JOUR . ' AND ( IC_ARTICLE.PG_PREFIX IS NULL OR IC_ARTICLE.PG_PREFIX = "" ) '); $rile = mysql_num_rows($r); if( $rile > 0 ) { echo ""; $ctrl_tab['JOUR'] = GetJournalInfo($id); if( $electronic == 1 ) $ctrl_tab['LISTA_ART'] = GetListaArtykulow_section_el($ctrl_tab['ID_ISSUE'], $pref = ""); else $ctrl_tab['LISTA_ART'] = GetListaArtykulow_section($ctrl_tab['ID_ISSUE'], $pref = ""); $ctrl_tab['ISSUE_INFO'] = GetIssueInfo($ctrl_tab['ID_ISSUE']); echo ''; } } else { $ctrl_tab['JOUR'] = GetJournalInfo($ID_JOUR); if( $electronic == 1 ) $ctrl_tab['LISTA_ART'] = GetListaArtykulow_el($ctrl_tab['ID_ISSUE']); else $ctrl_tab['LISTA_ART'] = GetListaArtykulow($ctrl_tab['ID_ISSUE']); echo ''; } break; // -------- koniec level = 4 case 5 : $ctrl_tab['JOUR'] = GetJournalInfo($ctrl_tab['ID_JOURNAL']); $ctrl_tab['ARTIC'] = GetArtykul($ctrl_tab['ICID'], "Yes"); DrawArtykul1($ctrl_tab['ICID'], $logo_p); session_start(); $zapissztat = 1; $tablicaICID = explode(";", $_SESSION['przeczytalemjuzABSTR']); if( is_array($tablicaICID) ) { while( list ($key, $val) = each($tablicaICID) ) { if( $val == $ctrl_tab['ICID'] ) { $zapissztat = 0; break; } } } if( $zapissztat == 1 AND $ID_JOUR != 134 ) { if( substr($_SERVER['REMOTE_ADDR'], 0, 3) != '10.' && $_SERVER['REMOTE_ADDR'] != '213.199.217.66') { include_once("/home/copernicus/docs/includes/IP.php"); if (czyBot($_SERVER['REMOTE_ADDR']) == false) { $JOUR_web_page = displayURL($JOUR_web_page); $browser = get_browser(); $country_code = addslashes(apache_note("GEOIP_COUNTRY_CODE")); $city_name = addslashes(apache_note("GEOIP_CITY")); $country_name = addslashes(apache_note("GEOIP_COUNTRY_NAME")); $region_code = addslashes(apache_note("GEOIP_REGION")); $browser_name = addslashes($browser->browser); $browser_majorver = addslashes($browser->majorver); $browser_minorver = addslashes($browser->minorver); $browser_full = addslashes($browser->parent); $opersystem = addslashes($browser->platform); $HTTP_REFERER = addslashes($_SERVER['HTTP_REFERER']); $qry = "INSERT into STAT_ARTICLE_" . $ID_JOUR . " (`IPadress`, `DOMENA`, `COUNTRY_CODE`, `CITY`, `REGION_CODE`, `DATE`, `BROWSER_NAME`, `BROWSER_MAJORVER`, `BROWSER_MINORVER`, `ICID`, `BROWSER_FULL`, `CZAS`, `OS`, `COUNTRY_NAME`, `REFERER`, `WHAT`, `SKAD`) VALUES ('" . $_SERVER['REMOTE_ADDR'] . "', '" . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "', '$country_code', '$city_name', '$region_code', NOW(), '$browser_name', '$browser_majorver', '$browser_minorver', '" . $ctrl_tab['ICID'] . "', '$browser_full', NOW(), '$opersystem', '$country_name', '$HTTP_REFERER', 'A', 'JMS')"; $qry2 = "INSERT into STAT_ARTICLE (`IPadress`, `DOMENA`, `COUNTRY_CODE`, `CITY`, `REGION_CODE`, `DATE`, `BROWSER_NAME`, `BROWSER_MAJORVER`, `BROWSER_MINORVER`, `ICID`, `BROWSER_FULL`, `CZAS`, `OS`, `COUNTRY_NAME`, `REFERER`, `WHAT`, `SKAD`) VALUES ('" . $_SERVER['REMOTE_ADDR'] . "', '" . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "', '$country_code', '$city_name', '$region_code', NOW(), '$browser_name', '$browser_majorver', '$browser_minorver', '" . $ctrl_tab['ICID'] . "', '$browser_full', NOW(), '$opersystem', '$country_name', '$HTTP_REFERER', 'A', 'JMS')"; $mysql_result = mysql_query($qry, $mysql_link) or die("$qry
\n" . mysql_error()); $mysql_result2 = mysql_query($qry2, $mysql_link) or die("$qry2
\n" . mysql_error()); $idstat = mysql_insert_id($mysql_link); setJournalArticleStat($ctrl_tab['ICID'], $idstat); require_once('/home/copernicus/docs/author_panel/statistic_function.php'); addAbstractStatistic(); } $_SESSION['przeczytalemjuzABSTR'] = ";" . $ctrl_tab['ICID']; } } break; } echo '
' . pobierztlumaczenie(8, $LANG, $ID_JOUR) . ' ' . $aw[0] . ', '; if( !is_null($aw[1]) && $aw[1] != 0 ) echo pobierztlumaczenie(9, $LANG, $ID_JOUR) . ' ' . $aw[1] . ', '; echo $aw[2] . '
'; $b = mysql_query(' SELECT ACTIVE FROM JOUR_ISSUES_PRICES WHERE ID_JOUR = ' . $ID_JOUR . ' AND ID_ISSUE = ' . $id_issue ); $bw = mysql_fetch_row($b); if( $bw[0] == 1 ) { echo '
Buy this Issue »
'; } echo '
Special Issue, '; if( !is_null($aw[1]) && $aw[1] != 0 ) echo pobierztlumaczenie(9, $LANG, $ID_JOUR) . ' ' . $aw[1] . ', '; echo $aw[2] . '
'; $b = mysql_query(' SELECT ACTIVE FROM JOUR_ISSUES_PRICES WHERE ID_JOUR = ' . $ID_JOUR . ' AND ID_ISSUE = ' . $id_issue ); $bw = mysql_fetch_row($b); if( $bw[0] == 1 ) { echo '
Buy this Issue »
'; } echo '
' . pobierztlumaczenie(8, $LANG, $ID_JOUR) . ' ' .$aw[0] . ', ' . $aw[3] . ', ' . $aw[2] . '
" . stripslashes($aw[1]) . "
'; if ($electronic == 1) { DrawListaArt_el(); } else { DrawListaArt(); } print("
Other
'; if( $electronic == 1 ) DrawListaArt_el(); else DrawListaArt(); echo '
'; if( $electronic == 1 ) DrawListaArt_el(); else DrawListaArt(); echo '
'; } function DrawLitery($litery) { global $ctrl_tab; $html = ''; for( $i = 0; $i < sizeof($litery); $i++ ) { $style = ''; if( $ctrl_tab['LITERA'] == $litery[$i] ) $style = 'style="font-weight: bold;"'; $html .= '
' . $litery[$i] . '
'; } echo '
' . $html . '
'; } function DrawListaCzasopism($od, $ile, $li) { //echo "Draw: $od,$ile,$li
"; print ("
"); $czasopisma = GetListaCzasopism($od, $ile, $li); print (" "); for ($i = 0; $i < sizeof($czasopisma); $i++) { print (" "); } print ("
  " . _JOURTITL . " p-ISSN e-ISSN  IC  
" . $czasopisma[$i]['TITLE'] . " " . $czasopisma[$i]['PISSN'] . " " . $czasopisma[$i]['EISSN'] . "
"); printf("%.2f", $czasopisma[$i]['IC']); print ("  
"); } function DrawArtykulonline($icid) { global $mysql_link; $opis = ''; $danejour = GetIDJournalByICID($icid); if ($danejour['ID_JOUR'] > 0) { $ctrl_tab['JOUR'] = GetJournalInfo($danejour['ID_JOUR']); } elseif ($danejour['ID_JOUR2'] > 0) { $ctrl_tab['JOUR'] = GetJournalInfo2($danejour['ID_JOUR2']); } $ctrl_tab['ISSUE_INFO'] = GetIssueInfo($danejour['ID_ISSUE']); $ctrl_tab['VOL_NO'] = $ctrl_tab['ISSUE_INFO']['VOLUME']; $ctrl_tab['ARTIC'] = GetArtykul($icid, "Yes"); $sql = "Select TITLE FROM ARTICLE_CONTENT WHERE ICID = $icid AND IS_MAIN='Yes'"; $mysql_result = mysql_query($sql, $mysql_link) or die("$sql
\n" . mysql_error()); $row = mysql_fetch_row($mysql_result); echo "" . stripslashes($row[0]) . "
"; echo "" . stripslashes($ctrl_tab['ARTIC']['AUTHORS']) . "
"; if ($danejour['ID_JOUR'] > 0) { $opis .= ""; } if ($ctrl_tab['JOUR']['ABR'] == '') { $opis .= "" . stripslashes($ctrl_tab['JOUR']['TITLE']) . ""; } else { $opis .= "" . stripslashes($ctrl_tab['JOUR']['ABR']) . ""; } if ($danejour['ID_JOUR'] > 0) { $opis .= ""; } $opis .= " " . stripslashes($ctrl_tab['ISSUE_INFO']['YEAR']) . "; " . stripslashes($ctrl_tab['VOL_NO']) . ""; if ($ctrl_tab['ISSUE_INFO']['ISSUE'] > 0) { $opis .= "("; if ($ctrl_tab['ISSUE_INFO']['ISSUE_TYPE'] == 1) { } elseif ($ctrl_tab['ISSUE_INFO']['ISSUE_TYPE'] == 2) { $opis .= "Sup "; } $opis .= "" . $ctrl_tab['ISSUE_INFO']['ISSUE'] . "):$str
ICID : $icid"; } else { $opis .= " $str
ICID: $icid"; } echo "" . $opis . ""; } // end func function DrawArtykul_oth($icid, $showabstract = 0, $rss = 0, $zamienURL = "") { global $mysql_link; if ($rss == 1) { $sql = 'SELECT OPIS_RSS FROM IC_ARTICLE WHERE ICID = ' . $icid; $showabstract = 0; } else { $sql = 'SELECT OPIS_HTML_OTH, OPIS_HTML FROM IC_ARTICLE WHERE ICID = ' . $icid; } $mysql_result = mysql_query($sql, $mysql_link) or die("$sql
\n" . mysql_error()); while( $row = mysql_fetch_row($mysql_result) ) { if( !empty($row[0]) ) { $opisart = stripslashes($row[0]); } else { $opisart = stripslashes($row[1]); } if( $rss == 1 and $zamienURL != "" ) { $opisart = str_replace("#URL#", $zamienURL, $opisart); } elseif ($rss == 1 and $zamienURL == "") { $opisart = str_replace("#URL#", $zamienURL, $opisart); } require_once("/home/copernicus/docs/panel_admin/new/classes/bbc2html/bbcode_class.php"); $bbcode = new bbcode('ic'); $opisart = $bbcode->parse_bbcode($opisart); $opisart = str_replace("<", "<", $opisart); $opisart = str_replace(">", ">", $opisart); print ("" . nl2br($opisart) . "\n"); if( $showabstract == 1 AND $rss == 0 ) { print ("
[abstract]"); } } } // end func function br2nl($str) { $str = str_replace("
", "\n", $str); $str = str_replace("
", "\n", $str); return $str; } function DrawArtykul1( $icid ) { global $ctrl_tab, $mysql_link, $LANG, $ID_JOUR, $linia, $reprinty, $show_affi, $id_lang, $lan; $q = mysql_query(' SELECT `ARTICLE_KIND_LIST`.KIND_NAME FROM `IC_ARTICLE` INNER JOIN `ARTICLE_KIND_LIST` USING( ID_ARTICLE_KIND ) WHERE `ARTICLE_KIND_LIST`.ID_LANG = 3 AND `IC_ARTICLE`.ICID = ' . $icid ); $il = mysql_num_rows($q); $danejour = GetIDJournalByICID($icid); $ctrl_tab['JOUR'] = GetJournalInfo($danejour['ID_JOUR']); $ctrl_tab['ISSUE_INFO'] = GetIssueInfo($danejour['ID_ISSUE']); $ctrl_tab['VOL_NO'] = $ctrl_tab['ISSUE_INFO']['VOLUME']; $ctrl_tab['ARTIC'] = GetArtykul($icid, "Yes"); // session_registered echo '
"); if ($il > 0) { $qw = mysql_fetch_row($q); echo ""; } print (""); $konto_pub = mysql_query("SELECT USERS.ID_PEOP FROM USERS INNER JOIN USER_GRUP ON (USERS.ID_PEOP = USER_GRUP.ID_USER) WHERE USER_GRUP.ID_GRUP = '3' AND USER_GRUP.`GRANT` = 'Yes' AND USERS.ID_JOUR='" . $danejour['ID_JOUR'] . "'"); $konto_p = mysql_num_rows($konto_pub); if ($konto_p > 0) { $logo_p = 'yes'; } else { $logo_p = 'no'; } $y = mysql_query("SELECT SCIEZKA_LOGO FROM PUBL_LOGO WHERE ID_PUBL=" . $danejour['ID_JOUR'] . ""); $yw = mysql_fetch_row($y); if (!empty($yw)) { $pliklogo = "/home/copernicus/docs/ICJournalMasterList/" . $yw[0] . ""; } else { $j = mysql_query("SELECT ID_PUBL, ID_PUBL_E FROM JOUR WHERE ID_JOUR=" . $danejour['ID_JOUR'] . ""); $jw = mysql_fetch_row($j); if ($jw[0] == '' || $jw[0] == '0') $jw[0] = $jw[1]; if (!($jw[0] == '' || $jw[0] == '0')) { $h = mysql_query("SELECT SCIEZKA_LOGO FROM PUBL_LOGO_2 WHERE ID_PUBL=" . $jw[0] . ""); if (mysql_num_rows($h) > 0) { $hw = mysql_fetch_row($h); if (!empty($hw)) { $pliklogo = "/home/copernicus/docs/ICJournalMasterList/logo_wydawcy/" . $hw[0] . ""; } else { $pliklogo = ''; } } } } $zapyt = mysql_query("SELECT * FROM ARTICLE_ID WHERE ID_ID='1' AND ICID='$icid' AND ID_VALUE!=''"); $ilepmid = mysql_num_rows($zapyt); IF ($ilepmid > 0) { $pmidek = 'yes'; } else { $pmidek = 'no'; } //echo "logo_p: $logo_p - pmidek: $pmidek
\n"; if (($logo_p == 'yes' AND $pmidek == 'yes') or ($logo_p == 'yes' and $pmidek == 'no')) { echo ""; } else if ($logo_p == 'no' and $pmidek == 'no') { echo ""; } else if ($logo_p == 'no' and $pmidek == 'yes') { echo ""; } print (""); if ($ctrl_tab['ARTIC']['AFFILIATION']) { print (" "); } $bbcode = new bbcode('ic'); $y = mysql_query("SELECT ARTICLE_CONTENT.ABSTRACT_TEXT FROM ARTICLE_CONTENT WHERE ARTICLE_CONTENT.ICID = " . $icid . " AND ARTICLE_CONTENT.ID_LANG = " . $lan . ""); if (mysql_num_rows($y) > 0) { $yw = mysql_fetch_row($y); $la = $yw[0]; } else { $u = mysql_query("SELECT ARTICLE_CONTENT.ABSTRACT_TEXT, ARTICLE_CONTENT.ID_LANG FROM ARTICLE_CONTENT WHERE ARTICLE_CONTENT.ICID = " . $icid . " AND ARTICLE_CONTENT.IS_MAIN = 'Yes'"); $uw = mysql_fetch_row($u); IF ($uw[1] == $lan) { $la = $uw[0]; } else { $w = mysql_query("SELECT ARTICLE_CONTENT.ABSTRACT_TEXT, ARTICLE_CONTENT.ID_LANG FROM ARTICLE_CONTENT WHERE ARTICLE_CONTENT.ICID = " . $icid . " AND ARTICLE_CONTENT.IS_MAIN = 'No'"); $ww = mysql_fetch_row($w); $la = $ww[0]; } } // IF($_SESSION['JOURLANG'] == ) if ($icid == 510960) print (""); else print (""); /* if ($ctrl_tab['ARTIC']['KEYWORDS']) { print(" "); } */ include("/home/copernicus/docs/publisher_panel/imw.php"); if ($dumb) { $sql = "SELECT KEYWORDS.KEYWORD FROM ARTICLE_KEYWORD INNER JOIN KEYWORDS ON (ARTICLE_KEYWORD.ID_KEYWORD=KEYWORDS.ID_KEYWORD) WHERE (KEYWORDS.ID_LANG = 3) AND (ARTICLE_KEYWORD.ICID = $icid) and (KEYWORDS.KEYWORD != \"English Abstract\")"; $result = mysql_query($sql, $mysql_link) or die("$sql
\n" . mysql_error()); if (mysql_num_rows($result) > 0) { print (""); } } print (""); } print (""); $plikPDF = "/home/copernicus/docs/Journals/PDF/" . $icid . ".pdf"; //echo "$plikPDF\n"; if ($ID_JOUR != 7292) { if (file_exists($plikPDF) == true) { print (" "); if (empty($ctrl_tab['ARTIC']['FTX_URL']) === false) { print (""); } print (""); $sql = "SELECT KEYWORDS.KEYWORD, KEYWORDS.ID_KEYWORD, KEYWORDS.ILE_ARTYKULOW FROM ARTICLE_KEYWORD INNER JOIN KEYWORDS ON (ARTICLE_KEYWORD.ID_KEYWORD=KEYWORDS.ID_KEYWORD) WHERE (KEYWORDS.ID_LANG = 3) AND (ARTICLE_KEYWORD.ICID = $icid) and (KEYWORDS.KEYWORD != \"English Abstract\" OR KEYWORDS.KEYWORD != '' OR KEYWORDS.ID_KEYWORD != 1452)"; $result = mysql_query($sql, $mysql_link) or die("$sql
\n" . mysql_error()); if (mysql_num_rows($result) > 0) { print (""); } if ($ctrl_tab['ARTIC']['PMID']) { $liczbarekordowPUBMED = czytaj_wyniki_PUBMED($ctrl_tab['ARTIC']['PMID']); print (""); // } print (""); print ("
'; $danejour = GetIDJournalByICID($icid); if( $danejour['ID_JOUR'] > 0 ) { $ctrl_tab['JOUR'] = GetJournalInfo($danejour['ID_JOUR']); } elseif ($danejour['ID_JOUR2'] > 0) { $ctrl_tab['JOUR'] = GetJournalInfo2($danejour['ID_JOUR2']); } $ctrl_tab['ISSUE_INFO'] = GetIssueInfo($danejour['ID_ISSUE']); $ctrl_tab['VOL_NO'] = $ctrl_tab['ISSUE_INFO']['VOLUME']; include_once ("/home/copernicus/docs/panel_admin/new/classes/bbc2html/bbcode_class.php"); $bbcode = new bbcode('ic'); $tyt = $bbcode->parse_bbcode(getArticleContentTitle($icid, $lan)); $tyt = str_replace(array('<', '>'), array('<', '>'), $tyt); echo "" . $tyt . "
"; $h = mysql_query(' SELECT L_NAME, F_NAME, M_NAME, AFFILIATION FROM ARTICLE_PEOP WHERE ICID = ' . $icid . ' ORDER BY NO_OF_AUTHOR '); $ktory = 1; while ($hw = mysql_fetch_row($h)) { $pop = $ktory - 1; $affiliacje[] = stripslashes($hw[3]); $indeksy[] = $ktory; if( empty($hw[2]) ) { $autorzy[] = "" . stripslashes($hw[1]) . " " . stripslashes($hw[0]) . ""; } else { $autorzy[] = "" . stripslashes($hw[1]) . " " . stripslashes($hw[2]) . " " . stripslashes($hw[0]) . ""; } $ktory++; } if ($show_affi == 1) { //z affiliacjami //tu tworzymy nowa tablice do celow wyswietlania unikalna $tablicainst1 = array_unique($affiliacje); $tablicainst = array(); $numer = 1; while (list ($key, $val) = each($tablicainst1)) { $tablicainst[$numer] = $val; $numer++; } $afiliacjepomodyf = array(); while (list ($key, $val) = each($autorzy)) { $aut .= "$val"; //obrabiamy instytucje $nazwainst = $affiliacje[$key]; //szukamy tej nazwy w tablicy nowej i wyswietlamy odpowiedni id $keynew = array_search($nazwainst, $tablicainst); $aut .= " $keynew, "; } echo "" . substr($aut, 0, -2) . "
"; //a tu wyswietlamy afilicje while (list ($key, $val) = each($tablicainst)) { echo "" . $key . " - " . $val . "
\n"; } } else { //bez affiliacji if (is_array($autorzy)) { foreach ($autorzy as $klu => $wart) { $aut .= "" . $wart . ", "; } $aut = substr($aut, 0, -2); echo $aut; $aut = ''; echo "
"; } } if ($danejour['ID_JOUR'] > 0) { echo ""; } if ($ctrl_tab['JOUR']['ABR'] == '') { echo "" . stripslashes($ctrl_tab['JOUR']['TITLE']) . ""; } else { echo "" . stripslashes($ctrl_tab['JOUR']['ABR']) . ""; } if ($danejour['ID_JOUR'] > 0) { echo ""; } echo " " . stripslashes($ctrl_tab['ISSUE_INFO']['YEAR']) . "; " . stripslashes($ctrl_tab['VOL_NO']); $str = stripslashes($ctrl_tab['PGAGES']); if ($ctrl_tab['ISSUE_INFO']['ISSUE'] > 0) { echo "("; if ($ctrl_tab['ISSUE_INFO']['ISSUE_TYPE'] == 1) { } elseif ($ctrl_tab['ISSUE_INFO']['ISSUE_TYPE'] == 2) { echo "Sup "; } echo "" . $ctrl_tab['ISSUE_INFO']['ISSUE'] . "):$str
ICID: $icid"; } else { echo " $str
aaICID: $icid"; } print ("
Article type: $qw[0]
IC™ Value: " . przelicz_artykul($icid, 1) . ""); print ("
"; $quryEXT = "SELECT * FROM `JOUR_EXTENDED_PANEL` WHERE (`JOUR_EXTENDED_PANEL`.ID_JOUR = " . $danejour['ID_JOUR'] . ") AND (`JOUR_EXTENDED_PANEL`.VALID_TO >= NOW()) AND (`JOUR_EXTENDED_PANEL`.EXTENDED = 1 or `JOUR_EXTENDED_PANEL`.EXTENDED = 2)"; $konto_ext = mysql_num_rows(mysql_query($quryEXT)); if ($konto_ext > 0) { print (""); } echo "
" . pobierztlumaczenie(31, $LANG, $ID_JOUR) . ""; echo ""); if (file_exists($pliklogo) == true) { print (" "); $query = "SELECT `CNTC_ADRS`.CONTACT FROM `PUBL` INNER JOIN JOUR ON (`PUBL`.ID_PUBL = JOUR.ID_PUBL) INNER JOIN `CNTC_ADRS` ON (`PUBL`.ID_ADRS = `CNTC_ADRS`.ID_ADRS) WHERE (JOUR.ID_JOUR = " . $danejour['ID_JOUR'] . ") AND (`CNTC_ADRS`.ID_CNTC = 3)"; $result22 = mysql_query($query, $mysql_link) or die("$query
\n" . mysql_error()); $URLpublishers = ""; while ($row22 = mysql_fetch_row($result22)) { $URLpublishers = checkURL($row22[0]); } if ($URLpublishers != "") print (""); print (""); if ($URLpublishers != "") print (""); print (" "); } print ("
" . pobierztlumaczenie(32, $LANG, $ID_JOUR) . "
" . pobierztlumaczenie(33, $LANG, $ID_JOUR) . " 
 
" . $ctrl_tab['ARTIC']['AFFILIATION'] . "
" . ($bbcode->parse_bbcode(stripslashes($la))) . "
" . ($bbcode->parse_bbcode(stripslashes($la))) . "

Keywords:
".$ctrl_tab['ARTIC']['KEYWORDS']."
"); print (pobierztlumaczenie(116, $LANG, $ID_JOUR)); print (": "); } while ($row = mysql_fetch_row($result)) { print("" . $row[0] . "; "); } if (mysql_num_rows($result) > 0) { print ("

ICID " . $icid . "
"); if ($ctrl_tab['ARTIC']['DOI'] != '') { print ("
DOI " . $ctrl_tab['ARTIC']['DOI'] . "
"); } if ($ctrl_tab['ARTIC']['PMID']) { print ("PMID " . $ctrl_tab['ARTIC']['PMID'] . " - " . pobierztlumaczenie(22, $LANG, $ID_JOUR) . " " . pobierztlumaczenie(23, $LANG, $ID_JOUR) . "
 
" . pobierztlumaczenie(19, $LANG, $ID_JOUR) . " "); print (round(filesize($plikPDF) / 1024)); print (" KB"); } } if ($reprinty == 1) { if (file_exists($plikPDF) == true) { echo "  |  " . pobierztlumaczenie(277, $LANG, $ID_JOUR) . ""; } else { echo "" . pobierztlumaczenie(277, $LANG, $ID_JOUR) . ""; } } print ("
 
" . pobierztlumaczenie(19, $LANG, $ID_JOUR) . "

\"\"

" . pobierztlumaczenie(24, $LANG, $ID_JOUR) . "
  • in IndexCopernicus™
    "); session_unregister(wyniki_article); while ($row = mysql_fetch_row($result)) { $ilehitow = $row[2]; if ($ilehitow == '' or $ilehitow == 0) { $ilehitow = 0; $checked = " "; } elseif ($ilehitow > 0) { $checked = " checked "; } print ("     " . stripslashes($row[0]) . " [$ilehitow " . pobierztlumaczenie(26, $LANG, $ID_JOUR) . "]
    "); } print ("
    "); print ("
  • \""
  • " . pobierztlumaczenie(25, $LANG, $ID_JOUR) . " [$liczbarekordowPUBMED " . pobierztlumaczenie(26, $LANG, $ID_JOUR) . "]
    "); print ("
    "); print ("

  • \"\"
    " . $linia . "
    "); if ($level == 2) { print ("
    "); } else { print (""); } print ("
      "); } /** * Short description. * * Detail description * @param * @since 1.0 * @access private * @return void * @update data time */ function czytaj_wyniki_PUBMED($PMID) { $file = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed&cmd=Display&dopt=pubmed_pubmed&from_uid=$PMID"; $uchwyt = fopen($file, "r"); //while (!feof ($uchwyt)) { while ($data = fgetcsv($uchwyt, 1000, "\n")) { $buffer = $data[0]; $szukaj = "All: "; $pos = strpos($buffer, $szukaj); if ($pos === false) { } else { $liczbarek = substr($buffer, $pos + 31); //echo "$liczbarek\n"; $szukaj2 = "<"; $pos2 = strpos($liczbarek, $szukaj2); if ($pos2 === false) { } else { $liczbarek = substr($liczbarek, 0, $pos2 + 4); break; } } } return $liczbarek; } // end func function GetLitery() { global $mysql_link; $query = "SELECT DISTINCT MID(TITLE,1,1) AS LITERA FROM TITL INNER JOIN JOUR_TITL ON TITL.ID_TITL=JOUR_TITL.ID_TITL INNER JOIN JOUR ON JOUR_TITL.ID_JOUR=JOUR.ID_JOUR INNER JOIN JOUR_ISSUE ON JOUR.ID_JOUR=JOUR_ISSUE.ID_JOUR WHERE TITLE NOT LIKE \"&%\" AND IS_MAIN=\"Yes\" having ASCII(LITERA)>32 ORDER BY LITERA"; // ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $tab = array(); $i = 0; while ($ro = mysql_fetch_row($re)) { $tab[$i] = $ro[0]; $i++; } } return $tab; } function GetICYear() { global $mysql_link; $query = "SELECT MAX(`YEAR`) FROM `IC_YEAR`"; if ($re = mysql_query($query, $mysql_link)) { $ro = mysql_fetch_row($re); return $ro[0]; } } function GetListaCzasopism($od, $ile, $li) { // echo "Get: $od,$ile,$li
    "; global $mysql_link; if (strlen($li) > 1) { $li = "&"; } $year = GetICYear(); // 0 1 2 3 4 5 6 $query = "SELECT DISTINCT JOUR.ID_JOUR, TITLE, JOUR_TITL.ID_TITL, JOUR.PISSN, EISSN,TITLE_ABR,ISO,IC_AMOUNT FROM TITL INNER JOIN JOUR_TITL ON TITL.ID_TITL=JOUR_TITL.ID_TITL INNER JOIN JOUR ON JOUR_TITL.ID_JOUR=JOUR.ID_JOUR INNER JOIN CNTR ON JOUR.ID_CNTR=CNTR.ID_CNTR INNER JOIN JOUR_ISSUE ON JOUR.ID_JOUR=JOUR_ISSUE.ID_JOUR LEFT JOIN IC_YEAR on JOUR.ID_JOUR=IC_YEAR.ID_JOUR where CNTR.ID_LANG=3 AND IS_MAIN=\"Yes\" AND TITLE LIKE \"$li%\" AND (IC_YEAR.YEAR=$year or IC_YEAR.YEAR is null)"; //ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $tab = array(); $i = 0; while ($ro = mysql_fetch_row($re)) { $tab[$i]['ID'] = $ro[0]; $tab[$i]['TITLE'] = $ro[1]; $tab[$i]['ID_TITL'] = $ro[2]; $tab[$i]['PISSN'] = $ro[3]; $tab[$i]['EISSN'] = $ro[4]; $tab[$i]['ABR'] = $ro[5]; $tab[$i]['ISO'] = $ro[6]; $tab[$i]['IC'] = $ro[7]; $i++; } } return $tab; } function GetListaTomow($ID_JOUR) { global $mysql_link; // 0 1 3 $query = "SELECT DISTINCT ID_JOUR, `YEAR`, VOLUME FROM JOUR_ISSUE WHERE ID_JOUR=$ID_JOUR ORDER BY VOLUME DESC"; //ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $tab = array(); $i = 0; while ($ro = mysql_fetch_row($re)) { $tab[$i]['ID'] = $ro[0]; $tab[$i]['YEAR'] = $ro[1]; $tab[$i]['VOLUME'] = $ro[2]; $i++; } } return $tab; } function GetListaWydan($ID_JOUR, $vol_no) { global $mysql_link; // 0 1 2 3 4 5 6 7 $query = "SELECT DISTINCT ID_JOUR, ID_ISSUE, COVER_ISSUE, ISSUE, `MONTH`,`DAY`,ISSUE_TYPE.ID_ISSUE_TYPE,ISSUE_TYPE_NAME,VOLUME,`YEAR` FROM ISSUE_TYPE INNER JOIN JOUR_ISSUE ON ISSUE_TYPE.ID_ISSUE_TYPE = JOUR_ISSUE.ID_ISSUE_TYPE WHERE ID_JOUR=$ID_JOUR AND VOLUME=$vol_no AND ID_LANG=3 ORDER BY ISSUE_TYPE.SORT ASC, JOUR_ISSUE.SORT ASC,ISSUE asc"; //ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $tab = array(); $i = 0; while ($ro = mysql_fetch_row($re)) { $tab[$i]['ID_JOUR'] = $ro[0]; $tab[$i]['ID_ISSUE'] = $ro[1]; $tab[$i]['COVER_ISSUE'] = $ro[2]; $tab[$i]['ISSUE'] = $ro[3]; $tab[$i]['MONTH'] = $ro[4]; $tab[$i]['DAY'] = $ro[5]; $tab[$i]['ISSUE_TYPE'] = $ro[6]; $tab[$i]['ISSUE_TYPE_NAME'] = $ro[7]; $tab[$i]['VOLUME'] = $ro[8]; $tab[$i]['YEAR'] = $ro[9]; $i++; } } return $tab; } function GetContent($icid) { global $mysql_link; // 0 1 2 $query = "SELECT TITLE FROM ARTICLE_CONTENT WHERE IS_MAIN='Yes' AND ICID=$icid"; // ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $ro = mysql_fetch_row($re); return $ro[0]; } return $tab; } function GetListaArtykulow($id_issue) { global $mysql_link, $LANG, $ID_JOUR; $resource = mysql_query(' SELECT ICID, PG_PREFIX, PG_FROM, PG_TO, ALL_AUTHORS, FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE = ' . $id_issue . ' AND READY = "Yes" ORDER BY PG_FROM ' . getOrderOfArticle($ID_JOUR) ); if( $resource === FALSE ) return array(); $tab = array(); $i = 0; while( $ro = mysql_fetch_row($resource) ) { $tab[$i]['ICID'] = $ro[0]; $tab[$i]['TITLE'] = GetContent($ro[0]); $tab[$i]['AUTHORS'] = GetAuthorsArticle($ro[0]); $tab[$i]['PG_P'] = $ro[1]; $tab[$i]['PG_F'] = $ro[2]; $tab[$i]['PG_T'] = $ro[3]; $tab[$i]['ALL_AUTHORS'] = $ro[4]; $tab[$i]['FULLTEXT_URL'] = $ro[5]; $i++; } return $tab; } function CountLitery($litera) { global $mysql_link; $query = "SELECT DISTINCT ID_JOUR from JOUR_ISSUE"; if ($re = mysql_query($query, $mysql_link)) { $tmp = ""; while ($ro = mysql_fetch_row($re)) { $tmp .= $ro[0] . ","; } $tmp { strlen($tmp) - 1 } = " "; } $query = "SELECT Count(*) , MID(TITL.TITLE,1,1) AS LITERA FROM TITL INNER JOIN JOUR_TITL ON TITL.ID_TITL=JOUR_TITL.ID_TITL INNER JOIN JOUR ON JOUR_TITL.ID_JOUR=JOUR.ID_JOUR WHERE IS_MAIN=\"Yes\" AND JOUR.ID_JOUR in ($tmp) GROUP BY 2 HAVING LITERA=\"$litera\""; // ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $ro = mysql_fetch_row($re); return $ro[0]; } } function GetAffiliation($icid) { global $mysql_link; $query = "SELECT DISTINCT AFFILIATION.AFFILIATION FROM AFFILIATION inner join PEOP_AFFI on AFFILIATION.ID_AFFI=PEOP_AFFI.ID_AFFI INNER JOIN ARTICLE_PEOP ON PEOP_AFFI.ID_ARTICLE_PEOP=ARTICLE_PEOP.ID_ARTICLE_PEOP WHERE ICID=$icid ORDER BY NO_OF_AUTHOR ASC "; // echo "q: $query
    "; if ($re = mysql_query($query, $mysql_link)) { $tmp = ''; while ($ro = mysql_fetch_row($re)) { $tmp .= $ro[0] . "
    "; } return $tmp; //echo "affi: $tmp
    "; } } function GetKeywords($icid, $lang) { global $mysql_link; $query = "SELECT KEYWORD FROM KEYWORDS INNER JOIN ARTICLE_KEYWORD ON ARTICLE_KEYWORD.ID_KEYWORD=KEYWORDS.ID_KEYWORD WHERE ICID=$icid and ID_LANG=$lang ORDER BY SORT"; //echo "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $tmp = ''; if (mysql_num_rows($re)) { while ($ro = mysql_fetch_row($re)) { $tmp .= $ro[0] . ", "; } $tmp { strlen($tmp) - 2 } = " "; } return $tmp; } } function GetListaArtykulow_section($id_issue, $pref = '') { global $mysql_link, $ID_JOUR; if( !empty($pref) ) { $sql = "SELECT order_of_articles FROM JOUR_WWW_CSS WHERE ID_JOUR = $ID_JOUR"; //echo $sql; $query = mysql_query($sql); $row = mysql_fetch_row($query); if ($row[0] != '') { if ($row[0] == 'ASC') { $query = "SELECT ICID, PG_PREFIX,PG_FROM,PG_TO,ALL_AUTHORS,FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE=$id_issue and READY=\"Yes\" AND PG_PREFIX='" . $pref . "' ORDER BY PG_FROM $row[0]"; } if ($row[0] == 'DESC') { $query = "SELECT ICID, PG_PREFIX,PG_FROM,PG_TO,ALL_AUTHORS,FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE=$id_issue and READY=\"Yes\" AND PG_PREFIX='" . $pref . "' ORDER BY PG_FROM $row[0]"; } } else { $query = "SELECT ICID, PG_PREFIX,PG_FROM,PG_TO,ALL_AUTHORS,FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE=$id_issue and READY=\"Yes\" AND PG_PREFIX='" . $pref . "' ORDER BY PG_FROM"; } } else { $sql = "SELECT order_of_articles FROM JOUR_WWW_CSS WHERE ID_JOUR = $ID_JOUR"; // echo $sql; $query = mysql_query($sql); $row = mysql_fetch_row($query); if ($row[0] != '') { if ($row[0] == 'ASC') { $query = "SELECT ICID, PG_PREFIX,PG_FROM,PG_TO,ALL_AUTHORS,FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE=$id_issue and READY=\"Yes\" AND (PG_PREFIX IS NULL or PG_PREFIX='') ORDER BY PG_FROM $row[0]"; } if ($row[0] == 'DESC') { $query = "SELECT ICID, PG_PREFIX,PG_FROM,PG_TO,ALL_AUTHORS,FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE=$id_issue and READY=\"Yes\" AND (PG_PREFIX IS NULL or PG_PREFIX='') ORDER BY PG_FROM $row[0]"; } } else { $query = "SELECT ICID, PG_PREFIX,PG_FROM,PG_TO,ALL_AUTHORS,FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE=$id_issue and READY=\"Yes\" AND (PG_PREFIX IS NULL or PG_PREFIX='') ORDER BY PG_FROM"; } } // ECHO "$query
    "; if ($re = mysql_query($query, $mysql_link)) { $tab = array(); $i = 0; while ($ro = mysql_fetch_row($re)) { $tab[$i]['ICID'] = $ro[0]; $tab[$i]['TITLE'] = GetContent($ro[0]); $tab[$i]['AUTHORS'] = GetAuthorsArticle($ro[0]); $tab[$i]['PG_P'] = $ro[1]; $tab[$i]['PG_F'] = $ro[2]; $tab[$i]['PG_T'] = $ro[3]; $tab[$i]['ALL_AUTHORS'] = $ro[4]; $tab[$i]['FULLTEXT_URL'] = $ro[5]; $i++; } } return $tab; } function getOrderOfArticle($id_jour) { $resource = mysql_query(' SELECT order_of_articles FROM JOUR_WWW_CSS WHERE ID_JOUR = ' . $id_jour ); if( $resource === FALSE ) return 'DESC'; $row = mysql_fetch_row($resource); return $row[0]; } function GetListaArtykulow_el($id_issue) { global $mysql_link, $LANG, $ID_JOUR; $resource = mysql_query(' SELECT ICID, PG_PREFIX, PG_FROM, PG_TO, ALL_AUTHORS, FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE = ' . $id_issue . ' AND READY = "Yes" ORDER BY PG_FROM ' . getOrderOfArticle($ID_JOUR) ); if( $resource === FALSE ) return array(); $tab = array(); $i = 0; while( $ro = mysql_fetch_row($resource) ) { $tab[$i]['ICID'] = $ro[0]; $tab[$i]['TITLE'] = GetContent($ro[0]); $tab[$i]['AUTHORS'] = GetAuthorsArticle($ro[0]); $tab[$i]['PG_P'] = $ro[1]; $tab[$i]['PG_F'] = $ro[2]; $tab[$i]['PG_T'] = $ro[3]; $tab[$i]['ALL_AUTHORS'] = $ro[4]; $tab[$i]['FULLTEXT_URL'] = $ro[5]; $i++; } return $tab; } function GetListaArtykulow_section_el($id_issue, $pref = '') { global $mysql_link, $ID_JOUR; if( !empty($pref) ) $prefix = 'PG_PREFIX = "' . $pref . '"'; else $prefix = '( PG_PREFIX IS NULL OR PG_PREFIX = "" )'; $resource = mysql_query(' SELECT ICID, PG_PREFIX, PG_FROM, PG_TO, ALL_AUTHORS, FULLTEXT_URL FROM IC_ARTICLE WHERE ID_ISSUE = ' . $id_issue . ' AND READY = "Yes" AND ' . $prefix . ' ORDER BY PG_FROM ' . getOrderOfArticle($ID_JOUR) ); if( $resource === FALSE ) return array(); $i = 0; while( $ro = mysql_fetch_row($resource) ) { $tab[$i]['ICID'] = $ro[0]; $tab[$i]['TITLE'] = GetContent($ro[0]); $tab[$i]['AUTHORS'] = GetAuthorsArticle($ro[0]); $tab[$i]['PG_P'] = $ro[1]; $tab[$i]['PG_F'] = $ro[2]; $tab[$i]['PG_T'] = $ro[3]; $tab[$i]['ALL_AUTHORS'] = $ro[4]; $tab[$i]['FULLTEXT_URL'] = $ro[5]; $i++; } // print '
    '. $ro[2] . ' - ' . $ro[3] . '
    '; return $tab; } function DrawListaArt() { global $ctrl_tab, $mysql_link, $LANG, $ID_JOUR, $reprinty, $id_lang, $lan, $linia, $show_affi; print ("
    "); for ($i = 0; $i < sizeof($ctrl_tab['LISTA_ART']); $i++) { $str = ""; if ($ctrl_tab['LISTA_ART'][$i]['PG_P']) { $str = $ctrl_tab['LISTA_ART'][$i]['PG_P']; } $str .= $ctrl_tab['LISTA_ART'][$i]['PG_F']; if ($ctrl_tab['LISTA_ART'][$i]['PG_T']) { $str .= "-" . $ctrl_tab['LISTA_ART'][$i]['PG_T']; } print (" "); /* Pliki PDF */ print (" "); } print ("
    "); $y = mysql_query(" SELECT ARTICLE_CONTENT.TITLE FROM ARTICLE_CONTENT INNER JOIN LANO ON (ARTICLE_CONTENT.ID_LANG = LANO.ID_LANG) WHERE ARTICLE_CONTENT.ICID = " . $ctrl_tab['LISTA_ART'][$i]['ICID'] . " AND LANO.ABBREV_ISO = '" . $_SESSION['LANGJOUR'] . "' AND LANO.ID_REF = 3 "); // print 'test
    '; if (mysql_num_rows($y) > 0) { $yw = mysql_fetch_row($y); $la = $yw[0]; } else { $u = mysql_query("SELECT ARTICLE_CONTENT.TITLE FROM ARTICLE_CONTENT WHERE ARTICLE_CONTENT.ICID = " . $ctrl_tab['LISTA_ART'][$i]['ICID'] . " AND ARTICLE_CONTENT.IS_MAIN = 'Yes'"); $uw = mysql_fetch_row($u); $la = $uw[0]; } $co_pok = sprawdz_jezyk($ctrl_tab['LISTA_ART'][$i]['ICID'], $lan); if ($co_pok == 'opis_htm_oth') { DrawArtykul_oth($ctrl_tab['LISTA_ART'][$i]['ICID']); } else { DrawArtykul($ctrl_tab['LISTA_ART'][$i]['ICID']); } //moje rzeczy print ("
    IC™ Value: " . przelicz_artykul($ctrl_tab['LISTA_ART'][$i]['ICID'], 1) . ""); if(GetArticleDOI($ctrl_tab['LISTA_ART'][$i]['ICID'], $warunek='') != "") { echo "
    DOI: ".GetArticleDOI($ctrl_tab['LISTA_ART'][$i]['ICID'], $warunek='');} //echo"
    ICID: ".$ctrl_tab['LISTA_ART'][$i]['ICID'].""; print ("
    " . pobierztlumaczenie(18, $LANG, $ID_JOUR) . ""); $plikPDF = "/home/copernicus/docs/Journals/PDF/" . $ctrl_tab['LISTA_ART'][$i]['ICID'] . ".pdf"; // echo "$plikPDF\n"; if ($ID_JOUR != 7292) { // $plikPDF = 'test.pdf'; if (file_exists($plikPDF) == true) { $JOUR_web_page = displayURL($JOUR_web_page); print ("  |  " . pobierztlumaczenie(19, $LANG, $ID_JOUR) . " "); print (round(filesize($plikPDF) / 1024)); print (" KB"); } // jezeli nie ma dostepnego artykulu wyswietl "dostepny wkrotce" - dla Bartka if (file_exists($plikPDF) != true) { $JOUR_web_page = displayURL($JOUR_web_page); print ("  |  " . pobierztlumaczenie(19, $LANG, $ID_JOUR) . " (AVAILABLE SOON)"); } } /* koniec pliki PDF */ /* pliki w formacie HTML */ // $plikHTML = "/home/copernicus/docs/Journals/HTML/" . $ctrl_tab['LISTA_ART'][$i]['ICID'] . ".html"; // echo "$plikPDF\n"; if (file_exists($plikHTML) == true) { print ("  |  " . pobierztlumaczenie(182, $LANG, $ID_JOUR) . " "); print (round(filesize($plikHTML) / 1024)); print (" KB"); } if (empty($ctrl_tab['LISTA_ART'][$i]['FULLTEXT_URL']) === false) { print ("  |  " . pobierztlumaczenie(19, $LANG, $ID_JOUR) . " "); } //wywalone specjalnie dla Bartka if (jeststatart($ctrl_tab['LISTA_ART'][$i]['ICID'], $ID_JOUR) == true) { if($ID_JOUR != 9765) { print ("  |  " . pobierztlumaczenie(101, $LANG, $ID_JOUR) . " "); } } /* koniec pliki w formacie HTML */ $cytowania = scholar("icid", $ctrl_tab['LISTA_ART'][$i]['ICID'], $txt = false, $timeout = 5, $classlink = 'linkczerwony'); if ($cytowania[0] > 0) { print ("  |  " . $cytowania[1] . ""); } echo ""; if ($reprinty == 1) { print ("" . pobierztlumaczenie(277, $LANG, $ID_JOUR) . " "); } echo "
    "; print ("
     "); } function DrawListaArt_el() { global $ctrl_tab, $mysql_link, $LANG, $ID_JOUR, $lan; echo '
    '; for ($i = 0; $i < sizeof($ctrl_tab['LISTA_ART']); $i++) { $str = ""; if ($ctrl_tab['LISTA_ART'][$i]['PG_P']) { $str = $ctrl_tab['LISTA_ART'][$i]['PG_P']; } $str .= $ctrl_tab['LISTA_ART'][$i]['PG_F']; if ($ctrl_tab['LISTA_ART'][$i]['PG_T']) { $str .= "-" . $ctrl_tab['LISTA_ART'][$i]['PG_T']; } // var_dump( $ctrl_tab['LISTA_ART'][$i]['PG_T']); // print_r( $ctrl_tab['LISTA_ART'][$i]['PG_P']); // print_r( $ctrl_tab['LISTA_ART'][$i]['PG_F']); // print_r( $ctrl_tab['LISTA_ART'][$i]['PG_T']); $a = mysql_query(" SELECT ARTICLE_DATE.`YEAR`, ARTICLE_DATE.`MONTH`, ARTICLE_DATE.`DAY`, ARTICLE_DATE.ICID FROM ARTICLE_DATE WHERE ARTICLE_DATE.ID_DATE_KIND = 5 AND ARTICLE_DATE.ICID = " . $ctrl_tab['LISTA_ART'][$i]['ICID'] . ""); /* echo " SELECT ARTICLE_DATE.`YEAR`, ARTICLE_DATE.`MONTH`, ARTICLE_DATE.`DAY`, ARTICLE_DATE.ICID FROM ARTICLE_DATE WHERE ARTICLE_DATE.ID_DATE_KIND = 5 AND ARTICLE_DATE.ICID = " . $ctrl_tab['LISTA_ART'][$i]['ICID'] . ""; */ $aw = mysql_fetch_row($a); $data_pub = "" . $aw[0] . "-" . $aw[1] . "-" . $aw[2] . ""; $data_pub = "" . $aw[0] . "-" . $aw[1] . "-" . $aw[2] . ""; echo '"); // print_r($ctrl_tab['LISTA_ART'][$i]['ICID']); print (" "); } print ("
    '; if (!empty($data_pub) && $data_pub != '0000-00-00' && $data_pub != '--' && $data_pub != '0-0-0') { echo "Published:
    " . $data_pub . ""; } print ("
    "); $co_pok = sprawdz_jezyk($ctrl_tab['LISTA_ART'][$i]['ICID'], $lan); // echo $co_pok; if ($co_pok == 'opis_htm_oth') { DrawArtykul_oth($ctrl_tab['LISTA_ART'][$i]['ICID']); } else { DrawArtykul($ctrl_tab['LISTA_ART'][$i]['ICID']); // DrawArtykul_oth($ctrl_tab['LISTA_ART'][$i]['ICID']); } print ("
     IC™ Value: " . przelicz_artykul($ctrl_tab['LISTA_ART'][$i]['ICID'], 1) . ""); print ("
     " . pobierztlumaczenie(18, $LANG, $ID_JOUR) . ""); $plikPDF = "/home/copernicus/docs/Journals/PDF/" . $ctrl_tab['LISTA_ART'][$i]['ICID'] . ".pdf"; // echo "$plikPDF\n"; if( $ID_JOUR != 7292 && file_exists($plikPDF) ) { $JOUR_web_page = displayURL($JOUR_web_page); print ("  |  " . pobierztlumaczenie(19, $LANG, $ID_JOUR) . " "); print (round(filesize($plikPDF) / 1024)); print (" KB"); } $plikHTML = "/home/copernicus/docs/Journals/HTML/" . $ctrl_tab['LISTA_ART'][$i]['ICID'] . ".html"; if (file_exists($plikHTML) == true) { print ("  |  " . pobierztlumaczenie(182, $LANG, $ID_JOUR) . " "); print (round(filesize($plikHTML) / 1024)); print (" KB"); } if( empty($ctrl_tab['LISTA_ART'][$i]['FULLTEXT_URL']) === false ) { print ("  |  " . pobierztlumaczenie(19, $LANG, $ID_JOUR) . " "); } if (jeststatart($ctrl_tab['LISTA_ART'][$i]['ICID'], $ID_JOUR) == true) { print ("  |  " . pobierztlumaczenie(101, $LANG, $ID_JOUR) . " "); } $cytowania = scholar("icid", $ctrl_tab['LISTA_ART'][$i]['ICID'], $txt = false, $timeout = 5, $classlink = 'linkczerwony'); if ($cytowania[0] > 0) { print ("  |  " . $cytowania[1] . ""); } print ("
     "); } $rozwin = "s7"; session_start(); session_register("ctrl_tab", "init"); //print_r($_SESSION); $index = 2; include ("mysql.php"); $a = mysql_query(" SELECT ELECTRONIC FROM JOUR WHERE ID_JOUR = " . $ID_JOUR . " LIMIT 1"); $aw = mysql_fetch_row($a); $electronic = $aw[0]; $yy = mysql_query(" SELECT SELL_REPRINT, SHOW_AFFI FROM PUBL_PREFERENCES_EXTENDED WHERE ID_JOUR = " . $ID_JOUR . " LIMIT 1"); $yyw = mysql_fetch_row($yy); $reprinty = $yyw[0]; $show_affi = $yyw[1]; $u = mysql_query(" SELECT LANO.ID_LANG FROM LANO WHERE LANO.ID_REF = 3 AND LANO.ABBREV_ISO = '" . mysql_real_escape_string($_SESSION['LANGJOUR']) . "'"); $uw = mysql_fetch_row($u); $lan = $uw[0]; //echo $lan; $t = mysql_query(" SELECT LANO.ABBREV_ISO FROM LANG INNER JOIN LANO ON (LANG.ID_LANG = LANO.ID_LANG) WHERE LANG.ID_JOUR = " . $ID_JOUR . " AND LANG.ABSTRACT = 'Yes' AND LANO.ID_REF = 3 AND LANG.`ID_LANG` <> 3 LIMIT 0,1"); $tw = mysql_fetch_row($t); $id_lang = $tw[0]; if( isset($_GET['level']) ) $level = (int) $_GET['level']; else $level = (int) $_POST['level']; if( isset($_GET['ICID']) ) $icid = (int) $_GET['ICID']; else $icid = (int) $_POST['icid']; if( isset($_GET['id_issue']) ) $id_issue = (int) $_GET['id_issue']; else $id_issue = (int) $_POST['id_issue']; if( isset($_POST['akcja']) && (strcmp($_POST['akcja'], 'comm') == 0) ) { $dzis = date("Y-m-d"); $godz = date("H:i:s"); $zapis = mysql_query(" INSERT INTO ARTICLE_COMMENTS ( ICID, NAME, COMMENT, DZIEN, CZAS ) VALUES ( '" . $icid . "', '" . addslashes(czyscHTML($_POST[author])) . "', '" . addslashes(czyscHTML($_POST[mess])) . "', '" . $dzis . "', '" . $godz . "' )"); } if( !isset($init) ) { session_start(); $ctrl_tab = array(); $init = "Yes"; $ctrl_tab['OD'] = "0"; $ctrl_tab['ILE'] = "20"; $ctrl_tab['LITERA'] = "A"; $ctrl_tab['ID_JOURNAL'] = ''; $ctrl_tab['ID_ISSUE'] = ''; $ctrl_tab['VOL_NO'] = ''; $ctrl_tab['LE_COUNT'] = ''; $ctrl_tab['TAB_LE'] = GetLitery(); $ctrl_tab['TAB_LE'][sizeof($ctrl_tab['TAB_LE'])] = "Other"; $ctrl_tab['ICID'] = ''; $ctrl_tab['JOUR'] = ''; $ctrl_tab['LISTA_TOMOW'] = ''; $ctrl_tab['LISTA_WYDAN'] = ''; $ctrl_tab['LISTA_ART'] = ''; $ctrl_tab['ARTIC'] = ''; $ctrl_tab['ISSUE'] = ''; $ctrl_tab['YEAR'] = ''; $ctrl_tab['ISSUE_INFO'] = ''; $ctrl_tab['LITERA_POP'] = ""; $ctrl_tab['TITLE'] = ''; $ctrl_tab['ID_PUBL'] = ''; $ctrl_tab['PGAGES'] = ''; session_register("ctrl_tab", "init"); } if( $od ) $ctrl_tab['OD'] = $od; if( $le ) $ctrl_tab['LITERA'] = $le; if( $ctrl_tab['LITERA_POP'] != $ctrl_tab['LITERA'] ) $ctrl_tab['LE_COUNT'] = CountLitery($ctrl_tab['LITERA']); if( $ID_JOUR ) { $ctrl_tab['ID_JOURNAL'] = $ID_JOUR; if( $icid ) { $sql_str = mysql_query(' SELECT * FROM IC_ARTICLE WHERE ICID = ' . $icid ); if( mysql_num_rows($sql_str) > 0 ) $ctrl_tab['PGAGES'] = mysql_result($sql_str, 0, "PG_FROM") . "-" . mysql_result($sql_str, 0, "PG_TO"); } } if( $vol_no ) $ctrl_tab['VOL_NO'] = $vol_no; if( $id_issue ) $ctrl_tab['ID_ISSUE'] = $id_issue; if( isset($_GET['icid']) ) $icid = $_GET['icid']; if( $icid ) $ctrl_tab['ICID'] = $icid; if( $range && !$direction ) $rg = $range; if( $level == 5 ) { $resource = mysql_query(' SELECT * FROM JOUR_ISSUE INNER JOIN `IC_ARTICLE` USING( ID_ISSUE ) WHERE JOUR_ISSUE.ID_JOUR = ' . $ID_JOUR . ' AND IC_ARTICLE.ICID = ' . $icid ); if( mysql_num_rows($resource) == 0 ) { header("Location: index.php"); exit; } } include ("header.php"); //echo "Nowe Streszczennia"; if( $_GET['id_issue'] != '' || $_GET['icid'] != '' || $_GET['ICID'] != '') { DrawHeader($level); } else { echo '

    ' . pobierztlumaczenie(34, $LANG, $ID_JOUR) . '
    '; } session_register("ctrl_tab", "init"); include ("stopka.php"); $daneza = "?level=" . $level . "&ICID=" . $icid . "&id_issue=" . $id_issue . ""; ?>