예제 #1
0
파일: posts.php 프로젝트: rjha/sc
            $postId = PseudoId::decode($itemId);
            array_push($ids, $postId);
            //score is next one
            $scores[$itemId] = isset($members[$i]) ? $members[$i] : 0;
        }
    }
}
$rows = $postDao->getOnSearchIds($ids);
$pageNo = $paginator->getPageNo();
$startId = ($pageNo - 1) * $pageSize;
$endId = $startId + $pageSize - 1;
$rowsHtml = "";
$gNumRecords = sizeof($rows);
foreach ($rows as $row) {
    $score = isset($scores[$row["pseudo_id"]]) ? $scores[$row["pseudo_id"]] : 0;
    $rowsHtml .= \com\indigloo\sc\html\Post::getAdminWidget($row, $score);
}
?>


<!DOCTYPE html>
<html>

    <head>
        <title> 3mik.com - post analytic </title>
        <?php 
include APP_WEB_DIR . '/inc/meta.inc';
?>
        <?php 
echo \com\indigloo\sc\util\Asset::version("/css/bundle.css");
?>
예제 #2
0
파일: posts.php 프로젝트: rjha/sc
echo $ft24hoursUrl;
?>
">Last 24HR</a>
                        
                    </div>
                    <div class="mt20">
                        <?php 
$startId = NULL;
$endId = NULL;
$gNumRecords = sizeof($postDBRows);
if ($gNumRecords > 0) {
    $startId = $postDBRows[0]["id"];
    $endId = $postDBRows[$gNumRecords - 1]["id"];
}
foreach ($postDBRows as $postDBRow) {
    echo \com\indigloo\sc\html\Post::getAdminWidget($postDBRow);
}
?>
                    </div>
                </div>
                 
            </div>
        </div> <!-- container -->
        
        <?php 
echo \com\indigloo\sc\util\Asset::version("/js/bundle.js");
?>
        <script language="javascript" type="text/javascript" src="/js/monitor.js"></script>

        <script>
            $(document).ready(function(){