( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$videouser = $_SESSION['user_id'];
if (empty($page)){
$page = 0;
}
$record = 100;
if ($Delnews==$admin_yes) {
$db->delnews($newsid,$VideoPath);
}
if (!empty($editnews)) {
$db->editnews($sold,$comment,$productid);
}
if (!empty($DP1)) {
$db->del_Video($newsid,$VideoPath);
}
$result = $db->getproducts($page,$record,$catid);
?>
<?php
if (empty($result)) {
?>You have not Created a Batch for these products yet<?php }
?>
<?php
if (!empty($result)) {?>
<strong>
<?php $nameinfoa = $db->productToBatch();
if (!empty($nameinfoa)){
while (list($key,$val)=each($nameinfoa)) {
$batchidz = stripslashes($val["batchid"]);
$catalognamez = stripslashes($val["catalogname"]);
if ($catid==$batchidz){?><?php
print $catalognamez;
?><?php }
}
}
?> Products </strong><br />
<strong> Product Code</strong> <strong>Batch Name </strong> <strong>Batch ID</strong><br />
<?php foreach ($result as $key => $val) {
$newsid = stripslashes($val["newsid"]);
$catalogid = stripslashes($val["catalogid"]);
$productid = stripslashes($val["productid"]);
$fony = stripslashes($val["fon"]);
$batchidp = stripslashes($val["batchid"]);
?>
<?php $productid = $db->base64url_encode($productid); ?>
<?php print "$fony"; ?> <?php $nameinfoa = $db->productToBatch();
if (!empty($nameinfoa)){
while (list($key,$val)=each($nameinfoa)) {
$batchid = stripslashes($val["batchid"]);
$catalognamey = stripslashes($val["catalogname"]);
if ($batchidp==$batchid){?><?php
print text_limit($catalognamey,5);
?><?php }
}
}
?> <?php print "$batchidp"; ?>
<br /><?php
}
}
?>