<?php
/* -----------------------------------------------------------------------------------------
$Id: boxes.php 899 2005-04-29 02:40:57Z hhgag $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(boxes.php,v 1.32 2003/05/27); www.oscommerce.com
(c) 2003 nextcommerce (boxes.php,v 1.11 2003/08/13); www.nextcommerce.org
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
class tableBox {
var $table_border = '0';
var $table_width = '100%';
var $table_cellspacing = '0';
var $table_cellpadding = '2';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';
// class constructor
function tableBox($contents, $direct_output = false) {
$tableBox_string = '<table border="' . $this->table_border . '" width="' . $this->table_width . '" cellspacing="' . $this->table_cellspacing . '" cellpadding="' . $this->table_cellpadding . '"';
if (xtc_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']) && xtc_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n";
$tableBox_string .= ' <tr';
if (xtc_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters;
if (isset($contents[$i]['params']) && xtc_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params'];
$tableBox_string .= '>' . "\n";
if (is_array($contents[$i][0])) {
for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {
if (isset($contents[$i][$x]['text']) && xtc_not_null($contents[$i][$x]['text'])) {
$tableBox_string .= ' <td';
if (isset($contents[$i][$x]['align']) && xtc_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . $contents[$i][$x]['align'] . '"';
if (isset($contents[$i][$x]['params']) && xtc_not_null($contents[$i][$x]['params'])) {
$tableBox_string .= ' ' . $contents[$i][$x]['params'];
} elseif (xtc_not_null($this->table_data_parameters)) {
$tableBox_string .= ' ' . $this->table_data_parameters;
}
$tableBox_string .= '>';
if (isset($contents[$i][$x]['form']) && xtc_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];
$tableBox_string .= $contents[$i][$x]['text'];
if (isset($contents[$i][$x]['form']) && xtc_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';
$tableBox_string .= '</td>' . "\n";
}
}
} else {
$tableBox_string .= ' <td';
if (isset($contents[$i]['align']) && xtc_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . $contents[$i]['align'] . '"';
if (isset($contents[$i]['params']) && xtc_not_null($contents[$i]['params'])) {
$tableBox_string .= ' ' . $contents[$i]['params'];
} elseif (xtc_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']) && xtc_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n";
}
$tableBox_string .= '</table>' . "\n";
if ($direct_output == true) echo $tableBox_string;
return $tableBox_string;
}
}
class infoBox extends tableBox {
function infoBox($contents) {
$info_box_contents = array();
$info_box_contents[] = array('text' => $this->infoBoxContents($contents));
$this->table_cellpadding = '1';
$this->table_parameters = 'class="infoBox"';
$this->tableBox($info_box_contents, true);
}
function infoBoxContents($contents) {
$this->table_cellpadding = '3';
$this->table_parameters = 'class="infoBoxContents"';
$info_box_contents = array();
$info_box_contents[] = array(array('text' => xtc_draw_separator('pixel_trans.gif', '100%', '1')));
for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
$info_box_contents[] = array(array('align' => $contents[$i]['align'],
'form' => $contents[$i]['form'],
'params' => 'class="boxText"',
'text' => $contents[$i]['text']));
}
$info_box_contents[] = array(array('text' => xtc_draw_separator('pixel_trans.gif', '100%', '1')));
return $this->tableBox($info_box_contents);
}
}
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 = xtc_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
} else {
$left_corner = xtc_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
}
if ($right_arrow == true) {
$right_arrow = '<a href="' . $right_arrow . '">' . xtc_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
} else {
$right_arrow = '';
}
if ($right_corner == true) {
$right_corner = $right_arrow . xtc_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');
} else {
$right_corner = $right_arrow . xtc_draw_separator('pixel_trans.gif', '11', '14');
}
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
'text' => $left_corner),
array('params' => 'width="100%" height="14" class="infoBoxHeading"',
'text' => $contents[0]['text']),
array('params' => 'height="14" class="infoBoxHeading" nowrap',
'text' => $right_corner));
$this->tableBox($info_box_contents, true);
}
}
class contentBox extends tableBox {
function contentBox($contents) {
$info_box_contents = array();
$info_box_contents[] = array('text' => $this->contentBoxContents($contents));
$this->table_cellpadding = '1';
$this->table_parameters = 'class="infoBox"';
$this->tableBox($info_box_contents, true);
}
function contentBoxContents($contents) {
$this->table_cellpadding = '4';
$this->table_parameters = 'class="infoBoxContents"';
return $this->tableBox($contents);
}
}
class contentBoxHeading extends tableBox {
function contentBoxHeading($contents) {
$this->table_width = '100%';
$this->table_cellpadding = '0';
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
'text' => xtc_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),
array('params' => 'height="14" class="infoBoxHeading" width="100%"',
'text' => $contents[0]['text']),
array('params' => 'height="14" class="infoBoxHeading"',
'text' => xtc_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));
$this->tableBox($info_box_contents, true);
}
}
class errorBox extends tableBox {
function errorBox($contents) {
$this->table_data_parameters = 'class="errorBox"';
$this->tableBox($contents, true);
}
}
class productListingBox extends tableBox {
function productListingBox($contents) {
$this->table_parameters = 'class="productListing"';
$this->tableBox($contents, true);
}
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| Smarty/ | 2013-11-12 21:07 | 343.97 KB | 76129f60960:kunden | dxwrx-rx-r | |
| billsafe_2/ | 2013-11-12 21:07 | 21.38 KB | 76129f60960:kunden | dxwrx-rx-r | |
| afterbuy.php | 2013-11-12 21:06 | 31.51 KB | 76129f60960:kunden | -xw-x----- | |
| banktransfer_validation.php | 2013-11-12 21:06 | 82.12 KB | 76129f60960:kunden | -xw-x----- | |
| boxes.php | 2013-11-12 21:06 | 8.36 KB | 76129f60960:kunden | -xw-x----- | |
| boxes_old.php | 2013-11-12 21:06 | 366 B | 76129f60960:kunden | -xw-x----- | |
| breadcrumb.php | 2013-11-12 21:06 | 2.02 KB | 76129f60960:kunden | -xw-x----- | |
| cc_validation.php | 2013-11-12 21:06 | 3.42 KB | 76129f60960:kunden | -xw-x----- | |
| class.heidelpay.php | 2013-11-12 21:06 | 25.39 KB | 76129f60960:kunden | -xw-x----- | |
| class.inputfilter.php | 2013-11-12 21:06 | 13.32 KB | 76129f60960:kunden | -xw-x----- | |
| class.moneybookers.php | 2013-11-12 21:06 | 12.02 KB | 76129f60960:kunden | -xw-x----- | |
| class.phpmailer.php | 2013-11-12 21:06 | 46.01 KB | 76129f60960:kunden | -xw-x----- | |
| class.smtp.php | 2013-11-12 21:06 | 33.77 KB | 76129f60960:kunden | -xw-x----- | |
| http_client.php | 2013-11-12 21:06 | 13.32 KB | 76129f60960:kunden | -xw-x----- | |
| language.php | 2013-11-12 21:06 | 6.31 KB | 76129f60960:kunden | -xw-x----- | |
| main.php | 2013-11-12 21:06 | 5.58 KB | 76129f60960:kunden | -xw-x----- | |
| message_stack.php | 2013-11-12 21:06 | 3.29 KB | 76129f60960:kunden | -xw-x----- | |
| navigation_history.php | 2013-11-12 21:06 | 4.71 KB | 76129f60960:kunden | -xw-x----- | |
| order.php | 2013-11-12 21:06 | 29.55 KB | 76129f60960:kunden | -xw-x----- | |
| order_total.php | 2013-11-12 21:06 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| payment.php | 2013-11-12 21:06 | 13.57 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_checkout.php | 2013-11-12 21:06 | 72.2 KB | 76129f60960:kunden | -xw-x----- | |
| phpmailer.lang-de.php | 2013-11-12 21:06 | 1.21 KB | 76129f60960:kunden | -xw-x----- | |
| phpmailer.lang-en.php | 2013-11-12 21:06 | 1.04 KB | 76129f60960:kunden | -xw-x----- | |
| product.php | 2013-11-12 21:06 | 25.61 KB | 76129f60960:kunden | -xw-x----- | |
| sessions.php | 2013-11-12 21:06 | 13.23 KB | 76129f60960:kunden | -xw-x----- | |
| shipping.php | 2013-11-12 21:06 | 5.95 KB | 76129f60960:kunden | -xw-x----- | |
| shopping_cart.php | 2013-11-12 21:06 | 26.02 KB | 76129f60960:kunden | -xw-x----- | |
| split_page_results.php | 2013-11-12 21:06 | 8.15 KB | 76129f60960:kunden | -xw-x----- | |
| vat_validation.php | 2013-11-12 21:06 | 30.28 KB | 76129f60960:kunden | -xw-x----- | |
| wish_list.php | 2013-11-12 21:06 | 20.18 KB | 76129f60960:kunden | -xw-x----- | |
| xmlparserv4.php | 2013-11-12 21:06 | 4.24 KB | 76129f60960:kunden | -xw-x----- | |
| xtbooster.php | 2013-11-12 21:06 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| xtcPrice.php | 2013-11-12 21:06 | 20.16 KB | 76129f60960:kunden | -xw-x----- | |