Здравствуйте! Прочитал как добавлять новую позицию, как создавать шаблон с нуля, но так и не въехал честно говоря как сделать всё таки. Копался копался, в итоге получилось, что сделал я шаблон в html, потом подправил для жумлы, вроде как работает, но только без позиций... не понимаю как правильно что и куда вставить... ниже код index.php, может кто поколупается и поможет? хотя бы малым, но именно на моём примере.. очень научиться хочу, но никак...
<?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $this->language; ?>"
lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<title><?php echo $this->template ?></title>
<link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/styles.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="classification" content="default">
<script src="templates/<?php echo $this->template ?>/all.js" type="text/javascript" language="javascript"></script>
<script src="templates/<?php echo $this->template ?>/aj.js" type="text/javascript" language="javascript"></script>
<link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/downloads/drop.css" />
<link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/downloads/contentslider.css">
<script type="text/javascript" src="templates/<?php echo $this->template ?>/downloads/contentslider.js"></script>
<script language="javascript" src="templates/<?php echo $this->template ?>/downloads/s_code.js" type="text/javascript"></script>
</head>
<!--default-->
<body>
<div id="pre_body"></div>
<div class="outer">
<table border="0" cellpadding="0" cellspacing="0" class="outer-table">
<tr>
<td id="area_top" colspan="2" valign="top" align="left">
<table width="1024" border="0" cellpadding="0" cellspacing="0" background="templates/<?php echo $this->template ?>/images/header_main.gif">
<tr>
<td width="115" align="left" rowspan="2">
<a href="#"><img src="templates/<?php echo $this->template ?>/images/spacer.gif" width="250" height="115"></a>
</td>
<td align="right" valign="bottom" class="largetext" width="60%" style="color:white;">
</td>
<td align="right" valign="bottom" class="largetext" width="20%" style="color:white;padding:10px 10px 3px 10px;">
<b style="color:#e6d9bb;">Need Help?</b> Call 1-800-717-8211
<img src="templates/<?php echo $this->template ?>/images/spacer.gif" width="7">
</td>
</tr>
<tr>
<td align="right" class="normaltext" style="color:white;">
</td>
<td align="right" class="normaltext" style="padding:2px 10px 10px 10px;">
<table width="224" border="0" cellspacing="0" cellpadding="4">
</table></td>
</tr>
</table>
<div style="position:absolute;z-index:5;"><table width="1020" height="43" cellspacing="0" cellpadding="0">
<tr>
<td class="menu" style="width:111px;">
<ul>
<li style="width:111px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('TOOL','','templates/<?php echo $this->template ?>/images/topnav1_03.jpg',1)">
<a href="/prod_detail_list/Reloading-Equipment"><img src="templates/<?php echo $this->template ?>/images/topnav0_03.jpg" border="0" name="TOOL"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:133px;">
<ul>
<li style="width:133px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('COMP','','templates/<?php echo $this->template ?>/images/topnav1_04.jpg',1)">
<a href="/prod_detail_list/Reloading-Components"><img src="templates/<?php echo $this->template ?>/images/topnav0_04.jpg" border="0" name="COMP"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:128px;">
<ul>
<li style="width:128px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CLEAN','','templates/<?php echo $this->template ?>/images/topnav1_05.jpg',1)">
<a href="/prod_detail_list/Cleaning-Chemicals"><img src="templates/<?php echo $this->template ?>/images/topnav0_05.jpg" border="0" name="CLEAN"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:128px;">
<ul>
<li style="width:128px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('OPTIC','','templates/<?php echo $this->template ?>/images/topnav1_06.jpg',1)">
<a href="/prod_detail_list/Optics-Mounts"><img src="templates/<?php echo $this->template ?>/images/topnav0_06.jpg" border="0" name="OPTIC"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:128px;">
<ul>
<li style="width:128px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('BOOK','','templates/<?php echo $this->template ?>/images/topnav1_07.jpg',1)">
<a href="/prod_detail_list/Books-Videos"><img src="templates/<?php echo $this->template ?>/images/topnav0_07.jpg" border="0" name="BOOK"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:126px;">
<ul>
<li style="width:126px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SHOOT','','templates/<?php echo $this->template ?>/images/topnav1_08.jpg',1)">
<a href="/prod_detail_list/Shooting-Accessories"><img src="templates/<?php echo $this->template ?>/images/topnav0_08.jpg" border="0" name="SHOOT"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:128px;">
<ul>
<li style="width:128px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('REST','','templates/<?php echo $this->template ?>/images/topnav1_09.jpg',1)">
<a href="/prod_detail_list/Rests-Bipods-Bags"><img src="templates/<?php echo $this->template ?>/images/topnav0_09.jpg" border="0" name="REST"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
<td class="menu" style="width:142px;">
<ul>
<li style="width:142px;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('GUN','','templates/<?php echo $this->template ?>/images/topnav1_10.jpg',1)">
<a href="/prod_detail_list/Gun-Parts-Tools-Accessories"><img src="templates/<?php echo $this->template ?>/images/topnav0_10.jpg" border="0" name="GUN"><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
</td>
</tr>
</table></div>
<img src="templates/<?php echo $this->template ?>/images/spacer.gif" height="43">
</td>
</tr>
<tr>
<td id="area_middle_left" valign="top">
<form method="post" action="index.php" style="margin:0px;padding:0px;" name="searchform" onSubmit="if (searchform.keyword.value=='поиск...') searchform.keyword.value='';">
<table width="100%" border="0" cellpadding="0" cellspacing="8" bgcolor="#dbceaf">
<tr>
<td align="left" class="largetext" background="templates/<?php echo $this->template ?>/images/bg_search.gif" style="padding:8px 10px 14px 14px;">
<b style="color:white;">Поиск</b>
<img src="templates/<?php echo $this->template ?>/images/spacer.gif" height="19">
<input type="hidden" name="action" value="Search">
<input type="hidden" name="fields" value="keywords,prod_name,sku,desc_header,prod_description,cust_1,cust_2,cust_3,cust_4,cust_5,cust_6,attribute1,attribute2,attribute3,attribute4">
<input type="hidden" name="search_type" value="prodcat">
<!-- <input type="hidden" name="category" value="4">
<input type="hidden" name="category_andor" value="and"> -->
<input type="hidden" name="andor" value="and">
<input type="hidden" name="page" value="prod_detail_list">
<input type="text" name="keyword" size="25" maxlength="50" class="formtext" value="поиск..." onFocus="if (this.value=='поиск...') this.value='';" onblur="if (this.value=='') this.value='поиск...';">
<input type="image" name="submit" value="Go" src="templates/<?php echo $this->template ?>/images/btn_search.gif">
</td>
</tr>
</table>
</form>
<table width="239" border="0" cellpadding="0" cellspacing="0" class="category">
</table><div style="padding:0px 8px 1px 8px;background-image:url(templates/<?php echo $this->template ?>/images/bg_leftnav.gif);background-position:left bottom;">
<a href="/new_products" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('NEW','','templates/<?php echo $this->template ?>/images/leftnav1_new.gif',0)"><img name="NEW" border="0" src="templates/<?php echo $this->template ?>/images/leftnav0_new.gif"></a>
<a href="/specials" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('SPECIALS','','templates/<?php echo $this->template ?>/images/leftnav0_specials.gif',0)"><img name="SPECIALS" border="0" src="templates/<?php echo $this->template ?>/images/leftnav1_specials.gif"></a>
<a href="/express_order" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ORDER','','templates/<?php echo $this->template ?>/images/leftnav1_order.gif',0)"><img name="ORDER" border="0" src="templates/<?php echo $this->template ?>/images/leftnav0_order.gif"></a>
<a href="/catalog_request" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('CATALOG','','templates/<?php echo $this->template ?>/images/leftnav1_catalog.gif',0)"><img name="CATALOG" border="0" src="templates/<?php echo $this->template ?>/images/leftnav0_catalog.gif"></a>
</div>
<div class="normaltext" style="padding:25px 20px 20px 20px;">
<br>
<img src="templates/<?php echo $this->template ?>/images/reloading_press5.jpg">
<br>
<b style="color:#894621;"><em>Recent Blog Posts</em></b><br>
<br>
<span class="normaltext" style="padding:25px 20px 20px 20px;">Wow, summer is flying by fast! This week we opened up our commercial store for the NRA National Rifle & Pistol Championships at Camp Perry, Ohio.<br>
<br>
<a href="#">READ MORE »</a><a href="#"></a><a href="#"></a><br>
<hr size="1" color="#e4e0d8">
<span class="normaltext" style="padding:25px 20px 20px 20px;">The Hawkeye Borescope is an incredible piece of gear for shooters and gunsmiths.</span><br>
<br>
<a href="#">READ MORE »</a><a href="#"></a><a href="#"></a><br>
<hr size="1" color="#e4e0d8">
<span class="normaltext" style="padding:25px 20px 20px 20px;">We wrote this article to see if we can open up some postings from some of the blog readers out there.<br>
<br>
<a href="#">READ MORE »</a><a href="#"></a><a href="#"></a><br>
<hr size="1" color="#e4e0d8">
<br>
<br>
<div align="right"><a href="#">VIEW ALL »</a></div>
</div>
</td>
<td id="area_middle_right" valign="top" >
<div style="position:absolute;z-index:0;"><!--Inner content DIVs should always carry "contentdiv" CSS class-->
<!--Pagination DIV should always carry "paginate-SLIDERID" CSS class-->
<div id="slider" class="sliderwrapper">
<div class="contentdiv" style="background-image:url(templates/<?php echo $this->template ?>/images/slideshow_01.jpg);">
<a href="/"><img src="templates/<?php echo $this->template ?>/images/spacer.gif" width="745" height="180"></a>
<b style="color:white;font-size:32px;"></b><br>
<span style="color:white;"></span><br>
</div>
<div class="contentdiv" style="background-image:url(templates/<?php echo $this->template ?>/images/slideshow_03.jpg);">
<a href="/new_products"><img src="templates/<?php echo $this->template ?>/images/spacer.gif" width="745" height="180"></a>
<b style="font-size:32px;"></b><br>
<br>
</div>
<div class="contentdiv" style="background-image:url(templates/<?php echo $this->template ?>/images/slideshow_04.jpg);">
<a href="/specials"><img src="templates/<?php echo $this->template ?>/images/spacer.gif" width="745" height="180"></a>
<b style="font-size:32px;"></b><br>
<br>
</div>
<div class="contentdiv" style="background-image:url(templates/<?php echo $this->template ?>/images/slideshow_05.jpg);">
<a href="#"><img src="templates/<?php echo $this->template ?>/images/spacer.gif" width="745" height="180"></a>
<b style="font-size:32px;"></b><br>
<br>
</div>
</div>
<div id="paginate-slider" class="pagination">
<a href="#" class="prev"><img src="templates/<?php echo $this->template ?>/images/arrow_slideshowleft.gif" class="inline"></a>
<a href="#" class="toc">1</a>
<a href="#" class="toc">2</a>
<a href="#" class="toc">3</a>
<a href="#" class="toc">4</a>
<a href="#" class="toc">5</a>
<a href="#" class="next"><img src="templates/<?php echo $this->template ?>/images/arrow_slideshowright.gif" class="inline"></a>
</div>
<script type="text/javascript">
featuredcontentslider.init({
id: "slider", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Previous", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [true, 5000], //[true/false, pausetime]
onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
}
})
</script>
</div>
<img src="templates/<?php echo $this->template ?>/images/spacer.gif" height="315">
<table border="0" width="100%" cellpadding="0" cellspacing="10">
<tr>
<td colspan="2"><h4>FEATURED PRODUCTS</h4>
<table width="100%" cellpadding="0" cellspacing="0" style="border-top:3px solid #d7d0bf;border-bottom:1px solid #d7d0bf;">
<tr>
<td align="left" valign="top" class="normaltext" style="padding:10px;border-right:1px solid #d7d0bf;">
<a href="/product/9086/Neck-Turning-Tools"><img src="templates/<?php echo $this->template ?>/images/thumb/NT-3000-t.jpg" alt="Company model 3000 Neck Turning Tool"></a><br>
<div class="prod_links"><a href="/product/9086/Neck-Turning-Tools">Company model 3000 Neck Turning Tool</a></div>
<del>$81.90</del>
<b style="color:red;">$65.50</b>
<br>
</td>
<td align="left" valign="top" class="normaltext" style="padding:10px;border-right:1px solid #d7d0bf;">
<a href="/product/5601/LubricantsGrease"><img src="templates/<?php echo $this->template ?>/images/thumb/100-530-t.jpg" alt="TM Ultra Bolt Grease"></a><br>
<div class="prod_links"><a href="/product/5601/LubricantsGrease">TM Ultra Bolt Grease</a></div>
<del>$6.75</del>
<b style="color:red;">$5.50</b>
<br>
</td>
<td align="left" valign="top" class="normaltext" style="padding:10px;border-right:1px solid #d7d0bf;">
<a href="/product/8964/Calipers"><img src="templates/<?php echo $this->template ?>/images/uploads/8964_4936_thumb.jpg" alt="Large Display Digital Caliper"></a><br>
<div class="prod_links"><a href="/product/8964/Calipers">Large Display Digital Caliper</a></div>
<del>$35.95</del>
<b style="color:red;">$29.95</b>
<br>
</td>
<td align="left" valign="top" class="normaltext" style="padding:10px;">
<a href="/product/13664/1365"><img src="templates/<?php echo $this->template ?>/images/uploads/13664_7298_thumb.jpg" alt="Hornady Match Ammunition, 338 Lapua 250 gr BTHP 20 ct"></a><br>
<div class="prod_links"><a href="/product/13664/1365">Hornady Match Ammunition, 338 Lapua 250 gr BTHP 20 ct</a></div>
<del>$77.65</del>
<b style="color:red;">$69.88</b>
<br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td class="normaltext" valign="top" bgcolor="#f4f0e7" style="border:1px solid #d7d7d7;">
<h5>WELCOME</h5>
<div style="padding:10px 20px 10px 20px;">
Welcome to the Company International website, home of "The Reloading Experts". We feature thousands of the finest precision shooting and reloading supplies available. Our goal for the last 25 years has remained the same: <b>To provide you with exceptional customer service and product selection.</b> Our experienced technical staff is prepared to help you with all of your reloading and shooting needs. Enjoy your visit and don't forget to sign up for our free monthly e-mail newsletters.
</div>
</td>
<td style="border:1px solid #d7d7d7;"><form method="post" action="index.php" name="newsletter" style="margin:0px;padding:0px;" onSubmit="if (newsletter.add_email.value=='Введите Ваш e-mail') newsletter.add_email.value='';">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="normaltext">
<h5>EMAIL NEWSLETTER</h5>
</td>
</tr>
<tr>
<td class="normaltext" bgcolor="#f4f0e7" style="padding:10px 20px 10px 20px;">
Sign up for regular promotions, specials and news.<br>
<img src="templates/<?php echo $this->template ?>/images/spacer.gif" height="5">
<input type="hidden" name="action" value="NewsletterRequest">
<input type="hidden" name="to_email" value="admin@<?php echo $this->template ?>.ru">
<input type="hidden" name="from_email" value="admin@<?php echo $this->template ?>.ru">
<input type="text" name="add_email" size="30" maxlength="50" class="formtext" value="Введите Ваш e-mail" onFocus="if (this.value=='Введите Ваш e-mail') this.value='';" onblur="if (this.value=='') this.value='Введите Ваш e-mail';"> <img src="templates/<?php echo $this->template ?>/images/spacer.gif" height="5">
<input type="submit" name="submit" value="Sign Up" class="sitesearch_btn">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="area_bottom" colspan="2">
<table width="100%" border="0" cellpadding="15" cellspacing="0" id="footer_text">
<tr>
<td colspan="3" bgcolor="#858585" style="color:white;line-height:2;">
<a href="/" class="bottom_links">Home</a>
|
<a href="/privacy_policy" class="bottom_links">Privacy Policy</a>
|
<a href="/terms_of_use" class="bottom_links">Terms of Use</a>
|
<a href="/contact" class="bottom_links">Contact Us</a>
|
<a href="/aboutus" class="bottom_links">About Company</a>
|
<a href="#" class="bottom_links">Blog</a>
|
<a href="#" class="bottom_links">Brownells</a>
|
<a href="/catalog_request" class="bottom_links">Request a Catalog</a>
|
<a href="/affiliates" class="bottom_links">Affiliates</a>
|
<a href="/member" class="bottom_links">My Account</a>
<br>
<a href="/tracking" class="bottom_links">Track my Order</a>
|
<a href="/product/13329/s" class="bottom_links">Gift Certificates</a>
|
<a href="/international_customers" class="bottom_links">International Customers</a>
|
<a href="/links" class="bottom_links">Links</a>
|
<a href="/site_map" class="bottom_links">Site Map</a>
</td>
</tr>
<tr>
<td align="left" valign="top" width="30%" nowrap>
© Copyright 2009 • Company International • All Rights Reserved.<br>Developed in and hosted by <a href="#" target="_blank">XXXXX</a>.
</td>
<td align="center" valign="top" width="45%">
<img src="templates/<?php echo $this->template ?>/images/logo_brownells.jpg" class="inline">
<img src="templates/<?php echo $this->template ?>/images/logo_comodo.gif" class="inline">
</td>
<td align="left" valign="top" width="25%" nowrap>
<b>Company International</b><br>
Call 1-800-717-8211<br>
2330 Wayne Haven St., Fort Wayne IN 46803
</td>
</tr>
</table> <br><br>
</td>
</tr>
</table>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-869775-5";
urchinTracker();
</script>
<script language="JavaScript" src="templates/<?php echo $this->template ?>/downloads/s_code.js"></script>
<script language="JavaScript"><!--
/* Traffic Variables */
s.pageName="Company International Home Page";
s.prop1="";
s.prop2="";
s.prop3="";
s.prop4="";
s.prop5="";
s.prop6="";
s.prop7="";
s.prop8="Home";
/* E-commerce Variables */
s.products="";
s.events="";
s.purchaseID="";
s.state="";
s.zip="";
s.eVar4="";
s.eVar5="";
s.eVar6="";
s.eVar8="";
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code);//--></script>
<!-- End SiteCatalyst code version: H.19.3 -->
<div class="meta_post_body"></div>
<div class="meta_post_body"></div>
</body>
<!--default-->
</html>