Beispiel #1
0
<h1 class="page-header">
    <i class="fa fa-fw fa-table"></i>すべての商品
</h1>
<h4 class="bg-success"><?php 
display_message();
?>
</h4>

<table class="table table-hover">
    <thead>
        <tr>
            <th>商品ID</th>
            <th>商品名</th>
            <th>イメージ</th>
            <th>カテゴリー</th>
            <th>価格</th>
            <th>在庫数量</th>
        </tr>
    </thead>
    <tbody>
        <?php 
display_products();
?>
    </tbody>
</table>

Beispiel #2
0
        $mlink = JURI::root() . "index.php?option=com_redshop&view=account&layout=mywishlist&mail=1&tmpl=component";
        echo $mail_link = '<div class="mod_wishlist_mail_icon"><a class="modal" href="' . $mlink . '" rel="{handler:\'iframe\',size:{x:450,y:400}}" ><img src="' . REDSHOP_ADMIN_IMAGES_ABSPATH . 'mailcenter16.png" ></a></div>';
        display_products($this->wish_session);
        echo "<br />";
        $mywishlist_link = "index.php?option=com_redshop&view=wishlist&task=addtowishlist&tmpl=component";
        echo "<a class=\"modal\" href=\"" . $mywishlist_link . "\" rel=\"{handler:'iframe',size:{x:450,y:350}}\" ><input type='submit' value='" . JText::_('COM_REDSHOP_SAVE_WISHLIST') . "'></a>";
        echo "<br /><br />";
    }
    if (count($wishlists) > 0) {
        $wish_products = $this->wish_products;
        // Send mail link
        for ($j = 0; $j < count($wishlists); $j++) {
            $rows = $wish_products[$wishlists[$j]->wishlist_id];
            $mlink = JURI::root() . "index.php?option=com_redshop&view=account&layout=mywishlist&mail=1&tmpl=component&wishlist_id=" . $wishlists[$j]->wishlist_id;
            echo $mail_link = '<div class="mod_wishlist_mail_icon"><a class="modal" href="' . $mlink . '" rel="{handler:\'iframe\',size:{x:450,y:400}}" ><img src="' . REDSHOP_ADMIN_IMAGES_ABSPATH . 'mailcenter16.png" >' . $wishlists[$j]->wishlist_name . '</a></div>';
            display_products($rows);
            echo "<br />";
        }
    } else {
        echo "<div>" . JText::_('COM_REDSHOP_NO_PRODUCTS_IN_WISHLIST') . "</div>";
    }
    echo "</div>";
}
function display_products($rows)
{
    $url = JURI::base();
    $extra_data = new producthelper();
    $producthelper = new producthelper();
    for ($i = 0; $i < count($rows); $i++) {
        $row = $rows[$i];
        $Itemid = $this->redHelper->getItemid($row->product_id);
Beispiel #3
0
        }
        $page_html = str_replace('{PAYPAL TXN ID}', $customer_info['txn_id'], $page_html);
        $page_html = str_replace('{CUSTOMER NAME}', $customer_info['customer_name'], $page_html);
        $page_html = str_replace('{CUSTOMER BUSINESS NAME}', $customer_info['business_name'], $page_html);
        $page_html = str_replace('{CUSTOMER PAYPAL EMAIL}', $customer_info['customer_email'], $page_html);
        $page_html = str_replace('{PAYPAL PURCHASE DATE}', $customer_info['purchase_date'], $page_html);
        $page_html = str_replace('{EXPIRE DATE}', $customer_info['expire_date'], $page_html);
        $page_html = str_replace('{DOWNLOAD PAGE URL}', $customer_info['expire_date'], $page_html);
        $page_html = str_replace('{PRODUCT PRICE}', $customer_info['purchase_amount'], $page_html);
        $page_html = str_replace('{DOWNLOAD TIME LEFT}', $customer_info['time_left'], $page_html);
        $page_html = str_replace('{DOWNLOAD TIME}', $customer_info['expire_time'], $page_html);
        $page_html = str_replace('{PRODUCT NAME}', $customer_info['product_name'], $page_html);
        $page_html = str_replace('{SUPPORT EMAIL ADDRESS}', $support_email_address, $page_html);
        preg_match_all("/\\{(DOWNLOADS[12])\\|?(.*)\\}/", $page_html, $dlmatches);
        if (is_array($dlmatches)) {
            foreach ($dlmatches[1] as $dlkey => $dlvalue) {
                if ($dlvalue == 'DOWNLOADS1') {
                    $download_style = 1;
                }
                if ($dlvalue == 'DOWNLOADS2') {
                    $download_style = 2;
                }
                $dl_list = display_products($product_files, $customer_info, $download_style, $dlmatches[2][$dlkey]);
                $page_html = str_replace($dlmatches[0][$dlkey], $dl_list, $page_html);
            }
        }
    } else {
        die("Invalid Page Request.");
    }
}
echo $page_html;
Beispiel #4
0
        //echo "<br /><div><a href=\"".$reglink."\"><input type='button' onClick="clickMe();"  value='".JText::_('COM_REDSHOP_SAVE_WISHLIST')."' onclick="" ></a></div>";
        if ($count_no_user_field > 0) {
            echo "<br /><div id='saveid' style='clear:both;' style='display:block'><form method='post' ><input type='hidden' name='product_id' value='" . $myproductid . "' ><input type='button' onClick='return productalladdprice(1)'  value='" . JText::_('SAVE_WISHLIST') . "' ></form></div>";
        } else {
            echo "<br /><div id='saveid' style='clear:both;'><input type='button' onClick='clickMe()'  value='" . JText::_('COM_REDSHOP_SAVE_WISHLIST') . "' ></div>";
        }
    } else {
        echo "<div>" . JText::_('COM_REDSHOP_NO_PRODUCTS_IN_WISHLIST') . "</div>";
    }
    echo "</div>";
} else {
    // If user logged in than display this code.
    echo "<div class='mod_redshop_wishlist'>";
    if (count($this->wish_session) > 0) {
        $mlink = JURI::root() . "index.php?option=com_redshop&view=account&layout=mywishlist&mail=1&tmpl=component";
        display_products($this->wish_session);
        for ($p = 0; $p < count($mysesspro); $p++) {
            for ($ui = 0; $ui < count($userfieldArr); $ui++) {
                $product_userfileds = $extraField->list_all_user_fields($userfieldArr[$ui], 12, '', 0, 0, $rows[$p]->product_id);
                $ufield .= $product_userfileds[1];
                if ($product_userfileds[1] != "") {
                    $count_no_user_field++;
                }
            }
            $myproductid .= $mysesspro[$p]->product_id . ",";
        }
        echo "<br />";
        $mywishlist_link = "index.php?tmpl=component&option=com_redshop&view=wishlist&task=addtowishlist&tmpl=component";
        if ($count_no_user_field > 0) {
            echo "<br /><div style='clear:both;' ><a class=\"redcolorproductimg\" href=\"" . $mywishlist_link . "\"  ><form method='post' ><input type='hidden' name='product_id' value='" . $myproductid . "' ><input type='button' onClick='return productalladdprice(2)'  value='" . JText::_('COM_REDSHOP_SAVE_WISHLIST') . "' ></form></a></div>";
        } else {