( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?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);
?>
<div style="padding:10px;">
<?php /*?><?php
if (empty($result)) {
header('Location: ?mode=cate&msg=You need to Create a Batch firt to view Products'); }?><?php */?>
<?php
if (empty($result)) {
?>
<br />
<br />
<br />
<span id="buttoned"><strong> You have not Created a Batch for your products yet. <a href="?mode=cate" class="formbutton">Click here to get started </a></strong> </span><br />
<br />
<br />
<?php }
?>
<table width="650" height="600" border="0" cellpadding="2" cellspacing="1" >
<tr>
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="39%" align="left"> <?php
if (!empty($result)) {?>
<span id="buttoned"><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></span></td>
<td width="28%" align="left"> <a href="home?mode=process&page=1&catid=<?php echo $catid; ?>" class="formbutton">Export this Batch</a></td>
<td width="33%" align="right"><?php
include 'includes/form3.php';
?></td>
</tr>
</table>
</td></tr>
<tr>
<td>
<div style="position:relative; padding:10px;" class="searchresult" id="newData"> </div>
<?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); ?>
<div style="width:200px;height:15px;font-size:11px;background-color:#FFFFFF;opacity:.90; *filter:alpha(opacity=90);-moz-border-radius:3px;-webkit-border-radius:3px;clear: none;margin-right:4px;margin-bottom:5px;float:left;border:dotted #c2cdcd 1px ; padding:5px; overflow:hidden">
<?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,1);
?><?php }
}
}
?> <span style=" float:right" ><a href="?mode=editproduct&productid=<?php print "$productid"; ?>" class="formbutton">view</a></span>
<?php /*?><a href="delcatanews.php?newsid=<?php print "$newsid"; ?>&catid=<?php print "$catid"; ?>" class="formbutton5">x</a><?php */?>
</div>
<?php
}
}
?>
</td></tr></table>
<br />
<br />
<?php
$pagenext = $page+1;
$result1 = $db->getproducts($pagenext,$record,$catid);
if ($page!=0)
{
$pagepre = $page-1;
print "<a href=\"?mode=products&page=$pagepre&catid=$catid\" class=\"formbutton\">Previous</a> ";
}
if (!empty($result1))
{
print "<a href=\"?mode=products&page=$pagenext&catid=$catid\" class=\"formbutton\">More</a> ";
}
?>