Example #1
0
 function displaySingleProduct()
 {
     $this->product = $this->get('Product');
     $this->products = $this->get('Products');
     FSS_Translate_Helper::TrSingle($this->product);
     FSS_Translate_Helper::Tr($this->products);
     $mainframe = JFactory::getApplication();
     $pathway = $mainframe->getPathway();
     if (FSS_Helper::NeedBaseBreadcrumb($pathway, array('view' => 'test'))) {
         $pathway->addItem(JText::_('TESTIMONIALS'), FSSRoute::_('index.php?option=com_fss&view=test'));
     }
     $pathway->addItem($this->product['title']);
     // no product then general testimonials
     if (!$this->product && count($this->products) > 0) {
         $this->product = array();
         $this->product['title'] = JText::_('GENERAL_TESTIMONIALS');
         $this->product['id'] = 0;
         $this->product['description'] = '';
         $this->product['image'] = '/components/com_fss/assets/images/generaltests.png';
     }
     if ($this->test_always_prod_select) {
         $this->comments->show_item_select = 1;
     } else {
         $this->comments->show_item_select = 0;
     }
     $this->comments->PerPage(FSS_Settings::Get('test_comments_per_page'));
     parent::display("single");
 }
Example #2
0
<?php

/**
 * @package Freestyle Joomla
 * @author Freestyle Joomla
 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
FSS_Translate_Helper::TrSingle($product);
?>

<div class='media kb_prod_<?php 
echo $product['id'];
?>
 test_prod_accordion'>

	<?php 
$link = "#";
if ($this->test_show_prod_mode != "inline" && $this->test_show_prod_mode != "accordian") {
    $link = FSSRoute::_('index.php?option=com_fss&view=test&prodid=' . $product['id']);
}
// FIX LINK
?>
	
	<?php 
if ($product['image']) {
    ?>
	<div class='pull-left'>
		<a href="<?php 
    echo $link;
Example #3
0
					<?php 
        }
        ?>
					<?php 
        echo $this->product['title'];
        ?>
				</div>
			</div>
		<?php 
    }
    ?>
		<?php 
    if ($this->dept['title']) {
        ?>
			<?php 
        FSS_Translate_Helper::TrSingle($this->dept);
        ?>
			<div class="control-group cg-department">
				<label class="control-label"><?php 
        echo JText::_("DEPARTMENT");
        ?>
</label>
				<div class="controls department-small">
					<?php 
        if ($this->dept['image']) {
            ?>
						<img class="media-object" src="<?php 
            echo JURI::root(true);
            ?>
/images/fss/departments/<?php 
            echo $this->dept['image'];
 function loadPDC()
 {
     $this->products = SupportHelper::getProducts();
     $this->departments = SupportHelper::getDepartments();
     $this->categories = SupportHelper::getCategories();
     $prods = array();
     $prods[] = JHTML::_('select.option', '0', JText::_("SELECT_PRODUCT"), 'id', 'title');
     $prods = array_merge($prods, $this->products);
     $this->products_select = JHTML::_('select.genericlist', $prods, 'prodid', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->prodid);
     $depts = array();
     $depts[] = JHTML::_('select.option', '0', JText::_("SELECT_DEPARTMENT"), 'id', 'title');
     $depts = array_merge($depts, $this->departments);
     $this->departments_select = JHTML::_('select.genericlist', $depts, 'deptid', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->deptid);
     $cats = array();
     $cats[] = JHTML::_('select.option', '0', JText::_("SELECT_CATEGORY"), 'id', 'title');
     $cats = array_merge($cats, $this->categories);
     $this->categories_select = JHTML::_('select.genericlist', $cats, 'catid', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->catid);
     $modes = array();
     $modes[] = JHTML::_('select.option', '0', JText::_("VIEW_TICKETS"), 'id', 'title');
     $modes[] = JHTML::_('select.option', '1', JText::_("ASSIGN_TICKETS"), 'id', 'title');
     $this->mode_select = JHTML::_('select.genericlist', $modes, 'mode', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->mode);
     $this->statuss = SupportHelper::getStatuss();
     FSS_Translate_Helper::Tr($this->statuss);
     $this->status_select = JHTML::_('select.genericlist', $this->statuss, 'status', 'class="input-medium hide" size="1" onchange="document.mainform.submit( );" id="cur_status"', 'id', 'title', $this->status);
     $this->status_obj = FSS_Ticket_Helper::GetStatusByID($this->status);
     FSS_Translate_Helper::TrSingle($this->status_obj);
 }
Example #5
0
<?php

/**
 * @package Freestyle Joomla
 * @author Freestyle Joomla
 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
if ($this->ticket_view == "open") {
    $cst = null;
} else {
    $cst = FSS_Ticket_Helper::GetStatusByID($this->ticket_view);
}
FSS_Translate_Helper::TrSingle($cst);
$tabs = FSS_Ticket_Helper::GetStatuss("own_tab");
FSS_Translate_Helper::Tr($tabs);
?>

<ul class="nav nav-tabs">

	<?php 
if (FSS_Input::getString('search') != "") {
    ?>
		<li class="active">
			<a href='#' onclick="return false;">
				Search
			</a>
		</li>	
	<?php 
}
Example #6
0
 function &getProduct()
 {
     $db = JFactory::getDBO();
     $prodid = FSS_Input::getInt('prodid');
     $query = "SELECT * FROM #__fss_prod WHERE id = '" . FSSJ3Helper::getEscaped($db, $prodid) . "'";
     $db->setQuery($query);
     $rows = $db->loadAssoc();
     FSS_Translate_Helper::TrSingle($rows);
     return $rows;
 }