當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smn_href_link函數代碼示例

本文整理匯總了PHP中smn_href_link函數的典型用法代碼示例。如果您正苦於以下問題:PHP smn_href_link函數的具體用法?PHP smn_href_link怎麽用?PHP smn_href_link使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了smn_href_link函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: confirm

 function confirm()
 {
     global $_GET;
     $mail_query = smn_db_query("select count(*) as count from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
     $mail = smn_db_fetch_array($mail_query);
     $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail['count']) . '</b></font></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><b>' . $this->title . '</b></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . smn_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td align="right"><a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '">' . smn_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . smn_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . '  </tr>' . "\n" . '</table>';
     return $confirm_string;
 }
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:8,代碼來源:newsletter.php

示例2: smn_redirect

function smn_redirect($url)
{
    global $logger;
    if (strstr($url, "\n") != false || strstr($url, "\r") != false) {
        smn_redirect(smn_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
    }
    header('Location: ' . $url);
    if (STORE_PAGE_PARSE_TIME == 'true') {
        if (!is_object($logger)) {
            $logger = new logger();
        }
        $logger->timer_stop();
    }
    exit;
}
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:15,代碼來源:general.php

示例3: smn_show_category

function smn_show_category($counter, $store_id)
{
    global $foo, $boxContent, $id, $aa;
    for ($a = 0; $a < $foo[$counter]['level']; $a++) {
        if ($a == $foo[$counter]['level'] - 1) {
            $boxContent .= "<span class='subCat'>&nbsp;|_  </span>";
        } else {
            $boxContent .= "<span class='subCat'>&nbsp;&nbsp;</span>";
        }
    }
    if ($foo[$counter]['level'] == 0) {
        if ($aa == 1) {
            $boxContent .= "";
        } else {
            $aa = 1;
        }
    }
    $boxContent .= '<a href="';
    if ($foo[$counter]['parent'] == 0) {
        /*Added  $store_id in $cPath_new to get the store id in the url by Cimi on June 08,2007*/
        $cPath_new = 'ID=' . $store_id . '&cPath=' . $counter;
    } else {
        /*Added  $store_id in $cPath_new to get the store id in the url by Cimi on June 08,2007*/
        $cPath_new = 'ID=' . $store_id . '&cPath=' . $foo[$counter]['path'];
    }
    $boxContent .= smn_href_link(FILENAME_DEFAULT, $cPath_new);
    $boxContent .= '">';
    if ($id && in_array($counter, $id)) {
        $boxContent .= "<span class='subCat'>";
    }
    // display category name
    $boxContent .= $foo[$counter]['name'];
    if ($id && in_array($counter, $id)) {
        $boxContent .= '</span>';
    }
    $boxContent .= '</a>';
    $boxContent .= '<br>';
    if ($foo[$counter]['next_id']) {
        /*Added parameter $store_id in the function to get the store id in the url by Cimi on June 08,2007*/
        smn_show_category($foo[$counter]['next_id'], $store_id);
    }
}
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:42,代碼來源:categories.php

示例4: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     global $PHP_SELF;
     if (smn_not_null($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // calculate number of pages needing links
     $num_pages = ceil($query_numrows / $max_rows_per_page);
     $pages_array = array();
     for ($i = 1; $i <= $num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($num_pages > 1) {
         $display_links = smn_draw_form('pages', basename($PHP_SELF), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . smn_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, smn_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
         if ($current_page_number < $num_pages && $num_pages != 1) {
             $display_links .= '&nbsp;&nbsp;<a href="' . smn_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         if ($parameters != '') {
             if (substr($parameters, -1) == '&') {
                 $parameters = substr($parameters, 0, -1);
             }
             $pairs = explode('&', $parameters);
             while (list(, $pair) = each($pairs)) {
                 list($key, $value) = explode('=', $pair);
                 $display_links .= smn_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         $display_links .= smn_hide_session_id() . '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:41,代碼來源:split_page_results.php

示例5: smn_show_store_category

function smn_show_store_category($store_counter)
{
    global $stree, $boxContent, $sPath_array;
    for ($i = 0; $i < $stree[$store_counter]['level']; $i++) {
        $boxContent .= "&nbsp;&nbsp;";
    }
    $boxContent .= '<a href="';
    if ($stree[$store_counter]['parent'] == 0) {
        $sPath_new = 'sPath=' . $store_counter;
    } else {
        $sPath_new = 'sPath=' . $stree[$store_counter]['path'];
    }
    $boxContent .= smn_href_link(FILENAME_STORE_LISTING, $sPath_new) . '">';
    if (isset($sPath_array) && in_array($store_counter, $sPath_array)) {
        $boxContent .= '<b>';
    }
    // display category name
    $boxContent .= $stree[$store_counter]['name'];
    if (isset($sPath_array) && in_array($store_counter, $sPath_array)) {
        $boxContent .= '</b>';
    }
    if (smn_has_store_category_subcategories($store_counter)) {
        $boxContent .= '-&gt;';
    }
    $boxContent .= '</a>';
    if (SHOW_COUNTS == 'true') {
        $store_in_category = smn_count_store_in_category($store_counter);
        if ($store_in_category > 0) {
            $boxContent .= '&nbsp;(' . $store_in_category . ')';
        }
    }
    $boxContent .= '<br>';
    if ($stree[$store_counter]['next_id'] != false) {
        smn_show_store_category($stree[$store_counter]['next_id']);
    }
}
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:36,代碼來源:store_categories.php

示例6: elseif

            } elseif ($_GET['gID'] != 'edit_group') {
                $check_groups_name_query = smn_db_query("select admin_groups_name as group_name_new from " . TABLE_ADMIN_GROUPS . " where admin_groups_name like '%" . $name_replace . "%'");
                $check_duplicate = smn_db_num_rows($check_groups_name_query);
                if ($check_duplicate > 0) {
                    smn_redirect(smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $_GET['gID'] . '&gName=used&action=new_group'));
                } else {
                    $sql_product_data_array = array('products_quantity' => '1000', 'products_model' => 'mem_6_', 'products_price' => smn_db_prepare_input($_POST['admin_groups_cost']), 'products_date_available' => date('Y-m-d'), 'store_id' => 1, 'products_weight' => '0', 'products_status' => '1', 'products_tax_class_id' => '', 'products_date_added' => 'now()', 'products_image' => '', 'manufacturers_id' => '');
                    smn_db_perform(TABLE_PRODUCTS, $sql_product_data_array);
                    $products_id = smn_db_insert_id();
                    smn_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int) $products_id . "', '1')");
                    $languages = smn_get_languages();
                    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
                        $language_id = $languages[$i]['id'];
                        $sql_data_array = array('products_id' => $products_id, 'products_name' => smn_db_prepare_input($admin_groups_name), 'language_id' => $language_id, 'products_url' => HTTP_CATALOG_SERVER);
                        smn_db_perform(TABLE_PRODUCTS_DESCRIPTION, $sql_data_array);
                    }
                    $sql_data_array = array('admin_groups_name' => $admin_groups_name, 'admin_groups_store_type' => smn_db_prepare_input($_POST['admin_groups_store_types']), 'admin_groups_products_id' => $products_id, 'admin_sales_cost' => smn_db_prepare_input($_POST['admin_sales_cost']), 'admin_groups_max_products' => smn_db_prepare_input($_POST['admin_groups_max_products']));
                    smn_db_perform(TABLE_ADMIN_GROUPS, $sql_data_array);
                    $admin_groups_id = smn_db_insert_id();
                    $set_groups_id = smn_db_prepare_input($_POST['set_groups_id']);
                    $add_group_id = $set_groups_id . ',\'' . $admin_groups_id . '\'';
                    smn_db_query("alter table " . TABLE_ADMIN_FILES . " change admin_groups_id admin_groups_id set( " . $add_group_id . ") NOT NULL DEFAULT '1' ");
                    smn_redirect(smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $admin_groups_id));
                }
            }
            break;
    }
}
$content_page = basename($_SERVER['PHP_SELF']);
require 'templates/default/layout.php';
require DIR_WS_INCLUDES . 'application_bottom.php';
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:admin_members.php

示例7: array

            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_REVIEW . '</b>');
            $contents = array('form' => smn_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
            $contents[] = array('text' => '<br><b>' . $rInfo->products_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($rInfo) && is_object($rInfo)) {
                $heading[] = array('text' => '<b>' . $rInfo->products_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($rInfo->date_added));
                if (smn_not_null($rInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . smn_date_short($rInfo->last_modified));
                }
                $contents[] = array('text' => '<br>' . smn_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
                $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
                $contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . smn_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
                $contents[] = array('text' => TEXT_INFO_REVIEW_READ . ' ' . $rInfo->reviews_read);
                $contents[] = array('text' => '<br>' . TEXT_INFO_REVIEW_SIZE . ' ' . $rInfo->reviews_text_size . ' bytes');
                $contents[] = array('text' => '<br>' . TEXT_INFO_PRODUCTS_AVERAGE_RATING . ' ' . number_format($rInfo->average_rating, 2) . '%');
            }
            break;
    }
    if (smn_not_null($heading) && smn_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:reviews.php

示例8: Copyright

  Portions Copyright (c) 2002 osCommerce
  
  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
?>
<!-- articles //-->
<?php 
$boxHeading = BOX_HEADING_ARTICLES;
$box_base_name = 'articles';
$box_id = $box_base_name . 'Box';
$boxContent = '';
$articles_query = smn_db_query("select distinct page_name from " . TABLE_DYNAMIC_PAGE_INDEX . "  where page_type='articles' and store_id='" . $store_id . "' order by page_name");
// Display a drop-down
while ($articles_values = smn_db_fetch_array($articles_query)) {
    $name = str_replace('_', ' ', $articles_values['page_name']);
    $boxContent .= '<a href="' . smn_href_link(FILENAME_ARTICLES, 'ID=1&type=' . $articles_values['page_name']) . '">' . $name . '</a><br>';
}
$boxContent .= smn_hide_session_id();
$boxContent .= '<br><br>';
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
    require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
    require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
?>
<!-- articles_eof //-->
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:articles.php

示例9: array

                  <tr>
                    <td valign="top"><br>
<?php 
$heading = array();
$contents = array();
$heading[] = array('params' => 'class="menuBoxHeading"', 'text' => 'oscMall System');
$contents[] = array('params' => 'class="infoBox"', 'text' => '<a href="http://download.systemsmanager.net" target="_blank">' . BOX_ENTRY_SUPPORT_SITE . '</a><br>' . '<a href="http://forum.systemsmanager.net/" target="_blank">' . BOX_ENTRY_SUPPORT_FORUMS . '</a><br>' . '<a href="http://www.systemsmanager.net/" target="_blank">' . BOX_ENTRY_MAILING_LISTS . '</a><br>' . '<a href="http://forum.systemsmanager.net/" target="_blank">' . BOX_ENTRY_BUG_REPORTS . '</a><br>' . '<a href="javascript:popupWindow(\'' . DIR_WS_HELP . FILENAME_POPUP_HELP . '?HelpID=' . str_replace('.php', '', basename($PHP_SELF)) . '\')">' . BOX_ENTRY_INFORMATION_PORTAL . '</a>');
$box = new box();
echo $box->menuBox($heading, $contents);
echo '<br>';
$orders_contents = '';
$orders_status_query = smn_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");
while ($orders_status = smn_db_fetch_array($orders_status_query)) {
    $orders_pending_query = smn_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "' and store_id = '" . $store_id . "'");
    $orders_pending = smn_db_fetch_array($orders_pending_query);
    $orders_contents .= '<a href="' . smn_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
}
$orders_contents = substr($orders_contents, 0, -4);
$heading = array();
$contents = array();
$heading[] = array('params' => 'class="menuBoxHeading"', 'text' => BOX_TITLE_ORDERS);
$contents[] = array('params' => 'class="infoBox"', 'text' => $orders_contents);
$box = new box();
echo $box->menuBox($heading, $contents);
echo '<br>';
$customers_query = smn_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
$customers = smn_db_fetch_array($customers_query);
$products_query = smn_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1' and store_id = '" . $store_id . "'");
$products = smn_db_fetch_array($products_query);
$reviews_query = smn_db_query("select count(*) as count from " . TABLE_REVIEWS . " where store_id = '" . $store_id . "'");
$reviews = smn_db_fetch_array($reviews_query);
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:index.php

示例10: smn_draw_separator

            </table></td>
          </tr>
        </table></td>
      </tr>
<?php 
if ($process == true) {
    ?>
      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
      </tr>
      <tr>
        <td><?php 
    echo '<a href="' . smn_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'NONSSL') . '">' . smn_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
    ?>
</td>
      </tr>
<?php 
}
?>
      <tr>
        <td><?php 
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:checkout_shipping_address.php

示例11: Copyright

<?php

/*
  Copyright (c) 2002 - 2006 SystemsManager.Net

  SystemsManager Technologies
  oscMall System Version 4
  http://www.systemsmanager.net
  
  Portions Copyright (c) 2002 osCommerce
  
  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
global $page_name;
if (!smn_session_is_registered('affiliate_id')) {
    $navigation->set_snapshot();
    smn_redirect(smn_href_link(FILENAME_AFFILIATE, '', 'NONSSL'));
}
$breadcrumb->add(NAVBAR_TITLE, smn_href_link(FILENAME_AFFILIATE_CLICKS, '', 'NONSSL'));
$affiliate_clickthroughs_raw = "\n    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 = '" . $languages_id . "') \n    where a.affiliate_id = '" . $affiliate_id . "'  ORDER BY a.affiliate_clientdate desc\n    ";
$affiliate_clickthroughs_split = new splitPageResults($affiliate_clickthroughs_raw, MAX_DISPLAY_SEARCH_RESULTS);
$affiliate_clickthroughs_numrows_raw = "select count(*) as count from " . TABLE_AFFILIATE_CLICKTHROUGHS . " where affiliate_id = '" . $affiliate_id . "'";
$affiliate_clickthroughs_query = smn_db_query($affiliate_clickthroughs_numrows_raw);
$affiliate_clickthroughs_numrows = smn_db_fetch_array($affiliate_clickthroughs_query);
$affiliate_clickthroughs_numrows = $affiliate_clickthroughs_numrows['count'];
?>
 
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:30,代碼來源:affiliate_clicks.php

示例12: Copyright

/*
  Copyright (c) 2002 - 2006 SystemsManager.Net
  SystemsManager Technologies
  oscMall System Version 4
  http://www.systemsmanager.net
  
  Portions Copyright (c) 2002 osCommerce
  
  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
$boxHeading = "";
$box_base_name = 'search2';
$box_id = $box_base_name . 'Box';
$boxContent = smn_draw_form('quick_find', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'ID=1', 'NONSSL', false), 'post');
$boxContent .= '<table HEIGHT="40" CELLSPACING="0" CELLPADDING="0" align="left"><tr><td HEIGHT="40" class="search_css">' . 'SEARCH: ';
$boxContent .= smn_draw_pull_down_menu('categories_id', smn_get_categories_extended(array(array('id' => '', 'text' => 'All Stores'))), '0', '') . '&nbsp;&nbsp;';
$boxContent .= smn_draw_hidden_field('search_in_description', '1');
$boxContent .= '<br/>FOR: ' . smn_draw_input_field('keywords', '', 'size="20" maxlength="30" ') . '&nbsp;' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', 'Go Search', 'align="absmiddle"');
$boxContent .= '&nbsp;&nbsp;&nbsp;<a href="' . smn_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</td></tr></table></form>';
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
    require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
    require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:30,代碼來源:search2.php

示例13: smn_db_query

            $mail_query = smn_db_query("select distinct(customers.customers_email_address), customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . ", " . TABLE_ORDERS . " where customers.customers_id = orders.customers_id and orders.store_id = " . $store_id . " and customers_newsletter = '1'  group by customers.customers_id");
            $mail_sent_to = TEXT_NEWSLETTER_CUSTOMERS;
            break;
        default:
            $customers_email_address = smn_db_prepare_input($_POST['customers_email_address']);
            $mail_query = smn_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_email_address = '" . smn_db_input($customers_email_address) . "'");
            $mail_sent_to = $_POST['customers_email_address'];
            break;
    }
    $from = smn_db_prepare_input($_POST['from']);
    $subject = smn_db_prepare_input($_POST['subject']);
    $message = smn_db_prepare_input($_POST['message']);
    //Let's build a message object using the email class
    $mimemessage = new email(array('X-Mailer: osCommerce'));
    // add the message to the object
    $mimemessage->add_text($message);
    $mimemessage->build_message();
    while ($mail = smn_db_fetch_array($mail_query)) {
        $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject);
    }
    smn_redirect(smn_href_link(FILENAME_MAIL, 'mail_sent_to=' . urlencode($mail_sent_to)));
}
if ($action == 'preview' && !isset($_POST['customers_email_address'])) {
    $messageStack->add(ERROR_NO_CUSTOMER_SELECTED, 'error');
}
if (isset($_GET['mail_sent_to'])) {
    $messageStack->add(sprintf(NOTICE_EMAIL_SENT_TO, $_GET['mail_sent_to']), 'success');
}
$content_page = basename($_SERVER['PHP_SELF']);
require 'templates/default/layout.php';
require DIR_WS_INCLUDES . 'application_bottom.php';
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:mail.php

示例14: sprintf

                $email_text = sprintf(EMAIL_GREET_MR, $lastname);
            } else {
                $email_text = sprintf(EMAIL_GREET_MS, $lastname);
            }
        } else {
            $email_text = sprintf(EMAIL_GREET_NONE, $firstname);
        }
        $email_text .= EMAIL_WELCOME . EMAIL_CONTACT . EMAIL_WARNING;
        if (NEW_SIGNUP_GIFT_VOUCHER_AMOUNT > 0) {
            $coupon_code = create_coupon_code();
            $insert_query = smn_db_query("insert into " . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $coupon_code . "', 'G', '" . NEW_SIGNUP_GIFT_VOUCHER_AMOUNT . "', now())");
            $insert_id = smn_db_insert_id($insert_query);
            $insert_query = smn_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id . "', '0', 'Admin', '" . $email_address . "', now() )");
            $email_text .= sprintf(EMAIL_GV_INCENTIVE_HEADER, $currencies->format(NEW_SIGNUP_GIFT_VOUCHER_AMOUNT)) . "\n\n" . sprintf(EMAIL_GV_REDEEM, $coupon_code) . "\n\n" . EMAIL_GV_LINK . smn_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $coupon_code, 'NONSSL', false) . "\n\n";
        }
        if (NEW_SIGNUP_DISCOUNT_COUPON != '') {
            $coupon_code = NEW_SIGNUP_DISCOUNT_COUPON;
            $coupon_query = smn_db_query("select * from " . TABLE_COUPONS . " where coupon_code = '" . $coupon_code . "'");
            $coupon = smn_db_fetch_array($coupon_query);
            $coupon_id = $coupon['coupon_id'];
            $coupon_desc_query = smn_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $coupon_id . "' and language_id = '" . (int) $languages_id . "'");
            $coupon_desc = smn_db_fetch_array($coupon_desc_query);
            $insert_query = smn_db_query("insert into " . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $coupon_id . "', '0', 'Admin', '" . $email_address . "', now() )");
            $email_text .= EMAIL_COUPON_INCENTIVE_HEADER . "\n" . sprintf("%s", $coupon_desc['coupon_description']) . "\n\n" . sprintf(EMAIL_COUPON_REDEEM, $coupon['coupon_code']) . "\n\n" . "\n\n";
        }
        smn_mail($name, $email_address, EMAIL_SUBJECT, $email_text, $store->get_store_owner(), $store->get_store_owner_email_address());
        smn_redirect(smn_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'NONSSL'));
    }
}
$breadcrumb->add(NAVBAR_TITLE, smn_href_link(FILENAME_CREATE_ACCOUNT, '', 'NONSSL'));
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:30,代碼來源:create_account.php

示例15: smn_date_short

    echo $currencies->format($gv_list['coupon_amount']);
    ?>
</td>
                <td class="dataTableContent" align="center"><?php 
    echo $gv_list['coupon_code'];
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    echo smn_date_short($gv_list['date_sent']);
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    if (is_object($gInfo) && $gv_list['coupon_id'] == $gInfo->coupon_id) {
        echo smn_image(DIR_WS_IMAGES . 'icon_arrow_right.gif');
    } else {
        echo '<a href="' . smn_href_link(FILENAME_GV_SENT, 'page=' . $_GET['page'] . '&gid=' . $gv_list['coupon_id']) . '">' . smn_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
    }
    ?>
&nbsp;</td>
              </tr>
<?php 
}
?>
              <tr>
                <td colspan="5"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td class="smallText" valign="top"><?php 
echo $gv_split->display_count($gv_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_GIFT_VOUCHERS);
?>
</td>
                    <td class="smallText" align="right"><?php 
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:gv_sent.php


注:本文中的smn_href_link函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。