Beispiel #1
0
 
               <?php 
    echo $blog_author['lname'] ? $blog_author['lname'] : $rs_person[0]['lname'];
    ?>
           </div>
 
           <div class="field">
               <label class="label">Email Address</label>
               <?php 
    echo $blog_author['email_address'] ? $blog_author['email_address'] : $rs_person[0]['email_address'];
    ?>
           </div>
		
           <?php 
    $page_views_carear = blog::get_pageviews('person', $blog_author['person_id']);
    $page_views_article = blog::get_pageviews('blog_article', array('where' => "where author__person_id={$blog_author['person_id']}"));
    ?>

           <fieldset><legend>Page View Stats</legend>
              <label class='label'>Carear</label>
              Hits: <?php 
    echo $page_views_carear['sum'];
    ?>
<br />
              Hits per article: <?php 
    echo $page_views_carear['ratio'];
    ?>
<br />
              <br /> 
              <label class='label'>Top 20 Articles</label>
              <?php 
Beispiel #2
0
<?php

template::inc('intranet', 'top');
?>
<div class="has-floats">
    <div class="float-right blog_listing">
        <div class="content_listing">

        <?php 
$pvs = array($blog_pv = blog::get_pageviews('blog'), $author_pv = blog::get_pageviews('person'), $tag_pv = blog::get_pageviews('blog_article_tag'), $article_pv = blog::get_pageviews('blog_article'));
$pvs_th = array(array('Rank', 'Hits', 'Blog', '# of Articles', 'Hits per Article'), array('Rank', 'Hits', 'Author', '# of Articles', 'Hits per Article'), array('Rank', 'Hits', 'Tag', '# of Articles', 'Hits per Article'), array('Rank', 'Hits', 'Article', '', ''));
foreach ($pvs as $i => $pv) {
    ?>
<table class='listing'>
              <tr>
              <?php 
    foreach ($pvs_th[$i] as $th) {
        ?>
<th><?php 
        echo $th;
        ?>
</th><?php 
    }
    foreach ($pv as $j => $p) {
        ?>
<tr <?php 
        echo ($j + 1) % 2 ? '' : 'class="alternate-row"';
        ?>
>
                      <td><?php 
        echo $j + 1;