%PDF- %PDF-
Direktori : /home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjAdmin/ |
Current File : //home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjAdmin/pjActionIndex.php |
<?php if (isset($tpl['status'])) { $status = __('status', true); switch ($tpl['status']) { case 2: pjUtil::printNotice(NULL, $status[2]); break; } }else{ ?> <div class="dashboard_header"> <div class="item"> <div class="stat posts"> <div class="info"> <abbr><?php echo $tpl['cnt_posts'];?></abbr> <?php echo (int) $tpl['cnt_posts'] !== 1 ? strtolower(__('lblPosts', true)) : strtolower(__('lblPost', true)); ?> </div> </div> </div> <div class="item"> <div class="stat comments"> <div class="info"> <abbr><?php echo $tpl['cnt_comments'];?></abbr> <?php echo (int) $tpl['cnt_comments'] !== 1 ? strtolower(__('lblComments', true)) : strtolower(__('lblComment', true)); ?> </div> </div> </div> <div class="item"> <div class="stat authors"> <div class="info"> <abbr><?php echo $tpl['cnt_authors'];?></abbr> <?php echo (int) $tpl['cnt_authors'] !== 1 ? strtolower(__('lblAuthors', true)) : strtolower(__('lblAuthor', true)); ?> </div> </div> </div> </div> <div class="dashboard_box"> <div class="dashboard_top"> <div class="dashboard_column_top"><?php __('lblLatestPosts');?></div> <div class="dashboard_column_top"><?php __('lblLatestComments');?></div> <div class="dashboard_column_top"><?php __('lblLastLoggedAuthors');?></div> </div> <div class="dashboard_middle"> <div class="dashboard_column"> <?php $cnt = count($tpl['post_arr']); if ($cnt === 0) { ?><p class="m10"><?php __('lblPostNotFound'); ?></p><?php }else{ foreach ($tpl['post_arr'] as $k => $v) { ?> <div class="dashboard_post_row dashboard_row<?php echo $k + 1 !== $cnt ? NULL : ' dashboard_row_last'; ?>"> <label><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminPosts&action=pjActionUpdate&id=<?php echo $v['id']?>"><?php echo $v['title'];?></a></label> <label><?php echo $v['name'];?></label> <label><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['published_date'])), 'Y-m-d', $tpl['option_arr']['o_date_format']) . ' ' . pjUtil::formatTime(date('H:i:s', strtotime($v['published_date'])), 'H:i:s', $tpl['option_arr']['o_time_format']); ?></label> </div> <?php } } ?> </div> <div class="dashboard_column"> <?php $cnt = count($tpl['comment_arr']); if ($cnt === 0) { ?><p class="m10"><?php __('lblCommentNotFound'); ?></p><?php }else{ foreach ($tpl['comment_arr'] as $k => $v) { ?> <div class="dashboard_comment_row dashboard_row<?php echo $k + 1 !== $cnt ? NULL : ' dashboard_row_last'; ?>"> <label><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminComments&action=pjActionUpdate&id=<?php echo $v['id']?>"><?php echo $v['name'];?></a></label> <label><?php echo $v['email'];?></label> <label><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['created'])), 'Y-m-d', $tpl['option_arr']['o_date_format']) . ' ' . pjUtil::formatTime(date('H:i:s', strtotime($v['created'])), 'H:i:s', $tpl['option_arr']['o_time_format']); ?></label> </div> <?php } } ?> </div> <div class="dashboard_column"> <?php $cnt = count($tpl['author_arr']); if ($cnt === 0) { ?><p class="m10"><?php __('lblAuthorNotFound'); ?></p><?php }else{ foreach ($tpl['author_arr'] as $k => $v) { ?> <div class="dashboard_user_row dashboard_row<?php echo $k + 1 !== $cnt ? NULL : ' dashboard_row_last'; ?>"> <label><?php echo $v['name'];?></label> <label><?php echo $v['email'];?></label> <label><?php echo pjUtil::formatDate(date('Y-m-d', strtotime($v['last_login'])), 'Y-m-d', $tpl['option_arr']['o_date_format']) . ' ' . pjUtil::formatTime(date('H:i:s', strtotime($v['last_login'])), 'H:i:s', $tpl['option_arr']['o_time_format']); ?></label> </div> <?php } } ?> </div> </div> <div class="dashboard_bottom"></div> </div> <div class="clear_left t20 overflow"> <div class="float_left black t30 t20"><span class="gray"><?php echo ucfirst(__('lblDashLastLogin', true)); ?>:</span> <?php echo date("F d, Y H:i", strtotime($_SESSION[$controller->defaultUser]['last_login'])); ?></div> <div class="float_right overflow"> <?php list($hour, $day, $other) = explode("_", date("H:i_l_F d, Y")); ?> <div class="dashboard_date"> <abbr><?php echo $day; ?></abbr> <?php echo $other; ?> </div> <div class="dashboard_hour"><?php echo $hour; ?></div> </div> </div> <?php } ?>