?> "></textarea> <div class="stream-post-details-milestone"> <label><?php echo JText::_('COM_STREAM_DEFAULT_LABEL_CATEGORY_PROMPT'); ?> </label> <select name="blog_category"> <option><?php echo JText::_('COM_STREAM_DEFAULT_LABEL_PAGE_DEFAULT_CATEGORY'); ?> </option> <?php $table = new StreamCategory(); $blogs = $table->getBlogs(); foreach ($blogs as $blog) { // add category that has been added ?> <option value="<?php echo $blog->id; ?> "><?php echo $blog->category; ?> </option> <?php } ?> </select> </div>
<textarea id="message-box-page" name="message" class="stream-post message-page-editor" style="width:660px;resize:vertical;" cols="80" placeholder="<?php echo JText::_('COM_STREAM_DEFAULT_LABEL_LONG_PAGE_HERE'); ?> "> <?php echo $stream->message; ?> </textarea> <input type="hidden" name="type" value="page"> <input type="hidden" name="action" value="save" /> </div> <?php $table = new StreamCategory(); $categories = $table->getBlogs(); ?> <div class="stream-post-details-select"> <label><?php echo JText::_('COM_STREAM_DEFAULT_LABEL_PAGE_EDIT_CATEGORY_PROMPT'); ?> </label> <select name="category_id"> <option><?php echo JText::_('COM_STREAM_DEFAULT_LABEL_PAGE_DEFAULT_CATEGORY'); ?> </option> <?php $blogs = $table->getBlogs();
* @package com_account * @copyright Copyright (C) 2011 - 2013 Slashes & Dots Sdn Bhd. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Offiria Team */ // no direct access defined('_JEXEC') or die; ?> <div class="account-navbar"> <?php echo $this->showNavBar(); ?> </div><!--profile-navbar--> <?php $Category = new StreamCategory(); $blogs = $Category->getBlogs(); $events = $Category->getEvents(); $groups = $Category->getGroups(); $listings = array('blog' => $blogs, 'event' => $events, 'group' => $groups); foreach ($listings as $type => $lists) { ?> <div id="category-container"> <h3 class="section-title"><?php echo JText::_('COM_ACCOUNT_LABEL_' . strtoupper($type) . '_CATEGORIES'); ?> </h3> <table class="table table-bordered table-striped table-novborder"> <tr> <td class="table-header"><?php echo JText::_('COM_ACCOUNT_LABEL_CATEGORY');
<i class="icon-plus icon-white"></i>New Blog </a> </div> <ul class="nav nav-pills filter"> <!-- <input type="text" class="input-medium search-query" style="float: left; width: 82px; margin: 4px 10px 4px 0px;"> --> <li <?php echo $category_id ? '' : ' class="active"'; ?> ><a href="#all"><?php echo JText::_('COM_STREAM_BLOG_LABEL_ALL_CATEGORY'); ?> </a></li> <?php $cCategory = new StreamCategory(); // get blog entries rom database $blogLists = $cCategory->getBlogs(); if ($blogLists) { $categories = array(); // we want to sort which category contains the most entries foreach ($blogLists as $key => $blogs) { $categories[$key]['category'] = $blogs->category; $categories[$key]['id'] = $blogs->id; $categories[$key]['count'] = $cCategory->countMessageByCategoryId($blogs->id); } function sortByMessageCount(&$arr, $col) { $sortCol = array(); foreach ($arr as $key => $row) { $sortCol[$key] = $row[$col]; } array_multisort($sortCol, SORT_DESC, $arr);