Ano ten spacer.gif je jednopixelovy obrázek, mám to ale vícekrát použito i s ještě jiným gif obrázkem, když sem to začal mazat tak se mi začala blbě dělat grafika e-shopu.
U tep_image jsem si poradil, pořadí zápisu jsem našel na netu, první cesta, pak alt, tak sem to jednoduše dopsal jak je ukázáno výše. Ted separator ale netuším, zkoušel sem to dopsat stejně jako u image, ale nedávalo se to jako alt, kde by to tak mohlo být nastavené to pořadí ? php příliž nerozumím.
je to e-shop, oscommerce, celý kód stránky
<?php
/*
$Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
class tableBox {
var $table_border = '0';
var $table_width = '0';
var $table_cellspacing = '0';
var $table_cellpadding = '0';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';
// class constructor
function tableBox($contents, $direct_output = false) {
$tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"';
if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters;
$tableBox_string .= '>' . "\n";
for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n";
$tableBox_string .= ' <tr';
if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters;
if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params'];
$tableBox_string .= '>' . "\n";
if (isset($contents[$i][0]) && is_array($contents[$i][0])) {
for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {
if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {
$tableBox_string .= ' <td';
if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"';
if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {
$tableBox_string .= ' ' . $contents[$i][$x]['params'];
} elseif (tep_not_null($this->table_data_parameters)) {
$tableBox_string .= ' ' . $this->table_data_parameters;
}
$tableBox_string .= '>';
if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];
$tableBox_string .= $contents[$i][$x]['text'];
if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';
$tableBox_string .= '</td>' . "\n";
}
}
} else {
$tableBox_string .= ' <td';
if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"';
if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {
$tableBox_string .= ' ' . $contents[$i]['params'];
} elseif (tep_not_null($this->table_data_parameters)) {
$tableBox_string .= ' ' . $this->table_data_parameters;
}
$tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";
}
$tableBox_string .= ' </tr>' . "\n";
if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n";
}
$tableBox_string .= '</table>' . "\n";
if ($direct_output == true) echo $tableBox_string;
return $tableBox_string;
}
}
// ------------------ infoBoxHeading ----------
class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
$this->table_cellpadding = '0';
if ($left_corner == true) {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif', 'obrazek');
} else {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif', 'obrazek');
}
if ($right_arrow == true) {
$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
} else {
$right_arrow = '';
}
if ($right_corner == true) {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif', 'obrazek');
} else {
$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
}
$info_box_contents = array();
$info_box_contents[] = array(array('params' => '',
'text' => '
<table border="0" cellspacing="0" cellpadding="0">
<tr><td height="5" colspan="3"></td></tr>
<tr><td>'.tep_image(DIR_WS_IMAGES.'m24.gif', 'obrazek').'</td><td width="100%" bgcolor="#EEF0E9">'.tep_draw_separator('spacer.gif', '1', '1').'</td><td>'.tep_image(DIR_WS_IMAGES.'m25.gif', 'obrazek').'</td></tr>
<tr><td width="206" colspan="3" bgcolor="#EEF0E9">
<table border="0" cellspacing="0" cellpadding="0" style="border:13px solid #EEF0E9; border-width: 0px 13px 0px 13px;">
<tr><td height="30" class="column_left_header_txt">'.$contents[0]['text'].'</td></tr>
</table>
</td></tr>
</table>
'));
$this->tableBox($info_box_contents, true);
}
}
// ------------------ infoBox ----------
class infoBox extends tableBox {
function infoBox($contents) {
$info_box_contents = array();
$info_box_contents[] = array('text' => $this->infoBoxContents($contents));
$this->table_cellpadding = '0';
$this->table_parameters = '';
$this->tableBox($info_box_contents, true);
}
function infoBoxContents($contents) {
$this->table_cellpadding = '0';
$this->table_parameters = '';
$info_box_contents = array();
for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
$info_box_contents[] = array( array ( 'align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
'params' => '',
'text' => '
<table cellpadding="0" cellspacing="0" border="0">
<tr><td>
<table border="0" cellspacing="0" cellpadding="0" style="border:13px solid #EEF0E9; border-width: 0px 13px 0px 13px;