Beispiel #1
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 #2
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, 'shipping_method_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->shipping_method_id;
    ?>
					</a>
				</td>
				<td style="text-align: left;">
                    <a href="<?php 
    echo $item->link;
Beispiel #3
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, 'id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #4
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, 'tax_class_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->tax_class_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #5
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 #6
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 #7
0
?>
        <?php 
foreach (@$items as $item) {
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
                <td style="text-align: center;">
                    <?php 
    echo $this->pagination->limitstart + $i + 1;
    ?>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo TiendaGrid::checkedout($item, $i, 'productquantity_id');
    ?>
                </td>
                <td style="text-align: left;">
                    <?php 
    echo $item->product_attribute_names;
    ?>
                </td>
                <td style="text-align: center;">
                    <input type="text" name="quantity[<?php 
    echo $item->productquantity_id;
    ?>
]" value="<?php 
    echo $item->quantity;
    ?>
" />
Beispiel #8
0
$i = 0;
$k = 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, 'productcomment_id');
    ?>
			</td>
			<td style="text-align: center;">
    			<a href="<?php 
    echo $item->link;
    ?>
">
        			<?php 
    echo $item->productcomment_id;
    ?>
 
    			</a>
			</td>
            <td style="text-align: center;">
                <a href="<?php 
Beispiel #9
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, 'tax_rate_id');
    ?>
                </td>
                <td style="text-align: center;">
                    <?php 
    echo $item->tax_rate_id;
    ?>
                </td>   
                <td style="text-align: left;">
                    <?php 
    echo JText::_($item->geozone_name);
    ?>
                </td>
                <td style="text-align: left;">
                    <?php 
    echo $this->listRateLevels($item->level, $item->tax_rate_id, $item->tax_class_id);
Beispiel #10
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, 'order_state_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->order_state_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #11
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, 'eavattribute_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->eavattribute_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #12
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, 'geozone_id');
    ?>
                </td>
                <td style="text-align: center;">
                    <a href="<?php 
    echo $item->link;
    ?>
">
                        <?php 
    echo $item->geozone_id;
    ?>
                    </a>
                </td>    
                <td style="text-align: left;">
                    <a href="<?php 
    echo $item->link;
Beispiel #13
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, 'manufacturer_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->manufacturer_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #14
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, 'coupon_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->coupon_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
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, 'group_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->group_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #16
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, 'subscription_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link_view;
    ?>
">
						<?php 
    echo $item->subscription_id;
    ?>
					</a>
				</td>
                <td style="text-align: center; width: 50px;">
                    <a href="<?php 
    echo $item->link;
Beispiel #17
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, 'category_id');
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    echo $item->category_id;
    ?>
				</td>	
				<td style="text-align: left;">
					<?php 
    echo str_repeat('.&nbsp;', $item->level - 1) . JText::_($item->name);
    ?>
				</td>
				<td style="text-align: center;">
					<?php 
    // echo $item->ordering;
Beispiel #18
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, 'currency_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->currency_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
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, 'country_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->country_id;
    ?>
					</a>
				</td>	
				<td style="text-align: left;">
					<a href="<?php 
    echo $item->link;
Beispiel #20
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 #21
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 #22
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 #23
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 #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, '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 #25
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, 'credit_id');
    ?>
				</td>
				<td style="text-align: center;">
					<a href="<?php 
    echo $item->link;
    ?>
">
						<?php 
    echo $item->credit_id;
    ?>
					</a>
				</td>
                <td style="text-align: left;">
                    <?php 
    if (!empty($item->user_name)) {