本文整理汇总了PHP中oos_draw_hidden_field函数的典型用法代码示例。如果您正苦于以下问题:PHP oos_draw_hidden_field函数的具体用法?PHP oos_draw_hidden_field怎么用?PHP oos_draw_hidden_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了oos_draw_hidden_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process_button
function process_button()
{
global $oOrder, $oCurrencies;
if (MODULE_PAYMENT_MONEYBOOKERS_LANGUAGE == 'Selected Language') {
$my_language = 'EN';
} else {
$my_language = MODULE_PAYMENT_MONEYBOOKERS_LANGUAGE;
}
if (MODULE_PAYMENT_MONEYBOOKERS_CURRENCY == 'Selected Currency') {
$my_currency = $_SESSION['currency'];
} else {
$my_currency = substr(MODULE_PAYMENT_MONEYBOOKERS_CURRENCY, 5);
}
if (!in_array($my_currency, array('EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR'))) {
$my_currency = 'EUR';
}
$aPages = oos_get_pages();
$process_button_string = oos_draw_hidden_field('pay_to_email', MODULE_PAYMENT_MONEYBOOKERS_ID) . oos_draw_hidden_field('language', $my_language) . oos_draw_hidden_field('amount', number_format($oOrder->info['total'] * $oCurrencies->get_value($my_currency), $oCurrencies->get_decimal_places($my_currency))) . oos_draw_hidden_field('currency', $my_currency) . oos_draw_hidden_field('detail1_description', STORE_NAME) . oos_draw_hidden_field('detail1_text', 'Order - ' . date('d. M Y - H:i')) . oos_draw_hidden_field('firstname', $oOrder->billing['firstname']) . oos_draw_hidden_field('lastname', $oOrder->billing['lastname']) . oos_draw_hidden_field('address', $oOrder->billing['street_address']) . oos_draw_hidden_field('postal_code', $oOrder->billing['postcode']) . oos_draw_hidden_field('city', $oOrder->billing['city']) . oos_draw_hidden_field('country', $oOrder->billing['country']['moneybookers']) . oos_draw_hidden_field('pay_from_email', $oOrder->customer['email_address']) . oos_draw_hidden_field('return', oos_href_link($aPages['checkout_process'], '', 'SSL')) . oos_draw_hidden_field('cancel_return', oos_href_link($aPages['checkout_payment'], '', 'SSL'));
return $process_button_string;
}
示例2: array
if ($_GET['gName'] == '0') {
$contents[] = array('text' => TEXT_INFO_GROUPS_NAME_FALSE . '<br /> ');
} elseif ($_GET['gName'] == 'used') {
$contents[] = array('text' => TEXT_INFO_GROUPS_NAME_USED . '<br /> ');
}
$contents[] = array('align' => 'center', 'text' => TEXT_INFO_EDIT_GROUP_INTRO . '<br /> <br />' . oos_draw_input_field('admin_groups_name', $gInfo->admin_groups_name));
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['admin_members'], 'gID=' . $gInfo->admin_groups_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'del_group':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_GROUPS . '</b>');
$contents = array('form' => oos_draw_form('delete_group', $aFilename['admin_members'], 'action=group_delete&gID=' . $gInfo->admin_groups_id, 'post', 'enctype="multipart/form-data"'));
if ($gInfo->admin_groups_id == 1) {
$contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_GROUPS_INTRO_NOT, $gInfo->admin_groups_name));
$contents[] = array('align' => 'center', 'text' => '<br /><a href="' . oos_href_link_admin($aFilename['admin_members'], 'gID=' . $_GET['gID']) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a><br /> ');
} else {
$contents[] = array('text' => oos_draw_hidden_field('set_groups_id', substr($del_groups_prepare, 4)));
$contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_GROUPS_INTRO, $gInfo->admin_groups_name));
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['admin_members'], 'gID=' . $_GET['gID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a><br /> ');
}
break;
case 'define_group':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DEFINE . '</b>');
$contents[] = array('text' => sprintf(TEXT_INFO_DEFINE_INTRO, $group_name['admin_groups_name']));
if ($_GET['gPath'] == 1) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['admin_members'], 'gID=' . $_GET['gPath']) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_CANCEL) . '</a><br />');
}
break;
case 'show_group':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_GROUP . '</b>');
$check_email_query = "SELECT admin_email_address FROM " . $oostable['admin'] . "";
$check_email_result =& $dbconn->Execute($check_email_query);
示例3: oos_draw_separator
</td>
</tr>
<tr>
<td><?php
echo oos_draw_separator('trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td>
<?php
/* Re-Post all POST'ed variables */
reset($_POST);
while (list($key, $value) = each($_POST)) {
if (!is_array($_POST[$key])) {
echo oos_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
}
}
?>
<table border="0" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><?php
echo oos_image_swap_submits('back', 'back_off.gif', IMAGE_BACK, 'name="back"');
?>
</td>
<td align="right"><?php
echo '<a href="' . oos_href_link_admin($aFilename['gv_mail']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a> ' . oos_image_swap_submits('send_mail', 'send_mail_off.gif', IMAGE_SEND_EMAIL);
?>
</td>
</tr>
</table></td>
示例4: oos_get_languages
$languages = oos_get_languages();
for ($i = 0, $n = count($languages); $i < $n; $i++) {
$lang_id = $languages[$i]['id'];
echo oos_draw_hidden_field('coupon_name[' . $languages[$i]['id'] . ']', $_POST['coupon_name'][$lang_id]);
echo oos_draw_hidden_field('coupon_desc[' . $languages[$i]['id'] . ']', $_POST['coupon_desc'][$lang_id]);
}
echo oos_draw_hidden_field('coupon_amount', $_POST['coupon_amount']);
echo oos_draw_hidden_field('coupon_min_order', $_POST['coupon_min_order']);
echo oos_draw_hidden_field('coupon_free_ship', $_POST['coupon_free_ship']);
echo oos_draw_hidden_field('coupon_code', $c_code);
echo oos_draw_hidden_field('coupon_uses_coupon', $_POST['coupon_uses_coupon']);
echo oos_draw_hidden_field('coupon_uses_user', $_POST['coupon_uses_user']);
echo oos_draw_hidden_field('coupon_products', $_POST['coupon_products']);
echo oos_draw_hidden_field('coupon_categories', $_POST['coupon_categories']);
echo oos_draw_hidden_field('coupon_startdate', date('Y-m-d', mktime(0, 0, 0, $_POST['coupon_startdate_month'], $_POST['coupon_startdate_day'], $_POST['coupon_startdate_year'])));
echo oos_draw_hidden_field('coupon_finishdate', date('Y-m-d', mktime(0, 0, 0, $_POST['coupon_finishdate_month'], $_POST['coupon_finishdate_day'], $_POST['coupon_finishdate_year'])));
?>
<tr>
<td align="left"><?php
echo oos_image_swap_submits('confirm', 'confirm_off.gif', COUPON_BUTTON_CONFIRM);
?>
</td>
<td align="left"><?php
echo oos_image_swap_submits('back', 'back_off.gif', COUPON_BUTTON_BACK, 'name=back');
?>
</td>
</td>
</tr>
</td></table></form>
</tr>
示例5: oos_draw_hidden_field
echo oos_draw_hidden_field('products_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description[$languages[$i]['id']])));
echo oos_draw_hidden_field('products_description_meta[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description_meta[$languages[$i]['id']])));
echo oos_draw_hidden_field('products_keywords_meta[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_keywords_meta[$languages[$i]['id']])));
echo oos_draw_hidden_field('products_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_url[$languages[$i]['id']])));
}
echo oos_draw_hidden_field('products_image', stripslashes($products_image_name));
echo oos_draw_hidden_field('products_subimage1', stripslashes($products_subimage1_name));
echo oos_draw_hidden_field('products_subimage2', stripslashes($products_subimage2_name));
echo oos_draw_hidden_field('products_subimage3', stripslashes($products_subimage3_name));
echo oos_draw_hidden_field('products_subimage4', stripslashes($products_subimage4_name));
echo oos_draw_hidden_field('products_subimage5', stripslashes($products_subimage5_name));
echo oos_draw_hidden_field('products_subimage6', stripslashes($products_subimage6_name));
if (isset($_POST['categories_ids'])) {
$selected_catids = $_POST['categories_ids'];
foreach ($selected_catids as $current_category_id) {
echo oos_draw_hidden_field('categories_ids[]', stripslashes($current_category_id));
}
}
echo oos_image_swap_submits('back', 'back_off.gif', IMAGE_BACK, 'name="edit"') . ' ';
if (isset($_GET['pID'])) {
echo oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE);
} else {
echo oos_image_swap_submits('insert', 'insert_off.gif', IMAGE_INSERT);
}
echo ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $_GET['pID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>';
?>
</td>
</form></tr>
<?php
}
}
示例6: intval
WHERE pa.products_id = '" . intval($products_id) . "'
AND pa.options_id = '" . oos_db_input($option) . "'
AND pa.options_id = popt.products_options_id
AND pa.options_values_id = '" . oos_db_input($value) . "'
AND pa.options_values_id = poval.products_options_values_id
AND popt.products_options_languages_id = '" . intval($nLanguageID) . "'
AND poval.products_options_values_languages_id = '" . intval($nLanguageID) . "'";
}
$attributes_values = $dbconn->GetRow($sql);
if ($value == PRODUCTS_OPTIONS_VALUE_TEXT_ID) {
$hidden_field .= oos_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']',$products[$i]['attributes_values'][$option]);
$attr_value = $products[$i]['attributes_values'][$option];
} else {
$hidden_field .= oos_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
$attr_value = $attributes_values['products_options_values_name'];
}
$attr_price = $attributes_values['options_values_price'];
if ($_SESSION['member']->group['discount'] != 0) {
$max_product_discount = min($products[$i]['discount_allowed'], $_SESSION['member']->group['discount']);
if ( ($max_product_discount > 0) && ($products[$i]['spezial'] == '0') ) {
$attr_price = $attr_price*(100-$max_product_discount)/100;
}
}
$products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];
$products[$i][$option]['options_values_id'] = $value;
$products[$i][$option]['products_options_values_name'] = $attr_value;
示例7: process_button
function process_button() {
$process_button_string = oos_draw_hidden_field('cc_owner', $_POST['cc_owner']) .
oos_draw_hidden_field('cc_expires', $_POST['cc_expires_month'] . $_POST['cc_expires_year']) .
oos_draw_hidden_field('cc_start', $_POST['cc_start_month'].$_POST['cc_start_year']) .
oos_draw_hidden_field('cc_cvv', $_POST['cc_cvv']) .
oos_draw_hidden_field('cc_issue', $_POST['cc_issue']) .
oos_draw_hidden_field('cc_type', $this->cc_card_type) .
oos_draw_hidden_field('cc_number', $this->cc_card_number);
return $process_button_string;
}
示例8: oos_get_tax_rate
$products_attribs_result = $dbconn->Execute($products_attribs_sql);
$products_attribs_array = $products_attribs_result->fields;
$options .= '<tr><td class="main">' . "\n";
$options .= $products_options_name['products_options_name'];
$options .= ': ';
if ($products_attribs_array['options_values_price'] > '0') {
if ($_SESSION['member']->group['show_price'] == 1) {
if ($info_product_discount != 0) {
$options .= ' (' . $products_attribs_array['price_prefix'] . $oCurrencies->display_price($products_attribs_array['options_values_price'], oos_get_tax_rate($product_info['products_tax_class_id'])) . ' -' . number_format($info_product_discount, 2) . '% ) ';
} else {
$options .= ' (' . $products_attribs_array['price_prefix'] . $oCurrencies->display_price($products_attribs_array['options_values_price'], oos_get_tax_rate($product_info['products_tax_class_id'])) . ') ';
}
}
}
$options .= '</td><td class="main"><input type="file" name="id[' . TEXT_PREFIX . $products_options_name['products_options_id'] . ']"><br />' . $_SESSION['cart']->contents[$sProductsId]['attributes_values'][$products_options_name['products_options_id']] . oos_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_name['products_options_id']) . oos_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $_SESSION['cart']->contents[$sProductsId]['attributes_values'][$products_options_name['products_options_id']]);
$options .= oos_draw_hidden_field('number_of_uploads', $number_of_uploads);
$options .= '</td></tr>';
break;
case PRODUCTS_OPTIONS_TYPE_SELECT:
default:
$options .= '<tr><td class="main">' . $products_options_name['products_options_name'] . ':</td><td class="main">' . "\n";
$selected = 0;
$products_options_array = array();
$products_attributestable = $oostable['products_attributes'];
$products_options_valuestable = $oostable['products_options_values'];
$products_options_sql = "SELECT pov.products_options_values_id, pov.products_options_values_name,\n pa.options_values_price, pa.price_prefix, pa.options_sort_order\n FROM {$products_attributestable} pa,\n {$products_options_valuestable} pov\n WHERE pa.products_id = '" . intval($nProductsId) . "'\n AND pa.options_id = '" . $products_options_name['products_options_id'] . "'\n AND pa.options_values_id = pov.products_options_values_id\n AND pov.products_options_values_languages_id = '" . intval($nLanguageID) . "'\n " . $options_sort_by;
$products_options_result = $dbconn->Execute($products_options_sql);
while ($products_options = $products_options_result->fields) {
$products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
if ($products_options['options_values_price'] > '0') {
if ($_SESSION['member']->group['show_price'] == 1) {
示例9: oos_draw_pull_down_menu
$mail_result->MoveNext();
}
echo oos_draw_pull_down_menu('email_address', $customers, $_GET['customer']);
echo oos_draw_hidden_field('verif_key', $newkey);
?></td>
</tr>
<tr class="dataTableRow">
<td class="dataTableContenta" align="left"> </td>
<td class="dataTableContenta" align="center"><?php echo oos_image_swap_submits('login','login_off.gif', IMAGE_LOGIN); ?></td>
</tr></form>
</table></td>
</tr>
<tr><td width="100%" align="center"><br />
<?php
echo oos_draw_login_form('login', $aCatalogPage['create_account_admin'], 'action=login_admin','POST', 'target=_blank');
echo oos_draw_hidden_field('verif_key', $newkey);
?>
<table border="0" cellspacing="0" cellpadding="2" width="70%">
<tr class="dataTableHeadingRowa">
<td class="dataTableHeadingContenta" align="left"><?php echo HEADING_CREATE_ORDER_ADMIN; ?></td>
</tr>
<tr class="dataTableRow">
<td class="dataTableContenta" align="left"><?php echo HEADING_CREATE_ORDER_EXPLAIN; ?></td>
</tr>
<tr class="dataTableRow">
<td class="dataTableContenta" align="center"><?php echo oos_image_swap_submits('create_order','create_order_off.gif', IMAGE_CREATE_ORDER); ?></td>
</tr>
</table></form>
</td></tr>
<?php
}
示例10: process_button
function process_button() {
global $oOrder, $oCurrencies;
switch (MODULE_PAYMENT_IPAYMENT_CURRENCY) {
case 'Always EUR':
$trx_currency = 'EUR';
break;
case 'Always USD':
$trx_currency = 'USD';
break;
case 'Either EUR or USD, else EUR':
if ( ($_SESSION['currency'] == 'EUR') || ($_SESSION['currency'] == 'USD') ) {
$trx_currency = $_SESSION['currency'];
} else {
$trx_currency = 'EUR';
}
break;
case 'Either EUR or USD, else USD':
if ( ($_SESSION['currency'] == 'EUR') || ($_SESSION['currency'] == 'USD') ) {
$trx_currency = $_SESSION['currency'];
} else {
$trx_currency = 'USD';
}
break;
}
$aPages = oos_get_pages();
$process_button_string = oos_draw_hidden_field('silent', '1') .
oos_draw_hidden_field('trx_paymenttyp', 'cc') .
oos_draw_hidden_field('trxuser_id', MODULE_PAYMENT_IPAYMENT_USER_ID) .
oos_draw_hidden_field('trxpassword', MODULE_PAYMENT_IPAYMENT_PASSWORD) .
oos_draw_hidden_field('item_name', STORE_NAME) .
oos_draw_hidden_field('trx_currency', $trx_currency) .
oos_draw_hidden_field('trx_amount', number_format($oOrder->info['total'] * 100 * $oCurrencies->get_value($trx_currency), 0, '','')) .
oos_draw_hidden_field('cc_expdate_month', $_POST['ipayment_cc_expires_month']) .
oos_draw_hidden_field('cc_expdate_year', $_POST['ipayment_cc_expires_year']) .
oos_draw_hidden_field('cc_number', $_POST['ipayment_cc_number']) .
oos_draw_hidden_field('cc_checkcode', $_POST['ipayment_cc_checkcode']) .
oos_draw_hidden_field('addr_name', $_POST['ipayment_cc_owner']) .
oos_draw_hidden_field('addr_email', $oOrder->customer['email_address']) .
oos_draw_hidden_field('redirect_url', oos_href_link($aPages['checkout_process'], '', 'SSL', true)) .
oos_draw_hidden_field('silent_error_url', oos_href_link($aPages['checkout_payment'], 'payment_error=' . $this->code . '&ipayment_cc_owner=' . urlencode($_POST['ipayment_cc_owner']), 'SSL', true));
return $process_button_string;
}
示例11: array
?>
</td><tr></table></td>
</tr>
</table>
</td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'edit_process':
$heading[] = array('text' => '<b> ' . TEXT_INFO_HEADING_DEFAULT . '</b>');
$contents[] = array('text' => TEXT_INFO_INTRO_EDIT_PROCESS . oos_draw_hidden_field('id_info', $myAccount['admin_id']));
break;
case 'check_account':
$heading[] = array('text' => '<b> ' . TEXT_INFO_HEADING_CONFIRM_PASSWORD . '</b>');
$contents[] = array('text' => ' ' . TEXT_INFO_INTRO_CONFIRM_PASSWORD . oos_draw_hidden_field('id_info', $myAccount['admin_id']));
if ($_GET['error']) {
$contents[] = array('text' => ' ' . TEXT_INFO_INTRO_CONFIRM_PASSWORD_ERROR);
}
$contents[] = array('align' => 'center', 'text' => oos_draw_password_field('password_confirmation'));
$contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['admin_account']) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a> ' . oos_image_swap_submits('confirm', 'confirm_off.gif', IMAGE_CONFIRM) . '<br /> ');
break;
default:
$heading[] = array('text' => '<b> ' . TEXT_INFO_HEADING_DEFAULT . '</b>');
$contents[] = array('text' => TEXT_INFO_INTRO_DEFAULT);
if ($myAccount['admin_email_address'] == 'none@none.com') {
$contents[] = array('text' => sprintf(TEXT_INFO_INTRO_DEFAULT_FIRST, $myAccount['admin_firstname']) . '<br /> ');
} elseif ($myAccount['admin_modified'] == '0000-00-00 00:00:00' || $myAccount['admin_logdate'] <= 1) {
$contents[] = array('text' => sprintf(TEXT_INFO_INTRO_DEFAULT_FIRST_TIME, $myAccount['admin_firstname']) . '<br /> ');
}
}
示例12: substr
}
$product_categories_string = substr($product_categories_string, 0, -4);
$contents[] = array('text' => '<br />' . $product_categories_string);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $pInfo->products_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'move_product':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>');
$contents = array('form' => oos_draw_form('products', $aFilename['categories'], 'action=move_product_confirm&categories=' . $categories) . oos_draw_hidden_field('products_id', $pInfo->products_id));
$contents[] = array('text' => sprintf(TEXT_MOVE_PRODUCTS_INTRO, $pInfo->products_name));
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_CATEGORIES . '<br /><b>' . oos_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
$contents[] = array('text' => '<br />' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br />' . oos_draw_pull_down_menu('move_to_category_id', oos_get_category_tree(), $current_category_id));
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('move', 'move_off.gif', IMAGE_MOVE) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $pInfo->products_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
case 'copy_to':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');
$contents = array('form' => oos_draw_form('copy_to', $aFilename['categories'], 'action=copy_to_confirm&categories=' . $categories) . oos_draw_hidden_field('products_id', $pInfo->products_id));
$contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO);
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_CATEGORIES . '<br /><b>' . oos_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
$contents[] = array('text' => '<br />' . TEXT_CATEGORIES . '<br />' . oos_draw_pull_down_menu('categories_id', oos_get_category_tree(), $current_category_id));
$contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . oos_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br />' . oos_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE);
$contents[] = array('text' => '<br />' . oos_image(OOS_IMAGES . 'pixel_black.gif', '', '100%', '3'));
$contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_ONLY);
$contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES . '<br />' . oos_draw_radio_field('copy_attributes', 'copy_attributes_yes', true) . ' ' . TEXT_COPY_ATTRIBUTES_YES . '<br />' . oos_draw_radio_field('copy_attributes', 'copy_attributes_no') . ' ' . TEXT_COPY_ATTRIBUTES_NO);
$contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('copy', 'copy_off.gif', IMAGE_COPY) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&pID=' . $pInfo->products_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if ($rows > 0) {
if (isset($cInfo) && is_object($cInfo)) {
// category info box contents
$heading[] = array('text' => '<b>' . $cInfo->categories_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id . '&action=edit_category') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id . '&action=delete_category') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a> <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id . '&action=move_category') . '">' . oos_image_swap_button('move', 'move_off.gif', IMAGE_MOVE) . '</a>');
示例13: oos_redirect_admin
<?php
if ($directory_writeable && $action == 'new_file' || $action == 'edit') {
if (strstr($_GET['info'], '..')) {
oos_redirect_admin(oos_href_link_admin($aFilename['file_manager']));
}
if (!isset($file_writeable)) {
$file_writeable = true;
}
$file_contents = '';
if ($action == 'new_file') {
$filename_input_field = oos_draw_input_field('filename');
} elseif ($action == 'edit') {
if ($file_array = file($_SESSION['current_path'] . '/' . $_GET['info'])) {
$file_contents = htmlspecialchars(implode('', $file_array));
}
$filename_input_field = $_GET['info'] . oos_draw_hidden_field('filename', $_GET['info']);
}
?>
<tr>
<td><?php
echo oos_draw_separator('trans.gif', '1', '10');
?>
</td>
</tr>
<tr><?php
echo oos_draw_form('new_file', $aFilename['file_manager'], 'action=save');
?>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_FILE_NAME;
示例14: oos_draw_separator
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php
echo HEADING_TITLE;
?>
</td>
<td class="pageHeading" align="right"><?php
echo oos_draw_separator('trans.gif', 1, HEADING_IMAGE_HEIGHT);
?>
</td>
<td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><?php
echo oos_draw_form('orders', $aFilename['orders'], '', 'get');
?>
<td class="smallText" align="right"><?php
echo HEADING_TITLE_SEARCH . ' ' . oos_draw_input_field('oID', '', 'size="12"') . oos_draw_hidden_field('action', 'edit');
?>
</td>
</form></tr>
<tr><?php
echo oos_draw_form('status', $aFilename['orders'], '', 'get');
?>
<td class="smallText" align="right"><?php
echo HEADING_TITLE_STATUS . ' ' . oos_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"');
?>
</td>
</form></tr>
</table></td>
</tr>
</table></td>
</tr>
示例15: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
if (!empty($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = intval($query_numrows / $max_rows_per_page);
// $num_pages now contains int of pages needed unless there is a remainder from division
if ($query_numrows % $max_rows_per_page) {
$num_pages++;
}
// has remainder so add one page
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = oos_draw_form('pages', basename($_SERVER['PHP_SELF']), '', 'get');
if ($current_page_number > 1) {
$display_links .= '<a href="' . oos_href_link_admin(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, oos_draw_pull_down_menu($page_name, $pages_array, '', 'onChange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . oos_href_link_admin(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
} else {
$display_links .= ' ' . PREVNEXT_BUTTON_NEXT;
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
while (list(, $pair) = each($pairs)) {
list($key, $value) = explode('=', $pair);
$display_links .= oos_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= oos_draw_hidden_field(oos_session_name(), oos_session_id());
}
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}