Tuesday, 7 August 2012

olympics 2012 medal

Medal Count
Leaders

Total
1
China311914
64
2
United States291519
63
3
Great Britain181111
40
4
Korea1156
22
5
France899
26
6
Russia71718
42
7
Italy764
17
8
Kazakhstan6-1
7
9
Germany5107
22
10
Hungary413
8
11
DPR Korea4-1
5
12
Netherlands334
10
13
Cuba331
7
14
Belarus323
8
15
New Zealand314
8
16
South Africa31-
4
17
Ukraine3-6
9
18
Japan21214
28
19
Australia2128
22
20
Denmark242
8
20
Romania242
8
22
Brazil215
8
23
Poland213
6
24
Iran211
4
24
Jamaica211
4
26
Croatia21-
3
27
Ethiopia2-2
4
28
Canada136
10
29
Sweden132
6
30
Czech Republic131
5
31
Kenya122
5
32
Slovenia112
4
33
Dominican Republic11-
2
33
Georgia11-
2
33
Switzerland11-
2
36
Lithuania1-1
2
37
Grenada1--
1
37
Venezuela1--
1
39
Mexico-32
5
40
Colombia-31
4
41
Spain-21
3
42
Egypt-2-
2
43
Slovakia-13
4
44
Azerbaijan-12
3
44
Belgium-12
3
44
India-12
3
47
Armenia-11
2
47
Indonesia-11
2
47
Mongolia-11
2
47
Norway-11
2
47
Serbia-11
2
47
Tunisia-11
2
53
Cyprus-1-
1
53
Estonia-1-
1
53
Guatemala-1-
1
53
Malaysia-1-
1
53
Thailand-1-
1
53
Chinese Taipei-1-
1
59
Greece--2
2
59
Moldova--2
2
61
Argentina--1
1
61
Hong Kong, China--1
1
61
Saudi Arabia--1
1
61
Puerto Rico--1
1
61
Qatar--1
1
61
Singapore--1
1
61
Trinidad and Tobago--1
1
61
Turkey--1
1
61
Uzbekistan--1
1
44
India-12
3



How to Call blog

(A) How to call Php block :- 

getLayout()->createBlock('cms/block')->setBlockId('top_menu_link')->toHtml() ?>

(B) How to call new product block in xml :-


{{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}

 

Call store url

1.  

2. echo Mage::getBaseUrl (); 

3.{{store url}}  

Monday, 6 August 2012

Display Category with image

{{block type="catalog/navigation" name="catalog.category" template="catalog/category/list_category.phtml"}}
 
And also you need to create a list.phtml file under 
“/app/design/frontend/default/default/template/catalog/category/list_category.phtml”

and add the below given code to it: 



  1. foreach ($this->getStoreCategories() as $_category): ?>
  2.  $open = $this->isCategoryActive($_category); ?>
  3. $cur_category=Mage::getModel('catalog/category')->load($_category->getId());
  4. $layer = Mage::getSingleton('catalog/layer');
  5. $layer->setCurrentCategory($cur_category);
  6. if ($immagine = $this->getCurrentCategory()->getImageUrl()):
  7. ?>
  8.  echo $this->getCategoryUrl($_category)?>">
  9.  echo $immagine ?>" alt=" echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?>" width="135" height="135" />
  10. echo $_category->getName()?>
  • endif; ?>
  • endforeach; ?>