<?php include 'sets.php';?>
<?php
$superuser="0";
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Webadmin <?php echo $domain ?></title>
<?php include 'codes.php';?>
</head>
<body>

<?php include 'navbar.php';?>
    
<div class="container">
<div class="frame">
<div class="frametitles flist">
<a href="list-itemsall.php"><?php echo $adminitems ?></a>

<?php
$result2 = $mysqli->query("SELECT * FROM items WHERE lang_id=$lang");
$rows = mysqli_num_rows($result2);
?>
 (<?php echo $rows ?>)
<div class="floatright"><a href="add-item.php?catid=<?php echo $catid?>"><img src="img/add.png" alt="<?php echo $adminadditem ?>" title="<?php echo $adminadditem ?>"></a></div>
</div>
<div class="framein">

<?php
include ('pagination.php'); 

$result = $mysqli->query("SELECT * FROM items WHERE lang_id=$lang ORDER BY priority");
while($row = $result->fetch_array()) {
$count++;
$id=$row['insert_id'];
$submitid=$row['insert_id'];
$lang_id=$row['lang_id'];
$category_id=$row['category_id'];
$catid=$row['category_id'];
$section_id=$row['section_id'];
$secid=$row['section_id'];
$name=$row['name'];
$description=$row['description'];
$details=$row['details'];
$text=$row['text'];
$code=$row['code'];
$url=$row['url'];
$email=$row['email'];
$script=$row['script'];
$price=$row['price'];
$offerprice=$row['offerprice'];
$weight=$row['weight'];
$unit=$row['unit'];
$image=$row['image'];
$file=$row['file'];
$new=$row['new'];
$available=$row['available'];
$promote=$row['promote'];
$size=$row['size'];
$color=$row['color'];
$showpage=$row['showpage'];
$publish=$row['publish'];
$priority=$row['priority'];
$date=$row['date'];
?> 

<strong><?php echo $id ?></strong> &nbsp;  <?php echo $name ?> <br>

<?php } ?>
      
<div class="divpaginate">
<?php include 'paginate.php';?>
</div>
      
</div>
</div>
</div>

<?php include 'menudown.php';?>

</body>
</html>