Jump to content

Recommended Posts

Есть вопрос? Задай его профессиональным веб-мастерам, SEO и другим специалистам!

HTML code:

<div class="CSSTableGenerator">
                <table>
                    <tr>
                        <td>
                            Качество
                        </td>
                        <td>
                            Перевод
                        </td>
                        <td>
                            Формат
                        </td>
                        <td>
                            Размер
                        </td>
                        <td>
                            Скачать
                        </td>
                    </tr>
                   
                    <tr>
                        <td>
                            [xfvalue_kachestvo]
                        </td>
                        <td>
                            [xfvalue_perevod]
                        </td>
                        <td>
                            [xfvalue_format]
                        </td>
                        <td>
                            [xfvalue_razmer]
                        </td>
                        <td>
                            [xfvalue_skachat]
                        </td>
                    </tr>
                </table>
            </div>
            

CSS code:

 
.CSSTableGenerator {
margin:0px;padding:0px;
width:100%;
border:1px solid #b7b7b7;


}.CSSTableGenerator table{
border-collapse: collapse;
border-spacing: 0;
width:100%;
height:100%;
margin:0px;padding:0px;




}.CSSTableGenerator tr:hover td{
background-color:#ffffff;
}


.CSSTableGenerator td{
vertical-align:middle;
background-color:#ffffff;
border:1px solid #b7b7b7;
border-width:0px 1px 1px 0px;
text-align:left;
padding:4px;
font-size:12px;
font-family:Verdana;
font-weight:normal;
color:#000000;
}.CSSTableGenerator tr:last-child td{
border-width:0px 1px 0px 0px;
}.CSSTableGenerator tr td:last-child{
border-width:0px 0px 1px 0px;
}.CSSTableGenerator tr:last-child td:last-child{
border-width:0px 0px 0px 0px;
}
.CSSTableGenerator tr:first-child td{
background:-o-linear-gradient(bottom, #e0e0e0 5%, #f7f7f7 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e0e0e0), color-stop(1, #f7f7f7) );
background:-moz-linear-gradient( center top, #e0e0e0 5%, #f7f7f7 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#e0e0e0", endColorstr="#f7f7f7"); background: -o-linear-gradient(top,#e0e0e0,f7f7f7);




background-color:#e0e0e0;
border:0px solid #b7b7b7;
text-align:center;
border-width:0px 0px 1px 1px;
font-size:12px;
font-family:Verdana;
font-weight:bold;
color:#7f7f7f;
}
.CSSTableGenerator tr:first-child:hover td{
background:-o-linear-gradient(bottom, #e0e0e0 5%, #f7f7f7 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e0e0e0), color-stop(1, #f7f7f7) );
background:-moz-linear-gradient( center top, #e0e0e0 5%, #f7f7f7 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#e0e0e0", endColorstr="#f7f7f7"); background: -o-linear-gradient(top,#e0e0e0,f7f7f7);




background-color:#e0e0e0;
}
.CSSTableGenerator tr:first-child td:first-child{
border-width:0px 0px 1px 0px;
}
.CSSTableGenerator tr:first-child td:last-child{
border-width:0px 0px 1px 1px;
}
  
Link to post
Share on other sites

Картинка в attachment

engine/modules/functions.php

 

Заменить:

			$replace_1[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >{$row['name']}</a> [{$size}] ({$lang['att_dcount']} {$row['dcount']})</span>";
			$replace_2[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >\\1</a> [{$size}] ({$lang['att_dcount']} {$row['dcount']})</span>";

		} else {

			$replace_1[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >{$row['name']}</a> [{$size}]</span>";
			$replace_2[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >\\1</a> [{$size}]</span>";

На:

$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";


} else {


$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";
Link to post
Share on other sites

 

Картинка в attachment

engine/modules/functions.php

 

Заменить:

			$replace_1[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >{$row['name']}</a> [{$size}] ({$lang['att_dcount']} {$row['dcount']})</span>";
			$replace_2[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >\\1</a> [{$size}] ({$lang['att_dcount']} {$row['dcount']})</span>";

		} else {

			$replace_1[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >{$row['name']}</a> [{$size}]</span>";
			$replace_2[] = "<span class=\"attachment\"><a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" >\\1</a> [{$size}]</span>";

На:

$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";


} else {


$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src="/kartinka.png" alt="Скачать" /></a>";

 

Если я заменяю ее,вот что выходит на сайте!

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/s/name/site.ru/public_html/engine/modules/functions.php on line 764

Link to post
Share on other sites

@kroseph,упс)

$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>";


} else {


$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>"; 
Link to post
Share on other sites

 

@kroseph,упс)

$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>";


} else {


$replace_1[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>";
$replace_2[] = "<a href=\"{$config['http_home_url']}engine/download.php?id={$row['id']}{$area}\" ><img src=\"/kartinka.png\" alt=\"Скачать\" /></a>"; 

Спасибо.Тему можно закрыть!

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...