当前位置: 首页>>代码示例>>PHP>>正文


PHP olc_date_short函数代码示例

本文整理汇总了PHP中olc_date_short函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_date_short函数的具体用法?PHP olc_date_short怎么用?PHP olc_date_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了olc_date_short函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: process

 function process($file)
 {
     @olc_set_time_limit(0);
     //$schema = 'Produktbezeichnung;Beschreibung;Preis;Url;Bild;Währung;Kategorie;Gültig bis;Gültig ab;FSK;Typ;Produkt id;Hersteller;Bestellnummer;Suchbegriffe;Preistyp' . NEW_LINE;
     $export_query = olc_db_query("SELECT\n                             p.products_id,\n                             pd.products_name,\n                             pd.products_description,\n                             p.products_model,\n                             p.products_image,\n                             p.products_price,\n                             p.products_status,\n                             p.products_date_available,\n                             p.products_shippingtime,\n                             p.products_discount_allowed,\n                             pd.products_meta_keywords,\n                             p.products_tax_class_id,\n                             p.products_date_added,\n                             m.manufacturers_name\n                         FROM\n                             " . TABLE_PRODUCTS . " p LEFT JOIN\n                             " . TABLE_MANUFACTURERS . " m\n                           ON p.manufacturers_id = m.manufacturers_id LEFT JOIN\n                             " . TABLE_PRODUCTS_DESCRIPTION . " pd\n                           ON p.products_id = pd.products_id AND\n                            pd.language_id = '" . SESSION_LANGUAGE_ID . "' LEFT JOIN\n                             " . TABLE_SPECIALS . " s\n                           ON p.products_id = s.products_id\n                         WHERE\n                           p.products_status = 1\n                         ORDER BY\n                            p.products_date_added DESC,\n                            pd.products_name");
     while ($products = olc_db_fetch_array($export_query)) {
         $products_price = olc_get_products_price_export($products['products_id'], 1, true, $_POST['status'], 1, $_POST['currencies'], true);
         // remove trash
         $products_description = strip_tags($products['products_description']);
         $products_description = substr($products_description, 0, 1000) . '..';
         $products_description = str_replace(";", ", ", $products_description);
         $products_description = str_replace(APOS, ", ", $products_description);
         $products_description = str_replace(NEW_LINE, BLANK, $products_description);
         $products_description = str_replace("\r", BLANK, $products_description);
         $products_description = str_replace("\t", BLANK, $products_description);
         $products_description = str_replace("\v", BLANK, $products_description);
         $products_description = str_replace("&quot,", " \"", $products_description);
         $products_description = str_replace("&qout,", " \"", $products_description);
         // get product categorie
         $categorie_query = olc_db_query("SELECT\n                                            categories_id\n                                            FROM " . TABLE_PRODUCTS_TO_CATEGORIES . "\n                                            WHERE products_id='" . $products['products_id'] . APOS);
         while ($categorie_data = olc_db_fetch_array($categorie_query)) {
             $categories = $categorie_data['categories_id'];
         }
         $categorie_query = olc_db_query("SELECT\n                                            categories_name\n                                            FROM " . TABLE_CATEGORIES_DESCRIPTION . "\n                                            WHERE categories_id='" . $categories . "'\n                                            and language_id='" . SESSION_LANGUAGE_ID . APOS);
         $categorie_data = olc_db_fetch_array($categorie_query);
         //create content
         $schema .= $products['products_name'] . ';' . $products_description . ';' . $products_price . ';' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'product_info.php?products_id=' . $products['products_id'] . ';' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG_THUMBNAIL_IMAGES . $products['products_image'] . ';' . $_POST['currencies'] . ';' . $categorie_data['categories_name'] . ';' . ';' . olc_date_short($products['products_date_available']) . ';' . ';' . ';' . $products['products_model'] . ';' . $products['manufacturers_name'] . ';' . $products['products_model'] . ';' . $products['products_meta_keywords'] . ';' . '0' . NEW_LINE;
     }
     // create File
     $fp = fopen(DIR_FS_DOCUMENT_ROOT . 'export/' . $file, "w+");
     fputs($fp, $schema);
     fclose($fp);
     switch ($_POST['export']) {
         case 'yes':
             // send File to Browser
             $extension = substr($file, -3);
             $fp = fopen(DIR_FS_DOCUMENT_ROOT . 'export/' . $file, "rb");
             $buffer = fread($fp, filesize(DIR_FS_DOCUMENT_ROOT . 'export/' . $file));
             fclose($fp);
             header('Content-type: application/x-octet-stream');
             header('Content-disposition: attachment; filename=' . $file);
             echo $buffer;
             exit;
             break;
     }
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:46,代码来源:milando.php

示例2: olc_draw_input_field

} else {
    $lastname_content = olc_draw_input_field('a_lastname', $affiliate['affiliate_lastname']) . HTML_NBSP . ENTRY_FIRST_NAME_TEXT;
}
$module_smarty->assign('lastname_content', $lastname_content);
if (ACCOUNT_DOB == TRUE_STRING_S) {
    $module_smarty->assign('ACCOUNT_DOB', TRUE_STRING_S);
    if ($is_read_only == true) {
        $dob_content = olc_date_short($affiliate['affiliate_dob']);
    } elseif ($error == true) {
        if ($entry_date_of_birth_error == true) {
            $dob_content = olc_draw_input_field('a_dob') . HTML_NBSP . ENTRY_DATE_OF_BIRTH_ERROR;
        } else {
            $dob_content = $a_dob . olc_draw_hidden_field('a_dob');
        }
    } else {
        $dob_content = olc_draw_input_field('a_dob', olc_date_short($affiliate['affiliate_dob'])) . HTML_NBSP . ENTRY_DATE_OF_BIRTH_TEXT;
    }
    $module_smarty->assign('dob_content', $dob_content);
}
if ($is_read_only == true) {
    $email_content = $affiliate['affiliate_email_address'];
} elseif ($error == true) {
    if ($entry_email_address_error == true) {
        $email_content = olc_draw_input_field('a_email_address') . HTML_NBSP . ENTRY_EMAIL_ADDRESS_ERROR;
    } elseif ($entry_email_address_check_error == true) {
        $email_content = olc_draw_input_field('a_email_address') . HTML_NBSP . ENTRY_EMAIL_ADDRESS_CHECK_ERROR;
    } elseif ($entry_email_address_exists == true) {
        $email_content = olc_draw_input_field('a_email_address') . HTML_NBSP . ENTRY_EMAIL_ADDRESS_ERROR_EXISTS;
    } else {
        $email_content = $a_email_address . olc_draw_hidden_field('a_email_address');
    }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:affiliate_account_details.php

示例3: array

        $contents[] = array('text' => TEXT_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $bInfo->blacklist_card_number . HTML_B_END);
        //      $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE);
        //      if ($mInfo->products_count > 0) {
        //        $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS);
        //        $contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
        //      }
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($bInfo)) {
            $heading[] = array('text' => HTML_B_START . $bInfo->blacklist_card_number . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added));
            if (olc_not_null($bInfo->last_modified)) {
                $contents[] = array('text' => TEXT_LAST_MODIFIED . BLANK . olc_date_short($bInfo->last_modified));
            }
            //        $contents[] = array('text' => HTML_BR . olc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
            //        $contents[] = array('text' => HTML_BR . TEXT_PRODUCTS . BLANK . $mInfo->products_count);
        }
        break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . NEW_LINE;
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . NEW_LINE;
}
?>
          </tr>
        </table></td>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:blacklist.php

示例4: getReviews

 /**
  *
  * select reviews
  *
  */
 function getReviews()
 {
     $data_reviews = array();
     $reviews_query = olc_db_query("\n\t\tselect\n   r.reviews_rating,\n   r.reviews_id,\n   r.customers_name,\n   r.date_added,\n   r.last_modified,\n   r.reviews_read,\n   rd.reviews_text\n   from " . TABLE_REVIEWS . " r,\n   " . TABLE_REVIEWS_DESCRIPTION . " rd\n   where r.products_id = '" . $this->pID . "'\n   and  r.reviews_id=rd.reviews_id\n   and rd.languages_id = '" . SESSION_LANGUAGE_ID . "'\n   order by reviews_id DESC");
     if (olc_db_num_rows($reviews_query, true)) {
         $row = 0;
         $data_reviews = array();
         while ($reviews = olc_db_fetch_array($reviews_query, true)) {
             $row++;
             $data_reviews[] = array('AUTHOR' => $reviews['customers_name'], 'DATE' => olc_date_short($reviews['date_added']), 'RATING' => olc_image('templates/' . CURRENT_TEMPLATE . '/images/stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), 'TEXT' => $reviews['reviews_text']);
             if ($row == PRODUCT_REVIEWS_VIEW) {
                 break;
             }
         }
     }
     return $data_reviews;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:22,代码来源:product.php

示例5: array

$heading = array();
$contents = array();
$heading[] = array('text' => '[' . $gInfo->coupon_id . '] ' . BLANK . $currencies->format($gInfo->coupon_amount));
$redeem_query = olc_db_query("select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . $gInfo->coupon_id . APOS);
$redeemed = 'No';
if (olc_db_num_rows($redeem_query) > 0) {
    $redeemed = 'Yes';
}
$contents[] = array('text' => TEXT_INFO_SENDERS_ID . BLANK . $gInfo->customer_id_sent);
$contents[] = array('text' => TEXT_INFO_AMOUNT_SENT . BLANK . $currencies->format($gInfo->coupon_amount));
$contents[] = array('text' => TEXT_INFO_DATE_SENT . BLANK . olc_date_short($gInfo->date_sent));
$contents[] = array('text' => TEXT_INFO_VOUCHER_CODE . BLANK . $gInfo->coupon_code);
$contents[] = array('text' => TEXT_INFO_EMAIL_ADDRESS . BLANK . $gInfo->emailed_to);
if ($redeemed == 'Yes') {
    $redeem = olc_db_fetch_array($redeem_query);
    $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_REDEEMED . BLANK . olc_date_short($redeem['redeem_date']));
    $contents[] = array('text' => TEXT_INFO_IP_ADDRESS . BLANK . $redeem['redeem_ip']);
    $contents[] = array('text' => TEXT_INFO_CUSTOMERS_ID . BLANK . $redeem['customer_id']);
} else {
    $contents[] = array('text' => HTML_BR . TEXT_INFO_NOT_REDEEMED);
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . NEW_LINE;
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . NEW_LINE;
}
?>
          </tr>
        </table></td>
      </tr>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:gv_sent.php

示例6: on

$affiliate_clickthroughs_raw = "select a.*, pd.products_name from " . TABLE_AFFILIATE_CLICKTHROUGHS . " a\n                                    left join " . TABLE_PRODUCTS . " p on (p.products_id = a.affiliate_products_id)\n                                    left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (pd.products_id = p.products_id and pd.language_id = '" . SESSION_LANGUAGE_ID . "')\n                                    where a.affiliate_id = '" . $_SESSION['affiliate_id'] . "'  ORDER BY a.affiliate_clientdate desc";
$affiliate_clickthroughs_split = new splitPageResults($affiliate_clickthroughs_raw, $_GET['page'], MAX_DISPLAY_SEARCH_RESULTS);
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('affiliate_clickthroughs_split_number', $affiliate_clickthroughs_split->number_of_rows);
$affiliate_clickthrough_table = '';
if ($affiliate_clickthroughs_split->number_of_rows > 0) {
    $affiliate_clickthroughs_values = olc_db_query($affiliate_clickthroughs_split->sql_query);
    $number_of_clickthroughs = '0';
    while ($affiliate_clickthroughs = olc_db_fetch_array($affiliate_clickthroughs_values)) {
        $number_of_clickthroughs++;
        if ($number_of_clickthroughs / 2 == floor($number_of_clickthroughs / 2)) {
            $affiliate_clickthrough_table .= '<tr class="productListing-even">';
        } else {
            $affiliate_clickthrough_table .= '<tr class="productListing-odd">';
        }
        $affiliate_clickthrough_table .= '<td class="smallText">' . olc_date_short($affiliate_clickthroughs['affiliate_clientdate']) . '</td>';
        if ($affiliate_clickthroughs['affiliate_products_id'] > 0) {
            $link_to = HTML_A_START . olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $affiliate_clickthroughs['affiliate_products_id']) . '" target="_blank">' . $affiliate_clickthroughs['products_name'] . HTML_A_END;
        } else {
            $link_to = "Startpage";
        }
        $affiliate_clickthrough_table .= '<td class="smallText">' . $link_to . '</td>';
        $affiliate_clickthrough_table .= '<td class="smallText">' . $affiliate_clickthroughs['affiliate_clientreferer'] . '</td></tr>';
    }
    $smarty->assign('affiliate_clickthrough_table', $affiliate_clickthrough_table);
}
if ($affiliate_clickthroughs_split->number_of_rows > 0) {
    $smarty->assign('affiliate_clickthroughs_split_count', $affiliate_clickthroughs_split->display_count(TEXT_DISPLAY_NUMBER_OF_CLICKS));
    $smarty->assign('affiliate_clickthroughs_split_links', $affiliate_clickthroughs_split->display_links(MAX_DISPLAY_PAGE_LINKS, olc_get_all_get_params(array('page', 'info', 'x', 'y'))));
}
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'affiliate_clicks' . HTML_EXT, SMARTY_CACHE_ID);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:affiliate_clicks.php

示例7: array

             if (!$is_admin || CUSTOMER_ID == 1) {
                 $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, $params . 'edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END);
             }
             if (true || $cs_id != 0) {
                 $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, $params . 'confirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
             }
             if (!$is_admin) {
                 $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS, $params . 'editstatus') . '">' . olc_image_button('button_status.gif', IMAGE_STATUS) . HTML_A_END);
                 // elari cs v3.x changed for added accounting module
                 $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_ACCOUNTING, $params) . '">' . olc_image_button('button_accounting.gif', IMAGE_ACCOUNTING) . HTML_A_END);
             }
             // elari cs v3.x changed for added iplog module
             $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_ORDERS, $params) . '">' . olc_image_button('button_orders.gif', IMAGE_ORDERS) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . olc_image_button('button_email.gif', IMAGE_EMAIL) . '</a><br/><a href="' . olc_href_link(FILENAME_CUSTOMERS, $params . 'iplog') . '">' . olc_image_button('button_iplog.gif', IMAGE_IPLOG) . HTML_A_END);
             $contents[] = array('text' => HTML_BR . TEXT_DATE_ACCOUNT_CREATED . BLANK . olc_date_short($cInfo->date_account_created));
             $contents[] = array('text' => HTML_BR . TEXT_DATE_ACCOUNT_LAST_MODIFIED . BLANK . olc_date_short($cInfo->date_account_last_modified));
             $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_LAST_LOGON . BLANK . olc_date_short($cInfo->date_last_logon));
             $contents[] = array('text' => HTML_BR . TEXT_INFO_NUMBER_OF_LOGONS . BLANK . $cInfo->number_of_logons);
             $contents[] = array('text' => HTML_BR . TEXT_INFO_COUNTRY . BLANK . $cInfo->countries_name);
             $contents[] = array('text' => HTML_BR . TEXT_INFO_NUMBER_OF_REVIEWS . BLANK . $cInfo->number_of_reviews);
         }
         if ($action == 'iplog') {
             $contents[] = array('text' => '<br/><b>IPLOG :');
             $customers_log_info_array = olc_get_user_info($customers_id);
             if (olc_db_num_rows($customers_log_info_array)) {
                 while ($customers_log_info = olc_db_fetch_array($customers_log_info_array)) {
                     $contents[] = array('text' => '<tr>' . NEW_LINE . '<td class="smallText">' . $customers_log_info['customers_ip_date'] . BLANK . $customers_log_info['customers_ip']);
                 }
             }
         }
         break;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:customers.php

示例8: olc_db_query

$info_smarty->assign('options', $products_options_data);
$reviews_query = olc_db_query(SELECT_COUNT . " as count from " . TABLE_REVIEWS . " where products_id = '" . (int) $_GET['products_id'] . APOS);
$reviews = olc_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
    //fsk18 lock
    $fsk_lock = '';
    if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
        $fsk_lock = ' and p.products_fsk18!=1';
    }
    $product_info_query = olc_db_query("select pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS . " p on pd.products_id = p.products_id where pd.language_id = '" . SESSION_LANGUAGE_ID . "' and p.products_status = '1' " . $fsk_lock . " and pd.products_id = '" . (int) $_GET['products_id'] . APOS);
    if (!olc_db_num_rows($product_info_query)) {
        olc_redirect(olc_href_link(FILENAME_REVIEWS));
    }
    $product_info = olc_db_fetch_array($product_info_query);
    $reviews_query = olc_db_query("select\n                                 r.reviews_rating,\n                                 r.reviews_id,\n                                 r.customers_name,\n                                 r.date_added,\n                                 r.last_modified,\n                                 r.reviews_read,\n                                 rd.reviews_text\n                                 from " . TABLE_REVIEWS . " r,\n                                 " . TABLE_REVIEWS_DESCRIPTION . " rd\n                                 where r.products_id = '" . (int) $_GET['products_id'] . "'\n                                 and  r.reviews_id=rd.reviews_id\n                                 and rd.languages_id = '" . SESSION_LANGUAGE_ID . "'\n                                 order by reviews_id DESC");
    if (olc_db_num_rows($reviews_query)) {
        $row = 0;
        $data_reviews = array();
        while ($reviews = olc_db_fetch_array($reviews_query)) {
            $row++;
            $data_reviews[] = array('AUTHOR' => $reviews['customers_name'], 'DATE' => olc_date_short($reviews['date_added']), 'RATING' => olc_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews['reviews_rating'])), 'TEXT' => $reviews['reviews_text']);
            if ($row == PRODUCT_REVIEWS_VIEW) {
                break;
            }
        }
    }
    $module_smarty->assign('BUTTON_WRITE', HTML_A_START . olc_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $_GET['products_id']) . '">' . olc_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . HTML_A_END);
    $module_smarty->assign(MODULE_CONTENT, $data_reviews);
    $module = $module_smarty->fetch(CURRENT_TEMPLATE_MODULE . 'products_reviews' . HTML_EXT, $cacheid);
    $info_smarty->assign('MODULE_products_reviews', $module);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:product_reviews.php

示例9: olc_date_long

                ?>
</td>
<?php 
                break;
            case '4':
                ?>
                      <td class="dataTableContent" align="right"><?php 
                echo olc_date_long(date("Y-m-d\\ H:i:s", $sr->showDate));
                ?>
</td>
<?php 
                break;
            default:
                ?>
                      <td class="dataTableContent" align="right"><?php 
                echo olc_date_short(date("Y-m-d\\ H:i:s", $sr->showDate)) . " - " . olc_date_short(date("Y-m-d\\ H:i:s", $sr->showDateEnd));
                ?>
</td>
<?php 
        }
        ?>
                      <td class="dataTableContent" align="right"><?php 
        echo $info[0]['order'];
        ?>
</td>
                      <td class="dataTableContent" align="right"><?php 
        echo $info[$last - 1]['totitem'];
        ?>
</td>
                      <td class="dataTableContent" align="right"><?php 
        echo $currencies->format($info[$last - 1]['totsum']);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:stats_sales_report.php

示例10: substr

if (olc_not_null($get_params_back)) {
    $get_params_back = substr($get_params_back, 0, -1);
    //remove trailing &
} else {
    $get_params_back = $get_params;
}
$product_info_query = olc_db_query("select pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS . " p on pd.products_id = p.products_id where pd.language_id = '" . SESSION_LANGUAGE_ID . "' and p.products_status = '1' and pd.products_id = '" . (int) $_GET['products_id'] . APOS);
if (!olc_db_num_rows($product_info_query)) {
    olc_redirect(olc_href_link(FILENAME_REVIEWS));
}
$product_info = olc_db_fetch_array($product_info_query);
$breadcrumb->add(NAVBAR_TITLE_PRODUCT_REVIEWS, olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params));
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('PRODUCTS_NAME', $product_info['products_name']);
$data_reviews = array();
$reviews_query = olc_db_query("select reviews_rating, reviews_id, customers_name, date_added, last_modified, reviews_read from " . TABLE_REVIEWS . " where products_id = '" . (int) $_GET['products_id'] . "' order by reviews_id DESC");
if (olc_db_num_rows($reviews_query)) {
    $row = 0;
    while ($reviews = olc_db_fetch_array($reviews_query)) {
        $row++;
        $data_reviews[] = array('id' => $reviews['reviews_id'], 'AUTHOR' => HTML_A_START . olc_href_link(FILENAME_PRODUCT_REVIEWS_INFO, $get_params . '&reviews_id=' . $reviews['reviews_id']) . '">' . $reviews['customers_name'] . HTML_A_END, 'DATE' => olc_date_short($reviews['date_added']), 'RATING' => olc_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews['reviews_rating'])), 'TEXT' => $reviews['reviews_text']);
    }
}
$smarty->assign(MODULE_CONTENT, $data_reviews);
$link = olc_href_link(FILENAME_PRODUCT_INFO, $get_params_back, NONSSL, false, true, false);
$smarty->assign('BUTTON_BACK', HTML_A_START . $link . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
$smarty->assign('BUTTON_WRITE', HTML_A_START . olc_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, $get_params) . '">' . olc_image_button('button_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . HTML_A_END);
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'product_reviews' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:product_reviews.php

示例11: array

        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $cInfo->title . HTML_B_END);
        $contents[] = array('align' => 'center', 'text' => HTML_BR . ($remove_currency ? HTML_A_START . olc_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END : '') . BLANK . HTML_A_START . olc_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($cInfo)) {
            $heading[] = array('text' => HTML_B_START . $cInfo->title . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_CURRENCY_TITLE . BLANK . $cInfo->title);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . BLANK . $cInfo->code);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_CURRENCY_SYMBOL_LEFT . BLANK . $cInfo->symbol_left);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_SYMBOL_RIGHT . BLANK . $cInfo->symbol_right);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_CURRENCY_DECIMAL_POINT . BLANK . $cInfo->decimal_point);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_THOUSANDS_POINT . BLANK . $cInfo->thousands_point);
            $contents[] = array('text' => TEXT_INFO_CURRENCY_DECIMAL_PLACES . BLANK . $cInfo->decimal_places);
            $contents[] = array('text' => HTML_BR . TEXT_INFO_CURRENCY_LAST_UPDATED . BLANK . olc_date_short($cInfo->last_updated));
            $contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . BLANK . number_format($cInfo->value, 8));
            $contents[] = array('text' => HTML_BR . TEXT_INFO_CURRENCY_EXAMPLE . HTML_BR . $currencies->format('30', false, DEFAULT_CURRENCY) . ' = ' . $currencies->format('30', true, $cInfo->code));
        }
        break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . NEW_LINE;
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . NEW_LINE;
}
?>
          </tr>
        </table></td>
      </tr>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:currencies.php

示例12: olc_href_link

            <td class="main" nowrap="nowrap" align="right">' . $ot_text . '</td>
          </tr>
';
        }
        $total_block .= '
				</table>
';
    }
    $data_products .= '				</table>';
    $smarty->assign('PRODUCTS_BLOCK', $data_products);
    $smarty->assign('TOTAL_BLOCK', $total_block);
    $smarty->assign('PAYMENT_EDIT', olc_href_link(FILENAME_CHECKOUT_PAYMENT, EMPTY_STRING, SSL));
    $history_block = '<table>';
    $statuses_query = olc_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh\n\twhere\n\tosh.orders_id = '" . $order_id . "'\n\tand osh.orders_status_id = os.orders_status_id\n\tand os.language_id = '" . SESSION_LANGUAGE_ID . "'\n\torder by osh.date_added");
    while ($statuses = olc_db_fetch_array($statuses_query)) {
        $history_block .= '              <tr>' . NEW_LINE . '                <td class="main" valign="top">' . olc_date_short($statuses['date_added']) . '</td>' . NEW_LINE . '                <td class="main" valign="top">' . $statuses['orders_status_name'] . '</td>' . NEW_LINE . '                <td class="main" valign="top">' . (empty($statuses['comments']) ? HTML_NBSP : nl2br(htmlspecialchars($statuses['comments']))) . '</td>' . NEW_LINE . '              </tr>' . NEW_LINE;
    }
    $history_block .= '</table>';
    $smarty->assign('HISTORY_BLOCK', $history_block);
    if (DOWNLOAD_ENABLED == TRUE_STRING_S) {
        include DIR_WS_MODULES . 'downloads.php';
    }
    $button_back = HTML_A_START . olc_href_link(FILENAME_ACCOUNT_HISTORY, olc_get_all_get_params(array('order_id')), SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END;
    /* begin PayPal_Shopping_Cart_IPN */
    if (defined('PAYPAL_IPN_DIR')) {
        require PAYPAL_IPN_DIR . 'catalog/order_send_money.inc.php';
    }
    $button_back .= $paypal_confirm;
    /* end PayPal_Shopping_Cart_IPN */
    $track_code = $order->info['orders_trackcode'];
    if ($track_code) {
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:account_history_info.php

示例13: array

            $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
            $contents[] = array('text' => '<br/><b>' . $sInfo->products_name . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . olc_href_link(FILENAME_SPECIALS, 'page=' . $page . '&sID=' . $sInfo->specials_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
            break;
        default:
            if (is_object($sInfo)) {
                $heading[] = array('text' => HTML_B_START . $sInfo->products_name . HTML_B_END);
                $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_SPECIALS, 'page=' . $page . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_SPECIALS, 'page=' . $page . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
                $contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($sInfo->specials_date_added));
                $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($sInfo->specials_last_modified));
                $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_product_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => HTML_BR . TEXT_INFO_ORIGINAL_PRICE . BLANK . $currencies->format($sInfo->products_price));
                $contents[] = array('text' => '' . TEXT_INFO_NEW_PRICE . BLANK . $currencies->format($sInfo->specials_new_products_price));
                $contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . BLANK . number_format(100 - $sInfo->specials_new_products_price / $sInfo->products_price * 100) . '%');
                $contents[] = array('text' => HTML_BR . TEXT_INFO_EXPIRES_DATE . ' <b>' . olc_date_short($sInfo->expires_date) . HTML_B_END);
                $contents[] = array('text' => '' . TEXT_INFO_STATUS_CHANGE . BLANK . olc_date_short($sInfo->date_status_change));
            }
            break;
    }
    if (olc_not_null($heading) && olc_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . NEW_LINE;
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . NEW_LINE;
    }
}
?>
          </tr>
        </table></td>
      </tr>
    </table></td>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:specials.php

示例14: olc_date_short

              <center>
                <tr>
                  <td width="35%" align="right" class="dataTableContent"><b><?php 
echo TEXT_AFFILIATE_NAME;
?>
</b>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                  <td width="15%" class="dataTableContent"><?php 
echo $affiliate['affiliate_firstname'] . BLANK . $affiliate['affiliate_lastname'];
?>
</td>
                  <td width="35%" align="right" class="dataTableContent"><?php 
echo TEXT_AFFILIATE_JOINDATE;
?>
&nbsp;&nbsp;&nbsp;&nbsp;</td>
                  <td width="15%" class="dataTableContent"><?php 
echo olc_date_short($affiliate['affiliate_date_account_created']);
?>
</td>
                </tr>
                <tr>
                  <td width="35%" align="right" class="dataTableContent"><?php 
echo TEXT_IMPRESSIONS;
echo '<a href="javascript:popupWindow(\'' . (HTTP_SERVER . DIR_WS_CATALOG . FILENAME_AFFILIATE_HELP_1) . '\')">' . TEXT_SUMMARY_HELP . HTML_A_END;
?>
</td>
                  <td width="15%" class="dataTableContent"><?php 
echo $affiliate_impressions;
?>
</td>
                  <td width="35%" align="right" class="dataTableContent"><?php 
echo TEXT_VISITS;
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:affiliate_statistics.php

示例15: olc_format_price

         $products_price_real = olc_format_price($products_price_real, true, true);
     } else {
         require_once DIR_FS_INC . 'olc_get_smarty_config_variable.inc.php';
         $info_smarty->assign('PRODUCTS_SOLD_OUT', olc_get_smarty_config_variable($info_smarty, 'product_info', 'product_not_in_stock'));
         $products_price = str_replace(DASH, EMPTY_STRING, $products_price);
     }
 } else {
     $products_date_available = EMPTY_STRING;
 }
 //W. Kaiser - Baseprice
 require_once DIR_FS_INC . 'olc_get_vpe_and_baseprice_info.inc.php';
 olc_get_vpe_and_baseprice_info($info_smarty, $product_info, $products_price);
 //W. Kaiser - Baseprice
 $info_smarty->assign('PRODUCTS_MODEL', $product_info['products_model']);
 $info_smarty->assign('PRODUCTS_DATE_AVAILABLE', $products_date_available);
 $info_smarty->assign('PRODUCTS_ADDED', sprintf(TEXT_DATE_ADDED, olc_date_short($product_info['products_date_added'])));
 $info_smarty->assign('PRODUCTS_PRICE_RAW', $products_price_real);
 $info_smarty->assign('PRODUCTS_PRICE', $products_price);
 $info_smarty->assign('PRODUCTS_SPECIALPRICE', $price_special_info);
 $info_smarty->assign('PRODUCTS_ID', $products_id);
 $info_smarty->assign('PRODUCTS_QUANTITY', $product_info['products_quantity']);
 $info_smarty->assign('PRODUCTS_WEIGHT', $product_info['products_weight']);
 $info_smarty->assign('PRODUCTS_STATUS', $products_status);
 $info_smarty->assign('PRODUCTS_ORDERED', $product_info['products_ordered']);
 $info_smarty->assign('GENERAL_DISCLAIMER', GENERAL_DISCLAIMER);
 //W. Kaiser - AJAX
 $info_smarty->assign('PRODUCTS_DATE_ADDED', $product_info['products_date_added']);
 $info_smarty->assign('PRODUCTS_ID_FULL', isset($products_id_full) ? $products_id_full : $products_id);
 //W. Kaiser - AJAX
 $manufacturers_id = $product_info['manufacturers_id'];
 if ($manufacturers_id) {
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:product_info.php


注:本文中的olc_date_short函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。