示例#1
0
 public static function MethodFactory($method)
 {
     $methods = [];
     foreach (RouteHelper::parseMethod($method) as $int => $str) {
         //            $methods = new RouteHTTPMethod($method)
     }
 }
示例#2
0
 public function render($params = array())
 {
     $linked = isset($params['linked']) && $params['linked'];
     $values = array();
     foreach ($this->_item->getRelatedCategories(true) as $category) {
         $values[] = $linked ? '<a href="' . JRoute::_(RouteHelper::getCategoryRoute($category)) . '">' . $category->name . '</a>' : $category->name;
     }
     return ElementHelper::applySeparators($params['separated_by'], $values);
 }
示例#3
0
 public function render($params = array())
 {
     $category_ids = $this->_data->get('category', array());
     $category_links = array();
     $categories = YTable::getInstance('category')->getById($category_ids, true);
     foreach ($categories as $category) {
         $category_links[] = '<a href="' . RouteHelper::getCategoryRoute($category) . '">' . $category->name . '</a>';
     }
     return ElementHelper::applySeparators($params['separated_by'], $category_links);
 }
示例#4
0
 public function render($params = array())
 {
     if (!empty($this->_item)) {
         if ($this->_item->getState()) {
             $url = RouteHelper::getItemRoute($this->_item);
             return '<a href="' . JRoute::_($url) . '">' . JText::_('READ_MORE') . '</a>';
         } else {
             return JText::_('READ_MORE');
         }
     }
 }
示例#5
0
 public function render($params = array())
 {
     if (!empty($this->_item)) {
         $params = new YArray($params);
         if ($params->get('link_to_item', false) && $this->_item->getState()) {
             $url = RouteHelper::getItemRoute($this->_item);
             return '<a title="' . $this->_item->name . '" href="' . JRoute::_($url) . '">' . $this->_item->name . '</a>';
         } else {
             return $this->_item->name;
         }
     }
 }
示例#6
0
 public function render($params = array())
 {
     $linked = isset($params['linked']) && $params['linked'];
     $values = array();
     if ($linked) {
         foreach ($this->_item->getTags() as $tag) {
             $values[] = '<a href="' . JRoute::_(RouteHelper::getTagRoute($this->_item->application_id, $tag)) . '">' . $tag . '</a>';
         }
     } else {
         $values = $this->_item->getTags();
     }
     return ElementHelper::applySeparators($params['separated_by'], $values);
 }
示例#7
0
 public function render($params = array())
 {
     $params = new YArray($params);
     // include assets css
     JHTML::stylesheet('itemprint.css', 'administrator/components/com_zoo/elements/itemprint/assets/css/');
     if (YRequest::getBool('print', 0)) {
         return '<a class="element-print-button" onclick="window.print();return false;" href="#"></a>';
     } else {
         JHTML::_('behavior.modal', 'a.modal');
         $text = $params->get('showicon') ? '' : JText::_('Print');
         $class = $params->get('showicon') ? 'modal element-print-button' : 'modal';
         return '<a href="' . JRoute::_(RouteHelper::getItemRoute($this->_item) . '&amp;tmpl=component&amp;print=1') . '" title="' . JText::_('Print') . '" rel="{handler: \'iframe\', size: {x: 850, y: 500}}" class="' . $class . '">' . $text . '</a>';
     }
 }
示例#8
0
 public static function route()
 {
     $routeList = RouteHelper::readRouteFile();
     $base_url = RouteHelper::getCurrentUri();
     $requestMethod = $_SERVER['REQUEST_METHOD'];
     $controllerName = "App" . '\\' . "Controllers" . '\\' . $routeList[$requestMethod . ":" . $base_url]->controller;
     $methodName = $routeList[$requestMethod . ":" . $base_url]->controllerMethod;
     $methodName = trim($methodName);
     if (class_exists($controllerName)) {
         $controller = new $controllerName();
         $controller->{$methodName}();
     } else {
         echo "404 Not Found";
     }
 }
示例#9
0
 public function render($params)
 {
     // init vars
     $params = new YArray($params);
     $height = $params->get('height');
     $width = $params->get('width');
     $enabled = $this->_data->get('value');
     // render html
     if ($width && $height && $enabled) {
         $permalink = urlencode(JRoute::_(RouteHelper::getItemRoute($this->_item), true, -1));
         $href = 'http://www.facebook.com/plugins/like.php?href=' . $permalink . '&amp;layout=standard&amp;show_faces=false&amp;width=300&amp;action=like&amp;colorscheme=light&amp;height=' . $height;
         $html = '<iframe src="' . $href . '" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width: ' . $width . 'px; height: ' . $height . 'px;" ></iframe>';
         return $html;
     }
     return null;
 }
示例#10
0
 public function render($params = array())
 {
     // init vars
     $params = new YArray($params);
     $items = array();
     $output = array();
     $layout_path = $params->get('layout_path');
     $renderer = new ItemRenderer();
     $renderer->addPath($layout_path);
     $layout = $params->get('layout');
     $items = $this->_getRelatedItems();
     // sort items
     $order = $params->get('order');
     if (in_array($order, array('alpha', 'ralpha'))) {
         usort($items, create_function('$a,$b', 'return strcmp($a->name, $b->name);'));
     } elseif (in_array($order, array('date', 'rdate'))) {
         usort($items, create_function('$a,$b', 'return (strtotime($a->created) == strtotime($b->created)) ? 0 : (strtotime($a->created) < strtotime($b->created)) ? -1 : 1;'));
     } elseif (in_array($order, array('hits', 'rhits'))) {
         usort($items, create_function('$a,$b', 'return ($a->hits == $b->hits) ? 0 : ($a->hits < $b->hits) ? -1 : 1;'));
     } elseif ($order == 'random') {
         shuffle($items);
     } else {
     }
     if (in_array($order, array('ralpha', 'rdate', 'rhits'))) {
         $items = array_reverse($items);
     }
     // create output
     foreach ($items as $item) {
         $path = 'item';
         $prefix = 'item.';
         $type = $item->getType()->id;
         if ($renderer->pathExists($path . DIRECTORY_SEPARATOR . $type)) {
             $path .= DIRECTORY_SEPARATOR . $type;
             $prefix .= $type . '.';
         }
         if (in_array($layout, $renderer->getLayouts($path))) {
             $output[] = $renderer->render($prefix . $layout, array('item' => $item));
         } elseif ($params->get('link_to_item', false) && $item->getState()) {
             $url = RouteHelper::getItemRoute($item);
             $output[] = '<a href="' . JRoute::_($url) . '" title="' . $item->name . '">' . $item->name . '</a>';
         } else {
             $output[] = $item->name;
         }
     }
     return ElementHelper::applySeparators($params->get('separated_by'), $output);
 }
示例#11
0
文件: image.php 项目: bizanto/Hooked
 public function render($params = array())
 {
     // init vars
     $title = $this->_data->get('title');
     $params = new YArray($params);
     $file = ZooHelper::resizeImage(JPATH_ROOT . DS . $this->_data->get('file'), $params->get('width', 0), $params->get('height', 0));
     $link = JURI::root() . trim(str_replace('\\', '/', preg_replace('/^' . preg_quote(JPATH_ROOT, '/') . '/i', '', $file)), '/');
     if ($params->get('link_to_item', false)) {
         if ($this->getItem()->getState()) {
             $url = RouteHelper::getItemRoute($this->_item);
             $target = false;
             $rel = '';
             $title = empty($title) ? $this->_item->name : $title;
         } else {
             $url = $target = $rel = '';
         }
     } else {
         if ($this->_data->get('link')) {
             $url = $this->_data->get('link');
             $target = $this->_data->get('target');
             $rel = $this->_data->get('rel');
         } else {
             if ($this->_data->get('lightbox_image')) {
                 // load lightbox
                 if ($this->_config->get('load_lightbox', 0)) {
                     JHTML::script('slimbox_packed.js', 'administrator/components/com_zoo/elements/gallery/assets/lightbox/');
                     JHTML::stylesheet('slimbox.css', 'administrator/components/com_zoo/elements/gallery/assets/lightbox/css/');
                 }
                 $lightbox_image = ZooHelper::resizeImage(JPATH_ROOT . DS . $this->_data->get('lightbox_image', ''), 0, 0);
                 $url = JURI::root() . trim(str_replace('\\', '/', preg_replace('/^' . preg_quote(JPATH_ROOT, '/') . '/i', '', $lightbox_image)), '/');
                 $target = '';
                 $rel = 'lightbox[' . $title . ']';
             } else {
                 $url = $target = $rel = '';
             }
         }
     }
     // get alt
     $alt = empty($title) ? $this->_item->name : $title;
     // render layout
     if ($layout = $this->getLayout()) {
         return self::renderLayout($layout, array('file' => $file, 'title' => $title, 'alt' => $alt, 'link' => $link, 'link_enabled' => !empty($url), 'url' => $url, 'target' => $target, 'rel' => $rel));
     }
     return null;
 }
示例#12
0
 public function render($params = array())
 {
     if (!empty($this->_item)) {
         $comment_count = $this->_item->getCommentsCount(1);
         if ($comment_count == 0) {
             $text = isset($params['no_comments_text']) ? $params['no_comments_text'] : JText::_('No comments');
         } else {
             if ($comment_count == 1) {
                 $text = sprintf(isset($params['single_comment_text']) ? $params['single_comment_text'] : JText::_('%s comment'), 1);
             } else {
                 $text = sprintf(isset($params['multiple_comments_text']) ? $params['multiple_comments_text'] : JText::_('%s comments'), $comment_count);
             }
         }
         if ($this->_item->getState()) {
             $url = RouteHelper::getItemRoute($this->_item) . '#comments';
             return '<a href="' . JRoute::_($url) . '">' . $text . '</a>';
         } else {
             return $text;
         }
     }
 }
示例#13
0
文件: helper.php 项目: bizanto/Hooked
 public static function buildTagCloud($app, $params)
 {
     // get tags
     $tags = YTable::getInstance('tag')->getAll($app->id, null, null, 'items DESC', null, $params->get('count', 10), true);
     if (count($tags)) {
         // init vars
         $min_count = $tags[count($tags) - 1]->items;
         $max_count = $tags[0]->items;
         $font_span = ($max_count - $min_count) / 100;
         $font_class_span = (self::MAX_FONT_WEIGHT - self::MIN_FONT_WEIGHT) / 100;
         $menu_item = $params->get('menu_item', 0);
         $itemid = $menu_item ? '&Itemid=' . $menu_item : '';
         // attach font size, href
         foreach ($tags as $tag) {
             $tag->weight = $font_span ? round(self::MIN_FONT_WEIGHT + ($tag->items - $min_count) / $font_span * $font_class_span) : 1;
             $tag->href = $menu_item ? sprintf('index.php?option=com_zoo&task=tag&tag=%s&app_id=%d%s', $tag->name, $app->id, $itemid) : RouteHelper::getTagRoute($app->id, $tag->name);
         }
         self::orderTags($tags, $params->get('order'));
         return $tags;
     }
     return array();
 }
示例#14
0
 /**
  * Call this method once you're done registering additional routes to the current resource.
  * The original RouteHelper instance is returned, allowing infinite chaining of ordinary routes and resources.
  *
  * @return RouteHelper
  */
 public function done()
 {
     if (in_array(self::INDEX, $this->methods)) {
         $this->routeHelper->get($this->name, $this->controller, self::INDEX);
         if ($this->pagination) {
             $this->routeHelper->pagination($this->name, $this->controller, self::INDEX);
         }
     }
     if (in_array(self::SHOW, $this->methods)) {
         $this->routeHelper->get($this->name . '/{' . $this->name . '}', $this->controller, self::SHOW);
     }
     if (in_array(self::STORE, $this->methods)) {
         $this->routeHelper->post($this->name, $this->controller, self::STORE);
     }
     if (in_array(self::UPDATE, $this->methods)) {
         $this->routeHelper->put($this->name . '/{' . $this->name . '}', $this->controller, self::UPDATE);
         $this->routeHelper->patch($this->name . '/{' . $this->name . '}', $this->controller, self::UPDATE);
     }
     if (in_array(self::DESTROY, $this->methods)) {
         $this->routeHelper->delete($this->name . '/{' . $this->name . '}', $this->controller, self::DESTROY);
     }
     return $this->routeHelper;
 }
示例#15
0
文件: helper.php 项目: bizanto/Hooked
 public static function render($category, $params, $level)
 {
     // init vars
     $menu_item = $params->get('menu_item');
     $max_depth = $params->get('depth', 0);
     if ($menu_item) {
         $url = 'index.php?option=com_zoo&task=category&category_id=' . $category->id . '&Itemid=' . $menu_item;
     } else {
         $url = RouteHelper::getCategoryRoute($category);
     }
     $result = array();
     $result[] = '<li>';
     $result[] = '<a href="' . JRoute::_($url) . '">' . $category->name . '</a>';
     if ((!$max_depth || $max_depth >= $level) && ($children = $category->getChildren()) && !empty($children)) {
         $result[] = '<ul class="level' . $level . '">';
         foreach ($children as $child) {
             $result[] = self::render($child, $params, $level + 1);
         }
         $result[] = '</ul>';
     }
     $result[] = '</li>';
     return implode("\n", $result);
 }
示例#16
0
文件: route.php 项目: bizanto/Hooked
 protected function _setMenuItems()
 {
     if (self::$_menu_items == null) {
         $component = JComponentHelper::getComponent('com_zoo');
         $menus = JSite::getMenu();
         $menu_items = $menus->getItems('componentid', $component->id);
         $menu_items = $menu_items ? $menu_items : array();
         self::$_menu_items = array('frontpage' => array(), 'category' => array(), 'item' => array());
         $params = new YParameter();
         foreach ($menu_items as $menu_item) {
             switch (@$menu_item->query['view']) {
                 case 'frontpage':
                     self::$_menu_items['frontpage'][$params->loadString($menu_item->params)->get('application')] = $menu_item;
                     break;
                 case 'category':
                     self::$_menu_items['category'][$params->loadString($menu_item->params)->get('category')] = $menu_item;
                     break;
                 case 'item':
                     self::$_menu_items['item'][$params->loadString($menu_item->params)->get('item_id')] = $menu_item;
                     break;
             }
         }
     }
     return self::$_menu_items;
 }
示例#17
0
/*------------------------------------------------------------------------
# Cobalt
# ------------------------------------------------------------------------
# @author Cobalt
# @copyright Copyright (C) 2012 cobaltcrm.org All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website: http://www.cobaltcrm.org
-------------------------------------------------------------------------*/
// no direct access
defined('_CEXEC') or die('Restricted access');
//assign event
$event = $this->event;
$app = JFactory::getApplication();
?>
<form action="<?php 
echo RouteHelper::_('index.php');
?>
">
    <div class="validate" id="edit_task_form" method="post">
    <ul class="nav nav-tabs" id="myTab">
          <li class="active"><a href="#Task" data-toggle="tab" >Task</a></li>
          <li><a href="#Assignment" data-toggle="tab" >Assignment</a></li>
          <li><a href="#Date" data-toggle="tab">Date</a></li>
        </ul>
        <div class="tab-content">
          <div class="tab-pane active fade in" id="Task">
              <div class="cobaltRow">
                <div class="cobaltField"><?php 
echo ucwords(TextHelper::_('COBALT_EDIT_TASK_NAME'));
?>
<span class="required">*</span></div>
示例#18
0
        echo TextHelper::_("COBALT_COMPLETED");
        ?>
</span>
                                    </div>
                                </div>
                    <?php 
    }
}
?>
                </div>
                <?php 
if ($this->member_role == 'exec' && count($this->goals->company_goals) > 0) {
    ?>
                <div class="pull-right">
                    <a data-target="#editModal" data-toggle="modal" href="<?php 
    echo RouteHelper::_('index.php?view=goals&goal_type=company&format=raw&tmpl=component&layout=delete');
    ?>
" class="btn delete_goals" id="goal_type_company"><i class="glyphicon glyphicon-trash"></i><?php 
    echo TextHelper::_("COBALT_DELETE_GOALS");
    ?>
</a>
                </div>
                <?php 
}
?>
        </li>
    </ul>
</div>
</div>
<div id="delete_goals"></div>
<!-- Edit Modal -->
    ?>
">
        <td><a href="<?php 
    echo RouteHelper::_('index.php?view=reports&layout=custom_report&id=' . $report['id']);
    ?>
"><?php 
    echo $report['name'];
    ?>
</a></td>
        <td><?php 
    echo DateHelper::formatDate($report['modified']);
    ?>
</td>
        <td><?php 
    echo DateHelper::formatDate($report['created']);
    ?>
</td>
        <td>
            <a href="<?php 
    echo RouteHelper::_('index.php?view=reports&layout=edit_custom_report&id=' . $report['id']);
    ?>
"><?php 
    echo TextHelper::_('COBALT_EDIT_BUTTON');
    ?>
</a>
            |
            <a href="javascript:void(0);" class="delete delete_custom_report"><i class="glyphicon glyphicon-trash"></i></a>
        </td>
    </tr>
<?php 
}
示例#20
0
<script type="text/javascript">
    // add to view.html.php
    order_url = "<?php 
echo 'index.php?view=reports&layout=source_report_filter&tmpl=component&format=raw';
?>
";
    order_dir = "<?php 
echo $this->state->get('Deal.source_report_filter_order_Dir');
?>
";
    order_col = "<?php 
echo $this->state->get('Deal.source_report_filter_order');
?>
";
</script>
<form id="list_form" class="print_form" method="post" target="_blank" action="<?php 
echo RouteHelper::_('index.php?view=print');
?>
">
<input type="hidden" name="layout" value="report" />
<input type="hidden" name="model" value="deal" />
<input type="hidden" name="report" value="source_report" />

<?php 
echo $this->source_report_header->render();
echo $this->source_report_list->render();
echo $this->source_report_footer->render();
?>
<input type="hidden" name="list_type" value="source_report" />
</form>
示例#21
0
        <h2><?php 
echo TextHelper::_('COBALT_STEP_THREE');
?>
</h2>
    </div>
    <div class="col-sm-10">
        <h3 class="help-block"><?php 
echo TextHelper::_('COBALT_UPLOAD_YOUR_FILE');
?>
</h3>
        <p class="help-block"><?php 
echo TextHelper::_('COBALT_SELECT_YOUR_CSV');
?>
</p>
        <form id="upload_form" action="<?php 
echo RouteHelper::_('index.php?view=import&layout=review');
?>
" method="post" enctype="multipart/form-data">
            <div class="btn-group">

                <div class="btn btn-default btn-file">
                    <i class="glyphicon glyphicon-plus"></i>  Upload File <input type="file" name="document" id="upload_input_invisible">
                </div>
            </div>
            <input type="hidden" name="type" value="people" />
            <input type="hidden" name="import_type" value="<?php 
echo $this->import_type;
?>
" />
        </form>
    </div>
示例#22
0
文件: list-v.php 项目: bizanto/Hooked
            }
            ?>
					</h3>
					<?php 
        }
        ?>
				
					<?php 
        if ($params->get('show_meta', 1)) {
            ?>
					<p class="meta">
						<?php 
            echo JHTML::_('date', $comment->created, JText::_('ZOO_COMMENT_MODULE_DATE_FORMAT'));
            ?>
						| <a class="permalink" href="<?php 
            echo JRoute::_(RouteHelper::getItemRoute($item) . '#comment-' . $comment->id);
            ?>
">#</a>
					</p>
					<?php 
        }
        ?>
				
					<p class="content">
						<?php 
        echo CommentHelper::filterContentOutput(YString::truncate($comment->content, modZooCommentHelper::MAX_CHARACTERS));
        ?>
					</p>
	
				</li>
			
示例#23
0
<?php

/*------------------------------------------------------------------------
# Cobalt
# ------------------------------------------------------------------------
# @author Cobalt
# @copyright Copyright (C) 2012 cobaltcrm.org All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website: http://www.cobaltcrm.org
-------------------------------------------------------------------------*/
// no direct access
defined('_CEXEC') or die('Restricted access');
?>
<form action="<?php 
echo RouteHelper::_('index.php?view=admindocuments&format=raw');
?>
" method="post" name="adminForm" id="adminForm" class="inline-form form-validate" enctype="multipart/form-data" >
    <input type="file" class="input-file" name="document" />
    <input type="submit" class="btn btn-primary" value="<?php 
echo TextHelper::_('COBALT_UPLOAD');
?>
" />
    <?php 
echo JHtml::_('form.token');
?>
</form>
示例#24
0
echo ConfigHelper::getCurrency();
echo (double) $person['total_pipeline'];
?>
</h2>
            </div>
            <div class="crmeryRow top">
                <div class="crmeryField"><?php 
echo ucwords(TextHelper::_('COBALT_COMPANY'));
?>
:</div>
                <div class="crmeryValue">
                    <?php 
if (array_key_exists('company_id', $person) && $person['company_id'] > 0) {
    ?>
                        <a href="<?php 
    echo RouteHelper::_("index.php?view=companies&layout=company&company_id=" . $person['company_id']);
    ?>
"><?php 
    echo $person['company_name'];
    ?>
</a>
                    <?php 
} else {
    echo ucwords(TextHelper::_('COBALT_NO_COMPANY'));
}
?>
                </div>
                <div class="clear"></div>
            </div>
            <div class="crmeryRow">
                <div class="crmeryField"><?php 
示例#25
0
 public function feed()
 {
     // get request vars
     $category_id = (int) YRequest::getInt('category_id', $this->params->get('category'));
     // get params
     $all_categories = $this->application->getCategoryTree(true);
     // raise warning when category can not be accessed
     if (!isset($all_categories[$category_id])) {
         JError::raiseWarning(500, JText::_('Unable to access category'));
         return;
     }
     $category = $all_categories[$category_id];
     $params = $category ? $category->getParams('site') : $this->application->getParams('frontpage');
     $show_feed_link = $params->get('config.show_feed_link', 0);
     $feed_title = $params->get('config.feed_title', '');
     // init vars
     $document = JFactory::getDocument();
     // raise error when feed is link is disabled
     if (empty($show_feed_link)) {
         JError::raiseError(500, JText::_('Unable to access feed'));
         return;
     }
     // get feed items from category
     $categories = $category->getChildren(true);
     $categories[$category->id] = $category;
     $feed_limit = $this->joomla->getCfg('feed_limit');
     $feed_items = YTable::getInstance('item')->getFromCategory($this->application->id, array_keys($categories), true, null, 'created DESC', 0, $feed_limit);
     // set title
     if ($feed_title) {
         $document->setTitle(html_entity_decode($this->getView()->escape($feed_title)));
     }
     // set feed link
     $document->link = JRoute::_($this->link_base . '&task=category');
     // set renderer
     $renderer = new ItemRenderer();
     $renderer->addPath(array($this->application->getTemplate()->getPath(), ZOO_SITE_PATH));
     foreach ($feed_items as $feed_item) {
         // create feed item
         $item = new JFeedItem();
         $item->title = html_entity_decode($this->getView()->escape($feed_item->name));
         $item->link = JRoute::_(RouteHelper::getItemRoute($feed_item));
         $item->date = $feed_item->created;
         $item->author = $feed_item->getAuthor();
         $item->description = $this->_relToAbs($renderer->render('item.feed', array('item' => $feed_item)));
         // add to feed document
         $document->addItem($item);
     }
 }
示例#26
0
        </li>
        <li>
            <input name="deal_name" type="text" placeholder="<?php 
echo TextHelper::_('COBALT_ANYTHING');
?>
" value="<?php 
echo $this->deal_filter;
?>
" class="form-control datatable-searchbox">
        </li>
        <li>
            <div class="ajax_loader"></div>
        </li>
    </ul>

<?php 
echo TemplateHelper::getListEditActions();
?>

<form method="post" id="list_form" action="<?php 
echo RouteHelper::_('index.php?view=deals');
?>
">
    <table class="table table-hover table-striped data-table table-bordered" id="deals">
        <?php 
echo $this->deal_list->render();
?>
    </table>
    <input type="hidden" name="list_type" value="deals" />
</form>
     <tr class="cobalt_row_<?php 
    echo $k;
    ?>
">
        <?php 
    if ($app->input->get('view') != "print") {
        ?>
         <td><input type="checkbox" name="ids[]" value="<?php 
        echo $report['id'];
        ?>
" /></td>
         <?php 
    }
    ?>
         <td><a href="<?php 
    echo RouteHelper::_("index.php?view=deals&layout=deal&id=" . $report['id']);
    ?>
"><?php 
    echo $report['name'];
    ?>
</a></td>
         <td><?php 
    echo $report['owner_first_name'] . " " . $report['owner_last_name'];
    ?>
</td>
         <td><?php 
    echo ConfigHelper::getCurrency() . $report['amount'];
    ?>
</td>
         <td><?php 
    echo $report['source_name'];
示例#28
0
</span>
                </a>
            </li>
            <li data-theme="c">
                <a href="<?php 
echo RouteHelper::_('index.php?view=companies');
?>
">
                    <img class='ui-li-icon' src='<?php 
echo JURI::root();
?>
//media/images/mobile/companies.png' />
                    <?php 
echo ucwords(TextHelper::_('COBALT_COMPANIES'));
?>
                    <span class='ui-li-count'><?php 
echo $this->numCompanies;
?>
</span>
                </a>
            </li>
        </ul>
        <div style="float:right;font-size:8px;"><a href="javascript:void(0);" onclick="window.location='<?php 
echo RouteHelper::_('index.php?view=dashboard&mobile=no');
?>
';"><?php 
echo TextHelper::_('COBALT_TOGGLE_DESKTOP_VIEW');
?>
</a></div>
    </div>
示例#29
0
        <?php 
}
?>

        <?php 
if ($event['deal_name'] != "") {
    ?>
            <div data-role="collapsible">
                <h3><?php 
    echo ucwords(TextHelper::_('COBALT_ASSOCIATED_DEALS'));
    ?>
</h3>
                <ul data-inset='true' data-role='listview' data-theme="c">
                    <li>
                        <a href="<?php 
    echo RouteHelper::_('index.php?view=deals&layout=deal&id=' . $event['association_id']);
    ?>
">
                            <h3><?php 
    echo $event['deal_name'];
    ?>
</h3>
                            <div class="ui-li-count"><?php 
    echo ConfigHelper::getCurrency() . $event['deal_amount'];
    ?>
</div>
                        </a>
                    </li>
                </ul>
            </div>
        <?php 
示例#30
0
?>
<script type="text/javascript">
    var new_event_date = null;
    var menu = true;
    var curr_cal_event = null;
    var cloning = false;
    var eventsObj = <?php 
echo $this->events;
?>
;
    var loc = 'calendar';
</script>

<div class="pull-right btn-group">
    <button onclick="location.href = '<?php 
echo RouteHelper::_('index.php?view=events');
?>
'" class="btn btn-default" type="button"><?php 
echo TextHelper::_('COBALT_CALENDAR_SHOW_ALL');
?>
</button>
    <button id="company_type_link" class="btn btn-default"data-toggle="dropdown" type="button">
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li><a href="javascript:void(0);" onclick="Calendar.showCalendarTasks()"><?php 
echo TextHelper::_('COBALT_SHOW_TASKS');
?>
</a></li>
        <li><a href="javascript:void(0);" onclick="Calendar.showCalendarEvents()"><?php 
echo TextHelper::_('COBALT_SHOW_EVENTS');