function getOutput()
 {
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="4">' . '  <tr class="dataTableHeadingRow">' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_CUSTOMERS_TITLE . '</td>' . '    <td class="dataTableHeadingContent" align="right">' . MODULE_ADMIN_DASHBOARD_CUSTOMERS_DATE . '</td>' . '  </tr>';
     $customers_query = tep_db_query("select c.customers_id, c.customers_lastname, c.customers_firstname, ci.customers_info_date_account_created from " . TABLE_CUSTOMERS . " c, " . TABLE_CUSTOMERS_INFO . " ci where c.customers_id = ci.customers_info_id order by ci.customers_info_date_account_created desc limit 6");
     while ($customers = tep_db_fetch_array($customers_query)) {
         $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . '    <td class="dataTableContent"><a href="' . tep_href_link('customers.php', 'cID=' . (int) $customers['customers_id'] . '&action=edit') . '">' . tep_output_string_protected($customers['customers_firstname'] . ' ' . $customers['customers_lastname']) . '</a></td>' . '    <td class="dataTableContent" align="right">' . tep_date_short($customers['customers_info_date_account_created']) . '</td>' . '  </tr>';
     }
     $output .= '</table>';
     return $output;
 }
 function getOutput()
 {
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="4">' . '  <tr class="dataTableHeadingRow">' . '    <td class="dataTableHeadingContent" width="20">&nbsp;</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_ADMIN_LOGINS_TITLE . '</td>' . '    <td class="dataTableHeadingContent" align="right">' . MODULE_ADMIN_DASHBOARD_ADMIN_LOGINS_DATE . '</td>' . '  </tr>';
     $logins_query = tep_db_query("select id, user_name, success, date_added from " . TABLE_ACTION_RECORDER . " where module = 'ar_admin_login' order by date_added desc limit 6");
     while ($logins = tep_db_fetch_array($logins_query)) {
         $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . '    <td class="dataTableContent" align="center">' . tep_image(DIR_WS_IMAGES . 'icons/' . ($logins['success'] == '1' ? 'tick.gif' : 'cross.gif')) . '</td>' . '    <td class="dataTableContent"><a href="' . tep_href_link(FILENAME_ACTION_RECORDER, 'module=ar_admin_login&aID=' . (int) $logins['id']) . '">' . tep_output_string_protected($logins['user_name']) . '</a></td>' . '    <td class="dataTableContent" align="right">' . tep_date_short($logins['date_added']) . '</td>' . '  </tr>';
     }
     $output .= '</table>';
     return $output;
 }
Exemple #3
0
 function getOutput()
 {
     global $languages_id;
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="4">' . '  <tr class="dataTableHeadingRow">' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_ORDERS_TITLE . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_ORDERS_TOTAL . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_ORDERS_DATE . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_ORDERS_ORDER_STATUS . '</td>' . '  </tr>';
     $orders_query = tep_db_query("select o.orders_id, o.customers_name, greatest(o.date_purchased, ifnull(o.last_modified, 0)) as date_last_modified, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '" . (int) $languages_id . "' order by date_last_modified desc limit 6");
     while ($orders = tep_db_fetch_array($orders_query)) {
         $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . '    <td class="dataTableContent"><a href="' . tep_href_link(FILENAME_ORDERS, 'oID=' . (int) $orders['orders_id'] . '&action=edit') . '">' . tep_output_string_protected($orders['customers_name']) . '</td>' . '    <td class="dataTableContent">' . strip_tags($orders['order_total']) . '</td>' . '    <td class="dataTableContent">' . tep_date_short($orders['date_last_modified']) . '</td>' . '    <td class="dataTableContent">' . $orders['orders_status_name'] . '</td>' . '  </tr>';
     }
     $output .= '</table>';
     return $output;
 }
 function execute()
 {
     global $PHP_SELF, $HTTP_GET_VARS, $oscTemplate, $languages_id, $currencies, $currency, $product_check;
     if ($PHP_SELF == FILENAME_PRODUCT_INFO && isset($HTTP_GET_VARS['products_id'])) {
         if ($product_check['total'] > 0) {
             $product_info_query = tep_db_query("select p.products_id, COALESCE(NULLIF(pd.products_seo_title, ''), pd.products_name) as products_name, pd.products_description, p.products_image, p.products_price, p.products_quantity, p.products_tax_class_id, p.products_date_available from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int) $HTTP_GET_VARS['products_id'] . "' and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int) $languages_id . "'");
             if (tep_db_num_rows($product_info_query) === 1) {
                 $product_info = tep_db_fetch_array($product_info_query);
                 $data = array('card' => 'product', 'title' => $product_info['products_name']);
                 if (tep_not_null(MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_SITE_ID)) {
                     $data['site'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_SITE_ID;
                 }
                 if (tep_not_null(MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_USER_ID)) {
                     $data['creator'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_USER_ID;
                 }
                 $product_description = substr(trim(preg_replace('/\\s\\s+/', ' ', strip_tags($product_info['products_description']))), 0, 197);
                 if (strlen($product_description) == 197) {
                     $product_description .= ' ..';
                 }
                 $data['description'] = $product_description;
                 $products_image = $product_info['products_image'];
                 $pi_query = tep_db_query("select image from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int) $product_info['products_id'] . "' order by sort_order limit 1");
                 if (tep_db_num_rows($pi_query) === 1) {
                     $pi = tep_db_fetch_array($pi_query);
                     $products_image = $pi['image'];
                 }
                 $data['image:src'] = tep_href_link(DIR_WS_IMAGES . $products_image, '', 'NONSSL', false, false);
                 if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
                     $products_price = $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id']));
                 } else {
                     $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
                 }
                 $data['data1'] = $products_price;
                 $data['label1'] = $currency;
                 if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
                     $data['data2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_PRE_ORDER;
                     $data['label2'] = tep_date_short($product_info['products_date_available']);
                 } elseif ($product_info['products_quantity'] > 0) {
                     $data['data2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_IN_STOCK;
                     $data['label2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_BUY_NOW;
                 } else {
                     $data['data2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_OUT_OF_STOCK;
                     $data['label2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_CONTACT_US;
                 }
                 $result = '';
                 foreach ($data as $key => $value) {
                     $result .= '<meta name="twitter:' . tep_output_string_protected($key) . '" content="' . tep_output_string_protected($value) . '" />' . "\n";
                 }
                 $oscTemplate->addBlock($result, $this->group);
             }
         }
     }
 }
 function execute()
 {
     global $PHP_SELF, $oscTemplate, $currencies;
     $OSCOM_Db = Registry::get('Db');
     if ($PHP_SELF == 'product_info.php' && isset($_GET['products_id'])) {
         $Qproduct = $OSCOM_Db->prepare('select p.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_quantity, p.products_tax_class_id, p.products_date_available from :table_products p, :table_products_description pd where p.products_id = :products_id and p.products_status = 1 and p.products_id = pd.products_id and pd.language_id = :language_id');
         $Qproduct->bindInt(':products_id', $_GET['products_id']);
         $Qproduct->bindInt(':language_id', $_SESSION['languages_id']);
         $Qproduct->execute();
         if ($Qproduct->fetch() !== false) {
             $data = array('card' => 'product', 'title' => $Qproduct->value('products_name'));
             if (tep_not_null(MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_SITE_ID)) {
                 $data['site'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_SITE_ID;
             }
             if (tep_not_null(MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_USER_ID)) {
                 $data['creator'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_USER_ID;
             }
             $product_description = substr(trim(preg_replace('/\\s\\s+/', ' ', strip_tags($Qproduct->value('products_description')))), 0, 197);
             if (strlen($product_description) == 197) {
                 $product_description .= ' ..';
             }
             $data['description'] = $product_description;
             $products_image = $Qproduct->value('products_image');
             $Qimage = $OSCOM_Db->get('products_images', 'image', ['products_id' => $Qproduct->valueInt('products_id')], 'sort_order', 1);
             if ($Qimage->fetch() !== false) {
                 $products_image = $Qimage->value('image');
             }
             $data['image:src'] = OSCOM::link(DIR_WS_IMAGES . $products_image, '', 'NONSSL', false, false);
             if ($new_price = tep_get_products_special_price($Qproduct->valueInt('products_id'))) {
                 $products_price = $currencies->display_price($new_price, tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id')));
             } else {
                 $products_price = $currencies->display_price($Qproduct->value('products_price'), tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id')));
             }
             $data['data1'] = $products_price;
             $data['label1'] = $_SESSION['currency'];
             if ($Qproduct->value('products_date_available') > date('Y-m-d H:i:s')) {
                 $data['data2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_PRE_ORDER;
                 $data['label2'] = tep_date_short($Qproduct->value('products_date_available'));
             } elseif ($Qproduct->valueInt('products_quantity') > 0) {
                 $data['data2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_IN_STOCK;
                 $data['label2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_BUY_NOW;
             } else {
                 $data['data2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_OUT_OF_STOCK;
                 $data['label2'] = MODULE_HEADER_TAGS_TWITTER_PRODUCT_CARD_TEXT_CONTACT_US;
             }
             $result = '';
             foreach ($data as $key => $value) {
                 $result .= '<meta name="twitter:' . tep_output_string_protected($key) . '" content="' . tep_output_string_protected($value) . '" />' . "\n";
             }
             $oscTemplate->addBlock($result, $this->group);
         }
     }
 }
 function getOutput()
 {
     global $languages_id;
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="4">' . '  <tr class="dataTableHeadingRow">' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_REVIEWS_TITLE . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_REVIEWS_DATE . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_REVIEWS_REVIEWER . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_REVIEWS_RATING . '</td>' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_REVIEWS_REVIEW_STATUS . '</td>' . '  </tr>';
     $reviews_query = tep_db_query("select r.reviews_id, r.date_added, pd.products_name, r.customers_name, r.reviews_rating, r.reviews_status from " . TABLE_REVIEWS . " r, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = r.products_id and pd.language_id = '" . (int) $languages_id . "' order by r.date_added desc limit 6");
     while ($reviews = tep_db_fetch_array($reviews_query)) {
         $status_icon = $reviews['reviews_status'] == '1' ? tep_image('images/icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) : tep_image('images/icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10);
         $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . '    <td class="dataTableContent"><a href="' . tep_href_link('reviews.php', 'rID=' . (int) $reviews['reviews_id'] . '&action=edit') . '">' . $reviews['products_name'] . '</a></td>' . '    <td class="dataTableContent">' . tep_date_short($reviews['date_added']) . '</td>' . '    <td class="dataTableContent">' . tep_output_string_protected($reviews['customers_name']) . '</td>' . '    <td class="dataTableContent">' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif') . '</td>' . '    <td class="dataTableContent">' . $status_icon . '</td>' . '  </tr>';
     }
     $output .= '</table>';
     return $output;
 }
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo tep_draw_separator();
    ?>
</td>
              </tr>
              <tr>
<?php 
    $row = 0;
    while ($expected = tep_db_fetch_array($expected_query)) {
        $row++;
        if ($row / 2 == floor($row / 2)) {
            echo '              <tr class="upcomingProducts-even">' . "\n";
        } else {
            echo '              <tr class="upcomingProducts-odd">' . "\n";
        }
        echo '                <td class="smallText">&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $expected['products_id']) . '">' . $expected['products_name'] . '</a>&nbsp;</td>' . "\n" . '                <td align="right" class="smallText">&nbsp;' . tep_date_short($expected['date_expected']) . '&nbsp;</td>' . "\n" . '              </tr>' . "\n";
    }
    ?>
              <tr>
                <td colspan="2"><?php 
    echo tep_draw_separator();
    ?>
</td>
              </tr>
            </table></td>
          </tr>
<!-- upcoming_products_eof //-->
<?php 
}
?>
        </div>
      </div>

<?php 
if (ACCOUNT_DOB == 'true') {
    ?>

      <div class="form-group has-feedback">
        <label for="inputName" class="control-label col-sm-3"><?php 
    echo ENTRY_DATE_OF_BIRTH;
    ?>
</label>
        <div class="col-sm-9">
          <?php 
    echo HTML::inputField('dob', tep_date_short($Qaccount->value('customers_dob')), 'minlength="' . ENTRY_DOB_MIN_LENGTH . '" required aria-required="true" id="dob" placeholder="' . ENTRY_DATE_OF_BIRTH_TEXT . '"');
    ?>
          <?php 
    echo FORM_REQUIRED_INPUT;
    ?>
        </div>
      </div>

<?php 
}
?>

    <div class="form-group has-feedback">
      <label for="inputEmail" class="control-label col-sm-3"><?php 
echo ENTRY_EMAIL_ADDRESS;
?>
Exemple #9
0
     case 'confirm':
         $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
         $contents = array('form' => tep_draw_form('customers', FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm'));
         $contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
         if (isset($cInfo->number_of_reviews) && $cInfo->number_of_reviews > 0) {
             $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
         }
         $contents[] = array('align' => 'center', 'text' => '<br>' . tep_draw_button(IMAGE_DELETE, 'trash', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id)));
         break;
     default:
         if (isset($cInfo) && is_object($cInfo)) {
             $heading[] = array('text' => '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
             $contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit')) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm')) . tep_draw_button(IMAGE_ORDERS, 'cart', tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id)) . tep_draw_button(IMAGE_EMAIL, 'mail-closed', tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address)));
             $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . tep_date_short($cInfo->date_account_created));
             $contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->date_account_last_modified));
             $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_LAST_LOGON . ' ' . tep_date_short($cInfo->date_last_logon));
             $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
             $contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
             $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
         }
         break;
 }
 if (tep_not_null($heading) && tep_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
     echo $box->infoBox($heading, $contents);
     echo '            </td>' . "\n";
 }
 ?>
       </tr>
     </table></td>
Exemple #10
0
        $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . tep_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . tep_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' => tep_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['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>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . tep_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="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_TAX_CLASSES, 'page=' . $HTTP_GET_VARS['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($tcInfo->date_added));
            $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($tcInfo->last_modified));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . $tcInfo->tax_class_description);
        }
        break;
}
if (tep_not_null($heading) && tep_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>
$Qupcoming->bindInt(':limit', MAX_DISPLAY_UPCOMING_PRODUCTS);
$Qupcoming->execute();
if ($Qupcoming->fetch() !== false) {
    ?>
  <div class="clearfix"></div>
  <div class="table-responsive">
    <table class="table table-condensed">
      <thead>
        <tr>
          <th><?php 
    echo TABLE_HEADING_UPCOMING_PRODUCTS;
    ?>
</th>
          <th class="text-right"><?php 
    echo TABLE_HEADING_DATE_EXPECTED;
    ?>
</th>
        </tr>
      </thead>
      <tbody>
<?php 
    do {
        echo '        <tr>' . "\n" . '          <td><a href="' . OSCOM::link('product_info.php', 'products_id=' . $Qupcoming->valueInt('products_id')) . '">' . $Qupcoming->value('products_name') . '</a></td>' . "\n" . '          <td class="text-right">' . tep_date_short($Qupcoming->value('date_expected')) . '</td>' . "\n" . '        </tr>' . "\n";
    } while ($Qupcoming->fetch());
    ?>
      </tbody>
    </table>
  </div>

<?php 
}
Exemple #12
0
                    $contents[] = array('align' => 'center', 'text' => '<br>' . tep_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>' . tep_banner_graph_infoBox($bInfo->banners_id, '3'));
                }
                $contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'graph_hbar_blue.gif', 'Blue', '5', '5') . ' ' . TEXT_BANNERS_BANNER_VIEWS . '<br>' . tep_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, tep_date_short($bInfo->date_scheduled)));
                }
                if ($bInfo->expires_date) {
                    $contents[] = array('text' => '<br>' . sprintf(TEXT_BANNERS_EXPIRES_AT_DATE, tep_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, tep_date_short($bInfo->date_status_change)));
                }
            }
            break;
    }
    if (tep_not_null($heading) && tep_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 
    $affiliate_payment_values = tep_db_query($affiliate_payment_split->sql_query);
    $number_of_payment = 0;
    while ($affiliate_payment = tep_db_fetch_array($affiliate_payment_values)) {
        $number_of_payment++;
        if ($number_of_payment / 2 == floor($number_of_payment / 2)) {
            echo '          <tr class="productListing-even">';
        } else {
            echo '          <tr class="productListing-odd">';
        }
        ?>
            <td class="smallText" width="25%"><?php 
        echo $affiliate_payment['affiliate_payment_id'];
        ?>
</td>
            <td class="smallText" width="25%" align="center"><?php 
        echo tep_date_short($affiliate_payment['affiliate_payment_date']);
        ?>
</td>
            <td class="smallText" width="25%" align="right"><?php 
        echo $currencies->display_price($affiliate_payment['affiliate_payment_total'], '');
        ?>
</td>
            <td class="smallText" width="25%" align="right"><?php 
        echo $affiliate_payment['affiliate_payment_status_name'];
        ?>
</td>
          </tr>
<?php 
    }
} else {
    ?>
Exemple #14
0
        while ($balance = tep_db_fetch_array($balance_query)) {
            $order_currency = $currency;
            $order_currency_value = $currencies->get_value($currency);
            if ($balance['orders_id'] > 0) {
                $order_currency_value_info_query = tep_db_query("select currency, currency_value from " . TABLE_ORDERS . " where orders_id = '" . (int) $balance['orders_id'] . "' and partners_id = '" . (int) $partner_id . "'");
                if (tep_db_num_rows($order_currency_value_info_query) > 0) {
                    $order_currency_value_info = tep_db_fetch_array($order_currency_value_info_query);
                    $order_currency = $order_currency_value_info['currency'];
                    $order_currency_value = $order_currency_value_info['currency_value'];
                }
            }
            $balance['partners_balance_sum'] = round($balance['partners_balance_sum'] * $order_currency_value, $currencies->get_decimal_places($order_currency));
            ?>
	  <tr>
		<td align="center"><?php 
            echo tep_date_short($balance['date_added']);
            ?>
</td>
		<td align="center"><?php 
            echo tep_not_null($balance['partners_balance_comments']) ? tep_output_string_protected($balance['partners_balance_comments']) : '&nbsp;';
            ?>
</td>
		<td align="center"><?php 
            echo $currencies->format($balance['partners_balance_sum'], false);
            ?>
</td>
	  </tr>
<?php 
            $total_sum += $balance['partners_balance_sum'];
        }
        ?>
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_ORDER . '</strong>');
            $contents = array('form' => tep_draw_form('orders', FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><strong>' . $oInfo->customers_name . '</strong>');
            if (tep_not_null($oInfo->customers_ip)) {
                $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('order_blacklist', '1', false, '', 'onclick="if (this.checked) document.getElementById(\'order_blacklist_comment\').style.display = \'block\'; else document.getElementById(\'order_blacklist_comment\').style.display = \'none\';"') . ' ' . TEXT_DELETE_ORDER_BLACKLIST . '<div id="order_blacklist_comment" style="display: none;"><br>' . TEXT_DELETE_ORDER_BLACKLIST_COMMENTS . '<br>' . tep_draw_input_field('order_blacklist_reason', TEXT_DELETE_ORDER_BLACKLIST_COMMENTS_DEFAULT, 'size="35"') . '</div>');
            }
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($oInfo) && is_object($oInfo)) {
                $heading[] = array('text' => '<strong>[' . $oInfo->advance_orders_id . ']&nbsp;&nbsp;' . tep_datetime_short($oInfo->date_purchased) . '</strong>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=view') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased));
            }
            break;
    }
    if (tep_not_null($heading) && tep_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 
}
            </div>
            <div class="form-group">
              <label class="sr-only"></label><?php 
echo tep_draw_input_field('lastname', $account['customers_lastname'], 'class="form-control" placeholder="' . ENTRY_LAST_NAME . '"');
?>
            </div>

<?php 
if (ACCOUNT_DOB == 'true') {
    ?>

                    <?php 
    echo ENTRY_DATE_OF_BIRTH;
    ?>
                    <?php 
    echo tep_draw_input_field('dob', tep_date_short($account['customers_dob'])) . '&nbsp;' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>' : '');
    ?>

<?php 
}
?>
            <div class="form-group">
              <label class="sr-only"></label><?php 
echo tep_draw_input_field('email_address', $account['customers_email_address'], 'class="form-control" placeholder="' . ENTRY_EMAIL_ADDRESS . '"');
?>
            </div>
            <div class="form-group">
              <label class="sr-only"></label><?php 
echo tep_draw_input_field('telephone', $account['entry_telephone'], 'class="form-control" placeholder="' . ENTRY_TELEPHONE_NUMBER . '"');
?>
            </div>
Exemple #17
0
                 $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($cInfo->date_added));
                 if (tep_not_null($cInfo->last_modified)) {
                     $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($cInfo->last_modified));
                 }
                 $contents[] = array('text' => '<br>' . tep_info_image($cInfo->categories_image, $cInfo->categories_name, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br>' . $cInfo->categories_image);
                 $contents[] = array('text' => '<br>' . TEXT_SUBCATEGORIES . ' ' . $cInfo->childs_count . '<br>' . TEXT_PRODUCTS . ' ' . $cInfo->products_count);
             } elseif (isset($pInfo) && is_object($pInfo)) {
                 // product info box contents
                 $heading[] = array('text' => '<b>' . tep_get_products_name($pInfo->products_id, $languages_id) . '</b>');
                 $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=delete_product') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=move_product') . '">' . tep_image_button('button_move.gif', IMAGE_MOVE) . '</a> <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=copy_to') . '">' . tep_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
                 $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($pInfo->products_date_added));
                 if (tep_not_null($pInfo->products_last_modified)) {
                     $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($pInfo->products_last_modified));
                 }
                 if (date('Y-m-d') < $pInfo->products_date_available) {
                     $contents[] = array('text' => TEXT_DATE_AVAILABLE . ' ' . tep_date_short($pInfo->products_date_available));
                 }
                 $contents[] = array('text' => '<br>' . tep_info_image($pInfo->products_image, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br>' . $pInfo->products_image);
                 $contents[] = array('text' => '<br>' . TEXT_PRODUCTS_PRICE_INFO . ' ' . $currencies->format($pInfo->products_price) . '<br>' . TEXT_PRODUCTS_QUANTITY_INFO . ' ' . $pInfo->products_quantity);
                 $contents[] = array('text' => '<br>' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . '%');
             }
         } else {
             // create category/product info
             $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
             $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
         }
         break;
 }
 if (tep_not_null($heading) && tep_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
</b></td>
      </tr>
      <tr>
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php 
$statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int) $HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int) $languages_id . "' and os.public_flag = '1' order by osh.date_added");
while ($statuses = tep_db_fetch_array($statuses_query)) {
    echo '              <tr>' . "\n" . '                <td class="main" valign="top" width="70">' . tep_date_short($statuses['date_added']) . '</td>' . "\n" . '                <td class="main" valign="top" width="70">' . $statuses['orders_status_name'] . '</td>' . "\n" . '                <td class="main" valign="top">' . (empty($statuses['comments']) ? '&nbsp;' : nl2br(tep_output_string_protected($statuses['comments']))) . '</td>' . "\n" . '              </tr>' . "\n";
}
?>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php 
if (DOWNLOAD_ENABLED == 'true') {
    include DIR_WS_MODULES . 'downloads.php';
}
?>
      <tr>
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br><strong>' . $cInfo->title . '</strong>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_currency ? '<a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => '<strong>' . $cInfo->title . '</strong>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' . ($cInfo->allow_auto_update == '1' ? ' <a href="' . tep_href_link(FILENAME_CURRENCIES, 'cID=' . $cInfo->currencies_id . '&currencyID=' . $cInfo->currencies_id . '&action=update') . '">' . tep_image_button('button_update.gif', IMAGE_UPDATE) . '</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 . ' ' . tep_date_short($cInfo->last_updated));
            $contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . ' ' . number_format($cInfo->value, 8));
            $contents[] = array('text' => TEXT_INFO_CURRENCY_ALLOW_AUTO_UPDATE . ' ' . ($cInfo->allow_auto_update == '1' ? TEXT_YES : TEXT_NO));
            $contents[] = array('text' => '<br>' . TEXT_INFO_CURRENCY_EXAMPLE . '<br>' . $currencies->format('30', false, DEFAULT_CURRENCY) . ' = ' . $currencies->format('30', true, $cInfo->code));
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
Exemple #20
0
            $order_name = $Qorders->valueProtected('billing_name');
            $order_country = $Qorders->value('billing_country');
        }
        ?>

      <tr class="moduleRow" onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);">
        <td width="16"><?php 
        echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, 'orders=' . $Qorders->valueInt('orders_id'), 'SSL') . '">' . tep_image('templates/' . $template . '/images/icons/16x16/package.png') . '</a>';
        ?>
</td>
        <td><?php 
        echo '#' . $Qorders->valueInt('orders_id');
        ?>
</td>
        <td><?php 
        echo tep_date_short($Qorders->value('date_purchased'));
        ?>
</td>
        <td><?php 
        echo $order_name . ', ' . $order_country;
        ?>
</td>
        <td><?php 
        echo $Qorders->value('orders_status_name');
        ?>
</td>
        <td align="right"><?php 
        echo $Qorders->value('order_total');
        ?>
</td>
        <td align="right"><?php 
</td>
                    <td class="smallText" align="right"><?php 
echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']);
?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
$heading = array();
$contents = array();
if (isset($pInfo) && is_object($pInfo)) {
    $heading[] = array('text' => '<b>' . $pInfo->products_name . '</b>');
    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'pID=' . $pInfo->products_id . '&amp;action=new_product') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
    $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_EXPECTED . ' ' . tep_date_short($pInfo->products_date_available));
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
} else {
    $heading[] = array('text' => HEADING_NO_PRODUCTS_EXPECTED);
    $contents[] = array('text' => TEXT_NO_PRODUCTS_EXPECTED);
    echo '            <td width="25%" valign="top">';
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>';
}
?>
Exemple #22
0
 $heading = array();
 $contents = array();
 $heading[] = array('text' => '[' . $gInfo->coupon_id . '] ' . ' ' . $currencies->format($gInfo->coupon_amount));
 $redeem_query = tep_db_query("select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . $gInfo->coupon_id . "'");
 $redeemed = 'No';
 if (tep_db_num_rows($redeem_query) > 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 . ' ' . tep_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') {
     $redeem = tep_db_fetch_array($redeem_query);
     $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_REDEEMED . ' ' . tep_date_short($redeem['redeem_date']));
     $contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $redeem['redeem_ip']);
     $contents[] = array('text' => TEXT_INFO_CUSTOMERS_ID . ' ' . $redeem['customer_id']);
 } else {
     $contents[] = array('text' => '<br>' . TEXT_INFO_NOT_REDEEMED);
 }
 if (tep_not_null($heading) && tep_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>
Exemple #23
0
		$order_country = convert_to_entities($orders['delivery_country']);
	} else {
		$order_name = convert_to_entities($orders['billing_name']);
		$order_country = convert_to_entities($orders['billing_country']);
	}
	if ($i%2) {
		$class = "odd";
	} else {
		$class = "even";
	}
?>
					<tr class="<?php echo $class;?>" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'">
						<td height="5" colspan="6"></td>
					</tr>
					<tr class="<?php echo $class;?>" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'">
						<td class="main" width="80"><?php echo tep_date_short($orders['date_purchased']); ?></td>
						<td class="main"><?php echo '#' . $orders['orders_id']; ?></td>
						<td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td>
						<td class="main"><?php echo $orders['orders_status_name']; ?></td>
						<td class="main" align="right"><?php echo $orders['order_total']; ?></td>
						<td class="main" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '" class="button-a"><span>' . Translate('Bekijken') . '</span></a>'; ?></td>
					</tr>
					<tr class="<?php echo $class;?>" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'">
						<td height="5" colspan="6"></td>
					</tr>
<?php
	$i++;
}
?>
			</table>
			</div>
echo FORM_REQUIRED_INPUT;
?>
    </div>
  </div>

  <?php 
if (ACCOUNT_DOB == 'true') {
    ?>
  <div class="form-group has-feedback">
    <label for="inputName" class="control-label col-sm-3"><?php 
    echo ENTRY_DATE_OF_BIRTH;
    ?>
</label>
    <div class="col-sm-9">
      <?php 
    echo tep_draw_input_field('dob', tep_date_short($account['customers_dob']), 'required aria-required="true" id="dob" placeholder="' . ENTRY_DATE_OF_BIRTH_TEXT . '"');
    ?>
      <?php 
    echo FORM_REQUIRED_INPUT;
    ?>
    </div>
  </div>
<?php 
}
?>

  <div class="form-group has-feedback">
    <label for="inputEmail" class="control-label col-sm-3"><?php 
echo ENTRY_EMAIL_ADDRESS;
?>
</label>
    if (isset($cInfo) && $Qcustomers->valueInt('customers_id') == $cInfo->customers_id) {
        echo '      <tr class="selected">' . "\n";
    } else {
        echo '      <tr onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);" onClick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . 'page=' . $_GET['page'] . '&cID=' . $Qcustomers->valueInt('customers_id')) . '\';">' . "\n";
    }
    ?>
        <td><?php 
    echo $Qcustomers->valueProtected('customers_lastname');
    ?>
</td>
        <td><?php 
    echo $Qcustomers->valueProtected('customers_firstname');
    ?>
</td>
        <td><?php 
    echo tep_date_short($Qinfo->value('date_account_created'));
    ?>
</td>
        <td align="center"><?php 
    echo tep_image('templates/' . $template . '/images/icons/' . ($Qcustomers->valueInt('customers_status') === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif'));
    ?>
</td>
        <td align="right">
<?php 
    echo '<a href="#" onClick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . 'page=' . $_GET['page'] . '&cID=' . $Qcustomers->valueInt('customers_id') . '&action=cEdit') . '\';">' . tep_image('templates/' . $template . '/images/icons/16x16/configure.png', IMAGE_EDIT, '16', '16') . '</a>&nbsp;';
    if (isset($cInfo) && $Qcustomers->valueInt('customers_id') == $cInfo->customers_id) {
        echo '<a href="#" onClick="toggleInfoBox(\'cDelete\');">' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '</a>&nbsp;';
    } else {
        echo '<a href="' . tep_href_link(FILENAME_CUSTOMERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . 'page=' . $_GET['page'] . '&cID=' . $Qcustomers->valueInt('customers_id') . '&action=cDelete') . '">' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '</a>&nbsp;';
    }
    echo '<a href="#" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, 'cID=' . $Qcustomers->valueInt('customers_id')) . '\';">' . tep_image('templates/' . $template . '/images/icons/16x16/orders.png', IMAGE_ORDERS, '16', '16') . '</a>';
Exemple #26
0
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $sInfo->products_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($sInfo)) {
                $heading[] = array('text' => '<b>' . $sInfo->products_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_SPECIALS, 'page=' . $HTTP_GET_VARS['page'] . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($sInfo->specials_date_added));
                $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($sInfo->specials_last_modified));
                $contents[] = array('align' => 'center', 'text' => '<br>' . tep_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br>' . TEXT_INFO_ORIGINAL_PRICE . ' ' . $currencies->format($sInfo->products_price));
                $contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . ' ' . $currencies->format($sInfo->specials_new_products_price));
                $contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . ' ' . number_format(100 - $sInfo->specials_new_products_price / $sInfo->products_price * 100) . '%');
                $contents[] = array('text' => '<br>' . TEXT_INFO_EXPIRES_DATE . ' <b>' . tep_date_short($sInfo->expires_date) . '</b>');
                $contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . ' ' . tep_date_short($sInfo->date_status_change));
            }
            break;
    }
    if (tep_not_null($heading) && tep_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>
Exemple #27
0
        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br><b>' . $mInfo->manufacturers_name . '</b>');
        $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
        if ($mInfo->products_count > 0) {
            $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
            $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        }
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if (isset($mInfo) && is_object($mInfo)) {
            $heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_MANUFACTURERS, 'page=' . $HTTP_GET_VARS['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
            $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_date_short($mInfo->date_added));
            if (tep_not_null($mInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_date_short($mInfo->last_modified));
            }
            $contents[] = array('text' => '<br>' . tep_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            $contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
Exemple #28
0
                }
                $coupon_min_order = $currencies->format($cInfo->coupon_minimum_order);
                if ($_GET['action'] == 'voucherdelete') {
                    $contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . '<a href="' . tep_href_link('coupon_admin.php', 'action=confirmdelete&status=' . $status . ($_GET['page'] > 1 ? '&page=' . $_GET['page'] : '') . '&cid=' . $_GET['cid'], 'NONSSL') . '">' . tep_image_button('button_confirm.gif', IMAGE_CONFIRM) . '</a>' . '<a href="' . tep_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
                } else {
                    $prod_details = NONE;
                    if ($cInfo->restrict_to_products) {
                        $prod_details = '<A HREF="listproducts.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" ONCLICK="window.open(\'listproducts.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
                    }
                    $cat_details = NONE;
                    if ($cInfo->restrict_to_categories) {
                        $cat_details = '<A HREF="listcategories.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" ONCLICK="window.open(\'listcategories.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
                    }
                    $coupon_name_query = tep_db_query("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $cInfo->coupon_id . "' and language_id = '" . $languages_id . "'");
                    $coupon_name = tep_db_fetch_array($coupon_name_query);
                    $contents[] = array('text' => COUPON_NAME . '&nbsp;:&nbsp;' . $coupon_name['coupon_name'] . '<br>' . COUPON_AMOUNT . '&nbsp;:&nbsp;' . $amount . '<br>' . COUPON_MIN_ORDER . '&nbsp;:&nbsp;' . $coupon_min_order . '<br>' . COUPON_STARTDATE . '&nbsp;:&nbsp;' . tep_date_short($cInfo->coupon_start_date) . '<br>' . COUPON_FINISHDATE . '&nbsp;:&nbsp;' . tep_date_short($cInfo->coupon_expire_date) . '<br>' . COUPON_USES_COUPON . '&nbsp;:&nbsp;' . $cInfo->uses_per_coupon . '<br>' . COUPON_USES_USER . '&nbsp;:&nbsp;' . $cInfo->uses_per_user . '<br>' . COUPON_PRODUCTS . '&nbsp;:&nbsp;' . $prod_details . '<br>' . COUPON_CATEGORIES . '&nbsp;:&nbsp;' . $cat_details . '<br>' . DATE_CREATED . '&nbsp;:&nbsp;' . tep_date_short($cInfo->date_created) . '<br>' . DATE_MODIFIED . '&nbsp;:&nbsp;' . tep_date_short($cInfo->date_modified) . '<br><br>' . '<center><a href="' . tep_href_link('coupon_admin.php', 'action=email&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . tep_image_button('button_email.gif', COUPON_BUTTON_EMAIL_VOUCHER) . '</a>' . '<a href="' . tep_href_link('coupon_admin.php', 'action=voucheredit&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . tep_image_button('button_edit.gif', COUPON_BUTTON_EDIT_VOUCHER) . '</a>' . '<a href="' . tep_href_link('coupon_admin.php', 'action=voucherdelete&status=' . $status . ($_GET['page'] > 1 ? '&page=' . $_GET['page'] : '') . '&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . tep_image_button('button_delete.gif', COUPON_BUTTON_DELETE_VOUCHER) . '</a>' . '<br><a href="' . tep_href_link('coupon_admin.php', 'action=voucherreport&cid=' . $cInfo->coupon_id, 'NONSSL') . '">' . tep_image_button('button_report.gif', COUPON_BUTTON_VOUCHER_REPORT) . '</a></center>');
                }
                break;
        }
        ?>
                       
    <td width="25%" valign="top">
<?php 
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
}
?>
      </tr>
    </table></td>
<!-- body_text_eof //-->
            $contents = array('form' => tep_draw_form('newsletters', FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $_GET['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (is_object($nInfo)) {
                $heading[] = array('text' => '<b>' . $nInfo->title . '</b>');
                if ($nInfo->locked > 0) {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=new') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=unlock') . '">' . tep_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');
                } else {
                    $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, 'page=' . $_GET['page'] . '&amp;nID=' . $nInfo->affiliate_newsletters_id . '&amp;action=lock') . '">' . tep_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');
                }
                $contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . tep_date_short($nInfo->date_added));
                if ($nInfo->status == '1') {
                    $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . tep_date_short($nInfo->date_sent));
                }
            }
            break;
    }
    if (tep_not_null($heading) && tep_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 
    $affiliate_clickthroughs_values = tep_db_query($affiliate_clickthroughs_raw);
    $number_of_clickthroughs = '0';
    while ($affiliate_clickthroughs = tep_db_fetch_array($affiliate_clickthroughs_values)) {
        $number_of_clickthroughs++;
        if ($number_of_clickthroughs / 2 == floor($number_of_clickthroughs / 2)) {
            echo '                  <tr class="productListing-even">';
        } else {
            echo '                  <tr class="productListing-odd">';
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $affiliate_clickthroughs['affiliate_firstname'] . " " . $affiliate_clickthroughs['affiliate_lastname'];
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        echo tep_date_short($affiliate_clickthroughs['affiliate_clientdate']);
        ?>
</td>
<?php 
        if ($affiliate_clickthroughs['affiliate_products_id'] > 0) {
            $link_to = '<a href="' . tep_catalog_href_link(FILENAME_CATALOG_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . '</a>';
        } else {
            $link_to = "Startpage";
        }
        ?>
                <td class="dataTableContent"><?php 
        echo $link_to;
        ?>
</td>
                <td class="dataTableContent" align="center"><?php 
        echo $affiliate_clickthroughs['affiliate_clientbrowser'];