Esempio n. 1
0
    <div class="rightbox"><!-- START FEATURED PRODUCTS BOX -->
    <h2><?php echo $this->lang->line('webshop_newproduct'); ?></h2>
    <div class="box">
        <?php foreach ($this->data['newproduct'] as $newproduct):?>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <div class="topseller">
                            <div class="topsellercname">
                            <a href="<?php echo base_url();?>index.php/<?php echo $this->data['mainmodule'];?>/product/<?php echo $newproduct['id']; ?>"><?php echo $newproduct['name']; ?></a>
                    </div>
                    <div class="topsellerimg">
                            <a href="<?php echo base_url();?>index.php/<?php echo $this->data['mainmodule'];?>/product/<?php echo $newproduct['id']; ?>">
                                    <img src="<?php
                                    $thumbimg = $newproduct['thumbnail'];
                                    $thumbnail=convert_image_path($thumbimg);
                                    echo $thumbnail; ?>" border="0" alt=" " title=" " />
                            </a>
                    </div>
                    <div id="topsellerdesc">
                            <?php echo $newproduct['shortdesc']; ?>

                    </div>
                    <div class="topsellerprice">
                            <b>Pris</b>: <span class='price'><?php echo $newproduct['price']; ?></span>
                    </div>
                    </div>
                </td>
            </tr>
        </table>
        <?php endforeach; ?>
Esempio n. 2
0
     <div class="short-description">
         <h2 style="color: #E67817;">
             Mô tả</h2>
         <div class="std" style="border-bottom:dotted 1px silver">
         	<?php echo substr($inf->shortdesc,0,200);?>
             <!-- p>
                 Feminine and romantic, this beautiful gold and rhodium-plated ring features two
                 entwined hearts, symbolising unity and love. The on-trend mixture of Crystal Golden
                 Shadow, clear crystal pave and two different platings adds a modern touch...</p -->
         </div>
     </div>
 </div>
 <div class="product-img-box">
     <p class="product-image">
         <div id="wrap" style="top: 0px; z-index: 99; position: relative;">
             <a href="<?php echo convert_image_path($inf->image);?>"
                 class="cloud-zoom" id="zoom1" rel="position:'right',showTitle:1,titleOpacity:0.5,lensOpacity:0.5,adjustX: 10, adjustY:-4"
                 style="position: relative; display: block;">
                 <img src="<?php echo $this->MKaimonokago->get_link_image($inf->image);?>" alt="" title="<?php echo $inf->name;?>" style="width:267px; height:267px;display: block;"/>
             </a>
             <div class="mousetrap" style="background-image: initial; background-attachment: initial;
                 background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255);
                 opacity: 0; z-index: 99; position: absolute; width: 267px; height: 267px; left: 0px;
                 top: 0px; cursor: move; background-position: initial initial; background-repeat: initial initial;">
             </div>
         </div>
     </p>
     <div class="more-views">
         <div class="slideshow-wrapper">
             <div id="slideshow_moreview" class="slideshow moreview">
                 <div class="slideshow-box">
Esempio n. 3
0
<div id='pleft'>
<?php
if ($this->session->flashdata('conf_msg')){ 
	echo "<div class='status_box'>";
	echo $this->session->flashdata('conf_msg');
	echo "</div>";
}
?>
<?php

	$imageinfo = $product['image'];
    $image=convert_image_path($imageinfo);
    
	echo "<img src='".$image."' border='0' align='left'/>\n";
	echo "<div id=\"procont\"><h2>".$product['name']."</h2>\n";
	echo $product['shortdesc'] . "<br />\n";
	echo $product['longdesc'] . "\n";
	echo "<br />";
	echo "<p><b>".$this->lang->line('webshop_price')."</b>: ". $this->lang->line('webshop_currency_symbol'). $product['price']. "</p>\n";
	echo '<p><a class="cartlinkbut" href="' . site_url()."/". 
	$module.'/cart/'.$product['id']. 
	'"><span class="addtocart addcart">'.$this->lang->line('webshop_buy').'</span></a></p></div>';	
?>

</div>
Esempio n. 4
0
    echo "</div>";
}
//  print_r ($slides);
// print_r ($pagecontent);
if (isset($pagecontent['content'])) {
    // this if is for the installation without this it will display an error
    echo $pagecontent['content'];
}
?>
</div>
<div id="frontproducttable">

<?php 
foreach ($images as $image) {
    $imageinfo = $image['thumbnail'];
    $thumbnail = convert_image_path($imageinfo);
    echo '<div class="vt ac" >' . "\n" . '<div class="frontpro">' . "\n" . '<div class="vt">' . "\n";
    echo '<a href="' . site_url() . '/' . $module . '/product/' . $image['id'] . '">';
    echo "<img src='" . $thumbnail . "' border='0' class='thumbnail'/></a>\n</div>\n<div class='vt al'>\n";
    echo '<span class="hdrproduct"><a href="' . site_url() . '/' . $module . '/product/' . $image['id'] . '">' . "\n";
    echo $image['name'] . "</a></span><br />\n";
    echo $image['shortdesc'] . "</div>\n";
    echo "<div class='vt ar'><b>" . $this->lang->line('webshop_price') . "</b>: <span class='price'>" . $this->lang->line('webshop_currency_symbol') . $image['price'] . "</span><br />\n";
    echo '<a href="' . site_url() . "/" . $module . '/cart/' . $image['id'] . '"><p class="addtocart">' . $this->lang->line('webshop_buy') . '</p></a></div>';
    echo "\n</div>\n</div>\n";
}
echo "<div class=\"clearboth\" ></div>";
/*
echo "<pre>";
print_r ($this->data['mainnav']);
echo "</pre>";
Esempio n. 5
0
    function updateCart($productid,$fullproduct)
    {
        $cart = isset($_SESSION['cart']) ? $_SESSION['cart'] : array();
        $productid = id_clean($productid);
        $totalprice = 0;
        if (count($fullproduct))
        {
            if (isset($cart[$productid]))
            {
                $prevct = $cart[$productid]['count'];
                $prevname = $cart[$productid]['name'];
                $prevprice = $cart[$productid]['price'];
                $previmage = $cart[$productid]['image'];
                $cart[$productid] = array(
                                'name' => $prevname,
                                'price' => $prevprice,
                				'image' => $previmage,
                                'count' => $prevct + 1
                                );
            }
            else
            {
                $cart[$productid] = array(
                                'name' => $fullproduct['name'],
                                // 'price' => $this->format_currency($fullproduct['price']),
                                // This should be done in view
                                'price' => $fullproduct['price'],
                				'image' => convert_image_path($fullproduct['image']),
                                'count' => 1
                                );			
            }				
            foreach ($cart as $id => $product)
            {
	            $totalprice += $product['price'] * $product['count'];
            } 

            // This format should be done later in a view otherwise it will mess up.
            $_SESSION['totalprice'] = $totalprice;
            $_SESSION['cart'] = $cart;
            $msg = lang('orders_added_cart');
            
            $this->load->library('session');
            $a=array('added'=>'1');
            $this->session->set_userdata($a);            
            redirect(base_url().'/index.php/chitietsp/get_inf/'.$productid,'refresh'); 
            /*echo '<script language=javascript>
            	alert("Succesful");
            </script>';*/
            
        }	
    }
Esempio n. 6
0
		<!--  
		<div class="breadcrumbs">
			<ul>
				<li class="home"><a href="http://demo.emthemes.com/casualwear/"
					title="Go to Home Page">Home</a> <span>/ </span></li>
				<li class="category53"><strong>women</strong></li>
			</ul>
		</div>
		-->
		<?php 
		if(!empty($slides)){
        echo "<div id=\"slideshow\" class=\"pics\">";
        foreach ($slides as $slide)
        {
            $imageinfo = $slide['image'];
                            $slideimg=convert_image_path($imageinfo);
            echo '<img class="hideme" src="'. $slideimg. '" alt="' . $slide['name'] .
            '" />';

        }
        echo "</div>";
    	}?>
		<div class="bg-inner">
			<div class="col-main">
				<div class="col-inner">
					<div class="category-image-container">
						<div class="category-image-container-inner">
							<p class="category-image">
								<img src="women_files/swarovski-rings_6.jpg" alt="women"
									title="women">
							</p>