Exemplo n.º 1
0
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $sInfo->sale_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($sInfo)) {
                $heading[] = array('text' => '<b>' . $sInfo->sale_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id . '&action=copy') . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a> <a href="' . zen_href_link(FILENAME_SALEMAKER, 'page=' . $_GET['page'] . '&sID=' . $sInfo->sale_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($sInfo->sale_date_added));
                $contents[] = array('text' => '' . TEXT_INFO_DATE_MODIFIED . ' ' . ($sInfo->sale_date_last_modified == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($sInfo->sale_date_last_modified)));
                $contents[] = array('text' => '' . TEXT_INFO_DATE_STATUS_CHANGE . ' ' . ($sInfo->sale_date_status_change == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($sInfo->sale_date_status_change)));
                $contents[] = array('text' => '<br>' . TEXT_INFO_DEDUCTION . ' ' . $sInfo->sale_deduction_value . ' ' . $deduction_type_array[$sInfo->sale_deduction_type]['text']);
                $contents[] = array('text' => '' . TEXT_INFO_PRICERANGE_FROM . ' ' . $currencies->format($sInfo->sale_pricerange_from) . TEXT_INFO_PRICERANGE_TO . $currencies->format($sInfo->sale_pricerange_to));
                $contents[] = array('text' => '<table class="dataTableContent" border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td valign="top">' . TEXT_INFO_SPECIALS_CONDITION . '&nbsp;</td><td>' . $specials_condition_array[$sInfo->sale_specials_condition]['text'] . '</td></tr></table>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_START . ' ' . ($sInfo->sale_date_start == '0001-01-01' ? TEXT_SALEMAKER_IMMEDIATELY : zen_date_short($sInfo->sale_date_start)));
                $contents[] = array('text' => '' . TEXT_INFO_DATE_END . ' ' . ($sInfo->sale_date_end == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($sInfo->sale_date_end)));
            }
            break;
    }
    if (zen_not_null($heading) && zen_not_null($contents)) {
        echo '            <td valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
Exemplo n.º 2
0
function zen_build_html_email_from_template($module = 'default', $block)
{
    // Identify and Read the template file for the type of message being sent
    $template_filename_base = DIR_FS_EMAIL_TEMPLATES . "email_template_";
    if (file_exists($template_filename_base . str_replace(array('_extra', '_admin'), '', $module) . '.html')) {
        $template_filename = $template_filename_base . str_replace(array('_extra', '_admin'), '', $module) . '.html';
    } elseif (file_exists($template_filename_base . 'default' . '.html')) {
        $template_filename = $template_filename_base . 'default' . '.html';
    } else {
        echo 'ERROR: The email template file for ' . $template_filename_base . ' or ' . $template_filename . ' cannot be found.';
        return '';
        // couldn't find template file, so return an empty string for html message.
    }
    if (!($fh = fopen($template_filename, 'rb'))) {
        // note: the 'b' is for compatibility with Windows systems
        echo 'ERROR: The email template file ' . $template_filename_base . ' or ' . $template_filename . ' cannot be opened';
    }
    $file_holder = fread($fh, filesize($template_filename));
    fclose($fh);
    //strip linebreaks and tabs out of the template
    $file_holder = zen_convert_linefeeds(array("\r\n", "\n", "\r", "\t"), '', $file_holder);
    //check for some specifics that need to be included with all messages
    if ($block['EMAIL_STORE_NAME'] == '') {
        $block['EMAIL_STORE_NAME'] = STORE_NAME;
    }
    if ($block['EMAIL_STORE_URL'] == '') {
        $block['EMAIL_STORE_URL'] = '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . '">' . STORE_NAME . '</a>';
    }
    if ($block['EMAIL_STORE_OWNER'] == '') {
        $block['EMAIL_STORE_OWNER'] = STORE_OWNER;
    }
    if ($block['EMAIL_FOOTER_COPYRIGHT'] == '') {
        $block['EMAIL_FOOTER_COPYRIGHT'] = EMAIL_FOOTER_COPYRIGHT;
    }
    if ($block['EMAIL_DISCLAIMER'] == '') {
        $block['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">' . STORE_OWNER_EMAIL_ADDRESS . ' </a>');
    }
    if ($block['EMAIL_SPAM_DISCLAIMER'] == '') {
        $block['EMAIL_SPAM_DISCLAIMER'] = EMAIL_SPAM_DISCLAIMER;
    }
    if ($block['BASE_HREF'] == '') {
        $block['BASE_HREF'] = HTTP_SERVER . DIR_WS_CATALOG;
    }
    if ($block['EMAIL_DATE_SHORT'] == '') {
        $block['EMAIL_DATE_SHORT'] = zen_date_short(date("Y-m-d"));
    }
    if ($block['EMAIL_DATE_LONG'] == '') {
        $block['EMAIL_DATE_LONG'] = zen_date_long(date("Y-m-d"));
    }
    if ($block['EXTRA_INFO'] == 'EXTRA_INFO') {
        $block['EXTRA_INFO'] = '';
    }
    if (substr($module, -6) != '_extra' && $module != 'contact_us') {
        $block['EXTRA_INFO'] = '';
    }
    $block['COUPON_BLOCK'] = '';
    if ($block['COUPON_TEXT_VOUCHER_IS'] && $block['COUPON_TEXT_TO_REDEEM']) {
        $block['COUPON_BLOCK'] = '<div class="coupon-block">' . $block['COUPON_TEXT_VOUCHER_IS'] . $block['COUPON_DESCRIPTION'] . '<br />' . $block['COUPON_TEXT_TO_REDEEM'] . '<span class="coupon-code">' . $block['COUPON_CODE'] . '</span></div>';
    }
    $block['GV_BLOCK'] = '';
    if ($block['GV_WORTH'] && $block['GV_REDEEM'] && $block['GV_CODE_URL']) {
        $block['GV_BLOCK'] = '<div class="gv-block">' . $block['GV_WORTH'] . '<br />' . $block['GV_REDEEM'] . $block['GV_CODE_URL'] . '<br />' . $block['GV_LINK_OTHER'] . '</div>';
    }
    //prepare the "unsubscribe" link:
    if (function_exists(zen_catalog_href_link)) {
        $block['UNSUBSCRIBE_LINK'] = str_replace("\n", '', TEXT_UNSUBSCRIBE) . ' <a href="' . zen_catalog_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '">' . zen_catalog_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '</a>';
    } else {
        $block['UNSUBSCRIBE_LINK'] = str_replace("\n", '', TEXT_UNSUBSCRIBE) . ' <a href="' . zen_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '">' . zen_href_link(FILENAME_UNSUBSCRIBE, "unsubscribe_address=" . $block['EMAIL_TO_ADDRESS']) . '</a>';
    }
    //now replace the $BLOCK_NAME items in the template file with the values passed to this function's array
    foreach ($block as $key => $value) {
        $file_holder = str_replace('$' . $key, $value, $file_holder);
    }
    //DEBUG -- to display preview on-screen
    if (EMAIL_SYSTEM_DEBUG == 'on') {
        echo $file_holder;
    }
    return $file_holder;
}
Exemplo n.º 3
0
        $contents = array('form' => zen_draw_form('group_pricing', FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $gInfo->group_name . '</b>');
        if ($gInfo->customer_count > 0) {
            $contents[] = array('text' => '<br>' . zen_draw_checkbox_field('delete_customers') . ' ' . TEXT_DELETE_PRICING_GROUP);
            $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_GROUP_MEMBERS, $gInfo->customer_count));
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($gInfo) && is_object($gInfo)) {
            $heading[] = array('text' => '<b>' . $gInfo->group_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_GROUP_PRICING, 'page=' . $_GET['page'] . '&gID=' . $gInfo->group_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . zen_date_short($gInfo->date_added));
            if (zen_not_null($gInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . zen_date_short($gInfo->last_modified));
            }
            $contents[] = array('text' => '<br>' . TEXT_CUSTOMERS . ' ' . $gInfo->customer_count);
        }
        break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
Exemplo n.º 4
0
}
?>

</div>
</div>
<div id="colthree">
<div class="reportBox">
<div class="header"><?php 
echo BOX_ENTRY_NEW_ORDERS;
?>
 </div>
  <?php 
$orders = $db->Execute("select o.orders_id as orders_id, o.customers_name as customers_name, o.customers_id, o.date_purchased as date_purchased, o.currency, o.currency_value, ot.class, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id and class = 'ot_total') order by orders_id DESC limit 5");
while (!$orders->EOF) {
    echo '              <div class="row"><span class="left"><a href="' . zen_href_link(FILENAME_ORDERS, 'oID=' . $orders->fields['orders_id'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="contentlink"> ' . $orders->fields['customers_name'] . '</a></span><span class="center">' . $orders->fields['order_total'] . '</span><span class="rigth">' . "\n";
    echo zen_date_short($orders->fields['date_purchased']);
    echo '              </span></div>' . "\n";
    $orders->MoveNext();
}
?>
</div>
</div>
<!-- The following copyright announcement is in compliance
to section 2c of the GNU General Public License, and
thus can not be removed, or can only be modified
appropriately.

Please leave this comment intact together with the
following copyright announcement. //-->

<div class="copyrightrow"><a href="http://www.zen-cart.cn" target="_blank"><img src="images/small_zen_logo.gif" alt="Zen Cart:: 电子商务的艺术" border="0" /></a><br /><br />版权所有 &copy; 2003-<?php 
Exemplo n.º 5
0
            <td class="main" align="left"><?php 
    echo HEADER_PO_NUMBER;
    ?>
</td>
            <td class="main" align="right"><?php 
    echo $so->purchase_order[0]['number'];
    ?>
</td>
          </tr>
          <tr>
            <td class="main" align="left"><?php 
    echo HEADER_PO_INVOICE_DATE;
    ?>
</td>
            <td class="main" align="right"><?php 
    echo zen_date_short($so->purchase_order[0]['posted']);
    ?>
</td>
          </tr>
          <tr>
            <td class="main" align="left"><?php 
    echo HEADER_PO_TERMS;
    ?>
</td>
            <td class="main" align="right"><?php 
    echo HEADER_PO_TERMS_LENGTH;
    ?>
</td>
          </tr>
        </table></td>
<?php 
Exemplo n.º 6
0
 /**
  * Display Account Information on the Checkout Confirmation Page
  *
  * @return array
  */
 function confirmation()
 {
     global $order;
     $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_NAME, 'field' => $_POST['authorizenet_echeck_bank_name']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_ROUTING_CODE, 'field' => $_POST['authorizenet_echeck_bank_aba_code']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_ACCOUNT_TYPE, 'field' => $_POST['authorizenet_echeck_bank_acct_type']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_BANK_ACCOUNT_NUM, 'field' => $_POST['authorizenet_echeck_bank_acct_num']), array('title' => MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_AUTHORIZATION_TITLE, 'field' => sprintf(MODULE_PAYMENT_AUTHORIZENET_ECHECK_TEXT_AUTHORIZATION_NOTICE, strtolower(zen_db_prepare_input($_POST['authorizenet_echeck_bank_acct_type'])), zen_date_short(date("Y-m-d")), $order->info['total']))));
     return $confirmation;
 }
     }
 } else {
     $email_text = sprintf(EMAIL_GREET_NONE, $firstname);
 }
 $html_msg['EMAIL_GREETING'] = str_replace('\\n', '', $email_text);
 $html_msg['EMAIL_FIRST_NAME'] = $firstname;
 $html_msg['EMAIL_LAST_NAME'] = $lastname;
 // initial welcome
 $email_text .= EMAIL_WELCOME;
 $html_msg['EMAIL_WELCOME'] = str_replace('\\n', '', EMAIL_WELCOME);
 if (NEW_SIGNUP_DISCOUNT_COUPON != '' and NEW_SIGNUP_DISCOUNT_COUPON != '0') {
     $coupon_id = NEW_SIGNUP_DISCOUNT_COUPON;
     $coupon = $db->Execute("select * from " . TABLE_COUPONS . " where coupon_id = '" . $coupon_id . "'");
     $coupon_desc = $db->Execute("select coupon_description from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $coupon_id . "' and language_id = '" . $_SESSION['languages_id'] . "'");
     $db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $coupon_id . "', '0', 'Admin', '" . $email_address . "', now() )");
     $text_coupon_help = sprintf(TEXT_COUPON_HELP_DATE, zen_date_short($coupon->fields['coupon_start_date']), zen_date_short($coupon->fields['coupon_expire_date']));
     // if on, add in Discount Coupon explanation
     //        $email_text .= EMAIL_COUPON_INCENTIVE_HEADER .
     $email_text .= "\n" . EMAIL_COUPON_INCENTIVE_HEADER . (!empty($coupon_desc->fields['coupon_description']) ? $coupon_desc->fields['coupon_description'] . "\n\n" : '') . $text_coupon_help . "\n\n" . strip_tags(sprintf(EMAIL_COUPON_REDEEM, ' ' . $coupon->fields['coupon_code'])) . EMAIL_SEPARATOR;
     $html_msg['COUPON_TEXT_VOUCHER_IS'] = EMAIL_COUPON_INCENTIVE_HEADER;
     $html_msg['COUPON_DESCRIPTION'] = !empty($coupon_desc->fields['coupon_description']) ? '<strong>' . $coupon_desc->fields['coupon_description'] . '</strong>' : '';
     $html_msg['COUPON_TEXT_TO_REDEEM'] = str_replace("\n", '', sprintf(EMAIL_COUPON_REDEEM, ''));
     $html_msg['COUPON_CODE'] = $coupon->fields['coupon_code'] . $text_coupon_help;
 }
 //endif coupon
 if (NEW_SIGNUP_GIFT_VOUCHER_AMOUNT > 0) {
     $coupon_code = zen_create_coupon_code();
     $insert_query = $db->Execute("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $coupon_code . "', 'G', '" . NEW_SIGNUP_GIFT_VOUCHER_AMOUNT . "', now())");
     $insert_id = $db->Insert_ID();
     $db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id . "', '0', 'Admin', '" . $email_address . "', now() )");
     // if on, add in GV explanation
?>
</label>
<?php 
echo zen_draw_input_field('lastname', $account->fields['customers_lastname'], 'id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>' : '');
?>
<br class="clearBoth" />

<?php 
if (ACCOUNT_DOB == 'true') {
    ?>
<label class="inputLabel" for="dob"><?php 
    echo ENTRY_DATE_OF_BIRTH;
    ?>
</label>
<?php 
    echo zen_draw_input_field('dob', zen_date_short($account->fields['customers_dob']), 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>' : '');
    ?>
<br class="clearBoth" />
<?php 
}
?>

<label class="inputLabel" for="email-address"><?php 
echo ENTRY_EMAIL_ADDRESS;
?>
</label>
<?php 
echo zen_draw_input_field('email_address', $account->fields['customers_email_address'], 'id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>' : '');
?>
<br class="clearBoth" />
Exemplo n.º 9
0
                    //bof 12-6ke
                    $category_query = $db->Execute("select * from " . TABLE_COUPON_RESTRICT . " where coupon_id = '" . $cInfo->coupon_id . "' and category_id != '0'");
                    if ($category_query->RecordCount() > 0) {
                        $cat_details = TEXT_SEE_RESTRICT;
                    }
                    //eof 12-6ke
                    $coupon_name = $db->Execute("select coupon_name\r\n                                     from " . TABLE_COUPONS_DESCRIPTION . "\r\n                                     where coupon_id = '" . $cInfo->coupon_id . "'\r\n                                     and language_id = '" . $_SESSION['languages_id'] . "'");
                    $uses_coupon = $cInfo->uses_per_coupon;
                    $uses_user = $cInfo->uses_per_user;
                    if ($uses_coupon == 0 || $uses_coupon == '') {
                        $uses_coupon = TEXT_UNLIMITED;
                    }
                    if ($uses_user == 0 || $uses_user == '') {
                        $uses_user = TEXT_UNLIMITED;
                    }
                    $contents[] = array('text' => COUPON_NAME . '&nbsp;::&nbsp; ' . $coupon_name->fields['coupon_name'] . '<br />' . COUPON_AMOUNT . '&nbsp;::&nbsp; ' . $amount . '<br />' . COUPON_STARTDATE . '&nbsp;::&nbsp; ' . zen_date_short($cInfo->coupon_start_date) . '<br />' . COUPON_FINISHDATE . '&nbsp;::&nbsp; ' . zen_date_short($cInfo->coupon_expire_date) . '<br />' . COUPON_USES_COUPON . '&nbsp;::&nbsp; ' . $uses_coupon . '<br />' . COUPON_USES_USER . '&nbsp;::&nbsp; ' . $uses_user . '<br />' . COUPON_PRODUCTS . '&nbsp;::&nbsp; ' . $prod_details . '<br />' . COUPON_CATEGORIES . '&nbsp;::&nbsp; ' . $cat_details . '<br />' . DATE_CREATED . '&nbsp;::&nbsp; ' . zen_date_short($cInfo->date_created) . '<br />' . DATE_MODIFIED . '&nbsp;::&nbsp; ' . zen_date_short($cInfo->date_modified) . '<br /><br />' . COUPON_ZONE_RESTRICTION . '&nbsp;::&nbsp; ' . zen_get_geo_zone_name($cInfo->coupon_zone_restriction) . '<br /><br />' . ($cInfo->coupon_id != '' ? '<center><a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=email&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . zen_image_button('button_email.gif', 'Email ' . TEXT_DISCOUNT_COUPON) . '</a>' . '<a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=voucheredit&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_edit.gif', 'Edit ' . TEXT_DISCOUNT_COUPON) . '</a>' . '<a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=voucherdelete&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_delete.gif', 'Delete ' . TEXT_DISCOUNT_COUPON) . '</a>' . '<br /><a href="' . zen_href_link('coupon_restrict.php', 'cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_restrict.gif', 'Restrict') . '</a><a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=voucherreport&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_report.gif', TEXT_DISCOUNT_COUPON . ' Report') . '<a href="' . zen_href_link(FILENAME_COUPON_ADMIN, 'action=vouchercopy&cid=' . $cInfo->coupon_id . (isset($_GET['status']) ? '&status=' . $_GET['status'] : '') . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image_button('button_copy.gif', 'Copy ' . TEXT_DISCOUNT_COUPON) . '</a></center>' : ' who ' . $cInfo->coupon_id . ' - ' . $_GET['cid']));
                }
                break;
        }
        ?>
    <td width="25%" valign="top">
<?php 
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
}
?>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
Exemplo n.º 10
0
        if (isset($pInfo) && is_object($pInfo)) {
            $heading[] = array('text' => '<strong>[' . $pInfo->id . ']&nbsp;&nbsp;' . zen_datetime_short($pInfo->created_at) . '</strong>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=delete', 'NONSSL') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            if ($pInfo->status == 1) {
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=statusoff', 'NONSSL') . '">' . TEXT_STATUS_OFF . '</a>');
                if ($pInfo->pending > 0) {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=p2d') . '">' . TEXT_PENDING_TO_DEPOSIT . '</a>');
                } elseif ($pInfo->deposit > 0) {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=d2p') . '">' . TEXT_DEPOSIT_TO_PENDING . '</a>');
                }
            } else {
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=statuson', 'NONSSL') . '">' . TEXT_STATUS_ON . '</a>');
            }
            $contents[] = array('text' => '<br />' . TEXT_DATE_POINT_CREATED . ' ' . zen_date_short($pInfo->created_at));
            if (zen_not_null($pInfo->updated_at)) {
                $contents[] = array('text' => TEXT_DATE_POINT_UPDATED . ' ' . zen_date_short($pInfo->updated_at));
            }
            //$contents[] = array('text' => '<br />' . TEXT_INFO_POINT_CLASS . ' '  . $pInfo->class);
        }
        break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
Exemplo n.º 11
0
                if ($sInfo->products_priced_by_attribute == '1') {
                    $specials_current_price = zen_get_products_base_price($sInfo->products_id);
                } else {
                    $specials_current_price = $sInfo->products_price;
                }
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'action=edit&products_filter=' . $sInfo->products_id) . '">' . zen_image_button('button_products_price_manager.gif', IMAGE_PRODUCTS_PRICE_MANAGER) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($sInfo->specials_date_added));
                $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($sInfo->specials_last_modified));
                $contents[] = array('align' => 'center', 'text' => '<br>' . zen_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br>' . TEXT_INFO_ORIGINAL_PRICE . ' ' . $currencies->format($specials_current_price));
                $contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . ' ' . $currencies->format($sInfo->specials_new_products_price));
                $contents[] = array('text' => '' . TEXT_INFO_DISPLAY_PRICE . ' ' . zen_get_products_display_price($sInfo->products_id));
                $contents[] = array('text' => '<br>' . TEXT_INFO_AVAILABLE_DATE . ' <b>' . (($specials->fields['specials_date_available'] != '0001-01-01' and $specials->fields['specials_date_available'] != '') ? zen_date_short($specials->fields['specials_date_available']) : TEXT_NONE) . '</b>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_EXPIRES_DATE . ' <b>' . (($specials->fields['expires_date'] != '0001-01-01' and $specials->fields['expires_date'] != '') ? zen_date_short($specials->fields['expires_date']) : TEXT_NONE) . '</b>');
                $contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . ' ' . zen_date_short($sInfo->date_status_change));
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_CATEGORIES, '&action=new_product' . '&cPath=' . zen_get_product_path($sInfo->products_id, 'override') . '&pID=' . $sInfo->products_id . '&product_type=' . zen_get_products_type($sInfo->products_id)) . '">' . zen_image_button('button_edit_product.gif', IMAGE_EDIT_PRODUCT) . '<br />' . TEXT_PRODUCT_EDIT . '</a>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SPECIALS, 'action=pre_add') . '">' . zen_image_button('button_select.gif', IMAGE_SELECT) . '<br />' . TEXT_INFO_MANUAL . '</a><br /><br />');
            }
            break;
    }
    if (zen_not_null($heading) && zen_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
}
?>
          </tr>
        </table></td>
// $Id$
//
?>
<!-- bof: upcoming_products -->
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td class="tableHeading"><?php 
echo TABLE_HEADING_UPCOMING_PRODUCTS;
?>
</td>
    <td align="right" nowrap="nowrap" class="tableHeading"><?php 
echo TABLE_HEADING_DATE_EXPECTED;
?>
</td>
  </tr>
<?php 
$row = 0;
while (!$expected->EOF) {
    $row++;
    if ($row / 2 == floor($row / 2)) {
        echo '  <tr class="upcomingProducts-even">' . "\n";
    } else {
        echo '  <tr class="upcomingProducts-odd">' . "\n";
    }
    echo '    <td class="smallText"><a href="' . zen_href_link(zen_get_info_page($expected->fields['products_id']), 'products_id=' . $expected->fields['products_id']) . '">' . $expected->fields['products_name'] . '</a></td>' . "\n" . '    <td align="right" class="smallText">' . zen_date_short($expected->fields['date_expected']) . '</td>' . "\n" . '  </tr>' . "\n";
    $expected->MoveNext();
}
?>
</table>
<!-- eof: upcoming_products -->
Exemplo n.º 13
0
    <td colspan="2" align="left" class="smallText">
      <?php 
        echo '<a href="' . zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params()) . '">' . TEXT_PRODUCT_INFO . '</a>';
        ?>
&nbsp;|&nbsp;<?php 
        echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . (int) $_GET['products_id'] . '&reviews_id=' . $reviews->fields['reviews_id']) . '">' . TEXT_READ_REVIEW . '</a>';
        ?>
    </td>
  </tr>
  <tr>
    <td class="main"><span class="greetUser"><?php 
        echo sprintf(TEXT_REVIEW_BY, zen_output_string_protected($reviews->fields['customers_name']));
        ?>
<span></td>
    <td class="smallText" align="right"><?php 
        echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($reviews->fields['date_added']));
        ?>
</td>
  </tr>
  <tr>
    <td valign="top" class="main" colspan="2"><?php 
        echo zen_break_string(zen_output_string_protected(stripslashes(substr($reviews->fields['reviews_text'], 0, 100))), 60, '-<br />') . (strlen($reviews->fields['reviews_text']) >= 100 ? '..' : '') . '<br /><br /><i>' . sprintf(TEXT_REVIEW_RATING, zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $reviews->fields['reviews_rating'] . '.png', sprintf(TEXT_OF_5_STARS, $reviews->fields['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews->fields['reviews_rating'])) . '</i>';
        ?>
</td>
  </tr>
<?php 
        $reviews->MoveNext();
    }
} else {
    ?>
  <tr>
        } else {
            // products_name or products_model
            $cPath = zen_get_product_path($chk_orders_products->fields['products_id']);
        }
        ?>
              <tr class="dataTableRow">
												<td class="dataTableContent"><?php 
        echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, zen_get_all_get_params(array('cID', 'action', 'page', 'products_filter')) . 'cID=' . $chk_orders_products->fields['customers_id'] . '&action=edit', 'NONSSL') . '">' . $chk_orders_products->fields['customers_id'] . '</a>';
        ?>
</td>
												<td class="dataTableContent"><?php 
        echo '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action', 'page', 'products_filter')) . 'oID=' . $chk_orders_products->fields['orders_id'] . '&action=edit', 'NONSSL') . '">' . $chk_orders_products->fields['orders_id'] . '</a>';
        ?>
</td>
												<td class="dataTableContent"><?php 
        echo zen_date_short($chk_orders_products->fields['date_purchased']);
        ?>
</td>
												<td class="dataTableContent"><?php 
        echo $chk_orders_products->fields['customers_name'] . ($chk_orders_products->fields['customers_company'] != '' ? '<br />' . $chk_orders_products->fields['customers_company'] : '') . '<br />' . $chk_orders_products->fields['customers_email_address'];
        ?>
</td>
												<td class="dataTableContent" align="center"><?php 
        echo $chk_orders_products->fields['products_quantity'];
        ?>
&nbsp;</td>
												<td class="dataTableContent" align="center"><?php 
        echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products_filter) . '">' . $chk_orders_products->fields['products_name'] . '</a>';
        ?>
&nbsp;</td>
												<td class="dataTableContent" align="center"><?php 
                        <img title="Proof of Safety" alt="Security Testing" src="includes/templates/blackcool/images/renzhen.gif">
						<!--<img  src="https://www.paypal.com/en_US/i/logo/PayPal_mark_60x38.gif" border="0">-->
					</span>
				 </p>				 				 
				 <p>
				 	<span class="span_l">
						<strong>
							<?php 
echo TEXT_INVENTORY;
?>
							<?php 
echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'stock_status_' . $products_stock_status . '.png');
?>
							<?php 
if ($products_stock_status == 3) {
    echo '<span style="color:#FF6633;font-size:14px;">' . constant('TEXT_PRODUCTS_STOCK_STATUS_' . $products_stock_status) . zen_date_short($products_date_available) . '</span>';
} else {
    echo constant('TEXT_PRODUCTS_STOCK_STATUS_' . $products_stock_status);
}
?>
						</strong>						
						<a rel="nofollow" href="<?php 
echo zen_href_link(FILENAME_CONTACT_US, 'action=stock_status');
?>
" target="_blank">
							<?php 
echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'stock_inquiry.png');
?>
						</a>						
					</span>
				 </p>
Exemplo n.º 16
0
/**
 * select email template based on 'module' (supplied as param to function)
 * selectively go thru each template tag and substitute appropriate text
 * finally, build full html content as "return" output from class
**/
function zen_build_html_email_from_template($module = 'default', $content = '')
{
    global $messageStack, $current_page_base;
    $block = array();
    if (is_array($content)) {
        $block = $content;
    } else {
        $block['EMAIL_MESSAGE_HTML'] = $content;
    }
    // Identify and Read the template file for the type of message being sent
    $langfolder = strtolower($_SESSION['languages_code']) == 'en' ? '' : strtolower($_SESSION['languages_code']) . '/';
    $template_filename_base = DIR_FS_EMAIL_TEMPLATES . $langfolder . "email_template_";
    $template_filename = DIR_FS_EMAIL_TEMPLATES . $langfolder . "email_template_" . $current_page_base . ".html";
    if (!file_exists($template_filename)) {
        if (isset($block['EMAIL_TEMPLATE_FILENAME']) && $block['EMAIL_TEMPLATE_FILENAME'] != '' && file_exists($block['EMAIL_TEMPLATE_FILENAME'] . '.html')) {
            $template_filename = $block['EMAIL_TEMPLATE_FILENAME'] . '.html';
        } elseif (file_exists($template_filename_base . str_replace(array('_extra', '_admin'), '', $module) . '.html')) {
            $template_filename = $template_filename_base . str_replace(array('_extra', '_admin'), '', $module) . '.html';
        } elseif (file_exists($template_filename_base . 'default' . '.html')) {
            $template_filename = $template_filename_base . 'default' . '.html';
        } else {
            $messageStack->add('header', 'ERROR: The email template file for (' . $template_filename_base . ') or (' . $template_filename . ') cannot be found.', 'caution');
            return '';
            // couldn't find template file, so return an empty string for html message.
        }
    }
    if (!($fh = fopen($template_filename, 'rb'))) {
        // note: the 'b' is for compatibility with Windows systems
        $messageStack->add('header', 'ERROR: The email template file (' . $template_filename_base . ') or (' . $template_filename . ') cannot be opened', 'caution');
    }
    $file_holder = fread($fh, filesize($template_filename));
    fclose($fh);
    //strip linebreaks and tabs out of the template
    //  $file_holder = str_replace(array("\r\n", "\n", "\r", "\t"), '', $file_holder);
    $file_holder = str_replace(array("\t"), ' ', $file_holder);
    if (!defined('HTTP_CATALOG_SERVER')) {
        define('HTTP_CATALOG_SERVER', HTTP_SERVER);
    }
    //check for some specifics that need to be included with all messages
    if ($block['EMAIL_STORE_NAME'] == '') {
        $block['EMAIL_STORE_NAME'] = STORE_NAME;
    }
    if ($block['EMAIL_STORE_URL'] == '') {
        $block['EMAIL_STORE_URL'] = '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . '">' . STORE_NAME . '</a>';
    }
    if ($block['EMAIL_STORE_OWNER'] == '') {
        $block['EMAIL_STORE_OWNER'] = STORE_OWNER;
    }
    if ($block['EMAIL_FOOTER_COPYRIGHT'] == '') {
        $block['EMAIL_FOOTER_COPYRIGHT'] = EMAIL_FOOTER_COPYRIGHT;
    }
    if ($block['EMAIL_DISCLAIMER'] == '') {
        $block['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">' . STORE_OWNER_EMAIL_ADDRESS . ' </a>');
    }
    if ($block['EMAIL_SPAM_DISCLAIMER'] == '') {
        $block['EMAIL_SPAM_DISCLAIMER'] = EMAIL_SPAM_DISCLAIMER;
    }
    if ($block['BASE_HREF'] == '') {
        $block['BASE_HREF'] = HTTP_SERVER . DIR_WS_CATALOG;
    }
    if ($block['EMAIL_DATE_SHORT'] == '') {
        $block['EMAIL_DATE_SHORT'] = zen_date_short(date("Y-m-d"));
    }
    if ($block['EMAIL_DATE_LONG'] == '') {
        $block['EMAIL_DATE_LONG'] = zen_date_long(date("Y-m-d"));
    }
    if ($block['CHARSET'] == '') {
        $block['CHARSET'] = CHARSET;
    }
    //  if ($block['EMAIL_STYLESHEET']=='')       $block['EMAIL_STYLESHEET']       = str_replace(array("\r\n", "\n", "\r"), "",@file_get_contents(DIR_FS_EMAIL_TEMPLATES.'stylesheet.css'));
    if (!isset($block['EXTRA_INFO'])) {
        $block['EXTRA_INFO'] = '';
    }
    if (substr($module, -6) != '_extra' && $module != 'contact_us') {
        $block['EXTRA_INFO'] = '';
    }
    $block['COUPON_BLOCK'] = '';
    if ($block['COUPON_TEXT_VOUCHER_IS'] && $block['COUPON_TEXT_TO_REDEEM']) {
        $block['COUPON_BLOCK'] = '<div class="coupon-block">' . $block['COUPON_TEXT_VOUCHER_IS'] . $block['COUPON_DESCRIPTION'] . '<br />' . $block['COUPON_TEXT_TO_REDEEM'] . '<span class="coupon-code">' . $block['COUPON_CODE'] . '</span></div>';
    }
    $block['GV_BLOCK'] = '';
    if ($block['GV_WORTH'] && $block['GV_REDEEM'] && $block['GV_CODE_URL']) {
        $block['GV_BLOCK'] = '<div class="gv-block">' . $block['GV_WORTH'] . '<br />' . $block['GV_REDEEM'] . $block['GV_CODE_URL'] . '<br />' . $block['GV_LINK_OTHER'] . '</div>';
    }
    //prepare the "unsubscribe" link:
    if (IS_ADMIN_FLAG === true) {
        // is this admin version, or catalog?
        $block['UNSUBSCRIBE_LINK'] = str_replace("\n", '', TEXT_UNSUBSCRIBE) . ' <a href="' . zen_catalog_href_link(FILENAME_UNSUBSCRIBE, "addr=" . $block['EMAIL_TO_ADDRESS']) . '">' . zen_catalog_href_link(FILENAME_UNSUBSCRIBE, "addr=" . $block['EMAIL_TO_ADDRESS']) . '</a>';
    } else {
        $block['UNSUBSCRIBE_LINK'] = str_replace("\n", '', TEXT_UNSUBSCRIBE) . ' <a href="' . zen_href_link(FILENAME_UNSUBSCRIBE, "addr=" . $block['EMAIL_TO_ADDRESS']) . '">' . zen_href_link(FILENAME_UNSUBSCRIBE, "addr=" . $block['EMAIL_TO_ADDRESS']) . '</a>';
    }
    //now replace the $BLOCK_NAME items in the template file with the values passed to this function's array
    foreach ($block as $key => $value) {
        $file_holder = str_replace('$' . $key, $value, $file_holder);
    }
    //DEBUG -- to display preview on-screen
    if (EMAIL_SYSTEM_DEBUG == 'preview') {
        echo $file_holder;
    }
    return $file_holder;
}
</th>
        <th scope="col" id="myAccountStatus"><?php 
    echo TABLE_HEADING_STATUS_ORDER_STATUS;
    ?>
</th>
        <th scope="col" id="myAccountStatusComments"><?php 
    echo TABLE_HEADING_STATUS_COMMENTS;
    ?>
</th>
       </tr>
<?php 
    foreach ($statusArray as $statuses) {
        ?>
    <tr>
        <td><?php 
        echo zen_date_short($statuses['date_added']);
        ?>
</td>
        <td><?php 
        echo $statuses['orders_status_name'];
        ?>
</td>
        <td><?php 
        echo empty($statuses['comments']) ? '&nbsp;' : nl2br(zen_output_string_protected($statuses['comments']));
        ?>
</td> 
     </tr>
<?php 
    }
    ?>
</table>
function draw_packing_slip_master_list_customer($orderArray, &$pdf)
{
    $order = $orderArray[0];
    $customerName = $order->delivery['name'];
    if ($order->delivery['street_address'] == '') {
        /* this is to match the merged packingslips record */
        $customerName = $order->customer['name'];
    }
    $totalQty = 0;
    foreach ($orderArray as $order) {
        for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $totalQty = $totalQty + $order->products[$i]['qty'];
        }
    }
    if ($totalQty == 1) {
        $headingLine = $customerName . ' (' . $totalQty . ' piece)';
    } else {
        $headingLine = $customerName . ' (' . $totalQty . ' pieces)';
    }
    $shipTo = zen_address_format($order->delivery['format_id'], $order->delivery, 0, '', "\n");
    if ($order->delivery['street_address'] == '') {
        $shipTo = zen_address_format($order->customer['format_id'], $order->customer, 0, '', "\n");
    }
    $orderRightBox = $shipTo;
    $pdf->SetFontSize('6');
    $pdf->Cell('580', '10', $orderRightBox, '', '', 'R');
    $pdf->Line(18, $pdf->GetY(), 594, $pdf->GetY());
    $pdf->Ln(2);
    $pdf->SetFontSize('10');
    $pdf->Cell(10, 10, '', 'LRTB');
    $pdf->Cell(200, 12, $headingLine, '', '0');
    $pdf->Ln(10);
    $pdf->MultiCell(566, 2, '');
    foreach ($orderArray as $order) {
        $orderText = '';
        for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            if ($orderText != '') {
                $orderText = '';
            }
            $pdf->Ln(4);
            $pdf->Cell(27, 10, '');
            $pdf->Cell(8, 8, '', 'LRTB');
            $pdf->Cell(5, 0, '');
            $pdf->SetFontSize('6');
            $dateId = zen_date_short($order->info['date_purchased']) . '        #' . $order->info[id];
            $orderText .= ' ' . $order->products[$i]['qty'] . 'x ' . $order->products[$i]['name'] . '/' . $order->products[$i]['model'];
            $pdf->Cell(390, 10, $orderText, 0, 0);
            if ($previousOrderId == $order->info[id]) {
                $pdf->Ln(12);
            } else {
                $pdf->SetFontSize(10);
                $pdf->Cell(140, 10, $dateId, 0, 1, 'R');
                $pdf->SetFontSize(6);
            }
            if (sizeof($order->products[$i]['attributes']) > 0) {
                $attribCount = sizeof($order->products[$i]['attributes']);
                $aC = 0;
                while ($aC < $attribCount) {
                    $attribText = $order->products[$i]['attributes'][$aC]['option'] . ': ' . $order->products[$i]['attributes'][$aC]['value'];
                    $pdf->Cell(40, 10, '');
                    $pdf->Cell(530, 10, $attribText, 0, 1);
                    $aC++;
                }
            }
            $previousOrderId = $order->info[id];
            $attribText = '';
        }
        $pdf->Ln(8);
    }
}
</li>
		</ul>
		<div class="clearleft"></div>
		
		<!-- wishlist data -->
		<div class="wishlistfields">
		
		<ul>
		<?php 
        if ($products->fields['date_added']) {
            ?>
		<li><span class="label"><?php 
            echo UN_TEXT_DATE_ADDED . UN_LABEL_DELIMITER;
            ?>
 <?php 
            echo zen_date_short($products->fields['date_added']);
            ?>
</span></li>
		<?php 
        }
        ?>
		<li>
		<span class="label"><?php 
        echo UN_TEXT_QUANTITY . UN_LABEL_DELIMITER;
        ?>
 
		<?php 
        echo $products->fields['quantity'];
        ?>
</span>
		</li>
Exemplo n.º 20
0
 echo zen_draw_pull_down_menu("day5_list", $days, $holiday_day);
 echo '</td>' . "\n";
 echo '</tr>' . "\n";
 // ?年?月?日
 echo '<tr>' . "\n";
 echo '<td  class="infoBoxContent">' . "\n";
 echo zen_draw_radio_field("holiday_type", 9, $type == 9) . TEXT_RADIO_SPECIFICDAY;
 echo '</td>' . "\n";
 echo '<td  class="infoBoxContent">' . "\n";
 echo '<div id="specificday">' . "\n";
 echo zen_draw_pull_down_menu("year9_list", $years, $holiday_year);
 echo zen_draw_pull_down_menu("month9_list", $months, $holiday_month);
 echo zen_draw_pull_down_menu("day9_list", $days, $holiday_day);
 echo '</div>' . "\n";
 if ($holiday_year > 0 && $holiday_month > 0 && $holiday_day) {
     $date = zen_date_short(sprintf("%04d-%02d-%02d 00:00:00", $holiday_year, $holiday_month, $holiday_day));
 } else {
     $date = "";
 }
 echo '<script language="javascript">' . "\n";
 echo 'var selectDate = new ctlSpiffyCalendarBox("selectDate", "calendar", "selectDateText", "btnDate1", "' . $date . '",scBTNMODE_CUSTOMBLUE);' . "\n";
 echo 'selectDate.writeControl();' . "\n";
 echo 'selectDate.dateFormat="' . DATE_FORMAT_SPIFFYCAL . '";' . "\n";
 echo '</script>' . "\n";
 echo '</td>' . "\n";
 echo '</tr>' . "\n";
 // 休日、営業日
 echo '<tr>' . "\n";
 echo '<td colspan="2"  class="infoBoxContent">' . "\n";
 echo sprintf(TEXT_RADIO_DESCRIPTION, zen_draw_radio_field("holiday_open", 0, $holiday_open == 0) . TEXT_RADIO_HOLIDAY . zen_draw_radio_field("holiday_open", 1, $holiday_open == 1) . TEXT_RADIO_OPENDAY);
 echo '</td>' . "\n";
Exemplo n.º 21
0
        echo 'Credit Card Server Time: <strong>' . ($customers->fields['transaction_response_time'] == '' ? 'Not Connected' : $customers->fields['transaction_response_time']) . '</strong>';
        ?>
                </td>
                <td class="dataTableContent">
                  <?php 
        echo 'This Server Time: <strong>' . $customers->fields['date_added'] . '</strong>';
        ?>
                </td>
                <td class="dataTableContent" align="right" style="color:red;">
                  <?php 
        echo $currencies->format($customers->fields['chargetotal']);
        ?>
                </td>
                <td class="dataTableContent" align="center">
                  <?php 
        echo zen_date_short($info->fields['date_account_created']);
        ?>
                </td>
                <td class="dataTableContent" align="right">
                </td>
              </tr>
              <tr class="dataTableRow">
                <td class="dataTableContent" colspan="4">
                  <?php 
        echo ($customers->fields['transaction_result'] != 'APPROVED' ? '<span class="alert">' . $customers->fields['transaction_result'] . '</span>' : $customers->fields['transaction_result']) . '<br />' . $customers->fields['cc_number'] . '<br />' . 'Expires: ' . $customers->fields['cc_expire'] . '<br />' . $customers->fields['lp_trans_num'] . '<br />' . $customers->fields['transaction_reference_number'] . '<br />' . ($customers->fields['avs_response'] != 'YYYM' ? '<span class="alert">' . $customers->fields['avs_response'] . '</span>' : $customers->fields['avs_response']) . ' ' . ($customers->fields['r_error'] != '' ? '<span class="alert">' . $customers->fields['r_error'] . '</span>' : '') . '<br />' . $customers->fields['transaction_time'];
        ?>
                </td>
                <td class="dataTableContent" colspan="6"><?php 
        echo str_replace(array('PREAUTH', 'SALE'), array('<span style="color:orange;"><strong>PREAUTH</strong></span>', '<span style="color:green;"><strong>SALE</strong></span>'), $customers->fields['cust_info']) . '<br /><br />';
        ?>
</td>
    <?php 
echo zen_draw_input_field('lastname', $account->fields['customers_lastname'], 'id="lastname" class="form-control"');
?>
  </div>
</div><?php 
if (ACCOUNT_DOB == 'true') {
    ?>
  <div class='form-group'>
    <label class="control-label col-sm-4" for="dob">
      <?php 
    echo BootstrapForms::required_text(ENTRY_DATE_OF_BIRTH_TEXT) . ENTRY_DATE_OF_BIRTH;
    ?>
</label>
    <div class='col-sm-8'>
      <?php 
    echo zen_draw_input_field('dob', zen_date_short($account->fields['customers_dob']), 'id="dob" class="form-control"');
    ?>
    </div>
  </div><?php 
}
?>

<div class='form-group'>
  <label class="control-label col-sm-4" for="email-address">
    <?php 
echo BootstrapForms::required_text(ENTRY_EMAIL_ADDRESS_TEXT) . ENTRY_EMAIL_ADDRESS;
?>
</label>
  <div class='col-sm-8'>
    <?php 
echo zen_draw_input_field('email_address', $account->fields['customers_email_address'], 'id="email-address" class="form-control"');
Exemplo n.º 23
0
        $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . zen_draw_input_field('tax_class_description', $tcInfo->tax_class_description, zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_description')));
        $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    case 'delete':
        $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
        $contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $tcInfo->tax_class_title . '</b>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($tcInfo) && is_object($tcInfo)) {
            $heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($tcInfo->date_added));
            $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($tcInfo->last_modified));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . $tcInfo->tax_class_description);
        }
        break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
Exemplo n.º 24
0
                    $contents[] = array('align' => 'left', 'text' => zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED_EZPAGES, 10, 10) . ' &nbsp;' . TEXT_WARNING_MULTIPLE_SETTINGS);
                }
                $contents[] = array('align' => 'left', 'text' => TEXT_ALT_URL . (empty($ezInfo->alt_url) ? '&nbsp;' . TEXT_NONE : '<br />' . $ezInfo->alt_url));
                $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_ALT_URL_EXTERNAL . (empty($ezInfo->alt_url_external) ? '&nbsp;' . TEXT_NONE : '<br />' . $ezInfo->alt_url_external));
                $contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_PAGES_HTML_TEXT . '<br />' . substr(strip_tags($ezInfo->pages_html_text), 0, 100));
                $contents[] = array('align' => 'left', 'text' => '<br /><a href="' . zen_href_link(FILENAME_EZPAGES_ADMIN, 'page=' . $_GET['page'] . '&ezID=' . $ezInfo->pages_id . '&action=new') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_EZPAGES_ADMIN, 'page=' . $_GET['page'] . '&ezID=' . $ezInfo->pages_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br /><br /><br />');
                if ($ezInfo->date_scheduled) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_PAGES_SCHEDULED_AT_DATE, zen_date_short($ezInfo->date_scheduled)));
                }
                if ($ezInfo->expires_date) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_PAGES_EXPIRES_AT_DATE, zen_date_short($ezInfo->expires_date)));
                } elseif ($ezInfo->expires_impressions) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_PAGES_EXPIRES_AT_IMPRESSIONS, $ezInfo->expires_impressions));
                }
                if ($ezInfo->date_status_change) {
                    $contents[] = array('text' => '<br />' . sprintf(TEXT_PAGES_STATUS_CHANGE, zen_date_short($ezInfo->date_status_change)));
                }
            }
            break;
    }
    if (zen_not_null($heading) && zen_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
<?php 
Exemplo n.º 25
0
                    $contents[] = array('align' => 'center', 'text' => '<br>' . zen_image(DIR_WS_IMAGES . 'graphs/banner_infobox-' . $banner_id . '.' . $banner_extension));
                } else {
                    include DIR_WS_FUNCTIONS . 'html_graphs.php';
                    $contents[] = array('align' => 'center', 'text' => '<br>' . zen_banner_graph_infoBox($bInfo->banners_id, '3'));
                }
                $contents[] = array('text' => zen_image(DIR_WS_IMAGES . 'graph_hbar_blue.gif', 'Blue', '5', '5') . ' ' . TEXT_BANNERS_BANNER_VIEWS . '<br>' . zen_image(DIR_WS_IMAGES . 'graph_hbar_red.gif', 'Red', '5', '5') . ' ' . TEXT_BANNERS_BANNER_CLICKS);
                if ($bInfo->date_scheduled) {
                    $contents[] = array('text' => '<br>' . sprintf(TEXT_BANNERS_SCHEDULED_AT_DATE, zen_date_short($bInfo->date_scheduled)));
                }
                if ($bInfo->expires_date) {
                    $contents[] = array('text' => '<br>' . sprintf(TEXT_BANNERS_EXPIRES_AT_DATE, zen_date_short($bInfo->expires_date)));
                } elseif ($bInfo->expires_impressions) {
                    $contents[] = array('text' => '<br>' . sprintf(TEXT_BANNERS_EXPIRES_AT_IMPRESSIONS, $bInfo->expires_impressions));
                }
                if ($bInfo->date_status_change) {
                    $contents[] = array('text' => '<br>' . sprintf(TEXT_BANNERS_STATUS_CHANGE, zen_date_short($bInfo->date_status_change)));
                }
            }
            break;
    }
    if (zen_not_null($heading) && zen_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
							</table></td>
					</tr>
<?php 
Exemplo n.º 26
0
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $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');
        $contents[] = array('text' => '<br><b>' . $cInfo->title . '</b>');
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<b>' . $cInfo->title . '</b>');
            $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>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_TITLE . ' ' . $cInfo->title);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . ' ' . $cInfo->symbol_left);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_SYMBOL_RIGHT . ' ' . $cInfo->symbol_right);
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_DECIMAL_POINT . ' ' . $cInfo->decimal_point);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_THOUSANDS_POINT . ' ' . $cInfo->thousands_point);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_DECIMAL_PLACES . ' ' . $cInfo->decimal_places);
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_LAST_UPDATED . ' ' . zen_date_short($cInfo->last_updated));
            $contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . ' ' . number_format($cInfo->value, 8));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_EXAMPLE . '<br>' . $currencies->format('30', false, DEFAULT_CURRENCY) . ' = ' . $currencies->format('30', true, $cInfo->code));
        }
        break;
}
if (zen_not_null($heading) && zen_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
Exemplo n.º 27
0
            ?>
</td>
                <td  class="dataTableContent" align="right"><?php 
            echo $salemaker_sales->fields['sale_deduction_value'];
            ?>
</td>
                <td  class="dataTableContent" align="left"><?php 
            echo $deduction_type_array[$salemaker_sales->fields['sale_deduction_type']]['text'];
            ?>
</td>
                <td  class="dataTableContent" align="center"><?php 
            echo $salemaker_sales->fields['sale_date_start'] == '0001-01-01' ? TEXT_SALEMAKER_IMMEDIATELY : zen_date_short($salemaker_sales->fields['sale_date_start']);
            ?>
</td>
                <td  class="dataTableContent" align="center"><?php 
            echo $salemaker_sales->fields['sale_date_end'] == '0001-01-01' ? TEXT_SALEMAKER_NEVER : zen_date_short($salemaker_sales->fields['sale_date_end']);
            ?>
</td>
                <td  class="dataTableContent" align="center">
<?php 
            if ($salemaker_sales->fields['sale_status'] == '1') {
                echo zen_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10);
            } else {
                echo zen_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10);
            }
            ?>
</td>


			  </tr>
<?php 
Exemplo n.º 28
0
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
            $contents = array('form' => zen_draw_form('newsletters', FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br /><b>' . $nInfo->title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($nInfo)) {
                $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . zen_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . zen_image_button('button_send.gif', IMAGE_SEND) . '</a>');
                $contents[] = array('text' => '<br />' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . zen_date_short($nInfo->date_added));
                if ($nInfo->status == '1') {
                    $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . zen_date_short($nInfo->date_sent));
                }
            }
            break;
    }
    if (zen_not_null($heading) && zen_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
<?php 
            echo $downloads->fields['products_name'];
            ?>
</td>
<?php 
        }
        ?>
      <td class=""><?php 
        echo $zv_filesize . $zv_filesize_units;
        ?>
</td>
		<td class=""><?php 
        echo $downloads->fields['orders_products_filename'];
        ?>
</td>
		<td class=""><?php 
        echo $downloads->fields['download_maxdays'] == 0 ? TEXT_DOWNLOADS_UNLIMITED : zen_date_short($download_expiry);
        ?>
</td>
		<td class="centeredContent"><?php 
        echo $downloads->fields['download_maxdays'] == 0 ? TEXT_DOWNLOADS_UNLIMITED_COUNT : $downloads->fields['download_count'];
        ?>
</td>
		<td class="centeredContent"><?php 
        echo $is_downloadable ? '<a href="' . zen_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads->fields['orders_products_download_id']) . '">' . zen_image_button(BUTTON_IMAGE_DOWNLOAD, BUTTON_DOWNLOAD_ALT) . '</a>' : '&nbsp;';
        ?>
</td>
	</tr>
<?php 
        $downloads->MoveNext();
    }
    ?>
Exemplo n.º 30
0
<?php 
$heading = array();
$contents = array();
$heading[] = array('text' => '[' . $gInfo->coupon_id . '] ' . ' ' . $currencies->format($gInfo->coupon_amount));
$redeem = $db->Execute("select * from " . TABLE_COUPON_REDEEM_TRACK . "\n                          where coupon_id = '" . $gInfo->coupon_id . "'");
$redeemed = 'No';
if ($redeem->RecordCount() > 0) {
    $redeemed = 'Yes';
}
$contents[] = array('text' => TEXT_INFO_SENDERS_ID . ' ' . $gInfo->customer_id_sent);
$contents[] = array('text' => TEXT_INFO_AMOUNT_SENT . ' ' . $currencies->format($gInfo->coupon_amount));
$contents[] = array('text' => TEXT_INFO_DATE_SENT . ' ' . zen_date_short($gInfo->date_sent));
$contents[] = array('text' => TEXT_INFO_VOUCHER_CODE . ' ' . $gInfo->coupon_code);
$contents[] = array('text' => TEXT_INFO_EMAIL_ADDRESS . ' ' . $gInfo->emailed_to);
if ($redeemed == 'Yes') {
    $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_REDEEMED . ' ' . zen_date_short($redeem->fields['redeem_date']));
    $contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $redeem->fields['redeem_ip']);
    $contents[] = array('text' => TEXT_INFO_CUSTOMERS_ID . ' ' . $redeem->fields['customer_id']);
} else {
    $contents[] = array('text' => '<br />' . TEXT_INFO_NOT_REDEEMED);
}
if (zen_not_null($heading) && zen_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>