119 lines
4.4 KiB
HTML
119 lines
4.4 KiB
HTML
<div class="row featurette">
|
||
|
||
<?php
|
||
$opism=array("pietro"=>"piętro","parter"=>"parter","podziemie"=>"podziemie","antresola"=>"antresola");
|
||
$fnumer=$_GET['fnumer'];
|
||
$fpietro=$_GET['fpietro'];
|
||
$opistr="";
|
||
$pierwsze=true;
|
||
if( file_exists("sklepy/sklepy.txt") )
|
||
{
|
||
$arr=file("sklepy/sklepy.txt");
|
||
$l=0;
|
||
while(list($key,$val) = each($arr))
|
||
{
|
||
list($wersja,$pietro,$numer,$nazwa,$tel,$branza, $branzao,$opis, $www) = explode("#",$val);
|
||
if((trim($pietro)==trim($fpietro))&&(trim($numer)==trim($fnumer)))
|
||
{
|
||
if(file_exists("sklepy/$pietro$numer.jpg"))
|
||
$zdjecie1=$pietro.$numer.".jpg";
|
||
else
|
||
$zdjecie1="brak.jpg";
|
||
echo "<div class=\"col-md-7 col-md-push-4\" ><div style=\"padding-left:20px;\">";
|
||
if ($pierwsze)
|
||
echo "<h2 class=\"featurette-heading\">Stoisko $numer<span class=\"text-muted\">/".$opism[$fpietro]."</span><br>$nazwa</h2>";
|
||
echo "<p class=\"lead\">$branza/$branzao</p>";
|
||
echo "<p class=\"lead\">$tel <a href='http://$www' target='_blank'>$www</a></p>";
|
||
echo "</div></div>";
|
||
if ($pierwsze)
|
||
echo "<div class=\"col-md-4 col-md-pull-7 \"><div style=\"margin-left:20px;\"><a href='thumb.php?url=sklepy/$zdjecie1&pheight=600' title='Stoisko ".$opism[$fpietro]." $fnumer - $nazwa' data-gallery><img class=\"featurette-image img-responsive center-block imggaleria imgduzy\" src=\"sklepy/$zdjecie1\" alt=\"Stoisko $numer/".$opism[$fpietro]." - $nazwa\"></a></div></div>";
|
||
$pierwsze=false;
|
||
$opistr.=$opis." ";
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
echo "</div><div class=\"row featurette\"><div class=\"col-md-12\">";
|
||
|
||
$obr="";
|
||
if($fnumer=="")
|
||
{
|
||
$fnumer="";
|
||
$fpietro="gch";
|
||
}
|
||
for($i=1;$i<30;$i++)
|
||
{
|
||
//echo "sklepy/".$fpietro.$fnumer.".".$i.".jpg";
|
||
if(file_exists("sklepy/".$fpietro.$fnumer.".".$i.".jpg"))
|
||
{
|
||
$zdjecie1=$fpietro.$fnumer.".".$i.".jpg";
|
||
$obr .= "<a href='thumb.php?url=sklepy/$zdjecie1&pheight=600' title='Stoisko ".$opism[$fpietro]." $fnumer' data-gallery><img src='thumb.php?url=sklepy/$zdjecie1&pheight=120' alt='Stoisko ".$opism[$fpietro]." $fnumer' class='imggaleria'></a>\n";
|
||
}
|
||
}
|
||
echo "<p class=\"lead\"><br>$obr</p>";
|
||
if(trim($opistr)!="") echo "<p class=\"lead\">W ofercie: $opistr</p>";
|
||
?>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row featurette">
|
||
<div class="col-md-12"> <div id='plan_plan' style='margin-top:50px;'></div>
|
||
<?
|
||
//include("tplan.htm");
|
||
$opis=array("pietro"=>"Pi%C4%99tro","parter"=>"Parter","podziemie"=>"Podziemie","antresola"=>"Antresola");
|
||
//echo daj_plan($fpietro,$fnumer,"",$opis[$fpietro]);
|
||
?>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
$(window).on("load resize",function(){
|
||
sc=1;
|
||
w=$("#plan_plan").width();
|
||
if(w<1400) sc = w/1200;
|
||
$.ajax({url: "plan.php?ptr=<? echo $fpietro; ?>&nr=<? echo $fnumer; ?>&id=&op=<? echo $opis[$fpietro]; ?>&sc="+sc, success: function(result){
|
||
$("#plan_plan").html(result);
|
||
$('[data-toggle="popover"]').popover();
|
||
$("#<? echo $fpietro."_".str_replace(",","-",$fnumer) ?>").popover('show');
|
||
}});
|
||
|
||
|
||
});
|
||
</script>
|
||
|
||
<div id="blueimp-gallery" class="blueimp-gallery" data-use-bootstrap-modal="false">
|
||
<!-- The container for the modal slides -->
|
||
<div class="slides"></div>
|
||
<!-- Controls for the borderless lightbox -->
|
||
<h3 class="title"></h3>
|
||
<a class="prev">‹</a>
|
||
<a class="next">›</a>
|
||
<a class="close">×</a>
|
||
<a class="play-pause"></a>
|
||
<ol class="indicator"></ol>
|
||
<!-- The modal dialog, which will be used to wrap the lightbox content -->
|
||
<div class="modal fade">
|
||
<div class="modal-dialog">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<button type="button" class="close" aria-hidden="true">×</button>
|
||
<h4 class="modal-title"></h4>
|
||
</div>
|
||
<div class="modal-body next"></div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-default pull-left prev">
|
||
<i class="glyphicon glyphicon-chevron-left"></i>
|
||
Poprzednie
|
||
</button>
|
||
<button type="button" class="btn btn-primary next">
|
||
Następne
|
||
<i class="glyphicon glyphicon-chevron-right"></i>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|