Beispiel #1
0
<?php

defined('_JEXEC') or die('Restricted access');
JHTML::_('script', 'tienda.js', 'media/com_tienda/js/');
$state = @$this->state;
$form = @$this->form;
$items = @$this->items;
?>

<?php 
DSC::loadHighcharts();
?>

	<?php 
echo TiendaGrid::pagetooltip(JRequest::getVar('view'));
?>

	<table style="width: 100%;">
	<tr>
		<td style="width: 70%; max-width: 70%; vertical-align: top; padding: 0px 5px 0px 5px;">
		
		    <form action="<?php 
echo JRoute::_(@$form['action']);
?>
" method="post" name="adminForm" enctype="multipart/form-data">

			<table class="table table-striped table-bordered" style="margin-bottom: 5px;">
			<thead>
			<tr>
				<th><?php 
echo JText::_('COM_TIENDA_RANGE');
Beispiel #2
0
 /**
  * Basic methods for a form
  * @param $tpl
  * @return unknown_type
  */
 function _form($tpl = '')
 {
     Tienda::load('TiendaSelect', 'library.select');
     Tienda::load('TiendaGrid', 'library.grid');
     $model = $this->getModel();
     if (isset($this->row)) {
         JFilterOutput::objectHTMLSafe($this->row);
     } else {
         $row = $model->getItem();
         JFilterOutput::objectHTMLSafe($row);
         $this->assign('row', $row);
     }
     // form
     $form = array();
     $controller = strtolower($this->get('_controller', JRequest::getVar('controller', JRequest::getVar('view'))));
     $view = strtolower($this->get('_view', JRequest::getVar('view')));
     $task = strtolower($this->get('_task', 'edit'));
     $form['action'] = $this->get('_action', "index.php?option=com_tienda&controller={$controller}&view={$view}&task={$task}&id=" . $model->getId());
     $form['validation'] = $this->get('_validation', "index.php?option=com_tienda&controller={$controller}&view={$view}&task=validate&format=raw");
     $form['validate'] = "<input type='hidden' name='" . JUtility::getToken() . "' value='1' />";
     $form['id'] = $model->getId();
     $this->assign('form', $form);
     // set the required image
     // TODO Fix this
     $required = new stdClass();
     $required->text = JText::_('COM_TIENDA_REQUIRED');
     $required->image = TiendaGrid::required($required->text);
     $this->assign('required', $required);
 }
Beispiel #3
0
                    
                    <?php 
    }
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::order($item->product_id);
    ?>
                    <?php 
    echo TiendaGrid::ordering($item->product_id, $item->ordering);
    ?>
                </td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::enable($item->product_enabled, $i, 'product_enabled.');
    ?>
				</td>
			</tr>
			<?php 
    ++$i;
    $k = 1 - $k;
    ?>
			<?php 
}
?>

			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #4
0
} else {
    echo JText::_('COM_TIENDA_NONE');
}
?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100px; text-align: right;" class="key">
                        <?php 
echo JText::_('COM_TIENDA_BALANCE_UPDATED');
?>
:
                    </td>
                    <td>
                        <?php 
echo TiendaGrid::boolean(@$row->credits_updated);
?>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100px; text-align: right;" class="key">
                        <?php 
echo JText::_('COM_TIENDA_BALANCE_BEFORE');
?>
:
                    </td>
                    <td>
                        <?php 
echo @$row->credit_balance_before;
?>
                    </td>
Beispiel #5
0
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    $table = JTable::getInstance('ProductCategories', 'TiendaTable');
    ?>
					<?php 
    $keynames = array();
    $keynames['product_id'] = $item->product_id;
    $keynames['category_id'] = $row->category_id;
    ?>
					<?php 
    $table->load($keynames);
    ?>
					<?php 
    echo TiendaGrid::enable(isset($table->product_id), $i, 'selected_');
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #6
0
JHTML::_('behavior.modal');
JHTML::_('behavior.tooltip');
$model = $this->getModel();
$page = $this->get('Pagination');
?>
<form action="<?php 
echo JRoute::_(@$form['action'] . '&tmpl=component&object=' . $this->object);
?>
" method="post" name="adminForm">
<div class="pull-left">
	<?php 
echo TiendaSelect::productstates(@$state->filter_state, 'product_state', array('class' => 'inputbox', 'onchange' => 'this.form.submit();'));
?>
</div>
<?php 
echo TiendaGrid::searchform(@$state->filter, JText::_('COM_TIENDA_SEARCH'), JText::_('COM_TIENDA_RESET'));
?>

<table class="dsc-clear table table-striped">
	<thead>
		<tr>
			<th width="2%" class="title">
				<?php 
echo DSCGrid::sort('ID', 'tbl.product_id', @$state->direction, @$state->order);
?>
			</th>
			<th style="width:50px;">
				<?php 
echo JText::_('COM_TIENDA_IMAGE');
?>
			</th>
Beispiel #7
0
?>
                </th>
                <th>
                </th>                
            </tr>
            <tr>
                <th style="width: 50px;">
                </th>
                <th style="width: 200px; text-align: left;">
                    <?php 
echo TiendaGrid::sort('COM_TIENDA_FILE', "filename", @$state->direction, @$state->order);
?>
                </th>
                <th style="width: 200px;">
                    <?php 
echo TiendaGrid::sort('COM_TIENDA_PRODUCT', "product_name", @$state->direction, @$state->order);
?>
                </th>
                <th style="width: 50px;">
                    <?php 
echo JText::_('COM_TIENDA_MAX_DOWNLOADS');
?>
                </th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <td colspan="20">
                    <div style="float: right; padding: 5px;"><?php 
echo @$this->pagination->getResultsCounter();
?>
Beispiel #8
0
        echo "<br/><b>" . JText::_('COM_TIENDA_MINIMUM_ORDER_REQUIRED') . "</b>: " . TiendaHelperBase::currency($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('COM_TIENDA_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . TiendaHelperBase::currency($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
				<td style="text-align: center;">
				    <?php 
    echo $item->tax_class_name;
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::boolean($item->shipping_method_enabled);
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>

			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #9
0
    ?>
">
						<?php 
    echo JText::_('COM_TIENDA_EDIT_PLUGIN_PARAMETERS');
    ?>
					</a>
					]
				</td>
                <td style="text-align: center;">
                	 <?php 
    if (version_compare(JVERSION, '1.6.0', 'ge')) {
        // Joomla! 1.6+ code here
        echo TiendaGrid::enable($item->enabled, $i, 'enabled.');
    } else {
        // Joomla! 1.5 code here
        echo TiendaGrid::enable($item->published, $i, 'published.');
    }
    ?>
                    
                </td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
Beispiel #10
0
		</thead>
        <tbody>
		<?php 
$i = 0;
$k = 0;
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'product_price_id');
    ?>
				</td>
				<td style="text-align: center;">
					<input type="text" name="price[<?php 
    echo $item->product_price_id;
    ?>
]" value="<?php 
    echo $item->product_price;
    ?>
" />
				</td>
				<td style="text-align: center;">
                	<?php 
    echo JHTML::calendar($item->product_price_startdate, "date_start[{$item->product_price_id}]", "date_start_{$item->product_price_id}", '%Y-%m-%d %H:%M:%S');
    ?>
Beispiel #11
0
		</thead>
		<tbody>
		<?php 
$i = 0;
$k = 0;
?>
		<?php 
foreach (@$items as $item) {
    ?>
			<tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'shipping_rate_weightbased_id');
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo TiendaSelect::geozone($item->geozone_id, "geozones[{$item->shipping_rate_weightbased_id}]");
    ?>
				</td>
				<td style="text-align: center;">
					<input type="text" name="base_prices[<?php 
    echo $item->shipping_rate_weightbased_id;
    ?>
]" value="<?php 
    echo $item->base_price;
    ?>
" />
Beispiel #12
0
        echo "<br/><b>" . JText::_('COM_TIENDA_MINIMUM_ORDER_REQUIRED') . "</b>: " . TiendaHelperBase::currency($item->subtotal_minimum);
    }
    if ($item->subtotal_maximum > '-1') {
        echo "<br/><b>" . JText::_('COM_TIENDA_SHIPPING_METHODS_SUBTOTAL_MAX') . "</b>: " . TiendaHelperBase::currency($item->subtotal_maximum);
    }
    ?>
                    </div>
				</td>
				<td style="text-align: center;">
				    <?php 
    echo $item->tax_class_name;
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::enable($item->shipping_method_enabled, $i, 'shipping_method_enabled.');
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>

			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #13
0
		</thead>
        <tbody>
		<?php 
$i = 0;
$k = 0;
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'shipping_rate_id');
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaSelect::geozone($item->geozone_id, "geozone[{$item->shipping_rate_id}]", 2);
    ?>
                </td>				
				<td style="text-align: center;">
					<input type="text" name="price[<?php 
    echo $item->shipping_rate_id;
    ?>
]" value="<?php 
    echo $item->shipping_rate_price;
    ?>
" />
Beispiel #14
0
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    $table = JTable::getInstance('ZoneRelations', 'TiendaTable');
    ?>
					<?php 
    $keynames = array();
    $keynames['geozone_id'] = $row->geozone_id;
    $keynames['zone_id'] = $item->zone_id;
    ?>
					<?php 
    $table->load($keynames);
    ?>
					<?php 
    echo TiendaGrid::enable(isset($table->geozone_id), $i, 'selected_');
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    if (isset($table->geozone_id)) {
        ?>
					<input type="text" name="zip_range[<?php 
        echo $table->zone_id;
        ?>
]" value="<?php 
        echo @$table->zip_range;
        ?>
" />
					<?php 
    }
Beispiel #15
0
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td align="center">
					<?php 
    echo $i + 1;
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'zone_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->zone_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #16
0
                    </a>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo $item->coupon_value;
    ?>
                </td>
                 <td style="text-align: center;">
                    <?php 
    echo JText::_('COM_TIENDA_COUPON_VALUE_TYPE_' . $item->coupon_value_type);
    ?>

                </td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::enable($item->coupon_enabled, $i, 'coupon_enabled.');
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo $item->coupon_uses;
    ?>
                </td>
                <td style="text-align: center;">

                </td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
Beispiel #17
0
	<?php 
if ($elements['phone'][0]) {
    ?>
	<div>
		<label class="key" name="<?php 
    echo $this->form_prefix;
    ?>
phone_1">
			<?php 
    echo JText::_('COM_TIENDA_PHONE');
    ?>
			<?php 
    if ($elements['phone'][1]) {
        ?>
				<?php 
        echo TiendaGrid::required();
        ?>
			<?php 
    }
    ?>
		</label>
		<input name="<?php 
    echo $this->form_prefix;
    ?>
phone_1" id="<?php 
    echo $this->form_prefix;
    ?>
phone_1" class="inputbox" type="text" size="25" maxlength="250" data-required="<?php 
    echo $elements['phone'][1] ? 'true' : false;
    ?>
" />
Beispiel #18
0
    ?>
                    </a>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo $item->transaction_id;
    ?>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::enable($item->subscription_enabled, $i, 'subscription_enabled.');
    ?>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::enable($item->lifetime_enabled, $i, 'lifetime_enabled.');
    ?>
                </td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #19
0
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td align="center">
					<?php 
    echo $i + 1;
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'address_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->address_id;
    ?>
					</a>
				</td>	
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
Beispiel #20
0
	<table class="table table-striped table-bordered" style="clear: both;">
		<thead>
            <tr>
                <th style="width: 5px;">
                	<?php 
echo JText::_('COM_TIENDA_NUM');
?>
                </th>
                <th style="width: 50px;">
                	<?php 
echo TiendaGrid::sort('COM_TIENDA_ID', "tbl.id", @$state->direction, @$state->order);
?>
                </th>                
                <th style="text-align: left;">
                	<?php 
echo TiendaGrid::sort('COM_TIENDA_NAME', "tbl.name", @$state->direction, @$state->order);
?>
                </th>
				<th>
				</th>
            </tr>
            <tr class="filterline">
                <th colspan="2">
                    <?php 
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
?>
                   <div class="range">
                        <div class="rangeline">
                            <input type="text" placeholder="<?php 
echo JText::_('COM_TIENDA_FROM');
?>
Beispiel #21
0
		<div class="form_input">
			<!--   Password 1st   -->
			<input id="password" name="password" type="password" onblur="tiendaCheckPassword( 'message-password', this.form, 'password', <?php 
echo $min_length;
?>
, <?php 
echo $req_num;
?>
, <?php 
echo $req_alpha;
?>
, <?php 
echo $req_spec;
?>
  );" class="inputbox_required" size="30" value="" />
		</div>
		<div class="form_message" id="message-password"></div>
	</div>
	<div class="form_item">
		<div class="form_key">
			<?php 
echo JText::_('COM_TIENDA_VERIFY_PASSWORD') . ': ' . TiendaGrid::required();
?>
		</div>
		<div class="form_input">
			<!--   Password 2nd   -->
			<input id="password2" name="password2" type="password" onblur="tiendaCheckPassword2( 'message-password2', this.form, 'password', 'password2' );" class="inputbox_required" size="30" value="" />			
		</div>
		<div class="form_message" id="message-password2"></div>
	</div>
</div>
Beispiel #22
0
    echo $item->currency_code;
    ?>
				</td>
				<td style="text-align: center;">
				    <?php 
    echo $currency_helper->format('9876.54321', $item);
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo $currency_helper->convert($item->currency_code);
    ?>
                </td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::enable($item->currency_enabled, $i, 'currency_enabled.');
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #23
0
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    $table = JTable::getInstance('UserGroups', 'TiendaTable');
    ?>
					<?php 
    $keynames = array();
    $keynames['user_id'] = $item->id;
    $keynames['group_id'] = $row->group_id;
    ?>
					<?php 
    $table->load($keynames);
    ?>
					<?php 
    echo TiendaGrid::enable(isset($table->user_id), $i, 'selected_');
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #24
0
		</thead>
        <tbody>
		<?php 
$i = 0;
$k = 0;
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'productattributeoptionvalue_id');
    ?>
				</td>
				<td style="text-align: left;">
					<?php 
    echo TiendaSelect::productattributeoptionvaluefield($item->productattributeoptionvalue_field, "field[{$item->productattributeoptionvalue_id}]");
    ?>
				</td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaSelect::productattributeoptionvalueoperator($item->productattributeoptionvalue_operator, "operator[{$item->productattributeoptionvalue_id}]");
    ?>
                </td>
                <td style="text-align: center;">
                    <input type="text" name="value[<?php 
    echo $item->productattributeoptionvalue_id;
Beispiel #25
0
				<td style="text-align: left;">
					<?php 
    echo $item->product_name;
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    $table = JTable::getInstance('EavAttributeEntities', 'TiendaTable');
    ?>
					<?php 
    $keynames = array();
    $keynames['eaventity_id'] = $item->product_id;
    $keynames['eavattribute_id'] = $row->eavattribute_id;
    $keynames['eaventity_type'] = 'products';
    $table->load($keynames);
    echo TiendaGrid::enable(isset($table->eaventity_id), $i, 'selected_');
    ?>
				</td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>
Beispiel #26
0
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td align="center">
					<?php 
    echo $i + 1;
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'orderitem_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->orderitem_id;
    ?>
					</a>
				</td>
                <td style="text-align: center;">
                    <a href="<?php 
    echo $item->link;
Beispiel #27
0
<!--                    <input type="checkbox" id="cb<?php 
    echo $i;
    ?>
" name="cid[]" value="<?php 
    echo $key;
    ?>
" onclick="isChecked(this.checked);" />-->
<!--                </td>-->
                <td style="text-align: left;">
                    <?php 
    echo "{$item} ({$key})";
    ?>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::boolean(array_key_exists($key, $vars->services));
    ?>
                </td>
            </tr>
            <?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
            <?php 
}
?>

            <?php 
if (!count(@$items)) {
    ?>
            <tr>
Beispiel #28
0
    function display()
    {
        $mainframe = JFactory::getApplication();
        // Initialize variables
        $db = JFactory::getDBO();
        $nullDate = $db->getNullDate();
        $document = JFactory::getDocument();
        $document->setTitle('Product Selection');
        JHTML::_('behavior.modal');
        $template = $mainframe->getTemplate();
        $document->addStyleSheet("templates/{$template}/css/general.css");
        $document->addScript('media/com_tienda/js/tienda.js');
        $limitstart = JRequest::getVar('limitstart', '0', '', 'int');
        $lists = $this->_getLists();
        //Ordering allowed ?
        // $ordering = ($lists['order'] == 'section_name' && $lists['order_Dir'] == 'ASC');
        $rows =& $this->get('List');
        $page =& $this->get('Pagination');
        JHTML::_('behavior.tooltip');
        $object = JRequest::getVar('object');
        $link = 'index.php?option=com_tienda&task=elementproductmultiple&tmpl=component&object=' . $object;
        Tienda::load('TiendaGrid', 'library.grid');
        ?>
		<?php 
        JHTML::_('script', 'tienda.js', 'media/com_tienda/js/');
        ?>

<form action="<?php 
        echo $link;
        ?>
" method="post" name="adminForm">

<table>
	<tr>
		<td width="100%"><?php 
        echo JText::_('COM_TIENDA_FILTER');
        ?>
: <input
			type="text" name="search" id="search"
			value="<?php 
        echo $lists['search'];
        ?>
" class="text_area"
			onchange="document.adminForm.submit();" />
		<button onclick="this.form.submit();"><?php 
        echo JText::_('COM_TIENDA_GO');
        ?>
</button>
		<button
			onclick="document.getElementById('search').value='';this.form.submit();"><?php 
        echo JText::_('COM_TIENDA_RESET');
        ?>
</button>
		</td>
		<td nowrap="nowrap">
    		<button onclick="tiendaSetItemsToOrder(<?php 
        echo count($rows);
        ?>
, '<?php 
        echo JText::_('COM_TIENDA_UNABLE_TO_RETRIEVE_PRODUCT_SELECTION');
        ?>
');return false;"><?php 
        echo JText::_('COM_TIENDA_ADD_SELECTED_PRODUCTS_TO_ORDER');
        ?>
</button>
		</td>
	</tr>
</table>

<table class="adminlist" cellspacing="1">
	<thead>
		<tr>
			<th width="5"><?php 
        echo JText::_('COM_TIENDA_NUM');
        ?>
</th>
			<th style="width: 20px;"><input type="checkbox" name="toggle"
				value="" onclick="checkAll(<?php 
        echo count($rows);
        ?>
);" /></th>
			<th width="2%" class="title"><?php 
        echo JHTML::_('grid.sort', 'ID', 'tbl.product_id', @$lists['order_Dir'], @$lists['order']);
        ?>
			</th>
			<th style="width:50px;"><?php 
        echo JText::_('COM_TIENDA_IMAGE');
        ?>
</th>
			<th class="title"><?php 
        echo JHTML::_('grid.sort', 'Name', 'tbl.product_name', @$lists['order_Dir'], @$lists['order']);
        ?>
			</th>
			<th class="title"><?php 
        echo JHTML::_('grid.sort', 'Price', 'pp.product_price', @$lists['order_Dir'], @$lists['order']);
        ?>
			</th>
			<th class="title"><?php 
        echo JText::_('COM_TIENDA_QTY');
        ?>
</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td colspan="15"><?php 
        echo $page->getListFooter();
        ?>
</td>
		</tr>
	</tfoot>
	<tbody>
	<?php 
        $k = 0;
        for ($i = 0, $n = count($rows); $i < $n; $i++) {
            $row =& $rows[$i];
            $onclick = "\r\n\t\t\t\t\twindow.parent.jSelectProducts(\r\n\t\t\t\t\t'{$row->product_id}', '" . str_replace(array("'", "\""), array("\\'", ""), $row->product_name) . "', '" . JRequest::getVar('object') . "'\r\n\t\t\t\t\t);";
            ?>
		<tr class="<?php 
            echo "row{$k}";
            ?>
">
			<td><?php 
            echo $page->getRowOffset($i);
            ?>
</td>
			<td style="text-align: center;"><?php 
            echo TiendaGrid::checkedout($row, $i, 'product_id');
            ?>
			</td>
			<td style="text-align: center;"><a style="cursor: pointer;"
				onclick="<?php 
            echo $onclick;
            ?>
"> <?php 
            echo $row->product_id;
            ?>
 </a>
			</td>
			<td>
			<?php 
            jimport('joomla.filesystem.file');
            if (!empty($row->product_thumb_image) && JFile::exists(Tienda::getPath('products_thumbs') . DS . $row->product_thumb_image)) {
                ?>
					<img src="<?php 
                echo Tienda::getURL('products_thumbs') . $row->product_thumb_image;
                ?>
" style="display: block;" />
					<?php 
            }
            ?>
	
			</td>				
			<td><a style="cursor: pointer;"
				onclick="<?php 
            echo $onclick;
            ?>
"> <?php 
            echo htmlspecialchars($row->product_name, ENT_QUOTES, 'UTF-8');
            ?>
			</a></td>
			<td style="text-align: center;"><a style="cursor: pointer;"
				onclick="<?php 
            echo $onclick;
            ?>
"> <?php 
            echo $row->product_price;
            ?>
			</a></td>
			<td style="text-align: center;"><input id="<?php 
            echo "qty{$i}";
            ?>
" name="<?php 
            echo "qty{$i}";
            ?>
" type="text" value="1" style="width: 30px;" /></td>
		</tr>
		<?php 
            $k = 1 - $k;
        }
        ?>
	</tbody>
</table>

<input type="hidden" name="boxchecked" value="0" /> <input type="hidden"
	name="filter_order" value="<?php 
        echo $lists['order'];
        ?>
" /> <input
	type="hidden" name="filter_order_Dir"
	value="<?php 
        echo $lists['order_Dir'];
        ?>
" /></form>
	<?php 
    }
Beispiel #29
0
		</thead>
        <tbody>
		<?php 
$i = 0;
$k = 0;
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;">
					<?php 
    echo TiendaGrid::checkedout($item, $i, 'productfile_id');
    ?>
				</td>
				<td style="text-align: left;">
					<input type="text" name="name[<?php 
    echo $item->productfile_id;
    ?>
]" value="<?php 
    echo $item->productfile_name;
    ?>
" size="40" />
				</td>
                <td style="text-align: center;">
                    <input type="text" name="ordering[<?php 
    echo $item->productfile_id;
    ?>
Beispiel #30
0
    ?>
					</a>
					<?php 
    $select_url = "index.php?option=com_tienda&controller=groups&task=selectusers&id=" . $item->group_id . "&tmpl=component";
    ?>
                    <span style="float:right">[<?php 
    echo TiendaUrl::popup($select_url, JText::_('COM_TIENDA_SELECT_USERS'));
    ?>
]</span>
				</td>
				<td style="text-align: center;">
                    <?php 
    echo TiendaGrid::order($item->group_id);
    ?>
                    <?php 
    echo TiendaGrid::ordering($item->group_id, $item->ordering);
    ?>
                </td>
			</tr>
			<?php 
    $i = $i + 1;
    $k = 1 - $k;
    ?>
			<?php 
}
?>
			
			<?php 
if (!count(@$items)) {
    ?>
			<tr>