Регистрация
Регистрируясь, вы подтверждаете свое согласие с соглашением об использовании персональных данных.
Восстановление пароля

Неудается "прикрепить" html шаблон к NetCat, в чем проблема?

29.12.2006, 18:06
Гость
Гость

Доброго времени суток. У меня возникла следующая проблема с NetCat... Мне надо "прикрутить" готовый дизайн, сверстаный в html к NetCat... Вроде делаю все правильно, но главный вообще нету (Пустая белая страница), а во внутренней половины сайта нету (Нету правого блока и не отображаются картинки... Вот как я интегрировал шаблон в систему...

Шаблоны вывода навигации:
Цитата:
$browse_top[active_link] = "%NAME";
$browse_top[unactive] = "%NAME";
$browse_top[active] = "%NAME";
$browse_top[divider] = " / ";

$browse_sub_help[prefix] = "";
$browse_sub_help[suffix] = "";
$browse_sub_help[unactive] = "<li><a href=%URL>%NAME</a></li>";
$browse_sub_help[divider] = "";


Верхняя часть страницы (Header):
Цитата:
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<title>".strip_tags(s_browse_path($browse_top))."</title>
<style type=text/css>
%CSS
</style>
</head>
<body>
<table width='789' border='0' cellspacing='0' cellpadding='0' align='center'>
<tr>
<td colspan='2'><img src='/image/template7/wofi_02.jpg' width='789' height='42' /></td>
</tr>
<tr>
<td colspan='2'><img src='/image/template7/wofi_04.jpg' width='789' height='64' /></td>
</tr>
<tr>
<td colspan='2'><img src='/image/template7/wofi_05.jpg' width='789' height='72' /></td>
</tr>
<tr>
<td colspan='2'>
<ul class='nav'>
<li><a href='hrrp://cat.ru/'>Home</a></li>
<li><a href='#'>Forum</a></li>
<li><a href='#about'>About</a></li>
<li><a href='#press'>Press Center</a></li>
<li><a href='#feedback'>Feedback</a></li>
<li><a href='#link'>Link Exchange</a></li>
<li><a href='#articles'>Articles</a></li>
</ul>
</td>
</tr>
<tr valign='top'>
<td width='566'>
<div class='newspreview'>


Нижняя часть страницы (Footer):
Цитата:
</div>
<div class='newspreview'>

</div>
<div class='lastItem'></div>
</td>
<td width='223'><table width='223' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><img src='/image/template7/wofi_08.gif' /></td>
</tr>
<tr>
<td style='background:#E7E7E7;'>
<ul class='rnav'>
<li><a name="about"><span class="h4"><h4>About</h4></span></a></li>
".s_browse_sub(341,$browse_sub_help)."
</ul>
<ul class='rnav'>
<li><a name="press"><span class="h4"><h4>Press Center</h4></span></a></li>
".s_browse_sub(333,$browse_sub_help)."
</ul>
<ul class='rnav'>
<li><a name="feedback"><span class="h4"><h4>Feedback</h4></span></a></li>
".s_browse_sub(342,$browse_sub_help)."
</ul>
<ul class='rnav'>
<li><a name="link"><span class="h4"><h4>Link Exchange</h4></span></a></li>
".s_browse_sub(343,$browse_sub_help)."
</ul>
<ul class='rnav'>
<li><a name="articles"><span class="h4"><h4>Articles</h4></span></a></li>
".s_browse_sub(343,$browse_sub_help)."
</ul>
</td>
</tr>
<tr>
<td><img src='/image/template7/wofi_10.gif' width='223' height='36' /></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan='2'><img src='/image/template7/wofi_11.jpg' width='789' height='27' /></td>
</tr>
<tr>
<td colspan='2'>
<div class='copyright'>
<div>".date('Y')." Woficlub.com All rights reserved.<br />
Contact us: <a href='info@worficlub.com'>info@worficlub.com</a></div>
</div>
</td>
</tr>
<tr>
<td colspan='2'><img src='/image/template7/wofi_13.jpg' width='789' height='46' /></td>
</tr>
</table>
</body>
</html>


Таблица стилей:
Цитата:
body {
margin:0;
padding:0;
background:#FFF;
font-size:0.8em;
font-family: Arial, Helvetica, sans-serif;
}

/*---------------------------
Top Navigation
----------------------------*/
.nav {
margin:0;
padding:0;
width:100%;
height:33px;
background:#89A5D5 url(images/wofi_06.jpg) no-repeat;
}

.nav li {
float:left;
list-style:none;
margin:2px 3px 0 3px;
padding:5px 10px 0 10px;
}

.nav li a {
color:#fff;
text-decoration:none;
padding:4px;
font-weight:bold;
}

.nav li a:hover {
background:#3B6AA2;
text-decoration:none;
}

/*---------------------------
Right Navigation
----------------------------*/
.rnav {
margin:0;
padding:0;
width:100%;
background:#E7E7E7;
}

.rnav li {
list-style:none;
margin:0;
padding:3px 0 3px 15px;
}

.rnav li h4 {
margin:0;
padding:0;
font-size:22px;
font-weight:normal;
color:#333;
border-bottom:1px solid #E0E0E0;
}

.rnav li a {
color:#32548D;
text-decoration:none;
font-weight:700;
font-size: 15px;
}

.rnav li a:hover {
color:#000;
text-decoration:underline;
}

/*---------------------------
News Listing
----------------------------*/
.newspreview {
padding:10px;
margin:0 5px 0 0;
background:#FBFBFB;
border-bottom:1px solid #DEDEDE;
border-right:1px solid #DEDEDE;
border-left:1px solid #DEDEDE;
}

/*---- News Header ----*/
.newspreview h3 {
margin:0;
padding:0;
font-weight:normal;
font-size:18pt;
line-height:110%;
word-spacing:-2px;
letter-spacing:-1px;
color:#044E8E;
}

.newspreview h3 a {
color:#095A7D;
text-decoration:none;
}

.newspreview h3 a:hover {
color:#000;
text-decoration:none;
}


.postdata {
padding:0;
color: #4E5867;
font-family:Verdana;
font-size:7pt;
}

.postdata a:link,
.postdata a:active,
.postdata a:visited{
font-weight:bold;
color: #4E5867;
text-decoration:none;
}

.postdata a:hover {
text-decoration:underline;
}

/*---- News text ----*/
.newstext {
color:#36393D;
font-size:11pt;
line-height:140%;
text-align:left;
word-spacing:-2px;
display:block;
}

.newstext img { padding:2px; margin:2px; border:1px solid #999; }

.lastItem { clear:both; height:10px; }

/*---------------------
Copyright
----------------------*/
.copyright {
width:100%;
background:#000 url(images/wofi_12.jpg) no-repeat;
height:50px;
}

.copyright div {
background:#333;
border-right:1px solid #000;
border-bottom:1px solid #000;
color:#fff;
width:300px;
padding:4px;
}

.copyright div a { color:#fff; text-decoration:underline }

.h4 {
color: #333333;

}



Люди добрые, подскажите, что я не так делаю!?
07.01.2007, 19:30
VlastV
qb.digital

Зарегистрирован:
2005-11-02
Сообщений: 202

Советую глазами пробежаться по верстке и увидеть ошибку, сразу подскажу в HTML есть " вот одна из строк
Код:
<li><a name="about"><span class="h4"><h4>

лучше писать (если валидация нужна)
Код:
<li><a name="about"><span class="h4"><h4>


Разработка сайтов на CMS NetCat. Портфолио http://vlastv.ru/ E-mail: me [at] vlastv [dot] ru ; ICQ: 66117050
09.01.2007, 14:38
n

Зарегистрирован:
2006-08-04
Сообщений: 170

Все двойные кавычки (") в html-тексте заменить либо на экранированные (") либо на одинарные (').
198 196 2007-01-09 14:38:18 7000
Описание проекта