Get rid of separate print pages
Those should be handled by CSS.
This commit is contained in:
@@ -1,4 +1 @@
|
||||
<a href="mainkrk.php?lang=en">Homepage KRK</a> ¦<a href="mainkrk.php?page=kontakt&lang=en">Contact</a> ¦<a href="http://www.rogaining.cz/2novinky.php" target="_blank">Web CAR</a>
|
||||
¦<a href="/krk/print.php?page=<?php echo "$_REQUEST[page]"; if ($_GET['lang']) {
|
||||
echo "&lang=$_GET[lang]";
|
||||
} ?>" target="_blank">Print</a>
|
||||
@@ -2,4 +2,3 @@
|
||||
¦<a href="http://www.caes.cz" target="_blank">Web ČAES</a>
|
||||
¦<a href="/krk/?page=krk_vnitro" target="_blank">Info pro členy KRK</a>
|
||||
¦<a href="pages/stanovy_krk.pdf" target="_blank">Stanovy KRK</a>
|
||||
¦<a href="/krk/print.php?page=<?php echo htmlspecialchars($page); ?>" target="_blank">Verze pro tisk</a>
|
||||
|
||||
@@ -19,5 +19,4 @@
|
||||
<li><a href="/seep" target="_blank">"Seeking a Partner"</a></li><br>
|
||||
<!-- <li><a href="mainkrk.php?page=mcr_2009/upoutavka">Sezona 2007</a></li>
|
||||
-->
|
||||
<li><a href="/krk/print.php?page=<?php echo "$_REQUEST[page]"; ?>&lang=de" target="_blank">Drucken</a></li><br>
|
||||
<a href="http://www.rogaining.cz/2novinky.php" target="_blank"><img src="./images/car.gif" alt="Logo ČAR"></a>
|
||||
<a href="http://www.rogaining.cz/2novinky.php" target="_blank"><img src="./images/car.gif" alt="Logo ČAR"></a>
|
||||
|
||||
26
print.css
26
print.css
@@ -1,26 +0,0 @@
|
||||
a img{border:none;}
|
||||
body{font-family:serif;color:#000000;}
|
||||
ul{padding:0em 0em 0em 1.5em;margin:0;}
|
||||
h4{font-size:1.3em;margin:0;padding:0;}
|
||||
h2{font-size:1.3em;font-variant:small-caps;margin:0;padding:0;}
|
||||
h1{font-size:1.7em;font-variant:small-caps;margin:0;padding:0;}
|
||||
table, td{border:1px solid #2E3436;}
|
||||
table{width:100%;}
|
||||
.imgleft{float:left;}
|
||||
.nadpis-galery{font-size:1.9em;font-variant:small-caps;font-weight:bold;margin:0;padding-bottom:0.5em;}
|
||||
.subnadpis-galery{font-size:1.1em;font-variant:small-caps;font-weight:bold;margin:0;padding-top:0.5em;}
|
||||
.text-galery{padding-top:0.5em;}
|
||||
.center{text-align:center;}
|
||||
.container{margin:1em auto;border:0;}
|
||||
.dia{margin:5px;width:165px;height:165px;border:1px solid #ddd;border-collapse:collapse;text-align:center;vertical-align:middle;background:#eee url('/images/sfondo.gif') repeat-x;font-size:0.9em;}
|
||||
.dia img{display:block;margin:auto;}
|
||||
.table-inside, .td-inside{border:none !important;}
|
||||
.table-no-border td{border:none !important;vertical-align:top !important;}
|
||||
.table-bezky td{border:none;font-size:0.9em;}
|
||||
.table-bezky{width:80%;border:1px solid #000000;}
|
||||
.table-bezky td:first-child{width:50%;}
|
||||
.table-bezky td:first-child+td{width:30%;}
|
||||
.table-bezky td:first-child+td+td{width:20%;}
|
||||
#ziel3 h6{margin:0 0 0.5em 0;}
|
||||
.margin-05{margin-top:-0.5em;}
|
||||
pre{width:100%;overflow:auto;}
|
||||
56
print.php
56
print.php
@@ -1,56 +0,0 @@
|
||||
<?php
|
||||
$lang = empty($_GET['lang']) ? 'cs' : $_GET['lang'];
|
||||
$page = $_GET['page'] ?? '';
|
||||
?>
|
||||
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="/krk/print.css" type="text/css">
|
||||
<link type="image/png" href="/images/logo_krk16.png" rel="shortcut icon">
|
||||
<title>Tisk</title>
|
||||
<script type="text/javascript">
|
||||
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
try {
|
||||
var pageTracker = _gat._getTracker("UA-10060558-3");
|
||||
pageTracker._trackPageview();
|
||||
} catch(err) {}</script>
|
||||
</head>
|
||||
<body><!-- onload="window.print()"-->
|
||||
<div class="main">
|
||||
<?php
|
||||
$escaped_page = str_replace([')', '(', '\\', '"', "\'", ';', '{', '}', '$', '[', ']', '<', '>'], '', $page);
|
||||
if ($page) {
|
||||
if ($page == 'cestopisy') {
|
||||
include './pages/cestopisy/cestopisy.php';
|
||||
} elseif ($page == 'clanky') {
|
||||
include './pages/clanky/clanky.php';
|
||||
} elseif ($page == 'akce_ob') {
|
||||
include './pages/akce_ob/akce_ob.php';
|
||||
} elseif ($page == 'akce_litvinov') {
|
||||
include './pages/akce_litvinov/akce_litvinov.php';
|
||||
} elseif ($page == 'ski_krusnohori') {
|
||||
include './pages/ski_krusnohori/ski_krusnohori.php';
|
||||
} elseif ($page == 'zakonceni_2008') {
|
||||
include './pages/zakonceni_2008/zakonceni_2008.php';
|
||||
} elseif ($LANG === 'cs' && file_exists("pages/$escaped_page.php")) {
|
||||
include "./pages/$escaped_page.php";
|
||||
} elseif (file_exists("pages/$escaped_page-$lang.php")) {
|
||||
include "./pages/$escaped_page-$lang.php";
|
||||
} else {
|
||||
include '../pages/404.php';
|
||||
}
|
||||
} else {
|
||||
if ($lang === 'cs') {
|
||||
include './pages/krk_default.php';
|
||||
} else {
|
||||
include './pages/krk_default-en.php';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user