Autor Zpráva
word
Profil *
Jak mám upravit modul manufactures, aky byli výrobci při sobe, a nebyli cca 1cm od sebe?

http://img4.imgup.eu/Schranka01.jpg

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
/**
* Manufacturer Module
*
* NOTE: THIS MODULE REQUIRES THE VIRTUEMART COMPONENT!
/*
* @version $Id: mod_virtuemart_manufacturers.php 866 2007-06-20 11:41:43Z soeren_nb $
* @package VirtueMart
* @subpackage modules
*
* @copyright (C) 2004-2007 Soeren Eberhardt
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* VirtueMart is Free Software.
* VirtueMart comes with absolute no warranty.
*
* www.virtuemart.net
*/

global $mosConfig_absolute_path, $sess;

$text_before = $params->get( 'text_before', '');
$show_dropdown = $params->get( 'show_dropdown', 1);
$show_linklist = $params->get( 'show_linklist', 1);
$auto = $params->get( 'auto', 0);

$category_id = mosGetParam( $_REQUEST, 'category_id', '' );

// the configuration file for PHPShop
require_once( $mosConfig_absolute_path."/components/com_virtuemart/virtuemart_parser .php");
if( is_null($sess)) {
$sess = new ps_session;
}

if ($auto == 1 && !empty( $category_id ) ) {
$query = "SELECT distinct a.manufacturer_id,a.mf_name FROM #__{vm}_manufacturer AS a, ";
$query .= " #__{vm}_product AS b,"
. " #__{vm}_product_mf_xref AS c,"
. " #__{vm}_product_category_xref AS d "
. " WHERE d.category_id='$category_id'"
. " AND d.product_id = b.product_id "
. " AND b.product_id = c.product_id AND c.manufacturer_id = a.manufacturer_id ";
} else {
$query = "SELECT a.manufacturer_id,a.mf_name FROM #__{vm}_manufacturer AS a ";
}
$query .= "ORDER BY a.mf_name ASC";
$db = new ps_DB;
$db->query( $query );

$res = $db->record;
if( empty( $res ) && empty( $category_id )) {
echo 'No manufacturers defined!';
return;
}
?>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">

<?php
if( $show_linklist == 1 ) { ?>

<?php
echo $text_before;
echo '<ul>';
foreach( $res as $manufacturer) { ?>
<li><a href="<?php echo $sess->url( URL."index.php?option=com_virtuemart&page=shop.browse&manufacturer_id= ". $manufacturer->manufacturer_id ) ?>">
<?php echo $manufacturer->mf_name; ?>
</a>
</li>
<?php
}
echo "</ul> ";

}
if( $show_dropdown == 1 ) { ?>
<!--BEGIN manufacturer DropDown List -->
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="page" value="shop.browse" />
<input type="hidden" name="Itemid" value="<?php echo $sess->getShopItemid() ?>" />
<br/>
<select class="inputbox" name="manufacturer_id" onchange="this.form.submit();">
<option value=""><?php echo _CMN_SELECT ?></option>
<?php
foreach ($res as $manufacturer) {
$selected = '';
if( @$_REQUEST['manufacturer_id'] == $manufacturer->manufacturer_id ) {
$selected = 'selected="selected"';
}
echo "<option value="".$manufacturer->manufacturer_id ."" $selected>". $manufacturer->mf_name ."</option> ";
}
?>
</select>
<br />
<input class="button" type="submit" name="manufacturerSearch" value="<?php echo _SEARCH_TITLE ?>" />

<?php
}
?>
</form>
<!-- End Manufacturer Module -->
Str4wberry
Profil
word
To je záležitost kaskádových stylů. Musíš zmenšit hodnoty vlastností padding nebo margin pro <li>.
word
Profil *
tak to uz vubec nezvladnu :)

/* CSS global reset for all browsers */ * {padding: 0;margin: 0;}/** * General Body Styling * -------------------- * These are normal css setup reccommended for your * HTML template although they are not neccessary */ body {margin: 0 auto;padding: 0;background: #202020 url(../images/bg.png);color : #666;font: .8em Tahoma;line-height: 1.6em;}body.published {background: #AADDFF;}body.mceContentBody {background: white;} .content { margin: 0 auto; margin-top: 10px; margin-bottom: 10px; width: 932px; background: #FFF;}#top { background: #fff; height: 60px; color: #17527a; padding: 0px 5px; } #top h1 { float: left; padding-left: 5px; padding-top: 15px; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight: bold; font-size: 1.8em; height: 40px; }#mainlevel-nav li { padding: 0px; float: left; list-style-type: none;}#mainlevel-nav li a { margin: 0 0 0 35px; color: #000000; text-decoration: none; font-weight: bold; }#mainlevel-nav li a:hover { color: #7ebef9;}#intro { clear: both; height: 170px; padding: 2px; background: #fff url(../images/intro.jpg) no-repeat center left; margin: 0 0 20px; border: 3px solid #eee; }#mid { padding: 0 20px; background: #fff;}#center { float: right; width: 660px; margin: 0px; padding: 0 0 15px 10px; background: #FFF;}#sidebar { float: left; width: 200px;}#search { float: right; margin: 0 0 8px; }#search input { padding: 2px; background: #fff; border: 1px solid #ccc; }#topmenu { margin: 0 15px 0 0; clear: both; float: right; }#footer { clear: both; margin: 0px auto; width: 990px; background: #404B67; clear: both; color: #FFF;}#footer .padding { padding: 20px 0px 20px 35px; color: #FFF; }#footer a { color: #FFF; }#footer a:hover { color: #FFF; text-decoration: underline; } #bottom { height: 23px; background: #fff; }h3 {color: #000; font-size: 17px;font-weight: normal;padding: 0;margin: 0;}h4 {color: #525252; font-size: 12px; font-weight: bold;}h5 {color: #525252; font-size: 11px; font-weight: bold;}h6 {color: #525252; font-size: 10px; font-weight: bold;}a {font-size: 11px; color: #22537B;text-decoration: none;}a:hover {color: #7ebef9; text-decoration: underline;}ul {margin: 5px 0px 20px 30px;}.mostread li {padding: 0px 5px 0 5px;list-style: 3px;list-style-type: none;list-style-image: url(../images/li.gif);}.latestnews li{padding: 0px 5px 0 0px;list-style: 0px;list-style-type: none;}li {padding: 5px 5px 0 5px;list-style: 3px;list-style-type: square;}.mosimage { border: 1px solid #aaa; padding: 0px; margin: 1px 8px 8px 0px;}.mosimage_caption { background-color: #2C3346; color: #FFF; }/** * General Mambo Styles * -------------------- * The following are styles that are often used * site wide by Mambo to provide better control * of content's appearences. */hr { /* often used in components like Akobook, and Simpleboard forum to define the separator lines */background: transparent; height:1px; border: 1px solid #CCFF00;}hr.separator {/* found this css style in Peekmambo's css style. Still haven't worked out if this is a custom style or an in built style. Will update when I find out*/background: transparent;height: 1px;width: 75px;border: 1px solid #CCFF00;}.pagenavbar { /*for some weird reasons, this is not used in page nav, but found it used for nick names in forum threads by Simpleboard */}.pagenav {/* as the name implies, this is for formatting texts for those "<< Start < Previous 1 Next > End >>" links */font-weight: normal;color: #555;}a.pagenav, a.pagenav:visited {/* same as above, but for links */font-weight: normal;color: #F5922B;}a.pagenav:hover {/* same as above, but for links with mouse pointer over it */font-weight: normal;color: #919387;text-decoration: underline;}.small {/* general style for texts when small size fonts are used. In the contents, this style is used for "Written by..." texts */font-size: 10px;color: #888;text-decoration: none;font-weight: normal;}.smalldark { font-size: 10px; color: #7ebef9; text-decoration: none; font-weight: normal; }/** * Mambo Form Styles * ----------------- * Here are 2 styles that Mambo uses to let users control * how their forms and buttons may look. */ .button {/* this style applies to most form buttons generated by Mambo and its components. Change its format here*/color: #fff; margin-top: 4px;font-weight: normal;text-align: center;font-size: 12px;background: #7bc228;border: 1px solid #111;height: 20px;}.inputbox {/* Again, the name implies that this style changes the way those input box looks */font-size: 12px;color: #000000;background: #F8F8F8;border: 1px solid #6E6E6E;}.inputbox:hover { border: 1px solid #9F9E9E; }/** * Mambo Tabbed Frontend Admin Interface * ------------------------------------- * The CSS styles here defines how the frontend admin interface * will look like when editing and adding news through frontend. */ .ontab {/* For styling of the "Tab" buttons when editing contents through the frontend (when you log in as admin in the frontend). This .ontab is the styling for the tab when it is active or after its "clicked" */background-color: #323A15;border-left: outset 1px #DCF2FA;border-right: outset 1px #808080;border-top: outset 1px #DCF2FA;border-bottom: solid 1px #d5d5d5;text-align: center;font-weight: bold;color: #FFFFFF;}.offtab {/* Same as above, used for styling of the "Tab" buttons when editing contents through the frontend. This .ontab is the styling for the tab when it is NOT active or when it is NOT "clicked" */background-color : #e5e5e5;border-left: outset 1px #E0E0E0;border-right: outset 1px #E0E0E0;border-top: outset 1px #E0E0E0;border-bottom: solid 1px #d5d5d5;text-align: center;cursor: hand;font-weight: normal;}.tabpadding {/* this style is used set the size of the tab in in the above */padding-top: 5px;padding-bottom: 5px;padding-left: 5px;padding-right: 5px;}.tabheading {/* Not too sure what this is used for. Couldn't find anything related to it yet at the moment */}.pagetext {/* this style is used to style the content of the editing form contents (where HTMLArea sits and all its forms + contents) in the frontend Administration interface */visibility: hidden;display: none;position: relative;top: 0;}/** * Mambo Menu Styling * ------------ * You can control the way menu behave and look * by using the CSS settings below */a.mainlevel:link, a.mainlevel:visited {/* this styling is for the MAIN items in the menu */display: block;text-decoration:none;text-align: left;padding: 5px 0;padding-left: 8px;margin-left: 4px;height: 20px;width: 200px;border-bottom: 1px solid #eee;}a.mainlevel:hover {/* this styling is for the MAIN items in the menu */display: block;color:#22537b;text-decoration:none;text-align: left;padding: 5px 0;padding-left: 8px;margin-left: 4px;height: 20px;width: 200px;border-bottom: 1px solid #eee;background-color:#f3f3f3;}a.sublevel:link, a.sublevel:visited {/* this styling is for menu items that HAS A PARENT */color: #FFFAAF; font-weight: normal;}a.sublevel:hover {/* pffff!.. you know this! */color: #FFF; text-decoration: none;}/** * Mambo General styling for Sections/Categories/Contents * ------------------------------------------------------ * These stylings are either sometimes or often used across * Sections, categories and contents. They, therefore, deserves * to be mentioned and separated from others. */ .createdate {/* name says it all.. its for styling the date the content/articles are created under contents title */font-size: 9px;color: #7ebef9;text-decoration: none;font-weight: normal;padding: 0 0 10px 0;}.modifydate {/* need me to say? :) Well it styles the "Last updated on" text at the end of articles/contents */font-size: 10px;color: #aaa;text-decoration: none;font-weight: normal;}a.readon:link, a.readon:visited {/* For formatting the "Read on..." link for blogs and on frontpage. */color: #7ebef9; text-decoration: none; font-size: 11px;padding-left: 0px;}a.readon:hover {/* Pfft..! */color: #7ebef9; text-decoration: underline;font-weight: normal;font-family: Arial, Verdana, Helvetica, sans-serif;font-size: 11px;}/** * Mambo Styling for Contents * -------------------------- * All the styling for contents are listed * below. */ .contentpane {/* This is used mainly for the table that holds the SECTIONS such as News. This is when you create a link to a Section and when clicked on it, it will display "News" then some description (with image if you selected one) and then a list of Category of News. Yes! That entire thing is contained in a table with this style */background-color : #FFF;}.contentpaneopen { background-color : none; }.contentpaneopen img { padding: 10px; }.buttonheading img { padding: 2px; }.contentheading { font-size : 1.4em;font-weight : bold;color: #7bc228;padding-left: 0px;padding-top: 0px;text-decoration : bold;text-indent: 0px;text-align: left;} .contentpagetitle {/* Couldn't find where is this yet. Will update this part when Iget to it. Sorry. If you know, please email me the infos */font-size: 13px;font-weight: bold;color: #525252;text-align:left;}.contentdescription {/* When you create a link to a Section in the main menu and when clicked on it, it will display "News" then some description (with image if you selected one) and then a list of Category of News. This style is used for formating the "DESCRIPTION" part of that page */font-size: 11px;color: #333;text-align: left;}.contentdescription img { padding-right: 5px; }table.contenttoc {/* This is used to format the table of the Tables of Contents or "Jump to" box when it is enabled in a multiple paged content or article */color: #333;background-color: #FFF;border: 1px solid #666;margin: 10px;padding: 5px; }table.contenttoc td {/* the same as above, but this is used to format the td or table cells */ font-size: 8pt; font-weight: normal; text-align:left;}.content_rating {/* used for styling the texts used for displaying those "stars" for rating in an article */font-weight: normal;font-size: 8pt;}.content_vote {/* used for those v
Str4wberry
Profil
word
Tak někam dolů přidej „li {margin: 0; padding: 0}“. Ovlivní Ti to ale všechny položky seznamu. Takže si najdi id nebo třídu (class) nějakého nejbližšího nadřazeného (např.) divu — tu přidáš před li — .trida li {} nebo #id li {}.
word
Profil *
nepomohlo nic
Madenio
Profil
skus to cez taky maly hack a za kazdu hodnotu napr" maring: 0;" hod este !important t.j. "margin: 0!important;"
Str4wberry
Profil
word
On to třeba nemusí být seznam — pomohl by ten HTML kód stánky, která je na obrázku.
word
Profil *
klidně


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250" />
<link href="http://7iro.sk/templates/boxedblue/css/template_css.css" rel="stylesheet" type="text/css" media="all"/>
<link rel="shortcut icon" href="http://7iro.sk/images/favicon.ico" />
<title>Hip Hop shop</title>
<meta name="description" content="7iro hip hop shop - obchod - oblecenie - shopy: Teplakove supravy, Nohavice, Kratase, Mikiny, Tricka, Bundy, Ciapky, Riflove Komplety, Polo Kosele, Vesty, Klucenky, Miskeen, Joker, Sean John, New Era, Phat farm," />
<meta name="keywords" content="hip hop shop, oblecenie, hip-hop, basket, ballers, hip hop, southpole, makaveli, rocawear, street, basketball, basketbal, akademiks, ecko, avirex, lacoste, Hip Hop Wear, Shop, hip-hop, shop, e-shop, oline shop, wear, clothes, clothing, urban, street, G-Unit, Dada, Rocawear, MC Wear, Sean John, New Era, Phat farm, fullcapy, mikiny, kabáty, nohavice, kraťase, doplnky, reťaze, blink-blink, dresy, Miskeen, Joker" />
<meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved." />
<meta name="robots" content="index, follow" />
<script type="text/javascript" src="http://7iro.sk/mambots/system/jceembed/embed.js"></script>
<script type="text/javascript" src="http://7iro.sk/components/com_virtuemart/js/sleight.js"></script>
<link type="text/css" rel="stylesheet" media="screen, projection" href="http://7iro.sk/components/com_virtuemart/css/shop.css" />
<link rel="shortcut icon" href="http://7iro.sk/images/favicon.ico" />
</head>

<body>
<div class="content">
<div id="top">

<div id="search">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>

<form action="index.php?option=com_search" method="get">
<div class="search">
<input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="search..." onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /> </div>

<input type="hidden" name="option" value="com_search" />
<input type="hidden" name="Itemid" value="" />
</form> </td>
</tr>
</table>
</div>
<div id="topmenu">
<div class="padding"> <table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<ul id="mainlevel-nav"><li><a href="http://www.blog.7iro.sk" target="_blank" class="mainlevel-nav" >7iro urban blog</a></li><li><a href="index.php?option=com_contact&amp;Itemid=3" class="mainlevel-nav" >Kontakt</a></li><li><a href="index.php?option=com_content&amp;task=view&amp;id=16&amp;Itemid= 38" class="mainlevel-nav" >Ako nakupovať</a></li></ul> </td>
</tr>
</table>
</div>
</div>
</div>

<div id="mid">
<div id="intro"></div>
<div id="center">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="componentheading" colspan="4">Kategórie</td>
</tr>
<tr>
<td style="text-align:center;" width="25%" valign="top">
<a title="Tričká, polo" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=6&Itemid=28">
<img src="http://mediaext.drjays.com/media/150/595/files/1505954.jpg" alt="Tričká, polo" border="0" /><br />Tričká, polo </a>
</td>

<td style="text-align:center;" width="25%" valign="top">
<a title="Mikiny" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=7&Itemid=28">
<img src="http://mediaext.drjays.com/media/151/702/files/1517022.jpg" alt="Mikiny" border="0" /><br />Mikiny </a>
</td>

<td style="text-align:center;" width="25%" valign="top">
<a title="Nohavice" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=8&Itemid=28">
<img src="http://mediaext.drjays.com/media/160/501/files/1605015.jpg" alt="Nohavice" border="0" /><br />Nohavice </a>
</td>

<td style="text-align:center;" width="25%" valign="top">
<a title="Dresy" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=11&Itemid=28">
<img src="http://7iro.sk/components/com_virtuemart/shop_image/category/2ea4 bda6a3987673b22d387e802dc5b0.jpg" width="100" height="125" alt="Dresy" border="0" /><br />Dresy </a>
</td>
</tr><tr>
<td style="text-align:center;" width="25%" valign="top">
<a title="Shoes" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=12&Itemid=28">
<img src="http://mediaext.drjays.com/media/142/093/files/1420935.jpg" alt="Shoes" border="0" /><br />Shoes </a>
</td>

<td style="text-align:center;" width="25%" valign="top">
<a title="Fullcapy, kulichy" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=13&Itemid=28">
<img src="http://mediaext.drjays.com/media/144/840/files/1448403.jpg" alt="Fullcapy, kulichy" border="0" /><br />Fullcapy, kulichy </a>
</td>

<td style="text-align:center;" width="25%" valign="top">
<a title="Bundy, jackets" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=15&Itemid=28">
<img src="http://mediaext.drjays.com/media/157/819/files/1578190.jpg" alt="Bundy, jackets" border="0" /><br />Bundy, jackets </a>
</td>

<td style="text-align:center;" width="25%" valign="top">
<a title="Dámské" href="http://7iro.sk/index.php?option=com_virtuemart&amp;page=shop.bro wse&amp;category_id=14&Itemid=28">
<img src="http://mediaext.drjays.com/media/169/788/files/1697881.jpg" alt="Dámské" border="0" /><br />Dámské </a>
</td>
</tr></table>
<br />
<br />
<div align="center">
<a href="http://virtuemart.net" target="_blank" style="display:block;width:90%; filter: alpha(opacity=60);" onmouseover="if( this.filters) { this.filters.alpha.opacity=100; }" onmouseout="if( this.filters) { this.filters.alpha.opacity=60; }">
<div style="float:left;width:95%;text-align:center;cursor:pointer;">
<img align="middle" style="-moz-opacity: 0.6;" onmouseover="this.style.MozOpacity=1.0;" onmouseout="this.style.MozOpacity = 0.6;" src="http://7iro.sk/components/com_virtuemart/shop_image/ps_image/powe red-by-virtuemart.png" border="0" alt="Powered by VirtueMart" />
</div>
</a>
</div>
</div>

<div id="sidebar">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<th valign="top">
Hlavné menu </th>
</tr>
<tr>
<td>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr align="left"><td><a href="index.php?option=com_virtuemart&amp;Itemid=28" class="mainlevel" id="active_menu">Store</a></td></tr>
<tr align="left"><td><a href="index.php?option=com_content&amp;task=view&amp;id=13&amp;Itemid= 39" class="mainlevel" >7iro store news</a
Str4wberry
Profil
word
To jsi poslal úplně něco jiného — to není ono. Zkus v kódu vyhledat nějaké slovo z obrázku a kód, který je poblíž/okolo něj sem vypiš.
word
Profil *
promin nejde mi to do hlavy........stranka 7iro.sk ........

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: