<?php

session_start();
$sess_id = session_id();



include('../includes/site_config.php');

//include('../session_handler.inc');

$area = 'member';

$Sess_UserType="A";
?>
<html>
<h1> This part is under maintenance!</h1>
</html> 
 
<?php
if ($Sess_UserType != "A") {

        exit;

}





$query="SELECT COUNT(mem_userid) FROM members";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalreg=mysql_result($retval,0,0);



$query="SELECT COUNT(adv_userid) FROM adverts";

$retval=mysql_query($query,$link) or die(mysql_error());

$totaladv=mysql_result($retval,0,0);



# Find the gender breakdown

$query="SELECT COUNT(mem_sex) as gender_total, mem_sex FROM members GROUP BY mem_sex";

$retval=mysql_query($query,$link) or die(mysql_error());



while($reg_stats=mysql_fetch_object($retval)) {



        switch ($reg_stats->mem_sex) {

                case 'F':

                        if ($reg_stats->gender_total != 0 && $totalreg != 0) {

                            $width_f=(($reg_stats->gender_total/$totalreg)*100)*2;

                            $f_perc=sprintf("%01.2f", $width_f/2);

                        } else {

                            $width_f=0;

                            $f_perc=0;

                        }

                        break;

                case 'M':

                        if ($reg_stats->gender_total != 0 && $totalreg != 0) {

                            $width_m=(($reg_stats->gender_total/$totalreg)*100)*2;

                            $m_perc=sprintf("%01.2f", $width_m/2);

                        } else {

                            $width_m=0;

                            $m_perc=0;

                        }

                        break;

                case 'C':

                        if ($reg_stats->gender_total != 0 && $totalreg != 0) {

                            $width_c=(($reg_stats->gender_total/$totalreg)*100)*2;

                            $c_perc=sprintf("%01.2f", $width_c/2);

                        } else {

                            $width_c=0;

                            $c_perc=0;

                        }

                        break;

        }

}



# Find the user level status breakdown

$query="SELECT COUNT(mem_expiredate) FROM members WHERE mem_expiredate >= NOW()";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalprem=mysql_result($retval,0,0);

if ($totalprem != 0 && $totalreg != 0) {

    $width_p=(($totalprem/$totalreg)*100)*2;

    $p_perc=sprintf("%01.2f", $width_p/2);

} else {

    $width_p=0;

    $p_perc=0;

}



$query="SELECT COUNT(mem_expiredate) FROM members WHERE mem_expiredate < NOW()";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalstand=mysql_result($retval,0,0);

if ($totalstand != 0 && $totalreg != 0) {

    $width_s=(($totalstand/$totalreg)*100)*2;

    $s_perc=sprintf("%01.2f", $width_s/2);

} else {

    $width_s=0;

    $s_perc=0;

}



# Find the profile status breakdown

$query="SELECT COUNT(adv_approved) FROM adverts WHERE adv_approved = 1";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalapp=mysql_result($retval,0,0);

if ($totalapp != 0 && $totaladv != 0) {

    $width_app=(($totalapp/$totaladv)*100)*2;

    $app_perc=sprintf("%01.2f", $width_app/2);

} else {

    $width_app=0;

    $app_perc=0;

}



//Time operations

$curr_time = time();

$mod_time = $curr_time - BLOCK_PERIOD_AVAILABLE;

$modified_time = date("Y-m-d H:i:s", $mod_time);

//EOF Time operations



$query = "  SELECT COUNT(blg_approved)

            FROM blogs

                WHERE blg_approved = 'N'";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalpenblog=mysql_result($retval,0,0);



$query = "  SELECT COUNT(post_approved)

            FROM bb_posts

                WHERE post_approved = '0'";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalpenforum=mysql_result($retval,0,0);



include_once __INCLUDE_CLASS_PATH."/class.Gallery.php";

$gallery= new Gallery();

$totalpengallery = $gallery->CountPendingItem();



//$query = "  SELECT COUNT(adv_approved)

//            FROM adverts

//                LEFT JOIN members ON (adv_userid=mem_userid)

//            WHERE adv_approved = 0 AND mem_confirm = 1 AND block_time <= '$modified_time'";

$query = "  SELECT COUNT(adv_approved)

            FROM adverts

                LEFT JOIN members ON (adv_userid=mem_userid)

            WHERE adv_approved = 0 AND mem_confirm = 1";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalpen=mysql_result($retval,0,0);

if ($totalpen != 0 && $totaladv != 0) {

    $width_pen=(($totalpen/$totaladv)*100)*2;

    $pen_perc=sprintf("%01.2f", $width_pen/2);

} else {

    $width_pen=0;

    $pen_perc=0;

}



$query="SELECT COUNT(adv_approved) FROM adverts WHERE adv_approved = 2";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalrej=mysql_result($retval,0,0);

if ($totalrej != 0 && $totaladv != 0) {

    $width_rej=(($totalrej/$totaladv)*100)*2;

    $rej_perc=sprintf("%01.2f", $width_rej/2);

} else {

    $width_rej=0;

    $rej_perc=0;

}



# Find the mail confirmation breakdown

$query="SELECT COUNT(mem_confirm) FROM members WHERE mem_confirm = 1";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalcon=mysql_result($retval,0,0);

if ($totalcon != 0 && $totalreg != 0) {

    $width_con=(($totalcon/$totalreg)*100)*2;

    $con_perc=sprintf("%01.2f", $width_con/2);

} else {

    $width_con=0;

    $con_perc=0;

}



$query="SELECT COUNT(mem_confirm) FROM members WHERE mem_confirm = 0";

$retval=mysql_query($query,$link) or die(mysql_error());

$totaluncon=mysql_result($retval,0,0);

if ($totalcon != 0 && $totalreg != 0) {

    $width_uncon=(($totaluncon/$totalreg)*100)*2;

    $uncon_perc=sprintf("%01.2f", $width_uncon/2);

} else {

    $width_uncon=0;

    $uncon_perc=0;

}



$query="SELECT COUNT(ev_approved) FROM events WHERE ev_approved=0";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalevapproved=mysql_result($retval,0,0);



$query="SELECT COUNT(review_approved) FROM reviews WHERE review_approved=0";

$retval=mysql_query($query,$link) or die(mysql_error());

$totalreviewapproved=mysql_result($retval,0,0);





mysql_close($link);

?>

<?php include("include/header.php"); ?>

  <table width="<?php print("$CONST_TABLE_WIDTH"); ?>" align="<?php print("$CONST_TABLE_ALIGN"); ?>" border="0" cellspacing="<?php print("$CONST_TABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_TABLE_CELLPADDING"); ?>">

    <tr>

      <td align="right">

      <?php 	  //require_once("$CONST_INCLUDE_ROOT/user_status.inc.php");	  require_once("../user_status.inc.php");	  ?>

      </td>

    </tr>

    <tr>



    <td class="pageheader"><?php echo ADM_SECTION_NAME ?></td>

    </tr>

    <tr><td>



<table width="100%"  border="0" cellspacing="0" cellpadding="0">



        <tr>

          <td align="center" ></td>

        </tr>



        <tr>

          <td align="left" ></td>

        </tr>

        <tr valign="top">

          <td align="left" ><table width="100%"  border="0" cellspacing="<?php print("$CONST_SUBTABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_SUBTABLE_CELLPADDING"); ?>">

              <!--DWLayoutTable-->

              <tr> 

                <td width="57" class="tdhead"><?php echo ADM_REPORTS ?></td>

                <td width="21" class="tdhead"><?php echo ADM_SETTINGS ?></td>

                <td width="42" class="tdhead"><?php echo ADM_TOOLS ?></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/documentation/administrators_guide.php?<?php echo $sess_id ?>" target="_blank"><?php echo ADM_ADMIN_GUIDE_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/params.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo PARAMS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/prgauthads.php<?php print("?PHPSESSID=".session_id()); ?>&mode=start"><?php echo APPROVE_ADS_SECTION_NAME ?> 

                  <?php if ($totalpen > 0) print("($totalpen)"); ?>

                  </a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/cupid.php<?php print("?PHPSESSID=".session_id()); ?>" ><?php echo ADM_CUPID_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/adm_picturegallery.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_STANDART_PICTURE_GALLERY_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/prgauthblogs.php<?php print("?PHPSESSID=".session_id()); ?>&mode=start"><?php echo ADM_BLOGS_APPROVE_SECTION_NAME ?> 

                  <?php if ($totalpenblog > 0) print("($totalpenblog)"); ?>

                  </a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/checkads.php<?php print("?PHPSESSID=".session_id()); ?>&option=first&x=0"><?php echo BROWSE_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/language.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo LANGUAGE_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/adm_bbforums.php<?php print("?PHPSESSID=".session_id()); ?>&mode=start"><?php echo BB_FORUMS_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/stats.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo STATS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/premium_functions.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo PREMIUM_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/prgauthforum.php<?php print("?PHPSESSID=".session_id()); ?>&mode=start"><?php echo ADM_FORUM_APPROVE_SECTION_NAME ?> 

                  <?php if ($totalpenforum > 0) print("($totalpenforum)"); ?>

                  </a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/report_payments.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo PAYMENTS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/listbox.php<?php print("?PHPSESSID=".session_id()); ?>&mode=view"><?php echo LISTOPTIONS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/adminmail.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo SENDMAIL_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/unconfirmed.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo UNCONFIRMED_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_paysystems.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_PAYMENTS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/prgauthgallery.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo APPROVE_GALLERY?> 

                  <?php if ($totalpengallery > 0) print("($totalpengallery)"); ?>

                  </a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/inactive_members.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo INACTIVE_MEMBERS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_services.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_SERVICE_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/removeme.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo REMOVE_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?=$CONST_LINK_ROOT?>admin/report_banners.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_BANNERS_REPORT_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_geography.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo GEOGRAPHY_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_export.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_EXPORT_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_mailtemplates.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_MAILTEMPLATES_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_stories.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo STORIES_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven"><!--DWLayoutEmptyCell-->&nbsp;</td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_pagetemplates.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_PAGETEMPLATES_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/adm_news.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo NEWS_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_spamwords.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_SPAMWORDS_SECTION_NAME ?></a></td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/adm_flirts.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_FLIRTS_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_banners.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_BANNERS_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven">&nbsp;</td>

                <td  class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/prgmembers.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_MEMBER_ADMIN_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven">&nbsp;</td>

                <td  class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/admin_db_optimize.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo DB_OPTIMIZE_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/adm_picturegallery.php<?php print("?PHPSESSID=".session_id()); ?>"></a></td>

                <td  class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/email_dl.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo EMAIL_SECTION_NAME ?></a></td>

              </tr>

              <tr> 

                <td class="tdfoot">&nbsp;</td>

                <td class="tdfoot">&nbsp;</td>

                <td  class="tdfoot">&nbsp;</td>

              </tr>

              <tr> 

                <td class="tdhead"><?php echo ADM_EVENTS ?></td>

                <td class="tdhead"><?php echo ADM_AFFILIATES ?></td>

                <td class="tdhead"><?php echo ADM_SPEEDDATING ?>&nbsp;</td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/addevent.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADDEVENTS_SECTION_NAME ?></a></td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/aff_authorise.php?$sess_id&mode=show'>".AFF_AUTHORISE_SUBJECT_APPROVAL."</a>"); else print(GENERAL_NO_MODULE); ?>

                </td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/speeddating/adm_events.php")) print("<a href='".$CONST_LINK_ROOT."/speeddating/adm_events.php?$sess_id'>".ADM_MANAGE_EVENTS."</a>"); else print(GENERAL_NO_MODULE); ?>

                </td>

              </tr>

              <tr> 

                <td class="tdeven"><a href="<?php echo $CONST_LINK_ROOT?>admin/approvereview.php<?php print("?PHPSESSID=".session_id()); ?>"><?php echo ADM_APPROVE_REVIEWS ?>&nbsp; 

                  <?php if ($totalreviewapproved > 0) print("($totalreviewapproved)"); ?>

                  </a></td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/frn_payments.php?$sess_id'>".PRN_PAYMENTS_TITLE."</a>"); ?>

                </td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/speeddating/adm_prgvenues.php")) print("<a href='".$CONST_LINK_ROOT."/speeddating/adm_prgvenues.php?$sess_id'>".ADM_MANAGE_VENUES."</a>");  ?>

                </td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/aff_banlist.php?$sess_id'>".AFF_BANNERS_SECTION_NAME."</a>"); ?>

                </td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/speeddating/adm_prgvenues.php")) print("<a href='".$CONST_LINK_ROOT."/speeddating/admin_stories.php?$sess_id'>".SD_ADM_STORIES_SECTION_NAME."</a>");?>

                </td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/adm_affiliates.php?$sess_id'>".ADM_AFFILIATES_ADMINISTRATION."</a>"); ?>

                </td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/speeddating/adm_reports.php")) print("<a href='".$CONST_LINK_ROOT."/speeddating/adm_reports.php?$sess_id'>".ADM_REPORTS."</a>");  ?>

                </td>

              </tr>

              <tr> 

                <td class="tdeven">&nbsp;</td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/aff_statistics.php?$sess_id'>".ADM_AFFILIATES_PERFORMANCE."</a>"); ?>

                </td>

                <td class="tdeven"> 

                  <?php if(file_exists($CONST_INCLUDE_ROOT."/speeddating/adm_waiting_list.php")) print("<a href='".$CONST_LINK_ROOT."/speeddating/adm_waiting_list.php?$sess_id'>".ADM_WAITING_LIST."</a>");  ?>

                </td>

              </tr>

              <tr> 

                <td height="76" class="tdeven"></td>

                <td class="tdeven"></td>

                <td class="tdeven"> </td>

              </tr>

            </table>

          </td>

        </tr>

        <tr>

          <td align="left" valign="top" >



<table width="100%"  border="0" cellspacing="<?php print("$CONST_SUBTABLE_CELLSPACING"); ?>" cellpadding="<?php print("$CONST_SUBTABLE_CELLPADDING"); ?>">



              <tr>

                <td colspan="2" class="tdhead"><?php echo PRGSTATS_REGISTERED ?></td>

              </tr>

              <tr class="tdeven">

                <td><?php echo PRGSTATS_MALES ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_m.gif' height='20' width='<?php echo (integer)$width_m ?>'>&nbsp;<?php echo $m_perc ?>%</td>

              </tr class="tdeven">

              <tr  class="tdeven">

                <td><?php echo PRGSTATS_FEMALES ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_f.gif' height='20' width='<?php echo (integer)$width_f ?>'>&nbsp;<?php echo $f_perc ?>%</td>

              </tr>

              <tr class="tdeven">

                <td><?php echo PRGSTATS_COUPLE ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_c.gif' height='20' width='<?php echo (integer)$width_c ?>'>&nbsp;<?php echo $c_perc ?>%</td>

              </tr>



              <tr>

                <td colspan="2" class="tdfoot">&nbsp;</td>

              </tr>

              <tr>

                <td colspan="2" class="tdhead"><?php echo STATUS ?></td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_S ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_s.gif' height='20' width='<?php echo (integer)$width_s ?>'>&nbsp;<?php echo $s_perc ?>%</td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_P ?></td>

                <td nowrap>&nbsp;<img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_p.gif' height='20' width='<?php echo (integer)$width_p ?>'><?php echo $p_perc ?>%</td>

              </tr>





              <tr>

                <td colspan="2"  class="tdfoot">&nbsp;</td>

              </tr>

              <tr>

                <td colspan="2" class="tdhead"><?php echo ADM_ADVERTS ?></td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_APPROVED ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_black.gif' height='20' width='<?php echo (integer)$width_app ?>'>&nbsp;<?php echo $app_perc ?>%</td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_PENDING ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_black.gif' height='20' width='<?php echo (integer)$width_pen ?>'>&nbsp;<?php echo $pen_perc ?>%</td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_REJECTED ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_black.gif' height='20' width='<?php echo (integer)$width_rej ?>'>&nbsp;<?php echo $rej_perc ?>%</td>

              </tr>



              <tr>

                <td colspan="2"  class="tdfoot">&nbsp;</td>

              </tr>

              <tr>

                <td colspan="2" class="tdhead"><?php echo ADM_CONFIRMS ?></td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_CONFIRMED ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_black.gif' height='20' width='<?php echo (integer)$width_con ?>'>&nbsp;<?php echo $con_perc ?>%</td>

              </tr>

              <tr class="tdeven">

                <td><?php echo STATUS_UNCONFIRMED ?></td>

                <td nowrap><img border='0' src='<?php echo $CONST_IMAGE_ROOT ?>/bar_black.gif' height='20' width='<?php echo (integer)$width_uncon ?>'>&nbsp;<?php echo $uncon_perc ?>%</td>

              </tr>

              <tr>

                <td colspan="2" class="tdfoot">&nbsp;</td>

              </tr>

            </table></td>

        </tr>

      </table></td>

    </tr>

  </table>

<?php include("include/footer.php"); ?>