查看文件: banner_1.php
大小: 1.87 KB
类型: application/octet-stream
<div class="index_slider"> <? if($homebaneer){?> <div class="container"> <? }?> <div id="myCarousel<? echo $this_xid;?>" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <? $thisraid=1; $f=0; for($i=0;$i<count($raid);$i++){ if($thisraid==$raid[$i] && $this_xid==$xid[$i]){ ?> <li data-target="#myCarousel<? echo $this_xid;?>" data-slide-to="<?= $f ;?>" <? if($f==0){?> class="active" <? }?>></li> <? $f++; } }?> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <? $f=0; for($i=0;$i<count($raid);$i++){ if($thisraid==$raid[$i] && $this_xid==$xid[$i]){ ?> <div class="<? echo ($f==0)?"item active":"item" ;?>" > <a href="<?= ($link[$i]=="")?"#":$link[$i] ; ?>" target="<?= $linktag[$i] ; ?>"> <img src="<? echo $webimagepath.$img[$i].".".$imgext[$i] ?>" alt="<?= $doc[$i];?>" width="960" height="267"> </a> <div class="carousel-caption"> <h3><?= $doc[$i];?></h3> <? /*<p>The atmosphere in Chania has a touch of Florence and Venice.</p> */ ?> </div> </div> <? $f++; } } ?> </div> <!-- Left and right controls --> <a class="left carousel-control" href="#myCarousel<? echo $this_xid;?>" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="right carousel-control" href="#myCarousel<? echo $this_xid;?>" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> <? if($homebaneer){?> </div> <? }?> </div> <? $rstop=1; ?>
保存
取消
返回文件列表