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

PHP olc_draw_input_field函数代码示例

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

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



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

示例1: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_FIRST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_firstname', $order->billing['firstname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_OWNER_LAST_NAME, 'field' => olc_draw_input_field('pm_2checkout_cc_owner_lastname', $order->billing['lastname'])), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_number')), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('pm_2checkout_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('pm_2checkout_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => olc_draw_input_field('pm_2checkout_cc_cvv', EMPTY_STRING, 'size="4" maxlength="3"') . '&nbsp;<small>' . MODULE_PAYMENT_2CHECKOUT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:13,代码来源:pm2checkout.php


示例2: selection

 function selection()
 {
     global $order;
     //W. Kaiser - AJAX
     $bank_info_required = $_SESSION['credit_covers'] != true;
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_INFO), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_OWNER, 'field' => olc_draw_input_field('banktransfer_owner', trim($order->billing['firstname'] . BLANK . $order->billing['lastname'])) . olc_draw_hidden_field('entry_country_id', $order->billing['country']['id'])), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, 'field' => olc_draw_input_field('banktransfer_blz', EMPTY_STRING, 'size="10" maxlength="8"', 'text', true, AJAX_BLZ_VALIDATION, $bank_info_required, MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_BLZ, true)), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, 'field' => olc_draw_input_field('banktransfer_number', EMPTY_STRING, 'size="16" maxlength="32"', 'text', true, AJAX_BLZ_VALIDATION, $bank_info_required, MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NUMBER, true)), array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_NAME, 'field' => olc_draw_input_field('banktransfer_bankname', EMPTY_STRING, 'size="32" maxlength="32"')), array('title' => EMPTY_STRING, 'field' => olc_draw_hidden_field('recheckok', $_POST['recheckok']))));
     //W. Kaiser - AJAX
     if (MODULE_PAYMENT_BANKTRANSFER_FAX_CONFIRMATION == TRUE_STRING_S) {
         $selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE, 'field' => MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE2 . HTML_A_START . MODULE_PAYMENT_BANKTRANSFER_URL_NOTE . '" target="_blank"><b>' . MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE3 . '</b></a>' . MODULE_PAYMENT_BANKTRANSFER_TEXT_NOTE4);
         $selection['fields'][] = array('title' => MODULE_PAYMENT_BANKTRANSFER_TEXT_BANK_FAX, 'field' => olc_draw_checkbox_field('banktransfer_fax', 'on'));
     }
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:13,代码来源:banktransfer.php


示例3: selection

 function selection()
 {
     global $order;
     if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') {
         for ($i = 1; $i < 13; $i++) {
             $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
         }
         $today = getdate();
         for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
             $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
         }
         $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . BLANK . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => olc_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => olc_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . HTML_NBSP . olc_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title);
     }
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:17,代码来源:psigate.php


示例4: array

 $heading = array();
 $contents = array();
 switch ($_GET['action']) {
     case 'release':
         break;
     case 'voucherreport':
         $heading[] = array('text' => HTML_B_START . TEXT_HEADING_COUPON_REPORT . HTML_B_END);
         $contents[] = array('text' => TEXT_NEW_INTRO);
         break;
     case 'neww':
         $heading[] = array('text' => HTML_B_START . TEXT_HEADING_NEW_COUPON . HTML_B_END);
         $contents[] = array('text' => TEXT_NEW_INTRO);
         $contents[] = array('text' => HTML_BR . COUPON_NAME . HTML_BR . olc_draw_input_field('name'));
         $contents[] = array('text' => HTML_BR . COUPON_AMOUNT . HTML_BR . olc_draw_input_field('voucher_amount'));
         $contents[] = array('text' => HTML_BR . COUPON_CODE . HTML_BR . olc_draw_input_field('voucher_code'));
         $contents[] = array('text' => HTML_BR . COUPON_USES_COUPON . HTML_BR . olc_draw_input_field('voucher_number_of'));
         break;
     default:
         $heading[] = array('text' => '[' . $cInfo->coupon_id . ']  ' . $cInfo->coupon_code);
         $amount = $cInfo->coupon_amount;
         if ($cInfo->coupon_type == 'P') {
             $amount .= '%';
         } else {
             $amount = $currencies->format($amount);
         }
         if ($_GET['action'] == 'voucherdelete') {
             $contents[] = array('text' => TEXT_CONFIRM_DELETE . '</br></br>' . HTML_A_START . olc_href_link('coupon_admin.php', 'action=confirmdelete&cid=' . $_GET['cid'], NONSSL) . '">' . olc_image_button('button_confirm.gif', 'Confirm Delete Voucher') . HTML_A_END . HTML_A_START . olc_href_link('coupon_admin.php', 'cid=' . $cInfo->coupon_id, NONSSL) . '">' . olc_image_button('button_cancel.gif', 'Cancel') . HTML_A_END);
         } else {
             $prod_details = NONE;
             if ($cInfo->restrict_to_products) {
                 $prod_details = '<A href="listproducts.php?cid=' . $cInfo->coupon_id . '" TARGET="_blank" onclick="javascript:window.open(\'listproducts.php?cid=' . $cInfo->coupon_id . '\', \'Valid_Categories\', \'scrollbars=yes,resizable=yes,menubar=yes,width=600,height=600\'); return false">View</A>';
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:coupon_admin.php


示例5: olc_draw_password_field

function olc_draw_password_field($name, $value = '', $parameters = 'maxlength="40"')
{
    return olc_draw_input_field($name, $value, $parameters, 'password', false);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:4,代码来源:olc_draw_password_field.inc.php


示例6: olc_image

     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', $field_size);
     }
     $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'edit':
     $heading[] = array('text' => HTML_B_START . TEXT_HEADING_EDIT_MANUFACTURER . HTML_B_END);
     $contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_NAME . HTML_BR . olc_draw_input_field('manufacturers_name', $mInfo->manufacturers_name, $field_size));
     $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_IMAGE . HTML_BR . olc_draw_file_field('manufacturers_image') . HTML_BR . $mInfo->manufacturers_image);
     $manufacturer_inputs_string = '';
     $languages = olc_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= HTML_BR . olc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', olc_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']), $field_size);
     }
     $contents[] = array('text' => HTML_BR . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_save.gif', IMAGE_SAVE) . BLANK . HTML_A_START . olc_href_link(FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'delete':
     $heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_MANUFACTURER . HTML_B_END);
     $contents = array('form' => olc_draw_form('manufacturers', FILENAME_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br/><b>' . $mInfo->manufacturers_name . 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_MANUFACTURERS, $page_parameter . '&mID=' . $mInfo->manufacturers_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:manufacturers.php


示例7: olc_draw_separator

	<tr>
	<td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
	</tr>
	<tr>
	<td valign="top" class="main">
	<?php 
    $spiffy_date_field_caption = TEXT_BANNERS_EXPIRES_ON;
    $spiffy_date = $bInfo->expires_date;
    $spiffy_control_name = "dateExpires";
    $spiffy_form_name = 'new_banner';
    $spiffy_date_field_name = 'expires_date';
    include $create_spiffy_control;
    echo TEXT_BANNERS_OR_AT . HTML_BR . olc_draw_input_field('impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"') . BLANK . TEXT_BANNERS_IMPRESSIONS;
    ?>
	</td>
	</tr>
	</table></td>
	</tr>
	<tr>
	<td><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
	</tr>
	<tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
	<td class="main"><?php 
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:banner_manager.php


示例8: olc_db_query

';
$configuration_query = olc_db_query($configuration_query_sql);
while ($configuration = olc_db_fetch_array($configuration_query)) {
    $configuration_value_text = 'configuration_value';
    $configuration_value = $configuration[$configuration_value_text];
    $use_function = $configuration['use_function'];
    if (olc_not_null($use_function)) {
        $cfgValue = olc_call_function($use_function, $configuration_value);
    } else {
        $cfgValue = $configuration_value;
    }
    $set_function = $configuration['set_function'];
    if ($set_function) {
        eval('$value_field = ' . $set_function . QUOTE . htmlspecialchars($configuration_value) . '");');
    } else {
        $value_field = olc_draw_input_field($configuration[$configuration_key_text], $configuration_value, 'size=10');
    }
    // add
    if (strstr($value_field, $configuration_value_text)) {
        $value_field = str_replace($configuration_value_text, $configuration[$configuration_key_text], $value_field);
    }
    $configuration_key_u = strtoupper($configuration[$configuration_key_text]);
    $main_content .= '
						  <tr>
						    <td valign="top" class="pageSubHeading"><b>' . constant($configuration_key_u . '_TITLE') . '</b></td>
						    <td valign="top" class="pageSubHeading">' . $value_field . HTML_BR . HTML_B_START . constant($configuration_key_u . '_DESC') . HTML_B_END . '
							  </td>
						  </tr>';
}
$main_content .= '
            </table>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:import_export.php


示例9: olc_draw_separator

    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo TEXT_SUBJECT;
    ?>
</td>
                <td><?php 
    echo olc_draw_input_field('subject', '', 'size="60"');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo olc_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php 
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:affiliate_contact.php


示例10: olc_db_query

     $zone_name = 'zone_name';
     $db_data_query = olc_db_query($sql_select . $zone_id . COMMA . $zone_name . SQL_FROM . TABLE_PREFIX_COMMON . 'zones' . " where zone_country_id = '" . $current_value . "' order by " . $zone_name);
     $rows = olc_db_num_rows($db_data_query);
     if ($rows >= 1) {
         $id = 'id';
         $text = 'text';
         while ($value = olc_db_fetch_array($db_data_query)) {
             $zones_array[] = array($id => $value[$zone_id], $text => $value[$zone_name]);
         }
         if ($rows > 1) {
             require_once DIR_FS_INC . 'olc_not_null.inc.php';
             require_once DIR_FS_INC . 'olc_draw_pull_down_menu.inc.php';
             $main_content = olc_draw_pull_down_menu('entry_state', $zones_array);
         } else {
             require_once DIR_FS_INC . 'olc_draw_input_field.inc.php';
             $main_content = olc_draw_input_field($entry_state_text, $zones_array[0]['text']);
         }
     } else {
         $main_content = HTML_NBSP;
     }
     $build_selection = true;
 } else {
     $check_banktransfer_number = $action == $banktransfer_number;
     $current_value = str_replace("*", "%", $current_value);
     $sql_where_condition = $sql_select_data . SQL_LIKE . APOS . $current_value . HASH . APOS;
     if ($add_land_condition) {
         $sql_where_condition .= SQL_AND . "land = '" . $land . APOS;
     }
     if (!$is_bank_check) {
         $selection = "*";
     }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:ajax_validation.php


示例11: olc_draw_hidden_field

        $fax_content = $a_fax . olc_draw_hidden_field('a_fax');
    }
} else {
    $fax_content = olc_draw_input_field('a_fax', $affiliate['affiliate_fax']) . HTML_NBSP . ENTRY_FAX_NUMBER_TEXT;
}
$module_smarty->assign('fax_content', $fax_content);
if ($is_read_only == true) {
    $homepage_content = $affiliate['affiliate_homepage'];
} elseif ($error == true) {
    if ($entry_homepage_error == true) {
        $homepage_content = olc_draw_input_field('a_homepage') . HTML_NBSP . ENTRY_AFFILIATE_HOMEPAGE_ERROR;
    } else {
        $homepage_content = $a_homepage . olc_draw_hidden_field('a_homepage');
    }
} else {
    $homepage_content = olc_draw_input_field('a_homepage', $affiliate['affiliate_homepage']) . HTML_NBSP . ENTRY_AFFILIATE_HOMEPAGE_TEXT;
}
$module_smarty->assign('homepage_content', $homepage_content);
if ($is_read_only == false) {
    $module_smarty->assign('PASSWORD_READONLY', FALSE_STRING_S);
    if ($error == true) {
        $module_smarty->assign('error', TRUE_STRING_S);
        if ($entry_password_error == true) {
            $password_content = olc_draw_password_field('a_password') . HTML_NBSP . ENTRY_PASSWORD_ERROR;
        } else {
            $password_content = PASSWORD_HIDDEN . olc_draw_hidden_field('a_password') . olc_draw_hidden_field('a_confirmation');
        }
    } else {
        $password_content = olc_draw_password_field('a_password') . HTML_NBSP . ENTRY_PASSWORD_TEXT;
    }
    if ($error == false || $entry_password_error == true) {
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:affiliate_account_details.php


示例12: array

$contents = array();
switch ($_GET['action']) {
    case 'new':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_NEW_TAX_CLASS . HTML_B_END);
        $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert'));
        $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title'));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description'));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'edit':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_TAX_CLASS . HTML_B_END);
        $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
        $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
        $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
        $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    case 'delete':
        $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_TAX_CLASS . HTML_B_END);
        $contents = array('form' => olc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
        $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
        $contents[] = array('text' => '<br/><b>' . $tcInfo->tax_class_title . 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_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
        break;
    default:
        if (is_object($tcInfo)) {
            $heading[] = array('text' => HTML_B_START . $tcInfo->tax_class_title . HTML_B_END);
            $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_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($tcInfo->date_added));
            $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($tcInfo->last_modified));
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:tax_classes.php


示例13: str_replace

				<tr class="optionValue">
					<td width="60" align="center" valign="top">
						<img' . str_replace("#", "arrow", $image_data) . ' />
					</td>
					<td valign="top" width="41%">
						' . olc_draw_pull_down_menu("optionValueDropDown", $optionValueDrop, $selectedOptionValue) . '
						<br/><br/>&nbsp;&nbsp;
						<input' . str_replace("#", "add_new", $image_data) . '
						onclick="javascript:return amAddOptionValue();" title="Fügt der Liste einen neuen Optionswert hinzu" />
						&nbsp;&nbsp;<b>Neuen Optionswert definieren</b>
						<!--<input' . str_replace("#", "delete", $image_data) . '
						onclick="javascript:return deleteOptionValue();" title="Löscht den Options-Wert aus der Datenbank" />-->
					</td>
					<td width="15%" valign="top">
						Preis: ' . drawDropDownPrefix($prefix_0_id) . olc_draw_input_field("newPrice", "", $newPrice_id) . '
					</td>
					<td width="41%" valign="top">
						<input' . str_replace("#", "add_up", $image_data) . ' value="Add"
						onclick="javascript:return amAddAttributeToProduct();" title="Das Attribut dem aktuellen Produkt hinzufügen" border="0"  />
						&nbsp;&nbsp;<b>Das Attribut dem aktuellen Produkt hinzufügen</b>
					</td>
				</tr>
			</table>
		</div>
		<br/>
	</div>
';
require_once DIR_FS_INC . 'olc_ajax_prepare_special_html_chars.inc.php';
$html_text = "#am#" . $html_text;
//Signal attributemanager message
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:30,代码来源:attributemanager.php


示例14: olc_get_products_price

 $price_single = olc_get_products_price($product_id, $price_special = 1, $quantity = 1, $price_real);
 $price_single = abs($price_real);
 $total_price = olc_format_price($price_single * $products_quantity, 1, 1);
 if ($show_saved_cart) {
     $products_qty = $products_quantity;
 } else {
     if (USE_AJAX) {
         $parameter = str_replace(HASH, $i, $parameter0);
         $parameter1 = str_replace(HASH, $i, $parameter10);
         $parameter2 = str_replace(HASH, $i, $parameter20);
         $parameter3 = str_replace(HASH, $i, $parameter30);
         $parameter4 = str_replace(HASH, $i, $parameter40);
         $parameter5 = str_replace(HASH, $i, $parameter50);
         $total_price = $parameter3 . $total_price . $span_end_text;
     }
     $products_qty = olc_draw_input_field($cart_quantity_text, $products_quantity, $parameter) . olc_draw_hidden_field($cart_min_quantity_text, $products_min_quantity, $parameter4) . olc_draw_hidden_field($products_id_text, $product_id, $parameter1);
     if ($do_stock_check) {
         $products_qty .= olc_draw_hidden_field($cart_stock_quantity_text, olc_get_products_stock($product_id), $parameter5);
     }
 }
 $auctionid = $product['auctionid'];
 if ($auctionid) {
     //no deletebox
     $mydelete = EMPTY_STRING;
     //quantity is hidden - no changes can be made by the user
     $myquantity = $products_quantity . str_replace(HASH, $products_quantity, $hidden_quantity) . str_replace(HASH, $product_id, $hidden_product_id);
     //link to ebay-auction
     $mylink = str_replace(HASH, $auctionid, $ebay_link);
     //as title show ebayicon - so user knows that this is the product bought at ebay
     $myimage = HTML_A_START . $mylink . '">' . $ebay_image . HTML_A_END;
 } else {
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:order_details_cart.php


示例15: str_replace

     // fsk18
     if (CUSTOMER_NOT_IS_FSK18) {
         $allow_purchase = $product_info['products_fsk18'] == '0';
     } else {
         $allow_purchase = true;
     }
     if ($allow_purchase) {
         //W. Kaiser - AJAX
         $parameter = 'size="3"';
         if (USE_AJAX) {
             $action = 'products_quantity_changed(this,"' . $form_action . '",#)';
             //$parameter.=' onkeyup='.str_replace(HASH,'false',$action);
             $parameter .= ' onchange=' . str_replace(HASH, 'true', $action);
         }
         $products_min_order_quantity = max(1, $product_info['products_min_order_quantity']);
         $qty_field = olc_draw_input_field('products_qty', $products_min_order_quantity, $parameter) . olc_draw_hidden_field('products_id', $products_id) . olc_draw_hidden_field('products_min_order_quantity', $products_min_order_quantity);
         $do_stock_check = STOCK_CHECK == TRUE_STRING_S;
         if ($do_stock_check) {
             $products_qty .= olc_draw_hidden_field('cart_stock_quantity', olc_get_products_stock($products_id));
         }
         if ($is_gallery) {
             $qty_field .= olc_draw_hidden_field($gallery_text, TRUE_STRING_S);
         }
         $info_smarty->assign('ADD_QTY', $qty_field);
         $info_smarty->assign('ADD_CART_BUTTON', olc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, ' id="update_cart" align="middle"', USE_AJAX));
         if ($is_gallery) {
             $info_smarty->assign('ABORT_BUTTON', HTML_A_START . olc_href_link(FILENAME_GALLERY) . '">' . olc_image(CURRENT_TEMPLATE_BUTTONS . 'button_back.gif', IMAGE_BUTTON_CANCEL, EMPTY_STRING, EMPTY_STRING)) . HTML_A_END;
         }
         //W. Kaiser - AJAX
     }
 }
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:product_info.php


示例16: olc_round

    if ($brutto == TRUE_STRING_S) {
        $options_values_price = olc_round($products['options_values_price'] * (1 + $_GET['pTX'] / 100), PRICE_PRECISION);
    } else {
        $options_values_price = olc_round($products['options_values_price'], PRICE_PRECISION);
    }
    ?>
<td class="dataTableContent"><?php 
    echo olc_draw_input_field('products_options', $products['products_options'], 'size="20"');
    ?>
</td>
<td class="dataTableContent"><?php 
    echo olc_draw_input_field('products_options_values', $products['products_options_values'], 'size="20"');
    ?>
</td>
<td class="dataTableContent"><?php 
    echo olc_draw_input_field('options_values_price', $options_values_price, 'size="10"');
    ?>
</td>
<td class="dataTableContent"><?php 
    echo $products['price_prefix'];
    ?>
</td>
<td class="dataTableContent">
<select name="prefix">
<option value="+">+
<option value="-">-
</SELECT>
</td>
<td class="dataTableContent">
<?php 
    echo olc_image_submit('button_save.gif', TEXT_EDIT, 'style="cursor:hand" ');
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:orders_edit_options.php


示例17: array

     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_IMAGE . HTML_BR . olc_draw_input_field('image', 'icon.gif'));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . olc_draw_input_field('directory'));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order'));
     $contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'edit':
     $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_EDIT_LANGUAGE . HTML_B_END);
     $contents = array('form' => olc_draw_form('languages', FILENAME_LANGUAGES, $params . '&action=save'));
     $contents[] = array($text_text => TEXT_INFO_EDIT_INTRO);
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_NAME . HTML_BR . olc_draw_input_field('name', $lInfo->name));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_CODE . HTML_BR . olc_draw_input_field('code', $lInfo->code));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_CHARSET . HTML_BR . olc_draw_input_field('charset', $lInfo->language_charset));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_IMAGE . HTML_BR . olc_draw_input_field('image', $lInfo->image));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . olc_draw_input_field('directory', $lInfo->directory));
     $contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order', $lInfo->sort_order));
     if (DEFAULT_LANGUAGE != $lInfo->code) {
         $contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'delete':
     $heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_DELETE_LANGUAGE . HTML_B_END);
     $contents[] = array($text_text => TEXT_INFO_DELETE_INTRO);
     $contents[] = array($text_text => '<br/><b>' . $lInfo->name . HTML_B_END);
     $contents[] = array('align' => 'center', $text_text => HTML_BR . ($remove_language ? HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END : EMPTY_STRING) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array($text_text => HTML_B_START . $lInfo->name . HTML_B_END);
         $contents[] = array('align' => 'center', $text_text => HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:languages.php


示例18: array

     $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_ZONE_NAME . HTML_BR . olc_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE . HTML_BR . olc_draw_input_field('tax_rate'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_RATE_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_description'));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE_PRIORITY . HTML_BR . olc_draw_input_field('tax_priority'));
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'edit':
     $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_EDIT_TAX_RATE . HTML_B_END);
     $contents = array('form' => olc_draw_form('rates', FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => HTML_BR . TEXT_INFO_CLASS_TITLE . HTML_BR . olc_tax_classes_pull_down('name="tax_class_id" style="font-size:10px"', $trInfo->tax_class_id));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_ZONE_NAME . HTML_BR . olc_geo_zones_pull_down('name="tax_zone_id" style="font-size:10px"', $trInfo->geo_zone_id));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE . HTML_BR . olc_draw_input_field('tax_rate', $trInfo->tax_rate));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_RATE_DESCRIPTION . HTML_BR . olc_draw_input_field('tax_description', $trInfo->tax_description));
     $contents[] = array('text' => HTML_BR . TEXT_INFO_TAX_RATE_PRIORITY . HTML_BR . olc_draw_input_field('tax_priority', $trInfo->tax_priority));
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 case 'delete':
     $heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_TAX_RATE . HTML_B_END);
     $contents = array('form' => olc_draw_form('rates', FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br/><b>' . $trInfo->tax_class_title . BLANK . number_format($trInfo->tax_rate, TAX_DECIMAL_PLACES) . '%</b>');
     $contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . '&nbsp;<a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
     break;
 default:
     if (is_object($trInfo)) {
         $heading[] = array('text' => HTML_B_START . $trInfo->tax_class_title . HTML_B_END);
         $contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_TAX_RATES, 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_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($trInfo->date_added));
         $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($trInfo->last_modified));
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:tax_rates.php


示例19: olc_php_mail

$error = false;
if (isset($_GET['action']) && $_GET['action'] == 'send') {
    if (olc_validate_email(trim($_POST['email']))) {
        olc_php_mail($_POST['email'], $_POST['name'], AFFILIATE_EMAIL_ADDRESS, STORE_OWNER, '', $_POST['email'], $_POST['name'], '', '', EMAIL_SUBJECT, $_POST['enquiry'], $_POST['enquiry']);
        if (!isset($mail_error)) {
            olc_redirect(olc_href_link(FILENAME_AFFILIATE_CONTACT, 'action=success'));
        } else {
            echo $mail_error;
        }
    } else {
        $error = true;
    }
}
$breadcrumb->add(NAVBAR_TITLE, olc_href_link(FILENAME_AFFILIATE, '', SSL));
$breadcrumb->add(NAVBAR_TITLE_CONTACT, olc_href_link(FILENAME_AFFILIATE_CONTACT));
$affiliate_values = olc_db_query("select * from " . TABLE_AFFILIATE . " where affiliate_id = '" . $_SESSION['affiliate_id'] . APOS);
require DIR_WS_INCLUDES . 'header.php';
if (isset($_GET['action']) && $_GET['action'] == 'success') {
    $smarty->assign('SUMMARY_LINK', HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END);
} else {
    $smarty->assign('FORM_ACTION', olc_draw_form('contact_us', olc_href_link(FILENAME_AFFILIATE_CONTACT, 'action=send')));
    $smarty->assign('INPUT_NAME', olc_draw_input_field('name', $affiliate['affiliate_firstname'] . BLANK . $affiliate['affiliate_lastname'], 'size=40'));
    $smarty->assign('INPUT_EMAIL', olc_draw_input_field('email', $affiliate['affiliate_email_address'], 'size=40'));
    $smarty->assign('error', $er 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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