( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$widget = $catalogid5;
$content = $_GET["content"];
$delnews = $_GET["delnews"];
$distri = $_GET["distri"];
if ($delnews=="yes") {
$newsid = $db->base64url_decode($newsid);
$db->delnews2($newsid,$VideoPath,$distri);
/* header("Location: indexAlone.php?mode=mydistributions&msg=Successfully+deleted");*/
}
$VideoPath = "uploads/live/";
$live_img = 'uploads/images/';
$videouser = $_SESSION['euserid'];
//no error reporting
//@error_reporting(0);
if (empty($page)){
$page = 0;
}
$record =6;
$result = $db->getmydistributions($page,$record,$content);
?>
<?php
$page_limit = $record ;
$pagenext = $page+1;
$result1 = $db->getmydistributions($pagenext,$record,$content);
if (!isset($_GET['page']) )
{ $start=0; } else
{ $start = ($_GET['page'] - 1) * $page_limit; }
$rs_all = mysqli_query("select count(*) as total_all from distributions where yanani=$videouser") or die(mysql_error());
list($allvids) = mysql_fetch_row($rs_all);?>
<table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0" style=" background-position:bottom; background-repeat:no-repeat; " >
<tr>
<td><table id="Table_01" width="100%" height="537" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4" width="100%" height="482" valign="top" align="center" ><table id="Table_" width="100%" height="537" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="images/mydis.png" width="235" height="54" alt="" /></td>
<td width="678" height="54" align="center" background="images/mycontent_07.png"></td>
<td width="50" height="54" ><?php
if ($page!=0)
{
$pagepre = $page-1;
?>
<a href="<?php echo $PHP_SELF ?>?page=<?php echo $pagepre ?>&catid=<?php echo $catid ?>&mode=mydistributions<?php if (!empty($content))
{
echo "&content=$content";
} ?>"><img src="images/mycontent_03.png" width="50" height="54" alt="" /></a>
<?php }else
{?>
<img src="images/mycontent_03b.png" width="50" height="54" alt="" />
<?php } ?></td>
<td width="51" height="54" ><?php
if (!empty($result1))
{?>
<a href="<?php echo $PHP_SELF ?>?page=<?php echo $pagenext ?>&catid=<?php echo $catid ?>&mode=mydistributions<?php if (!empty($content))
{
echo "&content=$content";
} ?>"><img src="images/mycontent_04.png" width="51" height="54" alt="" /></a>
<?php }
else
{?>
<img src="images/mycontent_04b.png" width="51" height="54" alt="" />
<?php }
?></td>
</tr>
<tr>
<td colspan="4" width="100%" height="482" valign="top" align="center" ><?php foreach ($result as $key => $val) {
$id = stripslashes($val["id"]);
$myid = stripslashes($val["id"]);
$isdisplay = stripslashes($val["isdisplay"]);
$distribution = stripslashes($val["distribution"]);
$cataress = stripslashes($val["catalogid"]);
$newsidC = stripslashes($val["newsid"]);
?>
<?php
$getcontent = $db->idtoreporta($distribution);
if (!empty($getcontent)) {
while ( list($key,$val)=each($getcontent) ) {
$title = stripslashes($val["title"]);
$slug= stripslashes($val["slug"]);
$description= stripslashes($val["description"]);
$picture= stripslashes($val["picture"]);
$original= stripslashes($val["original"]);
$catalogid= stripslashes($val["catalogid"]);
$newsid = stripslashes($val["newsid"]);
}}
?>
<table id="Table_" width="100%" height="76" border="0" cellpadding="0" cellspacing="0" style="background-image:url(images/base.png); background-repeat:no-repeat; margin-bottom:5px; margin-top:5px">
<tr>
<td width="100%" height="76" style="padding:5px"><table width="100%" cellspacing="0" cellpadding="0">
<tr >
<td width="64" valign="middle"><img src="taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/v/uploads/raw/<?php print "$original"; ?>" alt="edit thumb" title="Published: <?php echo $adddate ?>" width="100" height="60" style=" margin-left:2px;-moz-border-radius : 3px 3px 3px 3px:-webkit-border-radius : 3px 3px 3px 3px;border-radius : 3px 3px 3px 3px;"/></td>
<td width="64" valign="middle"><img src="images/distributed2.png"/></td>
<td width="64" valign="middle"><?php
$nameinfo9 = $db->getallprofilepic();
while (list($key,$val)=each($nameinfo9)) {
$tempcatalogid9 = stripslashes($val["catalogid"]);
$picture = stripslashes($val["picture"]);
if ($cataress ==$tempcatalogid9){?>
<img src="taswira.php?width=100&height=60&cropratio=1.666666666666667:1&image=/photo/<?php echo $picture ?>" alt="edit thumb" title="Published: 2014-03-24" style=" margin-left:2px;-moz-border-radius : 3px 3px 3px 3px:-webkit-border-radius : 3px 3px 3px 3px;border-radius : 3px 3px 3px 3px;" height="60" width="100" />
<?php }
}
?></td>
<td width="64" valign="middle"></td>
<td width="100%" valign="middle"><div align="left" style=" padding-left:10px; color:#FFF; font-size:14px" title="Published: <?php echo $adddate ?>" ><?php print text_limit($title,8); ?>
<?php
$nameinfo2 = $db->getallugccatalogname();
if (!empty($nameinfo2)){
while (list($key,$val)=each($nameinfo2)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$catalogname = stripslashes($val["catalogname"]);
$slug = stripslashes($val["slug"]);
if ($cataress==$tempcatalogid2){?>
<span style="color:#F39;"> Delivered to </span><?php print " $catalogname"; ?>
<?php }
else
{?>
<?php }
}
}
?>
<?php
$nameinfoC = $db->getallcategoriesC($newsidC);
if (!empty($nameinfoC)){
while (list($key,$val)=each($nameinfoC)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$catalogname = stripslashes($val["catalogname"]);
$slug = stripslashes($val["slug"]);
?>
<span style="color:#fff;"> ( <?php print "$catalogname"; ?> )</span>
<?php
}
}
?>
</div></td>
<?php
$myid = $db->base64url_encode($myid); ?>
<td width="54" valign="middle" ><?php
switch($isdisplay){
case "2":
?>
<img src="images/status/delivered.png" alt="Distributed"/>
<?php
break;
case "1":
?>
<img src="images/status/distributed3.png" alt="Distributed"/>
<?php
break;
case "0":
?>
<img src="images/status/declined.png" alt="Distributed Successfully" />
<?php
break;
}
?></td>
<td width="30"><a href="?mode=mydistributions&newsid=<?php print "$myid"; ?>&catid=<?php print "$catid"; ?>&distri=<?php print "$isdisplay"; ?>&delnews=yes" class="en_b style6 style6"><img src="images/declined.png" width="30"alt="delete" /></a></td>
</tr>
</table></td>
</tr>
</table>
<?php
}
?></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="140" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="678" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="50" height="1" alt="" /></td>
<td><img src="images/spacer.gif" width="51" height="1" alt="" /></td>
</tr>
</table></td>
</tr>
</table></td></tr></table>