• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zen_href_link函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: update

 function update(&$class, $eventID, $paramsArray)
 {
     if (FEC_EASY_SIGNUP_STATUS == 'true') {
         // redirect to ESL
         zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
     }
 }
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:7,代码来源:class.esl.php


示例2: showBoxCategory

function showBoxCategory($cPath_array, $ii)
{
    global $db, $current_category_id, $category_depth;
    $content .= '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath_array[$ii]) . '"';
    if ($current_category_id == $cPath_array[$ii]) {
        $content .= ' class="red b" ';
    }
    $content .= '> &lt; ' . zen_get_category_name($cPath_array[$ii], $_SESSION['languages_id']) . '</a>';
    $ii++;
    if ($ii < sizeof($cPath_array)) {
        $content .= '<div class="pad_1em">';
        $content .= showBoxCategory($cPath_array, $ii);
        $content .= '</div>';
    } else {
        if (zen_has_category_subcategories($cPath_array[$ii])) {
            $content .= $cPath_array[$ii];
            $content .= '<ul class="pad_1em">';
            $subcategories_query = "select categories_id\n\t                            from " . TABLE_CATEGORIES . "\n\t                            where parent_id = '" . (int) $cPath_array[$ii - 1] . "' order by sort_order";
            $subcategoriesArray = $db->Execute($subcategories_query);
            while (!$subcategoriesArray->EOF) {
                $content .= '<li><a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $subcategoriesArray->fields['categories_id']) . '"';
                if ($category_depth == 'products' && $subcategoriesArray->fields['categories_id'] == $current_category_id) {
                    $content .= ' class="red b" ';
                }
                $content .= '>' . zen_get_category_name($subcategoriesArray->fields['categories_id'], $_SESSION['languages_id']) . '</a></li>';
                $subcategoriesArray->MoveNext();
            }
            $content .= '</ul>';
        } else {
            print_r('ERROR');
        }
    }
    return $content;
}
开发者ID:happyxlq,项目名称:lt_svn,代码行数:34,代码来源:tpl_categories.php


示例3: buildBranch

 function buildBranch($parent_id, $level = 0, $parent_link = '')
 {
     $result = $this->parent_group_start_string;
     if (isset($this->data[$parent_id])) {
         foreach ($this->data[$parent_id] as $category_id => $category) {
             $category_link = $parent_link . $category_id;
             $result .= $this->child_start_string;
             if (isset($this->data[$category_id])) {
                 $result .= $this->parent_start_string;
             }
             if ($level == 0) {
                 $result .= $this->root_start_string;
             }
             $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level) . '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';
             $result .= $category['name'];
             $result .= '</a>';
             if ($level == 0) {
                 $result .= $this->root_end_string;
             }
             if (isset($this->data[$category_id])) {
                 $result .= $this->parent_end_string;
             }
             //        $result .= $this->child_end_string;
             if (isset($this->data[$category_id]) && ($this->max_level == '0' || $this->max_level > $level + 1)) {
                 $result .= $this->buildBranch($category_id, $level + 1, $category_link . '_');
             }
             $result .= $this->child_end_string;
         }
     }
     $result .= $this->parent_group_end_string;
     return $result;
 }
开发者ID:zenmagick,项目名称:zencart,代码行数:32,代码来源:site_map.php


示例4: pre_confirmation_check

 public function pre_confirmation_check()
 {
     global $messageStack;
     include DIR_WS_CLASSES . 'cc_validation.php';
     $cc_validation = new cc_validation();
     $result = $cc_validation->validate($_POST['checkoutapipayment_cc_number'], $_POST['checkoutapipayment_cc_expires_month'], $_POST['checkoutapipayment_cc_expires_year']);
     $error = '';
     switch ($result) {
         case -1:
             $error = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, substr($cc_validation->cc_number, 0, 4));
             break;
         case -2:
         case -3:
         case -4:
             $error = TEXT_CCVAL_ERROR_INVALID_DATE;
             break;
         case false:
             $error = TEXT_CCVAL_ERROR_INVALID_NUMBER;
             break;
     }
     if ($result == false || $result < 1) {
         $messageStack->add_session('checkout_payment', $error . '<!-- [' . $this->code . '] -->', 'error');
         zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
     }
     $this->cc_card_type = $cc_validation->cc_type;
     $this->cc_card_number = $cc_validation->cc_number;
     $this->cc_expiry_month = $cc_validation->cc_expiry_month;
     $this->cc_expiry_year = $cc_validation->cc_expiry_year;
 }
开发者ID:avish-bisbeehurry-cko,项目名称:checkout-zencart-plugin,代码行数:29,代码来源:creditcardpci.php


示例5: update

 function update(&$class, $eventID, $paramsArray)
 {
     global $messageStack;
     if (FEC_ONE_PAGE != 'true') {
         zen_redirect(zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
     }
 }
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:7,代码来源:class.fec_confirmation.php


示例6: quote

 function quote($pShipHash = array())
 {
     global $order, $currencies;
     $this->quotes['id'] = $this->code;
     $this->quotes['module'] = tra('SuperSaver Shipping');
     $this->quotes['icon'] = $this->icon;
     $min = MODULE_SHIPPING_SUPERSAVER_MIN;
     $max = MODULE_SHIPPING_SUPERSAVER_MAX;
     if (!empty($min) && $order->subtotal < MODULE_SHIPPING_SUPERSAVER_MIN) {
         $this->quotes['error'] = tra('You must spend at least ' . $currencies->format(MODULE_SHIPPING_SUPERSAVER_MIN) . ' to get SuperSaver Shipping.') . ' <a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '">' . tra('Update Cart') . '</a>';
     } elseif (!empty($max) && $order->subtotal > MODULE_SHIPPING_SUPERSAVER_MAX) {
         // no quote for you!
         $this->quotes['error'] = tra('SuperSaver Shipping only applies to orders up to ' . $currencies->format(MODULE_SHIPPING_SUPERSAVER_MAX)) . ' <a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '">' . tra('Update Cart') . '</a>';
     } else {
         $this->quotes['note'] = tra(MODULE_SHIPPING_SUPERSAVER_DESC);
         if (SHIPPING_ORIGIN_COUNTRY == $order->delivery['country']['countries_id'] && MODULE_SHIPPING_SUPERSAVER_DOMESTIC == 'True') {
             $desc = tra(MODULE_SHIPPING_SUPERSAVER_DESC) . ' ' . tra(MODULE_SHIPPING_SUPERSAVER_DOMESTIC_DESC);
             $this->quotes['methods'] = array(array('id' => $this->code, 'title' => trim($desc), 'code' => 'supersaver', 'cost' => MODULE_SHIPPING_SUPERSAVER_DOMESTIC_COST + MODULE_SHIPPING_SUPERSAVER_HANDLING));
         } elseif (MODULE_SHIPPING_SUPERSAVER_INTL == 'True') {
             $desc = tra(MODULE_SHIPPING_SUPERSAVER_DESC) . ' ' . tra(MODULE_SHIPPING_SUPERSAVER_INTL_DESC);
             $this->quotes['methods'] = array(array('id' => $this->code, 'title' => trim($desc), 'code' => 'supersaverintl', 'cost' => MODULE_SHIPPING_SUPERSAVER_INTL_COST + MODULE_SHIPPING_SUPERSAVER_HANDLING));
         }
         if ($this->tax_class > 0) {
             $this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['countries_id'], $order->delivery['zone_id']);
         }
     }
     return $this->quotes;
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:28,代码来源:supersaver.php


示例7: execTweet

 function execTweet()
 {
     require_once DIR_FS_CATALOG . 'includes/addon_modules/' . FILENAME_ZEN_TWEET . '/classes/class.bitly.php';
     ########### つぶやきを作成
     for ($i = 0; $i < count($this->products); $i++) {
         //商品名取得
         $p_name = $this->products[$i]["name"];
         /*
          * セール品の場合、IDの後ろにハッシュキーが付与されている為、
          * IDだけを取る処理を追加
          */
         if (preg_match("/:/", $this->products[$i]["id"])) {
             $arr = explode(":", $this->products[$i]["id"]);
             $p_id = $arr[0];
         } else {
             $p_id = $this->products[$i]["id"];
         }
         /*========================================================================
                  * 追加処理 10/06/08
                  *
                  * 在庫数とおすすめ商品を取得
         		========================================================================*/
         $products_quantity = $this->queryGetQuantity($p_id);
         $featured = $this->queryGetFeatured($p_id);
         //おすすめ商品のつぶやきを有効にしている場合
         if (MODULE_ZEN_TWEET_THRESHOLD > 0 && MODULE_ZEN_TWEET_RECOMMEND == "true") {
             //在庫数がしきい値に達しおすすめ商品だったらつぶやきを作成する
             if (MODULE_ZEN_TWEET_THRESHOLD >= $products_quantity && $featured == 1) {
                 $url = zen_href_link(FILENAME_PRODUCT_INFO, "&products_id=" . $p_id, 'NONSSL');
                 //bit.ly呼び出し
                 //$bitly = new Bitly();
                 //$shortUrl = $bitly->shorten($url);
                 $words[] = $this->products[$i]["name"] . MODULE_ZEN_TWEET_WORD . "\n" . $url;
             }
             //おすすめ商品のつぶやきを無効にしている場合
         } elseif (MODULE_ZEN_TWEET_THRESHOLD > 0 && MODULE_ZEN_TWEET_RECOMMEND == "false") {
             //在庫数がしきい値に達したらつぶやきを作成する
             if (MODULE_ZEN_TWEET_THRESHOLD >= $products_quantity) {
                 $url = zen_href_link(FILENAME_PRODUCT_INFO, "&products_id=" . $p_id, 'NONSSL');
                 //bit.ly呼び出し
                 //$bitly = new Bitly();
                 //$shortUrl = $bitly->shorten($url);
                 $words[] = $this->products[$i]["name"] . MODULE_ZEN_TWEET_WORD . "\n" . $url;
             }
         }
     }
     ########### つぶやきを投稿
     for ($i = 0; $i < count($words); $i++) {
         $message = $words[$i];
         //文字コードを調べる
         $code = mb_detect_encoding($message);
         if ($code != "UTF-8") {
             //文字コードを変換
             $message = mb_convert_encoding($message, "UTF-8", $code);
         }
         $this->tweet_statuses_update(MODULE_ZEN_TWEET_ACCOUNT_ID, MODULE_ZEN_TWEET_ACCOUNT_PASS, $message);
     }
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:58,代码来源:class.zenTweet.php


示例8: zen_customer_greeting_for_smartphone

function zen_customer_greeting_for_smartphone()
{
    if (isset($_SESSION['customer_id']) && $_SESSION['customer_first_name']) {
        $greeting_string = sprintf(TEXT_GREETING_FOR_SMARTPHONE_PERSONAL, zen_href_link(FILENAME_ACCOUNT), zen_output_string_protected($_SESSION['customer_first_name']), zen_href_link(FILENAME_LOGOFF));
    } else {
        $greeting_string = sprintf(TEXT_GREETING_FOR_SMARTPHONE_GUEST, zen_href_link(FILENAME_LOGIN, '', 'SSL'), zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
    }
    return $greeting_string;
}
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:9,代码来源:functions.php


示例9: zen_quickupdates_table_head

function zen_quickupdates_table_head($sort_field, $head_text, $cols=1) {
  $str = '';
  $str .= '<td class="dataTableHeadingContent" align="center" valign="middle"' . ($cols > 1 ? ' colspan="' . $cols . '"' : '') . '>';
  if($sort_field != '') {
    $str .= '<a href="' . zen_href_link(FILENAME_QUICK_UPDATES, 'sort_by=' . trim($sort_field) . ' ASC') . '">' . zen_image(DIR_WS_IMAGES . 'icon_up.gif', TEXT_SORT_ALL . $head_text . ' ' . TEXT_ASCENDINGLY) . '</a>';
    $str .= '<a href="' . zen_href_link(FILENAME_QUICK_UPDATES, 'sort_by=' . trim($sort_field) . ' DESC') . '">' . zen_image(DIR_WS_IMAGES . 'icon_down.gif', TEXT_SORT_ALL . $head_text . ' ' . TEXT_DESCENDINGLY) . '</a><br />';
  }
  $str .= $head_text . '</td>';
  return $str;
}
开发者ID:quangn92,项目名称:visualyou,代码行数:10,代码来源:quick_updates.php


示例10: update

 function update(&$class, $eventID, $paramsArray)
 {
     global $messageStack;
     if (isset($_SESSION['COWOA']) && $_SESSION['COWOA'] == true) {
         $messageStack->add_session('header', 'Only registered customers can access account features.  You are currently using our guest checkout option.  Please logout and sign-in with your registered account to access all account features.', 'caution');
         zen_redirect(zen_back_link(true));
     } elseif (!isset($_SESSION['customer_id'])) {
         $_SESSION['redirect_url'] = zen_href_link($_GET['main_page'], zen_get_all_get_params(array('main_page')), 'SSL');
     }
 }
开发者ID:krakatoa14,项目名称:fec,代码行数:10,代码来源:class.no_account.php


示例11: balance_section

 public static function balance_section()
 {
     global $gv_current_balance, $gv_result;
     $heading = "<h3>" . TEXT_AVAILABLE_BALANCE . "</h3>";
     $balance = "<p>" . TEXT_BALANCE_IS . "{$gv_current_balance}</p>";
     if ($gv_result->fields['amount'] > 0 && $_GET['action'] == 'doneprocess') {
         $send_link = zen_href_link(FILENAME_GV_SEND, '', 'SSL', false);
         $continue_link = zen_href_link(FILENAME_DEFAULT, '', 'SSL', false);
         $send_another = "<p>" . TEXT_SEND_ANOTHER . "</p>" . "<div class='clearfix'>" . "<a href='{$continue_link}' class='btn btn-default pull-right'>" . BUTTON_CONTINUE_ALT . "</a>" . "<a href='{$send_link}' class='btn btn-primary pull-left'>" . BUTTON_SEND_ANOTHER_ALT . "</a>" . "</div>";
     }
     return "<div>{$heading}{$balance}{$send_another}</div>";
 }
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:12,代码来源:tpl_gv_send_default.php


示例12: href_link

 function href_link($sub = "", $params = array())
 {
     if ($sub != "") {
         $sub = "/" . $sub;
     }
     $parm = "";
     foreach ($params as $k => $v) {
         if ($v != "") {
             $parm .= "&" . $k . "=" . urlencode($v);
         }
     }
     return zen_href_link(FILENAME_ADDON_MODULES_ADMIN, 'module=easy_admin_products' . $sub . $parm, 'SSL');
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:13,代码来源:easy_admin_products_html.php


示例13: output_categories

function output_categories($class, $categories)
{
    for ($i = 0; $i < count($categories); $i++) {
        echo '<li class="' . $class . '">' . "\n";
        echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '&cPath=' . $categories[$i]['path'] . '">' . $categories[$i]['name'] . '</a>' . "\n";
        if (count($categories[$i]['child']) > 0) {
            echo '<ul class="subs">' . "\n";
            output_categories("subs", $categories[$i]['child']);
            echo '</ul>' . "\n";
        }
        echo '</li>' . "\n";
    }
}
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:13,代码来源:block.php


示例14: confirmation

 function confirmation()
 {
     global $order;
     $confirmation = parent::confirmation();
     $this->fastCheckout->setFastCheckoutFlag($this->fastCheckoutFlag);
     $payment = $this->getPayment($_SESSION['customer_id']);
     $script = '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>' . '<script type="text/javascript">' . 'var elvlogging = "' . MODULE_PAYMENT_PAYMILL_ELV_LOGGING . '";' . 'var elv_account_number_invalid = "' . utf8_encode(html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT_INVALID)) . '";' . 'var elv_bank_code_invalid = "' . utf8_encode(html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_BANKCODE_INVALID)) . '";' . 'var elv_bank_owner_invalid = "' . utf8_encode(html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT_HOLDER_INVALID)) . '";' . 'var elv_iban_invalid = "' . utf8_encode(html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_IBAN_INVALID)) . '";' . 'var elv_bic_invalid = "' . utf8_encode(html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_BIC_INVALID)) . '";' . 'var paymill_account_name = ' . json_encode($order->billing['firstname'] . ' ' . $order->billing['lastname']) . ';' . 'var paymill_elv_code = "' . $payment['code'] . '";' . 'var paymill_elv_holder = "' . utf8_decode($payment['holder']) . '";' . 'var paymill_elv_iban = "' . utf8_decode($payment['iban']) . '";' . 'var paymill_elv_bic = "' . utf8_decode($payment['bic']) . '";' . 'var paymill_elv_account = "' . $payment['account'] . '";' . 'var paymill_elv_fastcheckout = ' . ($this->fastCheckout->canCustomerFastCheckoutElv($_SESSION['customer_id']) ? 'true' : 'false') . ';' . 'var checkout_payment_link = "' . zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'step=step2', 'SSL', true, false) . '&payment_error=' . $this->code . '&error=' . '";' . '</script>' . '<script type="text/javascript" src="ext/modules/payment/paymill/public/javascript/Iban.js"></script>' . '<script type="text/javascript" src="ext/modules/payment/paymill/public/javascript/Sepa.js"></script>' . '<script type="text/javascript" src="ext/modules/payment/paymill/public/javascript/elv.js"></script>';
     $script .= $this->getJavascript();
     array_push($confirmation['fields'], array('title' => $script . '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT_HOLDER . '</div>', 'field' => '<span id="account-name-field"></span><span id="elv-holder-error" class="paymill-error"></span>'));
     array_push($confirmation['fields'], array('title' => '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_IBAN . ' / ' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT . '</div>', 'field' => '<span id="iban-field"></span><span id="elv-iban-error" class="paymill-error"></span>'));
     array_push($confirmation['fields'], array('title' => '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_BIC . ' / ' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_BANKCODE . '</div>', 'field' => '<span id="bic-field"></span><span id="elv-bic-error" class="paymill-error"></span>'));
     array_push($confirmation['fields'], array('field' => '<form id="paymill_form" action="' . zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL') . '" method="post" style="display: none;"></form>'));
     return $confirmation;
 }
开发者ID:SiWe0401,项目名称:paymill-zencart,代码行数:14,代码来源:paymillElv.php


示例15: confirm

 function confirm()
 {
     global $_GET, $_POST, $db;
     if ($_POST['audience_selected']) {
         $this->query_name = $_POST['audience_selected'];
         if (is_array($_POST['audience_selected'])) {
             $this->query_name = $_POST['audience_selected']['text'];
         }
     }
     $query_array = get_audience_sql_query($this->query_name, 'newsletters');
     $mail = $db->Execute($query_array['query_string']);
     $confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, $mail->RecordCount()) . '</b></font></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . zen_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>' . zen_draw_separator('pixel_trans.gif', '1', '10') . '<hr /></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . nl2br($this->content_html) . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td><hr>' . zen_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td class="main"><tt>' . nl2br($this->content) . '</tt><hr /></td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '    <td>' . zen_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . '  </tr>' . "\n" . '  <tr>' . "\n" . '<form name="ready_to_send" action="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '" method="post" >' . '    <td align="right"> ' . zen_draw_hidden_field('audience_selected', $this->query_name) . zen_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL) . '<a href="' . zen_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . "\n" . '</form>' . '  </tr>' . "\n" . '</table>';
     return $confirm_string;
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:14,代码来源:newsletter.php


示例16: reloaded_related_remove

/**
 * Uninstall configuration into database
 * @param none
 */
function reloaded_related_remove()
{
    global $db, $reloadedStack;
    //Auto install check
    $reloadedRelatedCheck = $db->Execute("SHOW COLUMNS FROM " . TABLE_PRODUCTS . " LIKE 'products_family'");
    if ($reloadedRelatedCheck->RecordCount() > 0) {
        $db->Execute("ALTER TABLE " . TABLE_PRODUCTS . " DROP products_family");
    }
    //Get configuration keys for mod
    $keys = reloaded_related_keys();
    $db->Execute("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key IN ('" . implode("', '", $keys) . "')");
    unset($keys);
    $reloadedStack->add_session('Related Products successfully removed', 'success');
    zen_redirect(zen_href_link('index.php'));
}
开发者ID:quangn92,项目名称:visualyou,代码行数:19,代码来源:reloaded_related_products_functions.php


示例17: before_process

 /**
  *
  */
 public function before_process()
 {
     global $messageStack;
     $sagepay_return_data = SagepayUtil::decodeAndDecrypt($_GET['crypt'], MODULE_PAYMENT_SAGEPAY_ZC_FORM_PASSWORD);
     $this->errorLog(array(array('title' => 'Response Data', 'content' => $sagepay_return_data)));
     $this->sagepayResponse = SagepayUtil::getResponseTokens($sagepay_return_data);
     $status = $this->sagepayResponse['Status'];
     if (in_array($status, array('OK', 'REGISTERED', 'AUTHENTICATED'))) {
         return;
     }
     $error_message = $this->getResponseErrorMessage($this->sagepayResponse['Status']);
     $payment_error_return = 'ERROR ' . sprintf($error_message, $this->sagepayResponse['StatusDetail']);
     $this->errorLog(array(array('title' => 'Response Values', 'content' => implode("\n", $this->sagepayResponse))));
     $messageStack->add_session('checkout_payment', $payment_error_return, 'error');
     zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true, false));
 }
开发者ID:zencart,项目名称:sagepay,代码行数:19,代码来源:sagepay_zc_form.php


示例18: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     global $PHP_SELF;
     $current_page_number = (int) $current_page_number;
     if (zen_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 = zen_draw_form('pages', basename($PHP_SELF), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . zen_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, zen_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="' . zen_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 .= zen_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         if (SID) {
             $display_links .= zen_draw_hidden_field(zen_session_name(), zen_session_id());
         }
         $display_links .= '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
开发者ID:happyxlq,项目名称:lt_svn,代码行数:45,代码来源:split_page_results.php


示例19: getHtmlCategoryTree

function getHtmlCategoryTree($array = array(), $top = true)
{
    $buff = "";
    if ($top) {
        $buff .= '<div class="ui-dynatree-container">' . "\n";
    }
    if (is_array($array)) {
        foreach ($array as $c) {
            $buff .= '<div>' . "\n";
            if (count($c['child'])) {
                $buff .= '  <span class="ui-dynatree-folder ui-dynatree-expanded ui-dynatree-exp-e ui-dynatree-ico-ef" id="sui-dynatree-id-' . $c['categoryid'] . '">' . "\n";
            } else {
                $buff .= '  <span class="ui-dynatree-folder ui-dynatree-exp-c ui-dynatree-ico-cf" id="sui-dynatree-id-' . $c['categoryid'] . '">' . "\n";
            }
            $buff .= '    <span class="ui-dynatree-empty"></span>' . "\n";
            if ($top && count($c['child'])) {
                $buff .= '    <span class="ui-dynatree-expander-top"></span>' . "\n";
            } else {
                if ($top) {
                    $buff .= '    <span class="ui-dynatree-connector-top"></span>' . "\n";
                } else {
                    if (count($c['child'])) {
                        $buff .= '    <span class="ui-dynatree-vline"></span>' . "\n";
                        $buff .= '    <span class="ui-dynatree-expander"></span>' . "\n";
                    } else {
                        $buff .= '    <span class="ui-dynatree-vline"></span>' . "\n";
                        $buff .= '    <span class="ui-dynatree-connector"></span>' . "\n";
                    }
                }
            }
            $buff .= '    <span class="ui-dynatree-icon"></span>' . "\n";
            $buff .= '    <a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $c['url']) . '" class="ui-dynatree-title">' . $c['title'] . '</a>' . "\n";
            $buff .= '  </span>' . "\n";
            if (count($c['child'])) {
                $buff .= getHtmlCategoryTree($c['child'], false);
            }
            $buff .= '</div>' . "\n";
        }
    }
    if ($top) {
        $buff .= '</div>' . "\n";
    }
    return $buff;
}
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:44,代码来源:functions.php


示例20: __construct

 public function __construct()
 {
     parent::__construct();
     $this->code = 'payflowpro';
     if (!empty($_GET['main_page'])) {
         $this->title = tra('Credit Card');
         // Payment module title in Catalog
     } else {
         $this->title = tra('PayPal PayFlow Pro');
         // Payment module title in Admin
     }
     $this->description = tra('Credit Card Test Info:<br /><br />CC#: 4111111111111111 or<br />5105105105105100<br />Expiry: Any');
     $this->sort_order = defined('MODULE_PAYMENT_PAYFLOWPRO_SORT_ORDER') ? MODULE_PAYMENT_PAYFLOWPRO_SORT_ORDER : 0;
     $this->enabled = defined('MODULE_PAYMENT_PAYFLOWPRO_STATUS') && MODULE_PAYMENT_PAYFLOWPRO_STATUS == 'True' ? true : false;
     if (defined('MODULE_PAYMENT_PAYFLOWPRO_ORDER_STATUS_ID') && (int) MODULE_PAYMENT_PAYFLOWPRO_ORDER_STATUS_ID > 0) {
         $this->order_status = MODULE_PAYMENT_PAYFLOWPRO_ORDER_STATUS_ID;
     }
     $this->form_action_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false);
     // Page to go to upon submitting page info
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:20,代码来源:payflowpro.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zen_href_link_admin函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_hide_session_id函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap