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


PHP xtc_draw_input_field函数代码示例

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


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

示例1: displaySettings

 function displaySettings()
 {
     $contents = xtc_draw_form('modules', 'easymarketing.php', 'content=save', 'post');
     $module_keys = $this->keys();
     $keys_extra = array();
     for ($j = 0, $k = sizeof($module_keys); $j < $k; $j++) {
         $key_value_query = xtc_db_query("SELECT configuration_key,\n                                              configuration_value,\n                                              use_function,\n                                              set_function\n                                         FROM " . TABLE_CONFIGURATION . "\n                                        WHERE configuration_key = '" . $module_keys[$j] . "'");
         $key_value = xtc_db_fetch_array($key_value_query);
         if ($key_value['configuration_key'] != '') {
             $keys_extra[$module_keys[$j]]['title'] = constant(strtoupper($key_value['configuration_key'] . '_TITLE'));
         }
         $keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value'];
         if ($key_value['configuration_key'] != '') {
             $keys_extra[$module_keys[$j]]['description'] = constant(strtoupper($key_value['configuration_key'] . '_DESC'));
         }
         $keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function'];
         $keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function'];
     }
     $module_info['keys'] = $keys_extra;
     while (list($key, $value) = each($module_info['keys'])) {
         $contents .= '<b>' . $value['title'] . '</b><br />' . $value['description'] . '<br />';
         if ($value['set_function']) {
             eval('$contents .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
         } else {
             $contents .= xtc_draw_input_field('configuration[' . $key . ']', $value['value']);
         }
         $contents .= '<br/><br/>';
     }
     $contents .= '<br/>' . xtc_button(BUTTON_SAVE);
     $contents .= '<hr />' . xtc_button_link(MODULE_EM_UNINSTALL_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=check_uninstall'));
     return $contents;
 }
开发者ID:digitaldevelopers,项目名称:gambio,代码行数:32,代码来源:Easymarketing.inc.php

示例2: selection

 function selection()
 {
     global $order;
     if (!parent::selection()) {
         $this->enabled = false;
         return false;
     }
     if (!isset($_SESSION['sofort']['sofort_sofortboxjs'])) {
         $title = MODULE_PAYMENT_SOFORT_MULTIPAY_JS_LIBS;
         $_SESSION['sofort']['sofort_sofortboxjs'] = true;
     } else {
         $title = '';
     }
     switch (MODULE_PAYMENT_SOFORT_MULTIPAY_IMAGE) {
         case 'Logo & Text':
             $title .= $this->setImageText(MODULE_PAYMENT_SOFORT_LS_LOGO, MODULE_PAYMENT_SOFORT_LS_CHECKOUT_TEXT);
             break;
         case 'Infographic':
             $title .= $this->setImageText(MODULE_PAYMENT_SOFORT_LS_BANNER, '');
             break;
     }
     $cost = '';
     if (array_key_exists('ot_sofort', $GLOBALS)) {
         $cost = $GLOBALS['ot_sofort']->get_percent($this->code, 'price');
     }
     $conditionsChecked = false;
     if (isset($_SESSION['sofort']['sofort_conditions_ls']) && $_SESSION['sofort']['sofort_conditions_ls'] == 'sofort_conditions_ls') {
         $conditionsChecked = true;
     }
     $fields = array(array('title' => MODULE_PAYMENT_SOFORT_LS_TEXT_HOLDER, 'field' => xtc_draw_input_field('ls_sender_holder', array_key_exists('ls_sender_holder', $_SESSION['sofort']) ? strip_tags($_SESSION['sofort']['ls_sender_holder']) : strip_tags($order->billing['firstname'] . ' ' . $order->billing['lastname']))), array('title' => MODULE_PAYMENT_SOFORT_LS_TEXT_ACCOUNT_NUMBER, 'field' => xtc_draw_input_field('ls_account_number', array_key_exists('ls_account_number', $_SESSION['sofort']) ? strip_tags($_SESSION['sofort']['ls_account_number']) : '')), array('title' => MODULE_PAYMENT_SOFORT_LS_TEXT_BANK_CODE, 'field' => xtc_draw_input_field('ls_bank_code', array_key_exists('ls_bank_code', $_SESSION['sofort']) ? strip_tags($_SESSION['sofort']['ls_bank_code']) : '')), array('title' => MODULE_PAYMENT_SOFORT_LS_CHECKOUT_CONDITIONS, 'field' => xtc_draw_checkbox_field('sofort_conditions_ls', 'sofort_conditions_ls', $conditionsChecked)));
     //commerce:SEO - Bugfix
     if (isset($_REQUEST['xajax']) && !empty($_REQUEST['xajax'])) {
         $fields[0]['title'] = utf8_decode($fields[0]['title']);
         //holder
         $fields[1]['title'] = utf8_decode($fields[1]['title']);
         //account-nr
         $fields[2]['title'] = utf8_decode($fields[2]['title']);
         //bankcode
         $fields[3]['title'] = utf8_decode($fields[3]['title']);
         //conditions
         return array('id' => $this->code, 'module' => utf8_decode($this->title_extern), 'fields' => $fields, 'description' => utf8_decode($title), 'module_cost' => utf8_decode($cost));
     } else {
         return array('id' => $this->code, 'module' => $this->title_extern, 'fields' => $fields, 'description' => $title, 'module_cost' => $cost);
     }
 }
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:45,代码来源:sofort_lastschrift.php

示例3: xtc_draw_input_field

    </td>
    <td class="dataTableContent" align="left">
    <?php 
    echo xtc_draw_input_field('billing_postcode', $order->billing['postcode']);
    ?>
    </td> 
</tr>
<tr class="dataTableRow">
    <td class="dataTableContent" align="left">
    <?php 
    echo TEXT_CITY;
    ?>
    </td>
    <td class="dataTableContent" align="left">
    <?php 
    echo xtc_draw_input_field('billing_city', $order->billing['city']);
    ?>
    </td>  
</tr>
<tr class="dataTableRow">
    <td class="dataTableContent" align="left">
    <?php 
    echo TEXT_COUNTRY;
    ?>
    </td>
    <td class="dataTableContent" align="left">
    <?php 
    echo xtc_draw_pull_down_menu('billing_country_id', xtc_get_countries('', 1), $billing_countries_id);
    ?>
    </td>
</tr>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:orders_edit_address.php

示例4: Project

   -----------------------------------------------------------------------------------------
   based on: 
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com 
   (c) 2003 nextcommerce (loginbox.php,v 1.10 2003/08/17); www.nextcommerce.org
   (c) 2006 XT-Commerce

   Released under the GNU General Public License 
   -----------------------------------------------------------------------------------------
   Third Party contributions:
   Loginbox V1.0          Aubrey Kilian <aubrey@mycon.co.za>

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
if (!isset($_SESSION['customer_id'])) {
    require_once DIR_FS_INC . 'xtc_image_submit.inc.php';
    require_once DIR_FS_INC . 'xtc_draw_password_field.inc.php';
    $box_smarty = new smarty();
    $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
    $box_smarty->assign('FORM_ACTION', '<form id="loginbox" method="post" action="' . xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . '">');
    $box_smarty->assign('FIELD_EMAIL', xtc_draw_input_field('email_address', '', 'maxlength="50" style="width: 100%!important;""'));
    $box_smarty->assign('FIELD_PWD', xtc_draw_password_field('password', '', 'maxlength="30" style="width: 100%!important;""'));
    $box_smarty->assign('BUTTON', xtc_image_submit('button_login_small.gif', IMAGE_BUTTON_LOGIN));
    $box_smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL'));
    $box_smarty->assign('FORM_END', '</form>');
    $box_smarty->assign('BOX_CONTENT', '');
    $box_smarty->caching = 0;
    $box_smarty->assign('language', $_SESSION['language']);
    $box_loginbox = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_login.html');
    $smarty->assign('box_LOGIN', $box_loginbox);
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:loginbox.php

示例5: xtc_create_random_value

        $newpass = xtc_create_random_value(ENTRY_PASSWORD_MIN_LENGTH);
        $crypted_password = xtc_encrypt_password($newpass);
        xtc_db_query("update " . TABLE_AFFILIATE . " set affiliate_password = '" . $crypted_password . "' where affiliate_id = '" . $check_affiliate['affiliate_id'] . "'");
        xtc_php_mail(AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, $_POST['email_address'], $check_affiliate['affiliate_firstname'] . " " . $check_affiliate['affiliate_lastname'], '', AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, '', '', EMAIL_PASSWORD_REMINDER_SUBJECT, nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $newpass)), nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $newpass)));
        if (!isset($mail_error)) {
            xtc_redirect(xtc_href_link(FILENAME_AFFILIATE, 'info_message=' . urlencode(TEXT_PASSWORD_SENT), 'SSL', true, false));
        } else {
            echo $mail_error;
        }
    } else {
        xtc_redirect(xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, 'email=nonexistent', 'SSL'));
    }
} else {
    $breadcrumb->add(NAVBAR_TITLE, xtc_href_link(FILENAME_AFFILIATE, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_PASSWORD_FORGOTTEN, xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, '', 'SSL'));
    require DIR_WS_INCLUDES . 'header.php';
    $smarty->assign('FORM_ACTION', xtc_draw_form('password_forgotten', xtc_href_link(FILENAME_AFFILIATE_PASSWORD_FORGOTTEN, 'action=process', 'SSL')));
    $smarty->assign('INPUT_EMAIL', xtc_draw_input_field('email_address', '', 'maxlength="96"'));
    $smarty->assign('LINK_AFFILIATE', '<a href="' . xtc_href_link(FILENAME_AFFILIATE, '', 'SSL') . '">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>');
    $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
    if (isset($_GET['email']) && $_GET['email'] == 'nonexistent') {
        $smarty->assign('email_nonexistent', 'true');
    }
}
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/affiliate_password_forgotten.html');
$smarty->assign('main_content', $main_content);
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$smarty->display(CURRENT_TEMPLATE . '/index.html');
开发者ID:BackupTheBerlios,项目名称:xtc-affiliate,代码行数:31,代码来源:affiliate_password_forgotten.php

示例6: xtc_draw_form

    // EOF - Tomcraft - 2009-11-05 - Advanced contact form (product question)
    $smarty->assign('CONTACT_CONTENT', $contact_content);
    //BOF - Dokuman - 2009-12-23 - send contact form information with SSL
    //$smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID='.(int) $_GET['coID'])));
    $smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID=' . (int) $_GET['coID'], 'SSL')));
    //EOF - Dokuman - 2009-12-23 - send contact form information with SSL
    $smarty->assign('INPUT_NAME', xtc_draw_input_field('name', $error ? $_POST['name'] : $customers_name, 'size="30"'));
    $smarty->assign('INPUT_EMAIL', xtc_draw_input_field('email', $error ? $_POST['email'] : $email_address, 'size="30"'));
    $smarty->assign('INPUT_HONEYPOT', xtc_draw_input_field('email2_FT7ughj521dfdf', $error ? $_POST['email2_FT7ughj521dfdf'] : '', 'size="30"'));
    // BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
    $smarty->assign('INPUT_PHONE', xtc_draw_input_field('phone', $error ? $_POST['phone'] : $phone, 'size="30"'));
    $smarty->assign('INPUT_COMPANY', xtc_draw_input_field('company', $error ? $_POST['company'] : $company, 'size="30"'));
    $smarty->assign('INPUT_STREET', xtc_draw_input_field('street', $error ? $_POST['street'] : $street, 'size="30"'));
    $smarty->assign('INPUT_POSTCODE', xtc_draw_input_field('postcode', $error ? $_POST['postcode'] : $postcode, 'size="30"'));
    $smarty->assign('INPUT_CITY', xtc_draw_input_field('city', $error ? $_POST['city'] : $city, 'size="30"'));
    $smarty->assign('INPUT_FAX', xtc_draw_input_field('fax', $error ? $_POST['fax'] : $fax, 'size="30"'));
    if (CONTACT_FORM_CONSENT == 'true') {
        $smarty->assign('CHECKBOX', xtc_draw_checkbox_field('checkbox'));
    }
    // EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
    // BOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form
    //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? xtc_db_input($_POST['message_body']) : $first_name)));
    // BOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux.
    //$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? $_POST['message_body'] : $message_body)));
    $smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 45, 15, $error ? $_POST['message_body'] : $message_body));
    // EOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux.
    // EOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form
    $smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_send.gif', IMAGE_BUTTON_SEND));
    $smarty->assign('FORM_END', '</form>');
}
$smarty->assign('language', $_SESSION['language']);
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:contact_us.php

示例7: Copyright

   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on: 
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com 

   Released under the GNU General Public License 
   -----------------------------------------------------------------------------------------
   Third Party contribution:
   Add A Quickie v1.0 Autor  Harald Ponce de Leon
    
   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
// reset var
$box_smarty = new smarty();
$box_content = '';
$box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
// BOF - GTB - 2010-09-20 - correct the Formular in dependences of the request type SSL / NONSSL
$box_smarty->assign('FORM_ACTION', '<form id="quick_add" method="post" action="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=add_a_quickie', $request_type) . '">');
//$box_smarty->assign('FORM_ACTION','<form id="quick_add" method="post" action="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array ('action')) . 'action=add_a_quickie', 'NONSSL') . '">');
// EOF - GTB - 2010-09-20 - correct the Formular in dependences of the request type SSL / NONSSL
$box_smarty->assign('INPUT_FIELD', xtc_draw_input_field('quickie', '', 'style="width:170px"'));
$box_smarty->assign('SUBMIT_BUTTON', xtc_image_submit('button_add_quick.gif', BOX_HEADING_ADD_PRODUCT_ID));
$box_smarty->assign('FORM_END', '</form>');
$box_smarty->assign('BOX_CONTENT', $box_content);
$box_smarty->assign('language', $_SESSION['language']);
$box_smarty->caching = 0;
$box_add_a_quickie = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_add_a_quickie.html');
$smarty->assign('box_ADD_QUICKIE', $box_add_a_quickie);
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:add_a_quickie.php

示例8: showSpecialsBox


//.........这里部分代码省略.........
            <?php 
    if (!isset($_GET['pID'])) {
        ?>
            <div class="col-xs-12 col-sm-9 col-md-5 col-lg-5">
              <div class="main col-xs-12 col-sm-4"><?php 
        echo TEXT_SPECIALS_NO_PID;
        ?>
</div>             
            </div>
            <div class='clearfix' ></div>
            <?php 
    } else {
        ?>
            <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5 ">
              <div class="main col-xs-12 col-sm-4"><?php 
        echo TEXT_PRODUCTS_PRICE;
        ?>
</div>
              <div class="main col-xs-12 col-sm-4"><?php 
        echo $products_price_sp;
        echo $products_price_netto_sp;
        ?>
</div>
            </div>   
            <div class='clearfix' ></div>
            <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5">
              <div class="main col-xs-12 col-sm-4" >
                <?php 
        echo TEXT_SPECIALS_SPECIAL_PRICE;
        ?>
              </div>
              <div class="main col-xs-12 col-sm-4" >
                <?php 
        echo xtc_draw_input_field('specials_price', $new_price, 'style="width: 135px"') . '&nbsp;&nbsp;&nbsp;' . $new_price_netto;
        ?>
              </div>
              <div class="main col-xs-12 col-sm-4" >
                <?php 
        if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) {
            ?>
                <input type="checkbox" name="specials_delete" value="true" id="input_specials_delete"  onclick="if(this.checked==true)return confirm('<?php 
            echo TEXT_INFO_DELETE_INTRO;
            ?>
');"style="vertical-align:middle;"/><label for="input_specials_delete">&nbsp;<?php 
            echo TEXT_INFO_HEADING_DELETE_SPECIALS;
            ?>
</label>
                <?php 
        }
        ?>
              </div>
            </div>
            <div class='clearfix' ></div>
            <div class="col-xs-12 col-xs-12 col-sm-9 col-md-5 col-lg-5">
              <div class="main col-xs-12 col-sm-4">
                <?php 
        echo TEXT_SPECIALS_SPECIAL_QUANTITY;
        ?>
&nbsp;
              </div>
              <div class="main col-xs-12 col-sm-4">
                <?php 
        echo xtc_draw_input_field('specials_quantity', $sInfo->specials_quantity, 'style="width: 135px"');
        ?>
              </div>
            </div>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:67,代码来源:categories_specials.php

示例9: Copyright

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
//header( 'HTTP/1.0 404 Not Found' );
//header( 'Status: 404 Not Found' );
$module_smarty = new Smarty();
$module_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$module_smarty->assign('language', $_SESSION['language']);
$module_smarty->assign('ERROR', $error);
$module_smarty->assign('BUTTON', '<a href="javascript:history.back(1)">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>');
// Tomcraft - 2010-05-04 - Changed alternative text for the button
$module_smarty->assign('language', $_SESSION['language']);
// search field
$module_smarty->assign('FORM_ACTION', xtc_draw_form('new_find', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . xtc_hide_session_id());
//WEB28 change NONSSL to $request_type
$module_smarty->assign('INPUT_SEARCH', xtc_draw_input_field('keywords', '', 'size="30" maxlength="30"'));
$module_smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_quick_find.gif', IMAGE_BUTTON_SEARCH));
$module_smarty->assign('LINK_ADVANCED', xtc_href_link(FILENAME_ADVANCED_SEARCH));
$module_smarty->assign('FORM_END', '</form>');
$module_smarty->caching = 0;
$module_smarty->caching = 0;
$module = $module_smarty->fetch(CURRENT_TEMPLATE . '/module/error_message.html');
if (strstr($PHP_SELF, FILENAME_PRODUCT_INFO)) {
    $product_info = $module;
}
$smarty->assign('main_content', $module);
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:30,代码来源:error_handler.php

示例10: xtc_image

         $cross_sell_inputs_string .= '<br />' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image']) . '&nbsp;' . xtc_draw_input_field('cross_sell_group_name[' . $languages[$i]['id'] . ']', $c_name);
     }
     if (isset($_SESSION['repopulate_form'])) {
         unset($_SESSION['repopulate_form']);
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_XSELL_GROUP_NAME . $cross_sell_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_INSERT . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_XSELL_GROUPS, 'page=' . $_GET['page']) . '">' . BUTTON_CANCEL . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_XSELL_GROUP . '</b>');
     $contents = array('form' => xtc_draw_form('status', FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $cross_sell_inputs_string = '';
     $languages = xtc_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $cross_sell_inputs_string .= '<br />' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image']) . '&nbsp;' . xtc_draw_input_field('cross_sell_group_name[' . $languages[$i]['id'] . ']', xtc_get_cross_sell_name($oInfo->products_xsell_grp_name_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_XSELL_GROUP_NAME . $cross_sell_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id) . '">' . BUTTON_CANCEL . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_XSELL_GROUP . '</b>');
     $contents = array('form' => xtc_draw_form('status', FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $oInfo->orders_status_name . '</b>');
     if ($remove_status) {
         $contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_DELETE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_XSELL_GROUPS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_xsell_grp_name_id) . '">' . BUTTON_CANCEL . '</a>');
     }
     break;
 default:
     if (is_object($oInfo)) {
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:cross_sell_groups.php

示例11: xtc_db_query

     xtc_db_query("-- product_info.php\n        UPDATE " . TABLE_PRODUCTS_DESCRIPTION . "\n           SET products_viewed = products_viewed+1\n         WHERE products_id = '" . $product->data['products_id'] . "'\n           AND language_id = " . $_SESSION['languages_id']);
 }
 // Get manufacturer name etc. for the product page
 $manufacturer_query = xtc_db_query("SELECT m.manufacturers_id,\n                                             m.manufacturers_name,\n                                             m.manufacturers_image,\n                                             mi.manufacturers_url\n                                        FROM " . TABLE_MANUFACTURERS . " m\n                                   LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi\n                                          ON (m.manufacturers_id = mi.manufacturers_id\n                                         AND mi.languages_id = '" . (int) $_SESSION['languages_id'] . "'),\n                                             " . TABLE_PRODUCTS . " p\n                                       WHERE p.products_id = '" . $product->data['products_id'] . "'\n                                         AND p.manufacturers_id = m.manufacturers_id");
 if (xtc_db_num_rows($manufacturer_query)) {
     $manufacturer = xtc_db_fetch_array($manufacturer_query);
     $info_smarty->assign('MANUFACTURER_IMAGE', !empty($manufacturer['manufacturers_image']) ? DIR_WS_IMAGES . $manufacturer['manufacturers_image'] : '');
     $info_smarty->assign('MANUFACTURER', $manufacturer['manufacturers_name']);
     $info_smarty->assign('MANUFACTURER_LINK', xtc_href_link(FILENAME_DEFAULT, xtc_manufacturer_link($manufacturer['manufacturers_id'], $manufacturer['manufacturers_name'])));
 }
 // build products price
 $products_price = $xtPrice->xtcGetPrice($product->data['products_id'], $format = true, 1, $product->data['products_tax_class_id'], $product->data['products_price'], 1);
 // check if customer is allowed to add to cart
 if ($_SESSION['customers_status']['customers_status_show_price'] != '0' && ($_SESSION['customers_status']['customers_fsk18'] == '1' && $product->data['products_fsk18'] == '0' || $_SESSION['customers_status']['customers_fsk18'] != '1')) {
     $add_pid_to_qty = xtc_draw_hidden_field('products_id', $product->data['products_id']);
     $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', $hide_qty ? '' : 'size="3"', $hide_qty ? 'hidden' : 'text') . ' ' . $add_pid_to_qty);
     $info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART));
 }
 // show expiry date of active special products
 $special_expires_date_query = "SELECT expires_date\n                                   FROM " . TABLE_SPECIALS . "\n                                  WHERE products_id = '" . $product->data['products_id'] . "'\n                                    AND status = '1'";
 $special_expires_date_query = xtDBquery($special_expires_date_query);
 $sDate = xtc_db_fetch_array($special_expires_date_query, true);
 $info_smarty->assign('PRODUCTS_EXPIRES', $sDate['expires_date'] != '0000-00-00 00:00:00' ? xtc_date_short($sDate['expires_date']) : '');
 // FSK18
 $info_smarty->assign('PRODUCTS_FSK18', $product->data['products_fsk18'] == '1' ? 'true' : '');
 //get shippingstatus image and name
 if (ACTIVATE_SHIPPING_STATUS == 'true') {
     $info_smarty->assign('SHIPPING_NAME', $main->getShippingStatusName($product->data['products_shippingtime']));
     $info_smarty->assign('SHIPPING_IMAGE', $main->getShippingStatusImage($product->data['products_shippingtime']));
     // BOF - Tutorial: Umsetzung der EU-Verbraucherrichtlinie vom 13.06.2014
     $info_smarty->assign('SHIPPING_NAME_LINK', $main->getShippingStatusName($product->data['products_shippingtime'], true));
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:product_info.php

示例12: xtc_href_link

        <a href="<?php 
    echo xtc_href_link(FILENAME_CUSTOMERS, 'cID=' . $_GET['cID'] . '&action=edit&special=remove_memo&mID=' . $memo_values['memo_id']);
    ?>
" class="btn btn-default" onclick="return confirm('<?php 
    echo DELETE_ENTRY;
    ?>
')"><?php 
    echo BUTTON_DELETE;
    //DokuMan - 2011-07-18 - fixed delete memo button
    ?>
</a>
      </div>
    </div>
<?php 
}
?>
<div class="col-xs-10">
  <div class="main col-xs-12 col-sm-10" style="border-top: 1px solid; border-color: #cccccc;"><strong><?php 
echo TEXT_TITLE;
?>
</strong>:<?php 
echo xtc_draw_input_field('memo_title');
?>
<br /><?php 
echo xtc_draw_textarea_field('memo_text', 'soft', '80', '5');
?>
<br /><input type="submit" class="btn btn-default" value="<?php 
echo BUTTON_INSERT;
?>
"></div>
</div>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:customer_memo.php

示例13: xtc_draw_input_field

                      <td class="dataTableConfig col-right"><?php 
            echo TEXT_PAYPAL_MODULE_LINK_SUCCESS_INFO;
            ?>
</td>
                    </tr>
                    <?php 
        }
        if ($module->code == 'paypalcart') {
            ?>
                    <tr>
                      <td class="dataTableConfig col-left"><?php 
            echo TEXT_PAYPAL_MODULE_SHIPPING_COST;
            ?>
</td>
                      <td class="dataTableConfig col-middle"><?php 
            echo xtc_draw_input_field('config[profile][MODULE_PAYMENT_' . strtoupper($module->code) . '_SHIPPING_COST]', $paypal->get_config('MODULE_PAYMENT_' . strtoupper($module->code) . '_SHIPPING_COST'), 'style="width: 300px;"');
            ?>
</td>
                      <td class="dataTableConfig col-right"><?php 
            echo TEXT_PAYPAL_MODULE_SHIPPING_COST_INFO;
            ?>
</td>
                    </tr>
                    <tr>
                      <td class="dataTableConfig col-left"><?php 
            echo TEXT_PAYPAL_MODULE_LINK_PRODUCT;
            ?>
</td>
                      <td class="dataTableConfig col-middle"><?php 
            echo draw_on_off_selection('config[profile][MODULE_PAYMENT_' . strtoupper($module->code) . '_SHOW_PRODUCT]', $status_array, $paypal->get_config('MODULE_PAYMENT_' . strtoupper($module->code) . '_SHOW_PRODUCT') == '1' ? true : false);
            ?>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:paypal_module.php

示例14: xtc_draw_input_field

                    <td class="dataTableConfig col-middle"><?php 
    echo xtc_draw_input_field('config[presentation][brand_name]', '', 'style="width: 300px;"');
    ?>
</td>
                    <td class="dataTableConfig col-right"><?php 
    echo TEXT_PAYPAL_PROFILE_BRAND_INFO;
    ?>
</td>
                  </tr>
                  <tr>
                    <td class="dataTableConfig col-left"><?php 
    echo TEXT_PAYPAL_PROFILE_LOGO;
    ?>
</td>
                    <td class="dataTableConfig col-middle"><?php 
    echo xtc_draw_input_field('config[presentation][logo_image]', '', 'style="width: 300px;"');
    ?>
</td>
                    <td class="dataTableConfig col-right"><?php 
    echo TEXT_PAYPAL_PROFILE_LOGO_INFO;
    ?>
</td>
                  </tr>
                  <tr>
                    <td class="dataTableConfig col-left"><?php 
    echo TEXT_PAYPAL_PROFILE_LOCALE;
    ?>
</td>
                    <td class="dataTableConfig col-middle"><?php 
    echo xtc_draw_pull_down_menu('config[presentation][locale_code]', $locale_code_array, strtoupper(DEFAULT_LANGUAGE));
    ?>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:paypal_profile.php

示例15: xtc_href_link

}
$smarty->assign('info_message', $info_message);
$smarty->assign('account_option', ACCOUNT_OPTIONS);
$smarty->assign('BUTTON_NEW_ACCOUNT', '<a href="' . xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>');
$smarty->assign('BUTTON_LOGIN', xtc_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN));
$smarty->assign('BUTTON_GUEST', '<a href="' . xtc_href_link(FILENAME_CREATE_GUEST_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>');
// BOC added review_prod_id to be able to redirect to product_reviews_write when coming from reviews button, and order_id to redirect to account_history_info when coming from Link in change_order_mail, noRiddle
//$smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL')));
if (isset($_GET['review_prod_id'])) {
    $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process&review_prod_id=' . (int) $_GET['review_prod_id'], 'SSL')));
} elseif (isset($_GET['order_id'])) {
    $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process&order_id=' . (int) $_GET['order_id'], 'SSL')));
} else {
    $smarty->assign('FORM_ACTION', xtc_draw_form('login', xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL')));
}
// EOC added review_prod_id and order_id, noRiddle
$smarty->assign('INPUT_MAIL', xtc_draw_input_field('email_address'));
$smarty->assign('INPUT_PASSWORD', xtc_draw_password_field('password'));
$smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL'));
$smarty->assign('FORM_END', '</form>');
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/login.html');
$smarty->assign('main_content', $main_content);
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
if (!defined('RM')) {
    $smarty->load_filter('output', 'note');
}
$smarty->display(CURRENT_TEMPLATE . '/index.html');
include 'includes/application_bottom.php';
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:login.php


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