[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 currencies.php

Zen Cart 源代码 currencies.php




下载文件

文件名: currencies.php
文件类型: PHP文件
文件大小: 19.58 KiB
MD5: 5d65ff3a7406850246594daf4c96d354

currencies.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package admin
  4.  * @copyright Copyright 2003-2009 Zen Cart Development Team
  5.  * @copyright Portions Copyright 2003 osCommerce
  6.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  7.  * @version $Id: currencies.php 15074 2009-12-10 03:04:31Z drbyte $
  8.  */
  9.  
  10.   require('includes/application_top.php');
  11.  
  12.   require(DIR_WS_CLASSES . 'currencies.php');
  13.   $currencies = new currencies();
  14.  
  15.   $action = (isset($_GET['action']) ? $_GET['action'] : '');
  16.  
  17.   if (zen_not_null($action)) {
  18.     switch ($action) {
  19.       case 'insert':
  20.       case 'save':
  21.         if (isset($_GET['cID'])) $currency_id = zen_db_prepare_input($_GET['cID']);
  22.         $title = zen_db_prepare_input($_POST['title']);
  23.         $code = strtoupper(zen_db_prepare_input($_POST['code']));
  24.         $symbol_left = zen_db_prepare_input($_POST['symbol_left']);
  25.         $symbol_right = zen_db_prepare_input($_POST['symbol_right']);
  26.         $decimal_point = zen_db_prepare_input($_POST['decimal_point']);
  27.         $thousands_point = zen_db_prepare_input($_POST['thousands_point']);
  28.         $decimal_places = zen_db_prepare_input($_POST['decimal_places']);
  29.         $value = zen_db_prepare_input((float)$_POST['value']);
  30.  
  31.         // special handling for JPY, which always uses whole numbers, never decimals
  32.         if ($code == 'JPY') {
  33.           $value = (int)$value;
  34.           $decimal_places = 0;
  35.         }
  36.  
  37.         $sql_data_array = array('title' => $title,
  38.                                 'code' => $code,
  39.                                 'symbol_left' => $symbol_left,
  40.                                 'symbol_right' => $symbol_right,
  41.                                 'decimal_point' => $decimal_point,
  42.                                 'thousands_point' => $thousands_point,
  43.                                 'decimal_places' => $decimal_places,
  44.                                 'value' => $value);
  45.  
  46.         if ($action == 'insert') {
  47.           zen_db_perform(TABLE_CURRENCIES, $sql_data_array);
  48.           $currency_id = zen_db_insert_id();
  49.         } elseif ($action == 'save') {
  50.           zen_db_perform(TABLE_CURRENCIES, $sql_data_array, 'update', "currencies_id = '" . (int)$currency_id . "'");
  51.         }
  52.  
  53.         if (isset($_POST['default']) && ($_POST['default'] == 'on')) {
  54.           $db->Execute("update " . TABLE_CONFIGURATION . "
  55.                        set configuration_value = '" . zen_db_input($code) . "'
  56.                        where configuration_key = 'DEFAULT_CURRENCY'");
  57.         }
  58.  
  59.         zen_redirect(zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $currency_id));
  60.         break;
  61.       case 'deleteconfirm':
  62.         // demo active test
  63.         if (zen_admin_demo()) {
  64.           $_GET['action']= '';
  65.           $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
  66.           zen_redirect(zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page']));
  67.         }
  68.         $currencies_id = zen_db_prepare_input($_GET['cID']);
  69.  
  70.         $currency = $db->Execute("select currencies_id
  71.                                  from " . TABLE_CURRENCIES . "
  72.                                  where code = '" . DEFAULT_CURRENCY . "'");
  73.  
  74.  
  75.         if ($currency->fields['currencies_id'] == $currencies_id) {
  76.           $db->Execute("update " . TABLE_CONFIGURATION . "
  77.                        set configuration_value = ''
  78.                        where configuration_key = 'DEFAULT_CURRENCY'");
  79.         }
  80.  
  81.         $db->Execute("delete from " . TABLE_CURRENCIES . "
  82.                      where currencies_id = '" . (int)$currencies_id . "'");
  83.  
  84.         zen_redirect(zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page']));
  85.         break;
  86.       case 'update_currencies':
  87.         $server_used = CURRENCY_SERVER_PRIMARY;
  88.         zen_set_time_limit(600);
  89.         $currency = $db->Execute("select currencies_id, code, title from " . TABLE_CURRENCIES);
  90.         while (!$currency->EOF) {
  91.           $quote_function = 'quote_' . CURRENCY_SERVER_PRIMARY . '_currency';
  92.           $rate = $quote_function($currency->fields['code']);
  93.  
  94.           if (empty($rate) && (zen_not_null(CURRENCY_SERVER_BACKUP))) {
  95.             // failed to get currency quote from primary server - attempting to use backup server instead
  96.             $messageStack->add_session(sprintf(WARNING_PRIMARY_SERVER_FAILED, CURRENCY_SERVER_PRIMARY, $currency->fields['title'], $currency->fields['code']), 'warning');
  97.             $quote_function = 'quote_' . CURRENCY_SERVER_BACKUP . '_currency';
  98.             $rate = $quote_function($currency->fields['code']);
  99.             $server_used = CURRENCY_SERVER_BACKUP;
  100.           }
  101.  
  102.           /* Add currency uplift */
  103.           if ($rate != 1 && defined('CURRENCY_UPLIFT_RATIO') && (int)CURRENCY_UPLIFT_RATIO != 0) {
  104.             $rate = (string)((float)$rate * (float)CURRENCY_UPLIFT_RATIO);
  105.           }
  106.  
  107.           // special handling for JPY, which always uses whole numbers, never decimals
  108.           if ($code == 'JPY') {
  109.             $rate = (int)$rate;
  110.           }
  111.  
  112.           if (zen_not_null($rate) && $rate > 0) {
  113.             $db->Execute("update " . TABLE_CURRENCIES . "
  114.                          set value = '" . $rate . "', last_updated = now()
  115.                          where currencies_id = '" . (int)$currency->fields['currencies_id'] . "'");
  116.             $messageStack->add_session(sprintf(TEXT_INFO_CURRENCY_UPDATED, $currency->fields['title'], $currency->fields['code'], $server_used), 'success');
  117.           } else {
  118.             $messageStack->add_session(sprintf(ERROR_CURRENCY_INVALID, $currency->fields['title'], $currency->fields['code'], $server_used), 'error');
  119.           }
  120.           $currency->MoveNext();
  121.         }
  122.  
  123.         zen_redirect(zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID']));
  124.         break;
  125.       case 'delete':
  126.         // demo active test
  127.         if (zen_admin_demo()) {
  128.           $_GET['action']= '';
  129.           $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
  130.           zen_redirect(zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID']));
  131.         }
  132.         $currencies_id = zen_db_prepare_input($_GET['cID']);
  133.  
  134.         $currency = $db->Execute("select code
  135.                                  from " . TABLE_CURRENCIES . "
  136.                                  where currencies_id = '" . (int)$currencies_id . "'");
  137.  
  138.         $remove_currency = true;
  139.         if ($currency->fields['code'] == DEFAULT_CURRENCY) {
  140.           $remove_currency = false;
  141.           $messageStack->add(ERROR_REMOVE_DEFAULT_CURRENCY, 'error');
  142.         }
  143.         break;
  144.     }
  145.   }
  146. ?>
  147. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  148. <html <?php echo HTML_PARAMS; ?>>
  149. <head>
  150. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  151. <title><?php echo TITLE; ?></title>
  152. <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
  153. <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
  154. <script language="javascript" src="includes/menu.js"></script>
  155. <script language="javascript" src="includes/general.js"></script>
  156. <script type="text/javascript">
  157.   <!--
  158.   function init()
  159.   {
  160.     cssjsmenu('navbar');
  161.     if (document.getElementById)
  162.     {
  163.       var kill = document.getElementById('hoverJS');
  164.       kill.disabled = true;
  165.     }
  166.   }
  167.   // -->
  168. </script>
  169. </head>
  170. <body onLoad="init()">
  171. <!-- header //-->
  172. <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
  173. <!-- header_eof //-->
  174.  
  175. <!-- body //-->
  176. <table border="0" width="100%" cellspacing="2" cellpadding="2">
  177.   <tr>
  178. <!-- body_text //-->
  179.     <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  180.       <tr>
  181.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  182.           <tr>
  183.             <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
  184.             <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
  185.           </tr>
  186.         </table></td>
  187.       </tr>
  188.       <tr>
  189.         <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
  190.           <tr>
  191.             <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  192.               <tr class="dataTableHeadingRow">
  193.                 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CURRENCY_NAME; ?></td>
  194.                 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CURRENCY_CODES; ?></td>
  195.                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_CURRENCY_VALUE; ?></td>
  196.                 <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
  197.               </tr>
  198. <?php
  199.   $currency_query_raw = "select currencies_id, title, code, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, last_updated, value from " . TABLE_CURRENCIES . " order by title";
  200.   $currency_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $currency_query_raw, $currency_query_numrows);
  201.   $currency = $db->Execute($currency_query_raw);
  202.   while (!$currency->EOF) {
  203.     if ((!isset($_GET['cID']) || (isset($_GET['cID']) && ($_GET['cID'] == $currency->fields['currencies_id']))) && !isset($cInfo) && (substr($action, 0, 3) != 'new')) {
  204.       $cInfo = new objectInfo($currency->fields);
  205.     }
  206.  
  207.     if (isset($cInfo) && is_object($cInfo) && ($currency->fields['currencies_id'] == $cInfo->currencies_id) ) {
  208.       echo '              <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit') . '\'">' . "\n";
  209.     } else {
  210.       echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $currency->fields['currencies_id']) . '\'">' . "\n";
  211.     }
  212.  
  213.     if (DEFAULT_CURRENCY == $currency->fields['code']) {
  214.       echo '                <td class="dataTableContent"><b>' . $currency->fields['title'] . ' (' . TEXT_DEFAULT . ')</b></td>' . "\n";
  215.     } else {
  216.       echo '                <td class="dataTableContent">' . $currency->fields['title'] . '</td>' . "\n";
  217.     }
  218. ?>
  219.                 <td class="dataTableContent"><?php echo $currency->fields['code']; ?></td>
  220.                 <td class="dataTableContent" align="right"><?php echo number_format($currency->fields['value'], 8); ?></td>
  221.                 <td class="dataTableContent" align="right"><?php if (isset($cInfo) && is_object($cInfo) && ($currency->fields['currencies_id'] == $cInfo->currencies_id) ) { echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $currency->fields['currencies_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
  222.               </tr>
  223. <?php
  224.     $currency->MoveNext();
  225.   }
  226. ?>
  227.               <tr>
  228.                 <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2">
  229.                   <tr>
  230.                     <td class="smallText" valign="top"><?php echo $currency_split->display_count($currency_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CURRENCIES); ?></td>
  231.                     <td class="smallText" align="right"><?php echo $currency_split->display_links($currency_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?></td>
  232.                   </tr>
  233. <?php
  234.   if (empty($action)) {
  235. ?>
  236.                   <tr>
  237.                     <td><?php if (CURRENCY_SERVER_PRIMARY) { echo '<a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=update_currencies') . '">' . zen_image_button('button_update_currencies.gif', IMAGE_UPDATE_CURRENCIES) . '</a>'; } ?></td>
  238.                     <td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=new') . '">' . zen_image_button('button_new_currency.gif', IMAGE_NEW_CURRENCY) . '</a>'; ?></td>
  239.                   </tr>
  240. <?php
  241.   }
  242. ?>
  243.                 </table></td>
  244.               </tr>
  245.             </table></td>
  246. <?php
  247.   $heading = array();
  248.   $contents = array();
  249.  
  250.   switch ($action) {
  251.     case 'new':
  252.       $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_CURRENCY . '</b>');
  253.  
  254.       $contents = array('form' => zen_draw_form('currencies', FILENAME_CURRENCIES, 'page=' . $_GET['page'] . (isset($cInfo) ? '&cID=' . $cInfo->currencies_id : '') . '&action=insert'));
  255.       $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
  256.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . '<br>' . zen_draw_input_field('title'));
  257.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_CODE . '<br>' . zen_draw_input_field('code'));
  258.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . '<br>' . zen_draw_input_field('symbol_left'));
  259.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_RIGHT . '<br>' . zen_draw_input_field('symbol_right'));
  260.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_POINT . '<br>' . zen_draw_input_field('decimal_point'));
  261.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_THOUSANDS_POINT . '<br>' . zen_draw_input_field('thousands_point'));
  262.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_PLACES . '<br>' . zen_draw_input_field('decimal_places'));
  263.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_VALUE . '<br>' . zen_draw_input_field('value'));
  264.       $contents[] = array('text' => '<br>' . zen_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
  265.       $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
  266.       break;
  267.     case 'edit':
  268.       $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CURRENCY . '</b>');
  269.  
  270.       $contents = array('form' => zen_draw_form('currencies', FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=save'));
  271.       $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
  272.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . '<br>' . zen_draw_input_field('title', $cInfo->title));
  273.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_CODE . '<br>' . zen_draw_input_field('code', $cInfo->code));
  274.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . '<br>' . zen_draw_input_field('symbol_left', htmlspecialchars($cInfo->symbol_left)));
  275.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_RIGHT . '<br>' . zen_draw_input_field('symbol_right', htmlspecialchars($cInfo->symbol_right)));
  276.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_POINT . '<br>' . zen_draw_input_field('decimal_point', $cInfo->decimal_point));
  277.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_THOUSANDS_POINT . '<br>' . zen_draw_input_field('thousands_point', $cInfo->thousands_point));
  278.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_PLACES . '<br>' . zen_draw_input_field('decimal_places', $cInfo->decimal_places));
  279.       $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_VALUE . '<br>' . zen_draw_input_field('value', $cInfo->value));
  280.       if (DEFAULT_CURRENCY != $cInfo->code) $contents[] = array('text' => '<br>' . zen_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
  281.       $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
  282.       break;
  283.     case 'delete':
  284.       $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CURRENCY . '</b>');
  285.       $contents = array('form'=>zen_draw_form('delete', FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm', 'post'));
  286.       $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
  287.       $contents[] = array('text'=> (($remove_currency) ? zen_image_submit('button_delete.gif', IMAGE_DELETE) : '') . ' <a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $_GET['cID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>', 'align'=>'center');
  288.       $contents[] = array('text' => '<br><b>' . $cInfo->title . '</b>');
  289. //      $contents[] = array('align' => 'center', 'text' => '<br>' . (($remove_currency) ? '<a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
  290.       break;
  291.     default:
  292.       if (is_object($cInfo)) {
  293.         $heading[] = array('text' => '<b>' . $cInfo->title . '</b>');
  294.  
  295.         $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
  296.         $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . ' ' . $cInfo->title);
  297.         $contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
  298.         $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . ' ' . $cInfo->symbol_left);
  299.         $contents[] = array('text' => TEXT_INFO_CURRENCY_SYMBOL_RIGHT . ' ' . $cInfo->symbol_right);
  300.         $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_POINT . ' ' . $cInfo->decimal_point);
  301.         $contents[] = array('text' => TEXT_INFO_CURRENCY_THOUSANDS_POINT . ' ' . $cInfo->thousands_point);
  302.         $contents[] = array('text' => TEXT_INFO_CURRENCY_DECIMAL_PLACES . ' ' . $cInfo->decimal_places);
  303.         $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_LAST_UPDATED . ' ' . zen_date_short($cInfo->last_updated));
  304.         $contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . ' ' . number_format($cInfo->value, 8));
  305.         $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_EXAMPLE . '<br>' . $currencies->format('30', false, DEFAULT_CURRENCY) . ' = ' . $currencies->format('30', true, $cInfo->code));
  306.       }
  307.       break;
  308.   }
  309.  
  310.   if ( (zen_not_null($heading)) && (zen_not_null($contents)) ) {
  311.     echo '            <td width="25%" valign="top">' . "\n";
  312.  
  313.     $box = new box;
  314.     echo $box->infoBox($heading, $contents);
  315.  
  316.     echo '            </td>' . "\n";
  317.   }
  318. ?>
  319.           </tr>
  320.         </table></td>
  321.       </tr>
  322.     </table></td>
  323. <!-- body_text_eof //-->
  324.   </tr>
  325. </table>
  326. <!-- body_eof //-->
  327.  
  328. <!-- footer //-->
  329. <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  330. <!-- footer_eof //-->
  331. <br>
  332. </body>
  333. </html>
  334. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  335.  


cron