( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$record = 10;
$homecataresult2 = $db->browsechannelsgo($page,$record,$order,$ascdesc);
$distributeItem = $newsid;
?>
<?php if (isset($_GET['media'])) {
$media = $_GET['media'];
$page = $_GET['page'];
}
if (empty($page)) {
$page = 0;
}
$result = $db->gettypeidgo($media);
$categorynamex = $result[0]["categoryname"];
$categoryid = $result[0]["categoryid"];
$newcategory = "$categoryid";
$vcat = $result[0]["categoryid"];
$homecataresult = $db->getchildcatalog(0);
$getfeaturedc = $db->getfeaturedchannel(0);
$homelatestresult = $db->getlatestonhome($front_latestonhomerecord);
$picturepath = "./photo/";
$db->delilike($id);
$db->derecomm($newsid);
if (($topicid >=1)){
$db->addlike($topicid,$image,$video,$topic,$category,$site,$address);
}
$pre[0] = $newsid-1;
for ($i=1; $i<=$prenumber-1; $i++){
$pre[$i] = $pre[$i-1]-1;
}
$next[0] = $newsid+1;
for ($i=1; $i<=$nextnumber-1; $i++){
$next[$i] = $next[$i-1]+1;
}
$http = "http://";
$host = $_SERVER['HTTP_HOST'];
$uri =$_SERVER['REQUEST_URI'];
$chapter =$http.$host.$uri;
$catanewsresultM = $db->mailinglist($page,$record,$channel);
?>
<?php /*?><?php
include("scripts.php");
?> <?php */?>
<?php if (!empty($_GET["channel"])&& !empty($_GET['email']))
{?>
<?php if (!empty($catanewsresultM)) {
$pagenext = $page+1;
$pagepre = $page-1;
$resultx = $db->mailinglist($pagenext,$record,$channel);
if ($page > 0)
{
?>
<a href="?mode=distributionsGaa&page=<?php echo $pagepre ?>&channel=<?php echo $channel ?>&newsid=<?php print "$distributeItem"; ?>"><img src="images/distributions_03.png" width="50" height="54" alt=""></a>
<?php }
if (!empty($resultx))
{?>
<a href="?mode=distributionsGaa&page=<?php echo $pagenext ?>&channel=<?php echo $channel ?>&newsid=<?php print "$distributeItem"; ?><?php if (!empty($catid))
{
$sqlstatement = "&content=$catid";
} ?>"><img src="images/distributions_04.png" width="51" height="54" alt=""></a>
<?php }
}
?>
<?php }
?>
<h2 style="margin-top:0px" id="status" class="post-title"><i class="icon-sitemap"></i><?php include("disttitleGaa.php"); ?></h2>
<table width="100%" border="0">
<tr>
<td style="padding:0px">
<p class="h4 text-muted">Distribute to media outlets. Select links below to distribute </p></td>
<td width="200" align="right" valign="top">
<ul class="pagination pagination pull-right ">
<li><a href="indexAlone.php?mode=ziqiGaa&min=yes#<?php echo rand(10000,20000); ?>"> <i class="icon-home text"></i> </a></li>
<?php if (!empty($_GET["channel"])&& empty($_GET['email']))
{?>
<?php if (!empty($catanewsresult)) {
$pagenext = $page+1;
$resultx = $db->ugcgetnewsbycatidgo($pagenext,$record,$channel,$order,$ascdesc);
if ($page!=0)
{
$pagepre = $page-1; ?>
<li><a href="?mode=distributionsGaa&page=<?php echo $pagepre ?>&channel=<?php echo $channel ?>&min=yes&newsid=<?php print "$distributeItem"; ?><?php if (!empty($catid))
{
$sqlstatement = "&content=$catid";
} ?>"><i class="icon-chevron-left"></i></a> </li>
<?php }
if (!empty($resultx))
{?>
<li> <a href="?mode=distributionsGaa&page=<?php echo $pagenext ?>&min=yes&channel=<?php echo $channel ?>&newsid=<?php print "$distributeItem"; ?><?php if (!empty($catid))
{
$sqlstatement = "&content=$catid";
} ?>"><i class="icon-chevron-right"></i></a> </li>
<?php }
}
?>
<?php }
?>
<?php if (empty($categorynamex) && empty($_GET['channel']))
{?>
<?php
$pagenext = $page+1;
$resultx = $db->browsechannelsgo($page,$record,$order,$ascdesc);
if ($page!=0)
{
$pagepre = $page-1; ?>
<li> <a href="?mode=distributionsGaa&page=<?php echo $pagepre ?>&newsid=<?php print "$distributeItem"; ?><?php if (!empty($catid))
{
$sqlstatement = "&content=$catid";
} ?>"><i class="icon-chevron-left"></i></a> <li>
<?php }?>
<?php if (!empty($resultx))
{ ?>
<li><a href="?mode=distributionsGaa&page=<?php echo $pagenext ?>&newsid=<?php print "$distributeItem"; ?><?php if (!empty($catid))
{
echo "&content=$catid";
} ?>"> <i class="icon-chevron-right"></i></a> </li>
<?php }
?>
<?php }
?>
</ul>
</td>
</tr>
</table>
<?php if (!empty($_GET["channel"]) && empty($_GET['email']))
{
include("listitemsGaa.php");
}
?>
<?php if (!empty($_GET["email"]))
{
include("email2.php");
}
?>
<?php if (empty($categorynamex) && empty($_GET['channel']) && empty($_GET['email']))
{?>
<?php include("browserGaa.php");?>
<?php }
?>
<?php if (!empty($categorynamex)&& empty($_GET['channel']))
{?>
<?php include("typeGaa.php");?>
<?php }
?>