- Автор темы
- #11
Вот design1.php скина Colors, мне нужно чтоб стиль применялся только к 1-ой и 3-й колонке!!!!
Я знаю что это делается двумя кликами, но я только учу php!!!
Я знаю что это делается двумя кликами, но я только учу php!!!
PHP:
<?php
// +---------------------------------------------+
// | Copyright © 2003 – 2006 Subdreamer, LLC |
// | [url]http://www.subdreamer.com[/url] |
// | This file may not be redistributed. |
// +---------------------------------------------+
if(!defined('IN_SUBDREAMER'))
{
die('Hacking attempt!');
}
?>
<html>
<head>
<title><?php echo $mainsettings['websitetitle']; ?></title>
<meta name="description" content="<?php echo $mainsettings['metadescription']; ?>" />
<meta name="keywords" content="<?php echo $mainsettings['metakeywords']; ?>" />
<?php echo $mainsettings['skinheader']; ?>
<link rel="stylesheet" href="skins/colors/styles.css" />
</head>
<body>
<script language="javascript" type="text/javascript" src="snow.js"></script>
<table bgcolor="#FFFFFF" align="center" width="750" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1" bgcolor="#FFFFFF"><img src="skins/colors/images/spacer.gif" width="1" /></td>
<td colspan="3" height="100" valign="top" bgcolor="#F7F7F7">
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100">
<tr>
<td background="skins/colors/images/bg_header.jpg" style="padding-left: 8px; padding-right: 8px;"><?php echo $logo ?></td>
</tr>
</table>
<?php include('skins/colors/categories.php'); ?>
</td>
<td width="1" bgcolor="#FFFFFF"><img src="skins/colors/images/spacer.gif" width="1" /></td>
</tr>
<tr>
<td width="1" bgcolor="#FFFFFF"><img src="skins/colors/images/spacer.gif" width="1" /></td>
<td width="200" valign="top" bgcolor="#EDF8EA" style="border-right: 1px solid #FFFFFF;">
<?php
$inputsize = 20;
for($i = 0; $i < 5; $i++)
{
if($pluginpath[$i] != 'plugins/p1_empty/empty.php')
{
echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td bgcolor="#90C887" align="center" height="20">
<div class="pluginname1">' . $pluginname[$i] . '</div>
</td>
</tr>
<tr>
<td style="padding: 6px;">';
include($pluginpath[$i]);
echo ' <br />
</td>
</tr>
</table>';
}
}
?>
</td>
<td valign="top" bgcolor="#F7F7F7" style="border-left: 1px solid #D3D1D4; border-right: 1px solid #D3D1D4;">
<?php
$inputsize = 30;
for($i = 5; $i < 10; $i++)
{
if($pluginpath[$i] != 'plugins/p1_empty/empty.php')
{
echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td bgcolor="#D6D6D6" align="center" height="20">
<div class="pluginname1">' . $pluginname[$i] . '</div>
</td>
</tr>
<tr>
<td style="padding: 6px;">';
include($pluginpath[$i]);
echo ' <br />
</td>
</tr>
</table>';
}
}
?>
</td>
<td width="200" valign="top" bgcolor="#ECF1F7" style="border-left: 1px solid #FFFFFF;">
<?php
$inputsize = 20;
for($i = 10; $i < 15; $i++)
{
if($pluginpath[$i] != 'plugins/p1_empty/empty.php')
{
echo '<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td bgcolor="#B9DDF7" align="center" height="20">
<div class="pluginname1">' . $pluginname[$i] . '</div>
</td>
</tr>
<tr>
<td style="padding: 6px;">';
include($pluginpath[$i]);
echo ' <br />
</td>
</tr>
</table>';
}
}
?>
</td>
<td width="1" bgcolor="#FFFFFF"><img src="skins/colors/images/spacer.gif" width="1" /></td>
</tr>
<tr>
<td width="1" bgcolor="#FFFFFF"><img src="skins/colors/images/spacer.gif" width="1" /></td>
<td colspan="3" height="22" bgcolor="#E9E9E9" style="border-top: 1px solid #D3D1D4; border-left: 1px solid #D3D1D4; border-right: 1px solid #D3D1D4;" align="center"><?php echo $copyright; ?></td>
<td width="1" bgcolor="#FFFFFF"><img src="skins/colors/images/spacer.gif" width="1" /></td>
</tr>
</table>
</body>
</html>