[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: задний фон каринка
Shevelevartem
Добрый день....я в php новичок..раньше ни когда не приходилось работать с php а теперь вот приходится....заказали дизайн сделали на html....теперь необходимо поставить CMS на совете проголосовали за Joomla

ситуация такая

есть html документ в ней разрезанная картинка см рис 1

вот код с index.html
Свернутый текст
<!--/*Шапка*/-->
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="519" class="topTable">
<tr>
<td
class="topTableTD1" valign="top">

<table
cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td
style="padding-left:74px; padding-top: 44px;"><img src="img/logo.jpg" width="310" height="51"></td>
</tr>
<tr>
<td
height="213"><img src="img/spacer.gif" width="1" height="213"></td>
</tr>
<tr><td
style="padding-left:74px; padding-bottom: 17px;"><img src="img/_0002.gif" width="370" height="28"></td></tr>
<tr><td
style="padding-left:108px;"><img src="img/_0003.gif" width="298" height="33"></td></tr>
</table>

</td>
<td
class="topTableTD2" valign="top">

<table
cellpadding="0" cellspacing="0" border="0" width="350" align="right">
<tr>
<td
height="52"><img src="img/spacer.gif" width="1" height="52"></td>
</tr>
<tr>
<td
width="37" height="16"><a href="#"><img src="img/_0004.gif" width="11" height="10" border="0"></a></td>
<td
width="37"><a href="#"><img src="img/_0005.gif" width="15" height="10" border="0"></a></td>
<td
width="37"><a href="#"><img src="img/_0006.gif" width="14" height="10" border="0"></a></td>
<td
width="165"><input title="поиск" type="text" class="searchText" width="160" style="width:160px;"></td>
<td><a
href="#"><img src="img/_0007.gif" width="12" height="10" border="0"></a></td>
</tr>
</table>

</td>
</tr>
</table>






а вот код с 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"
<meta name="description" content="My first template" />
<
meta name="generator" content="Joomla! 1.5 – Open Source Content Management" />
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8? />
<meta name="
robots" content="index, follow" />
<meta name="
keywords" content="joomla, Joomla" />
<link href="
/component/content/?format=feed&type=rss" rel="alternate" title="RSS 2.0? />
<
link href="/component/content/?format=feed&type=atom" rel="alternate" title="Atom 1.0? />
<script type="
text/javascript" src="http://localhost/Joomla-1.5RC2/media/system/js/mootools.js"></script>
<script type="text/javascript" src="http://localhost/Joomla-1.5RC2/media/system/js/caption.js"></script>
<
link rel="stylesheet" href="/templates/system/css/system.css" type="text/css" />
<
link rel="stylesheet" href="/templates/system/css/general.css" type="text/css" />
<
link rel="stylesheet" href="/templates/<?php echo $this->template ?>/css/style.css" />


<
script language="JavaScript" type="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->
</script>
</
head>

[
b]<table cellpadding="0" cellspacing="0" border="0" width="100%" height="519" class="topTable">
<
tr>
<
td class="topTableTD1" valign="top">

<
table cellpadding="0" cellspacing="0" border="0" width="100%">
<
tr>
<
td style="padding-left:74px; padding-top: 44px;"><img src="templates/first-template/images/logo.jpg" width="310" height="51"></td>
</
tr>
<
tr>
<
td height="213"><img src="templates/first-template/images/spacer.gif" width="1" height="213"></td>
</
tr>
<
tr><td style="padding-left:74px; padding-bottom: 17px;"><img src="templates/first-template/images/_0002.gif" width="370" height="28"></td></tr>
<
tr><td style="padding-left:108px;"><img src="templates/first-template/images/_0003.gif" width="298" height="33"></td></tr>
</
table>

</
td>
<
td class="topTableTD2" valign="top">

<
table cellpadding="0" cellspacing="0" border="0" width="350" align="right">
<
tr>
<
td height="52"><img src="templates/first-template/images/spacer.gif" width="1" height="52"></td>
</
tr>
<
tr>
<
td width="37" height="16"><a href="#"><img src="templates/first-template/images/_0004.gif" width="11" height="10" border="0"></a></td>
<
td width="37"><a href="#"><img src="templates/first-template/images/_0005.gif" width="15" height="10" border="0"></a></td>
<
td width="37"><a href="#"><img src="templates/first-template/images/_0006.gif" width="14" height="10" border="0"></a></td>
<
td width="165"><input title="поиск" type="text" class="searchText" width="160" style="width:160px;"></td>
<
td><a href="#"><img src="templates/first-template/images/_0007.gif" width="12" height="10" border="0"></a></td>
</
tr>
</
table>

</
td>
</
tr>
</
table>[/b]


<
td background="templates/first-template/images/menu_bg.gif" class="bgx">

<?php if($this->countModules('hornav')) : ?>
<jdoc:include type="modules" name="hornav" style="xhtml"/>
<?php endif; ?>
</td>


</
tr>
<
tr>
<
td height="100%"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<
tr>

<
td width="207" valign="top" background="templates/first-template/images/sub_left_bg.gif" class="bgy">
<?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" style="xhtml"/>
<?php endif; ?>
</td>

<
td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<
tr>
<
td class="head_text"> </td>
</
tr>

<
tr>
<
td>
<?php if($this->countModules('top')) : ?>
<jdoc:include type="modules" name="top" style="horz"/>
<?php endif; ?>
</td>
</
tr>



<
tr>
<
td class="base_txt"><p align="center">

<
jdoc:include type="component" />

</
td>
</
tr>

</
table></td>





<
td width="217" valign="top" background="templates/first-template/images/sub_r_bg.gif" class="bgy">
<?php if($this->countModules('right')) : ?>
<jdoc:include type="modules" name="right" style="xhtml"/>
<?php endif; ?>
</td>


</
tr>
</
table></td>
</
tr>
</
table></td>
</
tr>
<
tr>
<
td height="51"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="100%" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td height="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="207" class="bgy"><img src="templates/first-template/images/sub_bot_bg.gif" width="207" height="14"></td>
<
td><img src="templates/first-template/images/spacer.gif" width="1" height="5"></td>
</
tr>
</
table></td>
</
tr>
<
tr>
<
td background="templates/first-template/images/bot_bg1.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="207"><img src="templates/first-template/images/bot_bg1.gif" width="2" height="37"></td>


<
td width="80%" valign="middle" class="bottom_menu">
<?php if($this->countModules('bottom')) : ?>
<jdoc:include type="modules" name="bottom" style="xhtml"/>
<?php endif; ?>
</td>


</
tr>
</
table></td>
</
tr>
</
table></td>
<
td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="47" background="templates/first-template/images/bot_ang_bg.gif"><img src="templates/first-template/images/bot_ang.gif" width="47" height="51"></td>
<
td background="templates/first-template/images/bot_bg2.gif" class="bgx"><table width="170" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td><img src="templates/first-template/images/spacer.gif" width="171" height="1"></td>
</
tr>
<
tr>


<
td class="adres">
<?php if($this->countModules('ribot')) : ?>
<jdoc:include type="modules" name="ribot" style="xhtml"/>
<?php endif; ?>
</td>


</
tr>
</
table></td>
</
tr>
</
table></td>
</
tr>
</
table></td>
</
tr>
</
table>
</
body>
</
html>


Как сделать что бы отображался?


 ! 

М
Обрамляйте свой код тегами !
PHPprogrammer




Спустя 9 часов, 44 минуты, 42 секунды (26.07.2011 - 17:27) walerus написал(а):
Цитата
Как сделать что бы отображался?
кто ? что ?, можно подробнее что нужно чтоб отображалось то ??...

Спустя 13 часов, 38 минут, 53 секунды (27.07.2011 - 07:06) Shevelevartem написал(а):
На рис 1 показано в html(там отображается) а мне надо что бы на php отображался часть плиты газовой и кремль(вот привожу скрин с php рис 2 ) все есть а вот плита и кремль не отображается

как исправить?

Спустя 5 часов, 43 минуты, 40 секунд (27.07.2011 - 12:49) SerginhoLD написал(а):
у тебя css полетели, ошибку ищи в коде, в путях

и тут еще кавычку не закрыл (наверно вместо знака вопроса она должна быть):
<meta http-equiv="Content-Type" content="text/html; charset=utf-8? />

Спустя 1 день, 54 минуты (28.07.2011 - 13:43) Guest написал(а):
[glow=][/glow][*] user posted image
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2025 Invision Power Services, Inc.