本文整理汇总了PHP中oos_draw_checkbox_field函数的典型用法代码示例。如果您正苦于以下问题:PHP oos_draw_checkbox_field函数的具体用法?PHP oos_draw_checkbox_field怎么用?PHP oos_draw_checkbox_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了oos_draw_checkbox_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_NAME . '<br />' . oos_draw_input_field('name'));
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_ISO_639_2 . '<br />' . oos_draw_input_field('iso_639_2'));
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_ISO_639_1 . '<br />' . oos_draw_input_field('iso_639_1'));
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('insert','insert_off.gif', IMAGE_INSERT) . ' <a href="' . oos_href_link_admin($aFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $_GET['lID']) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>');
$contents = array('form' => oos_draw_form('languages', $aFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_NAME . '<br />' . oos_draw_input_field('name', $lInfo->name));
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_ISO_639_2 . '<br />' . oos_draw_input_field('iso_639_2', $lInfo->iso_639_2));
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_ISO_639_1 . '<br />' . oos_draw_input_field('iso_639_1', $lInfo->iso_639_1));
$contents[] = array('text' => '<br />' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br />' . oos_draw_input_field('sort_order', $lInfo->sort_order));
if (DEFAULT_LANGUAGE != $lInfo->iso_639_2 && $lInfo->status == '1' ) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>');
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $lInfo->name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br />' . (($remove_language) ? '<a href="' . oos_href_link_admin($aFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . oos_image_swap_button('delete','delete_off.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . oos_href_link_admin($aFilename['languages'], 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($lInfo) && is_object($lInfo)) {
$heading[] = array('text' => '<b>' . $lInfo->name . '</b>');
示例2: array
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TEXT_REPLY . '</b>');
$contents = array('form' => oos_draw_form('reply', $aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$ticket_reply_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$ticket_reply_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('ticket_reply_name[' . $languages[$i]['id'] . ']', oos_get_ticket_reply_name($oInfo->ticket_reply_id, $languages[$i]['id']));
}
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$ticket_reply_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_textarea_field('ticket_reply_text[' . $languages[$i]['id'] . ']','soft', 50, 10,oos_get_ticket_reply_text($oInfo->ticket_reply_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_TEXT_REPLY_NAME . $ticket_reply_inputs_string);
if (TICKET_DEFAULT_REPLY_ID != $oInfo->ticket_reply_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TEXT_REPLY . '</b>');
$contents = array('form' => oos_draw_form('reply', $aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->ticket_reply_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete','delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->ticket_reply_name . '</b>');
示例3: array
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('insert', 'insert_off.gif', IMAGE_INSERT) . ' <a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $_GET['cID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CURRENCY . '</b>');
$contents = array('form' => oos_draw_form('currencies', $aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_TITLE . '<br />' . oos_draw_input_field('title', $cInfo->title));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_CODE . '<br />' . oos_draw_input_field('code', $cInfo->code));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . '<br />' . oos_draw_input_field('symbol_left', $cInfo->symbol_left));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_SYMBOL_RIGHT . '<br />' . oos_draw_input_field('symbol_right', $cInfo->symbol_right));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_DECIMAL_POINT . '<br />' . oos_draw_input_field('decimal_point', $cInfo->decimal_point));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_THOUSANDS_POINT . '<br />' . oos_draw_input_field('thousands_point', $cInfo->thousands_point));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_DECIMAL_PLACES . '<br />' . oos_draw_input_field('decimal_places', $cInfo->decimal_places));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_VALUE . '<br />' . oos_draw_input_field('currency_value', $cInfo->value));
if (DEFAULT_CURRENCY != $cInfo->code) {
$contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT);
}
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CURRENCY . '</b>');
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $cInfo->title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br />' . ($remove_currency ? '<a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<b>' . $cInfo->title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['currencies'], 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_TITLE . ' ' . $cInfo->title);
$contents[] = array('text' => TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
示例4: array
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TEXT_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$ticket_status_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$ticket_status_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('ticket_status_name[' . $languages[$i]['id'] . ']', oos_get_ticket_status_name($oInfo->ticket_status_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_TEXT_STATUS_NAME . $ticket_status_inputs_string);
if (TICKET_DEFAULT_STATUS_ID != $oInfo->ticket_status_id) {
$contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
}
if (TICKET_CUSTOMER_REPLY_STATUS_ID != $oInfo->ticket_status_id) {
$contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default2') . ' ' . TEXT_SET_DEFAULT_REPLY);
}
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TEXT_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->ticket_status_name . '</b>');
if ($remove_status) {
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
}
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->ticket_status_name . '</b>');
示例5: oos_draw_file_field
}
?>
<td class="main"><?php
echo ' ' . oos_draw_file_field('products_subimage5') . oos_draw_hidden_field('products_previous_subimage5', $pInfo->products_subimage5);
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_SUBIMAGE6;
?>
</td>
<?php
if (oos_is_not_null($pInfo->products_subimage6)) {
echo ' <td align="center"><a href="javascript:popupImageWindow(\'' . oos_href_link_admin($aFilename['popup_subimage_product'], 'bimage=' . $pInfo->products_subimage6) . '\')">' . oos_image(OOS_SHOP_IMAGES . $pInfo->products_subimage6, $pInfo->products_name, '', '80') . '</a></td>';
echo ' <td><span class="smallText"> ' . oos_draw_checkbox_field('remove_subimage6', 'yes') . TEXT_PRODUCTS_IMAGE_REMOVE . '<br /> ' . oos_draw_checkbox_field('delete_subimage6', 'yes') . TEXT_PRODUCTS_IMAGE_DELETE . '<br /><br /> <b>' . TEXT_PRODUCTS_IMAGE . '</b> ' . $pInfo->products_subimage6 . '</span></td>';
} else {
echo ' <td colspan="2">' . oos_draw_separator('trans.gif', '80', '1') . '</td>';
}
?>
<td class="main"><?php
echo ' ' . oos_draw_file_field('products_subimage6') . oos_draw_hidden_field('products_previous_subimage6', $pInfo->products_subimage6);
?>
</td>
</tr>
<?php
}
?>
</table><br />
<table border="0" cellspacing="0" cellpadding="2">
<tr>
示例6: cart_date_short
// Move that ADOdb pointer!
$result3->MoveNext();
}
}
$sentInfo = TEXT_NOT_CONTACTED;
if (!empty($sentdate)) {
$sentInfo = cart_date_short($sentdate);
}
$cline = '
<tr bgcolor="' . $fcolor . '">
<td class="dataTableContent" align="center" width="1%">' . oos_draw_checkbox_field('custid[]', $curcus, RCS_AUTO_CHECK == '1' ? $checked : 0) . '</td>
<td class="dataTableContent" align="left" width="9%" nowrap><b>' . $sentInfo . '</b></td>
<td class="dataTableContent" align="left" width="15%" nowrap>' . cart_date_short($inrec['bdate']) . '</td>
<td class="dataTableContent" align="left" width="30%" nowrap><a href="' . oos_href_link_admin($aFilename['customers'], 'search=' . $inrec['lname'], 'NONSSL') . '">' . $customer . '</a>' . $status . '</td>
<td class="dataTableContent" align="left" colspan="2" width="30%" nowrap><a href="' . oos_href_link_admin($aFilename['mail'], 'selected_box=tools&customer=' . $inrec['email']) . '">' . $inrec['email'] . '</a></td>
<td class="dataTableContent" align="left" colspan="2" width="15%" nowrap>' . $inrec['phone'] . '</td>
</tr>';
echo $cline;
}
}
// We only have something to do for the product if the quantity selected was not zero!
if ($inrec['qty'] != 0) {
// Get the product information (name, price, etc)
$productstable = $oostable['products'];
$products_descriptiontable = $oostable['products_description'];
示例7: intval
$nPageType = OOS_PAGE_TYPE_CHECKOUT;
require 'includes/oos_system.php';
if (!isset($option)) {
require 'includes/info_message.php';
require 'includes/oos_blocks.php';
}
//ICW ADDED FOR ORDER_TOTAL CREDIT SYSTEM - Start Addition
$coupon_gv_customertable = $oostable['coupon_gv_customer'];
$sql = "SELECT amount\n FROM {$coupon_gv_customertable}\n WHERE customer_id = '" . intval($_SESSION['customer_id']) . "'";
$gv_amount = $dbconn->GetOne($sql);
$oSmarty->assign('gv_amount', $gv_amount);
$products_notify = '';
if ($global['global_product_notifications'] != '1') {
$products_notify .= $aLang['text_notify_products'] . '<br /><p class="productsNotifications">';
$products_displayed = array();
for ($i = 0, $n = count($products_array); $i < $n; $i++) {
if (!in_array($products_array[$i]['id'], $products_displayed)) {
$products_notify .= oos_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br />';
$products_displayed[] = $products_array[$i]['id'];
}
}
$products_notify .= '</p>';
} else {
$products_notify .= $aLang['text_see_orders'] . '<br /><br />' . $aLang['text_contact_store_owner'];
}
// assign Smarty variables;
$oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'products_notify' => $products_notify, 'oos_heading_image' => 'man_on_board.gif'));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));
// display the template
require 'includes/oos_display.php';
示例8: array
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TEXT_DEPARTMENT . '</b>');
$contents = array('form' => oos_draw_form('department', $aFilename['ticket_department'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_department_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$ticket_department_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$ticket_department_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('ticket_department_name[' . $languages[$i]['id'] . ']', oos_get_ticket_department_name($oInfo->ticket_department_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_TEXT_DEPARTMENT_NAME . $ticket_department_inputs_string);
if (TICKET_DEFAULT_DEPARTMENT_ID != $oInfo->ticket_department_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_department'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_department_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TEXT_DEPARTMENT . '</b>');
$contents = array('form' => oos_draw_form('department', $aFilename['ticket_department'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_department_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->ticket_department_name . '</b>');
if ($remove_department) $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete','delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_department'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_department_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->ticket_department_name . '</b>');
示例9: array
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TEXT_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$ticket_status_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$ticket_status_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('ticket_status_name[' . $languages[$i]['id'] . ']', oos_get_ticket_status_name($oInfo->ticket_status_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_TEXT_STATUS_NAME . $ticket_status_inputs_string);
if (TICKET_DEFAULT_STATUS_ID != $oInfo->ticket_status_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
if (TICKET_CUSTOMER_REPLY_STATUS_ID != $oInfo->ticket_status_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default2') . ' ' . TEXT_SET_DEFAULT_REPLY);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TEXT_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->ticket_status_name . '</b>');
if ($remove_status) $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete','delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->ticket_status_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id . '&action=edit') . '">' . oos_image_swap_button('edit','edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['ticket_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_status_id . '&action=delete') . '">' . oos_image_swap_button('delete','delete_off.gif', IMAGE_DELETE) . '</a>');
示例10: oos_draw_input_field
<?php
}
?>
<tr>
<td align="left" class="main"><?php echo COUPON_AMOUNT; ?></td>
<td align="left"><?php echo oos_draw_input_field('coupon_amount', $coupon_amount); ?></td>
<td align="left" class="main"><?php echo COUPON_AMOUNT_HELP; ?></td>
</tr>
<tr>
<td align="left" class="main"><?php echo COUPON_MIN_ORDER; ?></td>
<td align="left"><?php echo oos_draw_input_field('coupon_min_order', $coupon_min_order); ?></td>
<td align="left" class="main"><?php echo COUPON_MIN_ORDER_HELP; ?></td>
</tr>
<tr>
<td align="left" class="main"><?php echo COUPON_FREE_SHIP; ?></td>
<td align="left"><?php echo oos_draw_checkbox_field('coupon_free_ship', $coupon_free_ship); ?></td>
<td align="left" class="main"><?php echo COUPON_FREE_SHIP_HELP; ?></td>
</tr>
<tr>
<td align="left" class="main"><?php echo COUPON_CODE; ?></td>
<td align="left"><?php echo oos_draw_input_field('coupon_code', $coupon_code); ?></td>
<td align="left" class="main"><?php echo COUPON_CODE_HELP; ?></td>
</tr>
<tr>
<td align="left" class="main"><?php echo COUPON_USES_COUPON; ?></td>
<td align="left"><?php echo oos_draw_input_field('coupon_uses_coupon', $coupon_uses_coupon); ?></td>
<td align="left" class="main"><?php echo COUPON_USES_COUPON_HELP; ?></td>
</tr>
<tr>
<td align="left" class="main"><?php echo COUPON_USES_USER; ?></td>
<td align="left"><?php echo oos_draw_input_field('coupon_uses_user', $coupon_uses_user); ?></td>
示例11: oos_select_block_to_page
/**
* Return Select Block To Page
*
* @param $block_id
* @param $language
* @return string
*/
function oos_select_block_to_page($lang_id = '')
{
$select_page_type = '';
if (!$lang_id) {
$lang_id = $_SESSION['language_id'];
}
// Get database information
$dbconn =& oosDBGetConn();
$oostable =& oosDBGetTables();
$page_typetable = $oostable['page_type'];
$query = "SELECT page_type_id, page_type_name\n FROM " . $page_typetable . "\n WHERE page_type_languages_id = '" . intval($lang_id) . "'";
$result =& $dbconn->Execute($query);
while ($type = $result->fields) {
$select_page_type .= oos_draw_checkbox_field('page_type[]', $type['page_type_id']) . $type['page_type_name'] . '<br />';
// Move that ADOdb pointer!
$result->MoveNext();
}
// Close result set
$result->Close();
return $select_page_type;
}
示例12: array
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_PRODUCTS_UNITS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['products_units'], 'page=' . $_GET['page'] . '&uID=' . $oInfo->products_units_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$products_units_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$products_units_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('products_unit_name[' . $languages[$i]['id'] . ']', oos_get_products_units_name($oInfo->products_units_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_PRODUCTS_UNITS_NAME . $products_units_inputs_string);
if (DEFAULT_PRODUCTS_UNITS_ID != $oInfo->products_units_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['products_units'], 'page=' . $_GET['page'] . '&uID=' . $oInfo->products_units_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PRODUCTS_UNITS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['products_units'], 'page=' . $_GET['page'] . '&uID=' . $oInfo->products_units_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $oInfo->products_unit_name . '</b>');
if ($remove_status) $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['products_units'], 'page=' . $_GET['page'] . '&uID=' . $oInfo->products_units_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->products_unit_name . '</b>');
示例13: intval
$products_result_raw = "SELECT p.products_id, p.products_model, p.products_image, p.products_price, pd.products_name, p.products_id
FROM $productstable p,
$products_descriptiontable pd
WHERE p.products_id = pd.products_id
AND pd.products_languages_id = '" . intval($_SESSION['language_id']) . "'
ORDER BY p.products_id asc";
$products_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $products_result_raw, $products_result_numrows);
$products_result = $dbconn->Execute($products_result_raw);
while ($products = $products_result->fields) {
$up_sold_result = $dbconn->Execute('SELECT * FROM '.$oostable['products_up_sell'].' WHERE products_id = "'.$_GET['add_related_product_ID'].'" AND up_sell_id = "'.$products['products_id'].'"');
?>
<tr bgcolor='#DFE4F4'>
<td class="dataTableContent" align="center"> <?php echo $products['products_id'];?> </td>
<td class="dataTableContent" align="center"> <?php echo $products['products_model'];?> </td>
<td class="dataTableContent" align="center"> <?php echo oos_info_image($products['products_image'], $products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);?> </td>
<td class="dataTableContent"> <?php echo oos_draw_hidden_field('product[]', $products['products_id']) . oos_draw_checkbox_field('up[]', $products['products_id'], (($up_sold_result->RecordCount() > 0) ? true : false), '', ' onMouseOver="this.style.cursor=\'hand\'"');?> <label onMouseOver="this.style.cursor='hand'"><?php echo TEXT_UP_SELL;?></label> </td>
<td class="dataTableContent"> <?php echo $products['products_name'];?> </td>
<td class="dataTableContent"> <?php echo $currencies->format($products['products_price']);?> </td>
</tr>
<?php
// Move that ADOdb pointer!
$products_result->MoveNext();
}
// Close result set
$products_result->Close();
?>
</table></form></td>
</tr>
<tr>
<td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="infoBoxContent">
<tr>
示例14: array
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_ORDERS_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['orders_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$orders_status_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$orders_status_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('orders_status_name[' . $languages[$i]['id'] . ']', oos_get_orders_status_name($oInfo->orders_status_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_ORDERS_STATUS_NAME . $orders_status_inputs_string);
if (DEFAULT_ORDERS_STATUS_ID != $oInfo->orders_status_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['orders_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDERS_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['orders_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_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 />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['orders_status'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->orders_status_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>' . $oInfo->orders_status_name . '</b>');
示例15: array
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_ORDERS_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$products_status_inputs_string = '';
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$products_status_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . ' ' . oos_draw_input_field('products_status_name[' . $languages[$i]['id'] . ']', oos_get_products_status_name($psInfo->products_status_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_ORDERS_STATUS_NAME . $products_status_inputs_string);
if (DEFAULT_PRODUTS_STATUS_ID != $psInfo->products_status_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDERS_STATUS . '</b>');
$contents = array('form' => oos_draw_form('status', $aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $psInfo->products_status_name . '</b>');
if ($remove_status) $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete','delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['products_status'], 'page=' . $_GET['page'] . '&psID=' . $psInfo->products_status_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($psInfo) && is_object($psInfo)) {
$heading[] = array('text' => '<b>' . $psInfo->products_status_name . '</b>');