G:
/
PleskVhosts
/
seeonsoft.com
/
hp.thefalconunited.com
/
up file
home
<?php $pkgid = $_GET['pkgid']; include('config.php'); ?> <head> <meta charset="utf-8"> </head> <style> @page { size: A4; margin: 13px !important; } @media print { @page { margin: 1cm; font-family:"Century Gothic"; } #footer { position:fixed; margin-left:-0.75%; bottom:0; } body {-webkit-print-color-adjust: exact; page-break-after:always;zoom : 95%;} .noprint {display:none;} #tables { padding-left:100px; padding-right:100px; } } @media print { table { page-break-inside: auto; } tr{ page-break-inside: avoid; page-break-after: auto; } img-container{ page-break-inside: avoid; page-break-after: auto; } /* #sme{display: block; width: 100%; height: 100%;page-break-inside: avoid;} */ } @font-face { font-family: myFirstFont; src: url(centurygothic.woff); } @font-face { font-family: myFirstFontbold; src: url(centurygothic_bold.ttf); font-weight: bold; } div { font-family: myFirstFont; } * { font-family: myFirstFont; } @media print { .noprint {display:none;} } @media screen { ... } --> </style> <script> function myFunction() { window.print(); } </script> <div class="box" style=" font-size:13px;padding-left:20px; padding-right:20px; margin:20px; "> <table width="100%" style="font-family:'Century Gothic';"> <thead> <tr> <td align="center"><img src="images/dmc logo.PNG" style="margin:20px;" ></td> </tr> <tr> <th> <hr style="height:5px; color:#F6921E; background-color:#F6921E;"><br> </th> </tr> </thead> <tfoot> <tr> <td width="100%"> <table width="100%" border="0"> <tr> <td colspan="4" align="center"><hr style="height:5px; color:#000; background-color:#000;"><strong>www.thefalconexpeditions.com</strong> </td> </tr> </table> </tfoot> <?php $result = $js->prepare('SELECT * FROM `package` WHERE pkgid = :pkgid '); $result->execute(array(':pkgid' => $pkgid)); while($row = $result->fetch(PDO::FETCH_ASSOC)) { $pkgid = $row['pkgid']; $pkgcode = $row['pkgcode']; $pkgname = $row['pkgname']; } ?> <tbody id="container"> <tr> <td> <h3 align="center" style=""><?php echo $pkgname;?> (<?php echo $pkgcode?>)</h3> <?php $x=1; $results = $js->prepare('SELECT * FROM `itinerary` WHERE pkgid =:pkgid '); $results->execute(array(':pkgid' => $pkgid)); while($rows = $results->fetch(PDO::FETCH_ASSOC)) { $daytitle = $rows['daytitle']; $days = strip_tags($rows['daydetails']); $high = strip_tags(strtoupper($rows['highlights'])); /*echo "<p style='background-color:#738D74; color:#fff; padding:10px; font-family:Century Gothic;'><b>Day ".$x." : ".strip_tags(strtoupper($daytitle)). "</b></p><p align='justify' style='margin-top:-10px; line-height:30px; font-family:Century Gothic; '>".strip_tags($days)."</p>";*/ echo "<p style='background-color:#738D74; color:#fff; padding:10px; font-family:Century Gothic;'><b>Day ".$x." : ".strip_tags(strtoupper($daytitle)). "</b></p><p align='justify' style='margin-top:-10px; line-height:30px; font-family:Century Gothic; '>".nl2br($days)."</p>"; echo "<h5 style='background-color:#F6921E; padding:10px; color:#fff; '>HIGHLIGHTS : $high</h5>"; ?> <p align="center"> <?php $resultsi = $js->prepare('SELECT * FROM `packageimages` WHERE package =:pkgid AND days = :x ORDER BY `id` ASC '); $resultsi->execute(array(':pkgid' => $pkgid, ':x' => $x)); while($rowsi = $resultsi->fetch(PDO::FETCH_ASSOC)) { $file = $rowsi['file']; ?> <img src="upload/package/<?php echo $pkgid?>/<?php echo $x?>/<?php echo $file?>" height="100" width="150" style="padding:10px;" / > <?php } ?> </p> <?php $x++; } ?> </td></tr> </tbody> </table> <div class="noprint"> <p align="center"> <a href="#" onclick="myFunction()" style="border:5px solid; background-color:#093; color:#FFF; padding:8px; text-decoration:none;">PRINT</a> <a href="view_packages.php" style="border:5px solid; background-color:#F00; color:#FFF; padding:8px; text-decoration:none;">CLOSE</a> </p> </div> </div>