<?php
/*---------------------------------------------
MAIAN RECIPE v2.0
Written by David Ian Bennett
E-Mail: hide@address.com
Website: www.maianscriptworld.co.uk
This File: Admin - Home
----------------------------------------------*/
if (!defined('PARENT')) { include('index.html'); exit; }
$disRecipes = rowCount('recipes',' WHERE enRecipe = \'no\'');
$disCats = rowCount('categories',' WHERE isParent = \'yes\' AND enCat = \'no\'');
$disSubCats = rowCount('categories',' WHERE isParent = \'no\' AND enCat = \'no\'');
?>
<!-- Start Body Area -->
<div id="bodyArea">
<div class="left">
<?php
if (!empty($sec)) {
?>
<span class="headError"><?php echo $script17; ?>:</span>
<p class="errorWrap">• <?php echo implode('<br /><br />• ',$sec); ?></p>
<?php
}
?>
<span class="headLeft"><?php echo $script.' '.$script2.' '.$header; ?>:</span>
<p style="padding:10px;line-height:18px"><?php echo $home2; ?></p>
</div>
<div class="right">
<span class="headRight"><?php echo $home4; ?>:</span>
<p class="rightPHome">
<span class="homeStat"><b><?php echo rowCount('recipes',' WHERE isApproved = \'no\''); ?></b> <?php echo $home8; ?></span>
<?php echo ($disRecipes>0 ? '<span class="homeStat2"><b>'.$disRecipes.'</b> '.$home15.'</span>' : ''); ?>
<span class="homeStat"><b><?php echo rowCount('pictures'); ?></b> <?php echo $home9; ?> <img src="templates/images/info.png" alt="" title="" <?php echo hoverHelpTip($javascript63); ?> /></span>
<span class="homeStat"><b><?php echo rowCount('comments',' WHERE isApproved = \'no\''); ?></b> <?php echo $home10; ?></span>
<span class="homeStat"><b><?php echo rowCount('categories',' WHERE isParent = \'yes\''); ?></b> <?php echo $home11; ?></span>
<?php echo ($disCats>0 ? '<span class="homeStat2"><b>'.$disCats.'</b> '.$home15.'</span>' : ''); ?>
<span class="homeStat"><b><?php echo rowCount('categories',' WHERE childOf > \'0\''); ?></b> <?php echo $home12; ?></span>
<?php echo ($disSubCats>0 ? '<span class="homeStat2"><b>'.$disSubCats.'</b> '.$home15.'</span>' : ''); ?>
</p>
<span class="headRight"><?php echo $home7; ?>:</span>
<p class="rightPHome">
<span class="homeStat"><a href="?p=approve-recipes"><b><?php echo rowCount('recipes',' WHERE isApproved = \'yes\''); ?></b></a> <?php echo $home8; ?></span>
<span class="homeStat"><a href="?p=approve-comments"><b><?php echo rowCount('comments',' WHERE isApproved = \'yes\''); ?></b></a> <?php echo $home10; ?></span>
</p>
<span class="headRightMid"><?php echo $home3; ?>:</span>
<p class="rightPHome"><a href="https://www.paypal.com/xclick/business=support%40maianscriptworld%2eco%2euk&item_name=Maian%20Recipe%20v2%2e0%20Donation&item_number=mrecipe_<?php echo date("Y"); ?>&no_shipping=1&no_note=1&tax=0&currency_code=GBP"><img src="templates/images/donation.gif" alt="<?php echo $home3; ?>" title="<?php echo $home3; ?>" /></a></p>
<span class="headRight"><?php echo $home5; ?>:</span>
<p class="rightPHome">
<span class="homeLink"><a href="http://www.maianscriptworld.co.uk/support-forum.html" title="<?php echo $home6; ?>" onclick="window.open(this);return false"><?php echo $home6; ?></a></span>
<span class="homeLink"><a href="http://www.maianscriptworld.co.uk/copyright-removal.html" title="<?php echo $home13; ?>" onclick="window.open(this);return false"><?php echo $home13; ?></a></span>
<span class="homeLink"><a href="http://www.maianscriptworld.co.uk/free-php-scripts/maian-recipe/development/index.html" title="<?php echo $home14; ?>" onclick="window.open(this);return false"><?php echo $home14; ?></a></span>
</p>
</div>
<br class="break" />
</div>
<!-- End Body Area -->