Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/j3/components/com_phocacart/views/pos/tmpl/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/j3/components/com_phocacart/views/pos/tmpl/default_main_categories.php

<?php
/* @package Joomla
 * @copyright Copyright (C) Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @extension Phoca Extension
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
defined('_JEXEC') or die();

if (!empty($this->t['categories'])) {


	// this function is triggered in phocapos.js
	echo '<form
class="'.$this->s['c']['form-inline'].'
ph-pos-checkbox-form"
action="'.$this->t['linkpos'].'"
id="phPosCategory" method="post">';
	echo '<div class="ph-pos-checkbox-box btn-group-toggle"
data-toggle="buttons"  >';//
data-toggle="buttons" - changes the standard checkbox to
graphical checkbox


	foreach ($this->t['categories'] as $k => $v) {
		$active	= '';
		$attrO	= '';
		if (in_array((int)$v->id, $this->t['categoryarray'])) {
			$active	= ' active';
			$attrO	= ' checked="checked"';
		}

		echo '<label
class="'.$this->s['c']['btn'].'
phCheckBoxButton phCheckBoxCategory '.$active.'"
><input type="checkbox" '.$attrO.'
class="phPosCategoryCheckbox"
name="c['.$v->id.']"
value="'.$v->id.'" autocomplete="off" 
/><span
class="'.$this->s['i']['ok'].'"
title="'.htmlspecialchars($v->title).''.'"></span>
'.htmlspecialchars($v->title).'</label> ';

	}

	echo '<input type="hidden" name="type"
value="products">';
	echo '<input type="hidden" name="tmpl"
value="component" />';
	echo '<input type="hidden" name="option"
value="com_phocacart" />';
	echo '<input type="hidden" name="ticketid"
value="'.(int)$this->t['ticket']->id.'"
/>';
	echo '<input type="hidden" name="unitid"
value="'.(int)$this->t['unit']->id.'"
/>';
	echo '<input type="hidden" name="section"
value="'.(int)$this->t['section']->id.'"
/>';
	echo Joomla\CMS\HTML\HTMLHelper::_('form.token');

	echo '</div>';
	echo '</form>';

}

?>