本文整理汇总了PHP中xtc_draw_checkbox_field函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_draw_checkbox_field函数的具体用法?PHP xtc_draw_checkbox_field怎么用?PHP xtc_draw_checkbox_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_draw_checkbox_field函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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
示例2: selection
function selection()
{
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':
if (MODULE_PAYMENT_SOFORT_SV_KS_STATUS == 'true') {
$title .= $this->setImageText('logo_155x50.png', MODULE_PAYMENT_SOFORT_MULTIPAY_SV_CHECKOUT_TEXT);
} else {
$title .= $this->setImageText('logo_155x50.png', MODULE_PAYMENT_SOFORT_MULTIPAY_SV_CHECKOUT_TEXT);
}
break;
case 'Infographic':
if (MODULE_PAYMENT_SOFORT_SV_KS_STATUS == 'true') {
$title .= $this->setImageText('banner_400x100_ks.png', '');
} else {
$title .= $this->setImageText('banner_300x100.png', '');
}
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_sv']) && $_SESSION['sofort']['sofort_conditions_sv'] == 'sofort_conditions_sv') {
$conditionsChecked = true;
}
$fields = array(array('title' => MODULE_PAYMENT_SOFORT_SV_CHECKOUT_CONDITIONS, 'field' => xtc_draw_checkbox_field('sofort_conditions_sv', 'sofort_conditions_sv', $conditionsChecked)));
//commerce:SEO - Bugfix
if (isset($_REQUEST['xajax']) && !empty($_REQUEST['xajax'])) {
$fields[0]['title'] = utf8_decode($fields[0]['title']);
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_sofortvorkasse.php
示例3: selection
function selection()
{
global $order;
if (!parent::selection()) {
$this->enabled = false;
return false;
}
//virtual content with SR is not allowed
if ($this->_orderHasVirtualProducts($order) || $this->_deliveryAddressDoesNotExist($order)) {
$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('logo_155x50.png', MODULE_PAYMENT_SOFORT_MULTIPAY_SR_CHECKOUT_TEXT);
break;
case 'Infographic':
$title .= $this->setImageText('banner_300x100.png', '');
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_sr']) && $_SESSION['sofort']['sofort_conditions_sr'] == 'sofort_conditions_sr') {
$conditionsChecked = true;
}
$fields = array(array('title' => MODULE_PAYMENT_SOFORT_SR_CHECKOUT_CONDITIONS, 'field' => xtc_draw_checkbox_field('sofort_conditions_sr', 'sofort_conditions_sr', $conditionsChecked)));
//commerce:SEO - Bugfix
if (isset($_REQUEST['xajax']) && !empty($_REQUEST['xajax'])) {
$fields[0]['title'] = utf8_decode($fields[0]['title']);
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,代码行数:43,代码来源:sofort_sofortrechnung.php
示例4: xtc_draw_input_field
<td align="left"><?php
echo xtc_draw_input_field('coupon_min_order', $coupon_min_order, 'style="width: 150px"');
?>
</td>
<td align="left"><?php
echo COUPON_MIN_ORDER_HELP;
?>
</td>
</tr>
<tr>
<td align="left"><?php
echo COUPON_FREE_SHIP;
?>
</td>
<td align="left"><?php
echo xtc_draw_checkbox_field('coupon_free_ship', $coupon_free_ship);
?>
</td>
<td align="left"><?php
echo COUPON_FREE_SHIP_HELP;
?>
</td>
</tr>
<tr>
<td align="left"><?php
echo COUPON_CODE;
?>
</td>
<td align="left"><?php
echo xtc_draw_input_field('coupon_code', $coupon_code, 'style="width: 150px"');
?>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:coupon_admin.php
示例5: xtc_draw_form
//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']);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/contact_us.html');
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:contact_us.php
示例6: xtc_draw_input_field
<div class="col-sm-10 col-xs-12" ><?php
echo xtc_draw_input_field('sort_order', isset($content['sort_order']) ? $content['sort_order'] : '', 'size="5"');
?>
</div>
</div>
<div class="col-xs-12">
<div class="col-sm-2 col-xs-12" valign="top" ><?php
echo TEXT_STATUS;
?>
</div>
<div class="col-sm-10 col-xs-12" >
<?php
if (isset($content['content_status']) && $content['content_status'] == '1') {
echo xtc_draw_checkbox_field('status', 'yes', true) . ' ' . TEXT_STATUS_DESCRIPTION;
} else {
echo xtc_draw_checkbox_field('status', 'yes', false) . ' ' . TEXT_STATUS_DESCRIPTION;
}
?>
<br /><br />
</div>
</div>
<?php
if (GROUP_CHECK == 'true') {
$customers_statuses_array = xtc_get_customers_statuses();
$customers_statuses_array = array_merge(array(array('id' => 'all', 'text' => TXT_ALL)), $customers_statuses_array);
?>
<div class="col-xs-12">
<div class="col-sm-2 col-xs-12" valign="top" class="main" ><?php
echo ENTRY_CUSTOMERS_STATUS;
?>
</div>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:content_manager.php
示例7: xtc_db_query
<div class='col-xs-12'>
<div class="main col-xs-12">
<form action="customers_group.php?action=send" method="post">
<?php
$group_query = xtc_db_query('SELECT customers_status_id,
customers_status_name
FROM ' . TABLE_CUSTOMERS_STATUS . '
WHERE language_id=' . (int) $_SESSION['languages_id'] . '
ORDER BY customers_status_id ASC');
while ($result = xtc_db_fetch_array($group_query)) {
echo xtc_draw_checkbox_field('cg[' . $result['customers_status_id'] . ']', '1') . ' ' . $result['customers_status_name'] . '<br />';
}
echo '<br /><br />';
echo xtc_draw_checkbox_field('categories', '1') . ' ' . TEXT_CATEGORIES . '<br />';
echo xtc_draw_checkbox_field('products', '1') . ' ' . TEXT_PRODUCTS . '<br />';
echo xtc_draw_checkbox_field('content', '1') . ' ' . TEXT_CONTENT . '<br />';
echo '<br /><br />';
echo '<strong>' . TEXT_PERMISSION . ':</strong> ' . TEXT_SET . ' ' . xtc_draw_radio_field('permission', 'true', true) . ' ' . TEXT_UNSET . ' ' . xtc_draw_radio_field('permission', 'false', false) . '<br />';
echo '<br /><br />' . xtc_draw_input_field('senden', TEXT_SEND, '', false, 'submit');
?>
</form>
</div>
</div>
</div>
</div>
<!-- footer //-->
<?php
require DIR_WS_INCLUDES . 'footer.php';
?>
<!-- footer_eof //-->
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:customers_group.php
示例8: xtc_get_all_get_params
echo $orders_split->display_links($orders_query_numrows, '20', MAX_DISPLAY_PAGE_LINKS, $_GET['page'], xtc_get_all_get_params(array('page', 'oID', 'action')));
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
$contents = array('form' => xtc_draw_form('orders', FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
$contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="button" value="' . BUTTON_DELETE . '"><a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . BUTTON_CANCEL . '</a>');
break;
default:
if (is_object($oInfo)) {
$heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . xtc_datetime_short($oInfo->date_purchased) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>');
if (AFTERBUY_ACTIVATED == 'true') {
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=afterbuy_send') . '">' . BUTTON_AFTERBUY_SEND . '</a>');
}
// RATEPAY START
include 'includes/ratepay_order_buttons.php';
// RATEPAY END
//$contents[] = array('align' => 'center', 'text' => '');
$contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . xtc_date_short($oInfo->date_purchased));
if (xtc_not_null($oInfo->last_modified)) {
开发者ID:ratepay,项目名称:xtcommerce-module,代码行数:31,代码来源:orders.php
示例9: xtc_draw_pull_down_menu
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php
echo PAYMENT_STATUS;
?>
</b> <?php
echo xtc_draw_pull_down_menu('status', $payments_statuses, $payments['affiliate_payment_status']);
?>
</td>
</tr>
<tr>
<td class="main"><b><?php
echo PAYMENT_NOTIFY_AFFILIATE;
?>
</b><?php
echo xtc_draw_checkbox_field('notify', '', true);
?>
</td>
</tr>
</table></td>
<td valign="top"><?php
echo xtc_image_submit('button_update.gif', IMAGE_UPDATE);
?>
</td>
</tr>
</table></td>
</form></tr>
<tr>
<td><?php
echo xtc_draw_separator('pixel_trans.gif', '1', '10');
开发者ID:BackupTheBerlios,项目名称:xtc-affiliate,代码行数:31,代码来源:affiliate_payment.php
示例10: array
$contents[] = array('text' => '<tr><td class="infoBoxContent">' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo->products_count) . '</td></tr>');
}
}
}
if (is_array($_POST['multi_products'])) {
foreach ($_POST['multi_products'] as $multi_product) {
$contents[] = array('text' => '<tr><td style="border-bottom: 1px solid Black; margin-bottom: 10px;" class="infoBoxContent"><b>' . xtc_get_products_name($multi_product) . '</b></td></tr>');
$product_categories_string = '';
$product_categories = xtc_generate_category_path($multi_product, 'product');
for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
$category_path = '';
for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
$category_path .= $product_categories[$i][$j]['text'] . ' > ';
}
$category_path = substr($category_path, 0, -16);
$product_categories_string .= xtc_draw_checkbox_field('multi_products_categories[' . $multi_product . '][]', $product_categories[$i][sizeof($product_categories[$i]) - 1]['id'], true) . ' ' . $category_path . '<br />';
}
$product_categories_string = substr($product_categories_string, 0, -4);
$product_categories_string = '<tr><td class="infoBoxContent">' . $product_categories_string . '</td></tr>';
$contents[] = array('text' => $product_categories_string);
}
}
//close list table
$contents[] = array('text' => '</table>');
$contents[] = array('align' => 'center', 'text' => '<input class="btn btn-default" type="submit" name="multi_delete_confirm" value="' . BUTTON_DELETE . '"> <a class="btn btn-default" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&cID=' . $cInfo->categories_id) . '">' . BUTTON_CANCEL . '</a>');
//close multi-action form
$contents[] = array('text' => '</form>');
}
// multi_delete confirm ENDS
// --------------------
// multi_copy confirm
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:categories_view.php
示例11: array
$contents[] = array('text' => '<br />' . TEXT_INFO_PRODUCTS_VPE_NAME . $products_vpe_inputs_string);
$contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$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_PRODUCTS_VPE, 'page=' . $_GET['page']) . '">' . BUTTON_CANCEL . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_PRODUCTS_VPE . '</b>');
$contents = array('form' => xtc_draw_form('status', FILENAME_PRODUCTS_VPE, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_vpe_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$products_vpe_inputs_string = '';
$languages = xtc_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$products_vpe_inputs_string .= '<br />' . xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image']) . ' ' . xtc_draw_input_field('products_vpe_name[' . $languages[$i]['id'] . ']', xtc_get_products_vpe_name($oInfo->products_vpe_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_PRODUCTS_VPE_NAME . $products_vpe_inputs_string);
if (DEFAULT_PRODUCTS_VPE_ID != $oInfo->products_vpe_id) {
$contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
}
$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_PRODUCTS_VPE, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_vpe_id) . '">' . BUTTON_CANCEL . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PRODUCTS_VPE . '</b>');
$contents = array('form' => xtc_draw_form('status', FILENAME_PRODUCTS_VPE, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_vpe_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->products_vpe_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_PRODUCTS_VPE, 'page=' . $_GET['page'] . '&oID=' . $oInfo->products_vpe_id) . '">' . BUTTON_CANCEL . '</a>');
}
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->products_vpe_name . '</b>');
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:products_vpe.php
示例12: array
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'backup':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>');
$contents = array('form' => xtc_draw_form('backup', BK_FILENAME, 'action=backupnow'));
$contents[] = array('text' => TEXT_INFO_NEW_BACKUP);
if ($messageStack->size > 0) {
$contents[] = array('text' => '<br />' . xtc_draw_radio_field('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION);
} else {
if (function_exists('gzopen')) {
$contents[] = array('text' => '<br />' . xtc_draw_radio_field('compress', 'gzip', true) . ' ' . TEXT_INFO_USE_GZIP);
}
$contents[] = array('text' => xtc_draw_radio_field('compress', 'no') . ' ' . TEXT_INFO_USE_NO_COMPRESSION);
$contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('complete_inserts', 'yes', true) . ' ' . TEXT_COMPLETE_INSERTS);
}
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_BACKUP . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_BACKUP) . '">' . BUTTON_CANCEL . '</a>');
break;
case 'restore':
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents[] = array('text' => xtc_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' '));
$contents[] = array('align' => 'center', 'text' => '<br /><a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(RS_FILENAME, 'file=' . $buInfo->file . '&action=restorenow') . '">' . BUTTON_RESTORE . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . BUTTON_CANCEL . '</a>');
break;
case 'restorelocal':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
$contents = array('form' => xtc_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br /><br />' . TEXT_INFO_BEST_THROUGH_HTTPS);
$contents[] = array('text' => '<br />' . xtc_draw_file_field('sql_file'));
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPLOAD . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_BACKUP) . '">' . BUTTON_CANCEL . '</a>');
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:backup.php
示例13: display
function display()
{
//Array für max. Bilder pro Seitenreload
$max_array = array(array('id' => '5', 'text' => '5'));
$max_array[] = array('id' => '10', 'text' => '10');
$max_array[] = array('id' => '15', 'text' => '15');
$max_array[] = array('id' => '20', 'text' => '20');
$max_array[] = array('id' => '50', 'text' => '50');
return array('text' => xtc_draw_hidden_field('process', 'module_processing_do') . xtc_draw_hidden_field('max_images1', '5') . IMAGE_EXPORT_TYPE . '<br />' . IMAGE_EXPORT . '<br />' . '<br />' . xtc_draw_pull_down_menu('max_datasets', $max_array, '5') . ' ' . TEXT_MAX_IMAGES . '<br />' . '<br />' . xtc_draw_checkbox_field('only_missing_images', '1', false) . ' ' . TEXT_ONLY_MISSING_IMAGES . '<br />' . '<br />' . xtc_button(BUTTON_START) . ' ' . xtc_button_link(BUTTON_CANCEL, xtc_href_link(FILENAME_MODULE_EXPORT, 'set=' . $_GET['set'] . '&module=image_processing_step')));
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:10,代码来源:image_processing_step.php
示例14: get_html
function get_html($p_products_array)
{
$coo_properties_control = MainFactory::create_object('PropertiesControl');
$coo_properties_view = MainFactory::create_object('PropertiesView');
$t_content_array = array();
$module_content = array();
$any_out_of_stock = '';
$mark_stock = '';
$coo_seo_boost = MainFactory::create_object('GMSEOBoost');
$coo_main = new main();
$xtPrice = new xtcPrice($_SESSION['currency'], $_SESSION['customers_status']['customers_status_id']);
for ($i = 0, $n = sizeof($p_products_array); $i < $n; $i++) {
$t_combis_id = $coo_properties_control->extract_combis_id($p_products_array[$i]['id']);
// check if combis_id is empty
if ($t_combis_id == '') {
// combis_id is empty = article without properties
if (STOCK_CHECK == 'true') {
$mark_stock = xtc_check_stock($p_products_array[$i]['id'], $p_products_array[$i]['quantity']);
if ($mark_stock) {
$_SESSION['any_out_of_stock'] = 1;
}
}
}
$image = '';
if ($p_products_array[$i]['image'] != '') {
$image = DIR_WS_THUMBNAIL_IMAGES . $p_products_array[$i]['image'];
}
//bof gm
$gm_products_id = $p_products_array[$i]['id'];
$gm_products_id = str_replace('{', '_', $gm_products_id);
$gm_products_id = str_replace('}', '_', $gm_products_id);
$gm_query = xtc_db_query("SELECT gm_show_weight FROM products WHERE products_id='" . $p_products_array[$i]['id'] . "'");
$gm_array = xtc_db_fetch_array($gm_query);
if (empty($gm_array['gm_show_weight'])) {
$p_products_array[$i]['gm_weight'] = 0;
}
$gm_product_link = xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($p_products_array[$i]['id'], $p_products_array[$i]['name']) . '&no_boost=1');
include DIR_FS_CATALOG . 'gm/modules/gm_gprint_order_details_cart.php';
$t_shipping_time = $p_products_array[$i]['shipping_time'];
$t_products_weight = $p_products_array[$i]['gm_weight'];
$t_products_model = $p_products_array[$i]['model'];
#properties
if ($t_combis_id != '') {
$t_properties_html = $coo_properties_view->get_order_details_by_combis_id($t_combis_id, 'cart');
$coo_products = MainFactory::create_object('GMDataObject', array('products', array('products_id' => $p_products_array[$i]['id'])));
$use_properties_combis_quantity = $coo_products->get_data_value('use_properties_combis_quantity');
if ($use_properties_combis_quantity == 1) {
// check article quantity
$mark_stock = xtc_check_stock($p_products_array[$i]['id'], $p_products_array[$i]['quantity']);
if ($mark_stock) {
$_SESSION['any_out_of_stock'] = 1;
}
} else {
if ($use_properties_combis_quantity == 0 && ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true' || $use_properties_combis_quantity == 2) {
// check combis quantity
$t_properties_stock = $coo_properties_control->get_properties_combis_quantity($t_combis_id);
if ($t_properties_stock < $p_products_array[$i]['quantity']) {
$_SESSION['any_out_of_stock'] = 1;
$mark_stock = '<span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>';
}
}
}
$t_weight = $coo_properties_control->get_properties_combis_weight($t_combis_id);
if ($coo_products->get_data_value('use_properties_combis_weight') == 1) {
$t_products_weight = gm_prepare_number($t_weight, $xtPrice->currencies[$xtPrice->actualCurr]['decimal_point']);
} else {
$t_products_weight = gm_prepare_number($t_weight + $p_products_array[$i]['weight'], $xtPrice->currencies[$xtPrice->actualCurr]['decimal_point']);
}
if ($coo_products->get_data_value('use_properties_combis_shipping_time') == 1) {
$t_shipping_time = $coo_properties_control->get_properties_combis_shipping_time($t_combis_id);
}
$t_combi_model = $coo_properties_control->get_properties_combis_model($t_combis_id);
if (APPEND_PROPERTIES_MODEL == "true") {
// Artikelnummer (Kombi) an Artikelnummer (Artikel) anhängen
if ($t_products_model != '' && $t_combi_model != '') {
$t_products_model = $t_products_model . '-' . $t_combi_model;
} else {
if ($t_combi_model != '') {
$t_products_model = $t_combi_model;
}
}
} else {
// Artikelnummer (Artikel) durch Artikelnummer (Kombi) ersetzen
if ($t_combi_model != '') {
$t_products_model = $t_combi_model;
}
}
} else {
$t_properties_html = '';
}
$module_content[$i] = array('PRODUCTS_NAME' => $p_products_array[$i]['name'] . $mark_stock, 'PRODUCTS_QTY' => xtc_draw_input_field('cart_quantity[]', gm_convert_qty($p_products_array[$i]['quantity'], false), ' size="2" onblur="gm_qty_is_changed(' . $p_products_array[$i]['quantity'] . ', this.value, \'' . GM_QTY_CHANGED_MESSAGE . '\')"', 'text', true, "gm_cart_data gm_class_input") . xtc_draw_hidden_field('products_id[]', $p_products_array[$i]['id'], 'class="gm_cart_data"') . xtc_draw_hidden_field('old_qty[]', $p_products_array[$i]['quantity']), 'PRODUCTS_OLDQTY_INPUT_NAME' => 'old_qty[]', 'PRODUCTS_QTY_INPUT_NAME' => 'cart_quantity[]', 'PRODUCTS_QTY_VALUE' => gm_convert_qty($p_products_array[$i]['quantity'], false), 'PRODUCTS_ID_INPUT_NAME' => 'products_id[]', 'PRODUCTS_ID_EXTENDED' => $p_products_array[$i]['id'], 'PRODUCTS_MODEL' => $t_products_model, 'SHOW_PRODUCTS_MODEL' => SHOW_PRODUCTS_MODEL, 'PRODUCTS_SHIPPING_TIME' => $t_shipping_time, 'PRODUCTS_TAX' => (double) $p_products_array[$i]['tax'], 'PRODUCTS_IMAGE' => $image, 'IMAGE_ALT' => $p_products_array[$i]['name'], 'BOX_DELETE' => xtc_draw_checkbox_field('cart_delete[]', $p_products_array[$i]['id'], false, 'id="gm_delete_product_' . $gm_products_id . '"'), 'PRODUCTS_LINK' => $gm_product_link, 'PRODUCTS_PRICE' => $xtPrice->xtcFormat($p_products_array[$i]['price'] * $p_products_array[$i]['quantity'], true), 'PRODUCTS_SINGLE_PRICE' => $xtPrice->xtcFormat($p_products_array[$i]['price'], true), 'PRODUCTS_SHORT_DESCRIPTION' => xtc_get_short_description($p_products_array[$i]['id']), 'ATTRIBUTES' => '', 'PROPERTIES' => $t_properties_html, 'GM_WEIGHT' => $t_products_weight, 'PRODUCTS_ID' => $gm_products_id, 'UNIT' => $p_products_array[$i]['unit_name']);
//eof gm
// Product options names
$attributes_exist = isset($p_products_array[$i]['attributes']) ? 1 : 0;
if ($attributes_exist == 1) {
reset($p_products_array[$i]['attributes']);
while (list($option, $value) = each($p_products_array[$i]['attributes'])) {
if (ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true' && $value != 0) {
$attribute_stock_check = xtc_check_stock_attributes($p_products_array[$i][$option]['products_attributes_id'], $p_products_array[$i]['quantity']);
if ($attribute_stock_check) {
//.........这里部分代码省略.........
开发者ID:digitaldevelopers,项目名称:gambio-gx2-bitcoin-payment,代码行数:101,代码来源:OrderDetailsCartContentView.inc.php
示例15: xtc_href_link
// include needed functions
require_once DIR_FS_INC . 'xtc_get_categories.inc.php';
require_once DIR_FS_INC . 'xtc_get_manufacturers.inc.php';
require_once DIR_FS_INC . 'xtc_checkdate.inc.php';
$breadcrumb->add(NAVBAR_TITLE_ADVANCED_SEARCH, xtc_href_link(FILENAME_ADVANCED_SEARCH));
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('FORM_ACTION', xtc_draw_form('advanced_search', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get', 'onsubmit="return check_form(this);"') . xtc_hide_session_id());
//WEB28 change NONSSL to $request_type
$smarty->assign('INPUT_KEYWORDS', xtc_draw_input_field('keywords', '', 'style="width: 100%"'));
//BOF - DokuMan - 2009-05-31 - removed quotationmark
//$smarty->assign('HELP_LINK', xtc_href_link(FILENAME_POPUP_SEARCH_HELP.'?KeepThis=true&TB_iframe=true&height=400&width=600"'));
$smarty->assign('HELP_LINK', xtc_href_link(FILENAME_POPUP_SEARCH_HELP . '?KeepThis=true&TB_iframe=true&height=400&width=600'));
//EOF - DokuMan - 2009-05-31 - removed quotationmark
$smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH));
$smarty->assign('SELECT_CATEGORIES', xtc_draw_pull_down_menu('categories_id', xtc_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))));
$smarty->assign('ENTRY_SUBCAT', xtc_draw_checkbox_field('inc_subcat', '1', true));
$smarty->assign('SELECT_MANUFACTURERS', xtc_draw_pull_down_menu('manufacturers_id', xtc_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))));
$smarty->assign('SELECT_PFROM', xtc_draw_input_field('pfrom'));
$smarty->assign('SELECT_PTO', xtc_draw_input_field('pto'));
$error = '';
if (isset($_GET['errorno'])) {
if (($_GET['errorno'] & 1) == 1) {
$error .= str_replace('\\n', '<br />', JS_AT_LEAST_ONE_INPUT);
}
if (($_GET['errorno'] & 10) == 10) {
$error .= str_replace('\\n', '<br />', JS_INVALID_FROM_DATE);
}
if (($_GET['errorno'] & 100) == 100) {
$error .= str_replace('\\n', '<br />', JS_INVALID_TO_DATE);
}
if (($_GET['errorno'] & 1000) == 1000) {
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:advanced_search.php
示例16: display
//.........这里部分代码省略.........
if (strpos($missing_config_db, "pagesize_input") !== false) {
$missing_config_page_size_input = IDEALO_TEXT_MISSING_CONFIG;
}
if (strpos($missing_config_db, "shipping") !== false && strpos($missing_config_db, "shippingDE") === false) {
$missing_config_shipping = IDEALO_TEXT_MISSING_SHIPPING;
}
if (strpos($missing_config_db, "payment") !== false) {
$missing_config_payment = IDEALO_TEXT_MISSING_PAYMENT;
}
if (strpos($missing_config_db, "idealo_DE_active") !== false) {
$missing_config_costs_idealo_DE_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE;
}
if (strpos($missing_config_db, "idealo_AT_active") !== false) {
$missing_config_costs_idealo_AT_active = IDEALO_TEXT_MISSING_COSTS_IDEALO_DE;
}
if (strpos($missing_config_db, "shippingDElenght") !== false || strpos($missing_config_db, "shippingDEone") !== false) {
$missing_config_format_idealo_DE_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_DE . '</b></font>';
}
if (strpos($missing_config_db, "shippingATlenght") !== false || strpos($missing_config_db, "shippingATone") !== false) {
$missing_config_format_idealo_AT_shipping = '<font color="#FF0000"><b>* ' . IDEALO_TEXT_WRONG_COSTS_FORMAT_AT . '</b></font>';
}
}
$realtime_link = $path = HTTP_CATALOG_SERVER . DIR_WS_CATALOG . IDEALO_REALTIME_LINK;
$shipping_input_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_SHIPPINGCOMMENT' LIMIT 1");
$shipping_comment_db = xtc_db_fetch_array($shipping_input_query);
$shipping_comment_text = $shipping_comment_db !== false ? $shipping_comment_db['configuration_value'] : '';
$shop_id_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_IDEALO_REALTIME_SHOP_ID' LIMIT 1");
$shop_id_db = xtc_db_fetch_array($shop_id_query);
$shop_id = $shop_id_db['configuration_value'];
$password_query = xtc_db_que
|
请发表评论