<div class="menudcontainer">
<?php if ($pagename=='list-items.php') { ?>

<div class="divslideshow">
<?php
if ($pagename=='list-items.php') {
$id = $catid; 
$submitid = "c".$catid; 
$photovar = "category_id";
echo "$adminuploadcp <span class='titles1'>$cat</span>";
include 'add-photo.php'; }
?>	
<hr>

<div id="contentlisting">
<ul class="nospace">      
<?php
$result40 = $mysqli->query("SELECT * FROM extras WHERE type=0 AND $photovar='$catid' GROUP BY insert_id ORDER BY priority");
while($row = $result40->fetch_array()) {
$photoid=$row['insert_id'];
$pname=$row['name'];
$ppriority=$row['priority'];
?>
<?php include 'photo.php';?>
<?php } ?>
</ul>
</div>  
<div class="cleared"></div>  

</div>
<?php } ?>

<div class="text-center"> 
<a href="javascript:history.go(-1);"><img src="img/back.png" alt="back" class="arrows"></a> &nbsp; <a href="#top"><img src="img/top.png" alt="top" class="arrows"></a> 
</div>

<div class="floatright linkf">
<a href="http://www.webindexer.net" target="_blank">Copyright © WebIndexer</a>
</div>

</div>
