本文整理匯總了PHP中smn_draw_hidden_field函數的典型用法代碼示例。如果您正苦於以下問題:PHP smn_draw_hidden_field函數的具體用法?PHP smn_draw_hidden_field怎麽用?PHP smn_draw_hidden_field使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了smn_draw_hidden_field函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
global $PHP_SELF;
if (smn_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = smn_draw_form('pages', basename($PHP_SELF), '', 'get');
if ($current_page_number > 1) {
$display_links .= '<a href="' . smn_href_link(basename($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, smn_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . smn_href_link(basename($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 .= smn_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
$display_links .= smn_hide_session_id() . '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
示例2: Copyright
Copyright (c) 2002 - 2006 SystemsManager.Net
SystemsManager Technologies
oscMall System Version 4
http://www.systemsmanager.net
Portions Copyright (c) 2002 osCommerce
This source file is subject to version 2.0 of the GPL license,
that is bundled with this package in the file LICENSE. If you
did not receive a copy of the oscMall System license and are unable
to obtain it through the world-wide-web, please send a note to
license@systemsmanager.net so we can mail you a copy immediately.
*/
?>
<!-- tell_a_friend //-->
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_TELL_A_FRIEND);
new infoBoxHeading($info_box_contents, false, false, '', $side);
$info_box_contents = array();
$info_box_contents[] = array('form' => smn_draw_form('tell_a_friend', smn_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => smn_draw_input_field('to_email_address', '', 'size="10"') . ' ' . smn_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND) . smn_draw_hidden_field('products_id', $_GET['products_id']) . smn_hide_session_id() . '<br>' . BOX_TELL_A_FRIEND_TEXT);
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
$boxLink = '';
?>
<!-- tell_a_friend_eof //-->
示例3: sprintf
echo sprintf(TEXT_OF_5_STARS, $rInfo->reviews_rating);
?>
]</small></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
if (smn_not_null($_POST)) {
/* Re-Post all POST'ed variables */
reset($_POST);
while (list($key, $value) = each($_POST)) {
echo smn_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
}
?>
<tr>
<td align="right" class="smallText"><?php
echo '<a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . smn_image_button('button_back.gif', IMAGE_BACK) . '</a> ' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
?>
</td>
</form></tr>
<?php
} else {
if (isset($_GET['origin'])) {
$back_url = $_GET['origin'];
$back_url_params = '';
} else {
$back_url = FILENAME_REVIEWS;
示例4: smn_check_stock
if (STOCK_CHECK == 'true') {
$stock_check = smn_check_stock($products[$i]['id'], $products[$i]['quantity']);
if (smn_not_null($stock_check)) {
$any_out_of_stock = 1;
$products_name .= $stock_check;
}
}
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
reset($products[$i]['attributes']);
while (list($option, $value) = each($products[$i]['attributes'])) {
$products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
}
}
$products_name .= ' </td>' . ' </tr>' . '</table>';
$info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name);
$info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']));
$info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], smn_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
}
new productListingBox($info_box_contents);
?>
</td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td align="right" class="main"><b><?php
echo SUB_TITLE_SUB_TOTAL;
示例5: array
$dir->close();
}
for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
$modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')));
}
?>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr><?php
echo smn_draw_form('newsletter', FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'action=' . $form_action);
if ($form_action == 'update') {
echo smn_draw_hidden_field('newsletter_id', $nID);
}
?>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_NEWSLETTER_MODULE;
?>
</td>
<td class="main"><?php
echo smn_draw_pull_down_menu('module', $modules_array, $nInfo->module);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
示例6: Copyright
<?php
/*
Copyright (c) 2002 - 2006 SystemsManager.Net
SystemsManager Technologies
oscMall System Version 4
http://www.systemsmanager.net
Portions Copyright (c) 2002 osCommerce
This source file is subject to version 2.0 of the GPL license,
that is bundled with this package in the file LICENSE. If you
did not receive a copy of the oscMall System license and are unable
to obtain it through the world-wide-web, please send a note to
license@systemsmanager.net so we can mail you a copy immediately.
*/
$boxHeading = BOX_HEADING_SEARCH;
$box_base_name = 'search';
$box_id = $box_base_name . 'Box';
$boxContent = smn_draw_form('quick_find', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'ID=1', 'NONSSL', false), 'get');
$boxContent .= smn_draw_hidden_field('search_in_description', '1') . smn_draw_input_field('keywords', '', 'size="10" maxlength="30" ') . ' ' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . smn_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</form>';
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
示例7: isset
<?php
if ($n > 1 || $n2 > 1) {
?>
<td class="main"><?php
echo $currencies->format(smn_add_tax($quotes[$i]['methods'][$j]['cost'], isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0));
?>
</td>
<td class="main" align="right"><?php
echo smn_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked);
?>
</td>
<?php
} else {
?>
<td class="main" align="right" colspan="2"><?php
echo $currencies->format(smn_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . smn_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']);
?>
</td>
<?php
}
?>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
<?php
$radio_buttons++;
}
}
?>
示例8: smn_hide_session_id
function smn_hide_session_id()
{
$string = '';
if (defined('SID') && smn_not_null(SID)) {
$string = smn_draw_hidden_field(smn_session_name(), smn_session_id());
}
return $string;
}
示例9: switch
<?php
switch ($type) {
case 'yearly':
break;
case 'monthly':
echo TITLE_YEAR . ' ' . smn_draw_pull_down_menu('year', $years_array, isset($_GET['year']) ? $_GET['year'] : date('Y'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
break;
default:
case 'daily':
echo TITLE_MONTH . ' ' . smn_draw_pull_down_menu('month', $months_array, isset($_GET['month']) ? $_GET['month'] : date('n'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript><br>' . TITLE_YEAR . ' ' . smn_draw_pull_down_menu('year', $years_array, isset($_GET['year']) ? $_GET['year'] : date('Y'), 'onChange="this.form.submit();"') . '<noscript><input type="submit" value="GO"></noscript>';
break;
}
?>
</td>
<?php
echo smn_draw_hidden_field('page', $_GET['page']) . smn_draw_hidden_field('bID', $_GET['bID']) . smn_hide_session_id();
?>
</form></tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td align="center">
<?php
if (function_exists('imagecreate') && $dir_ok == true && smn_not_null($banner_extension)) {
$banner_id = (int) $_GET['bID'];
示例10: reset
reset($products[$i]['attributes']);
while (list($option, $value) = each($products[$i]['attributes'])) {
$products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
}
}
$products_name .= ' </td>' .
' </tr>' .
'</table>';
$info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',
'text' => $products_name);
$info_box_contents[$cur_row][] = array('align' => 'center',
'params' => 'class="productListing-data" valign="top"',
'text' => smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']));
$info_box_contents[$cur_row][] = array('align' => 'right',
'params' => 'class="productListing-data" valign="top"',
'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], smn_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
$cart_total += ($products[$i]['final_price'] * $products[$i]['quantity']) ;
}
$tot += $cart_total;
new productListingBox($info_box_contents);
?></td></tr></table></td></tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
示例11: process_button
function process_button()
{
global $_POST, $order;
$process_button_string = smn_draw_hidden_field('x_login', MODULE_PAYMENT_2CHECKOUT_LOGIN) . smn_draw_hidden_field('x_amount', number_format($order->info['total'], 2)) . smn_draw_hidden_field('x_invoice_num', date('YmdHis')) . smn_draw_hidden_field('x_test_request', MODULE_PAYMENT_2CHECKOUT_TESTMODE == 'Test' ? 'Y' : 'N') . smn_draw_hidden_field('x_card_num', $this->cc_card_number) . smn_draw_hidden_field('cvv', $_POST['pm_2checkout_cc_cvv']) . smn_draw_hidden_field('x_exp_date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . smn_draw_hidden_field('x_first_name', $_POST['pm_2checkout_cc_owner_firstname']) . smn_draw_hidden_field('x_last_name', $_POST['pm_2checkout_cc_owner_lastname']) . smn_draw_hidden_field('x_address', $order->customer['street_address']) . smn_draw_hidden_field('x_city', $order->customer['city']) . smn_draw_hidden_field('x_state', $order->customer['state']) . smn_draw_hidden_field('x_zip', $order->customer['postcode']) . smn_draw_hidden_field('x_country', $order->customer['country']['title']) . smn_draw_hidden_field('x_email', $order->customer['email_address']) . smn_draw_hidden_field('x_phone', $order->customer['telephone']) . smn_draw_hidden_field('x_ship_to_first_name', $order->delivery['firstname']) . smn_draw_hidden_field('x_ship_to_last_name', $order->delivery['lastname']) . smn_draw_hidden_field('x_ship_to_address', $order->delivery['street_address']) . smn_draw_hidden_field('x_ship_to_city', $order->delivery['city']) . smn_draw_hidden_field('x_ship_to_state', $order->delivery['state']) . smn_draw_hidden_field('x_ship_to_zip', $order->delivery['postcode']) . smn_draw_hidden_field('x_ship_to_country', $order->delivery['country']['title']) . smn_draw_hidden_field('x_receipt_link_url', smn_href_link(FILENAME_CHECKOUT_PROCESS, '', 'NONSSL')) . smn_draw_hidden_field('x_email_merchant', MODULE_PAYMENT_2CHECKOUT_EMAIL_MERCHANT == 'True' ? 'TRUE' : 'FALSE');
return $process_button_string;
}
示例12: smn_draw_separator
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td class="main"><?php
echo '<a href="' . smn_href_link(FILENAME_PRODUCT_REVIEWS, smn_get_all_get_params()) . '">' . smn_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>';
?>
</td>
<?php
if ($product_master['product_master_status'] != 1) {
?>
<td class="main" align="right"><?php
echo smn_draw_hidden_field('products_id', $product_info['products_id']) . smn_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
?>
</td></form>
<?php
}
?>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
示例13: smn_draw_checkbox_field
echo smn_draw_checkbox_field('select_order[' . $row . ']', '', false);
?>
</td>
<?php
} else {
?>
<td class="dataTableContent" align="right"><?php
echo smn_draw_checkbox_field('select_order[' . $row . ']', '', true);
?>
</td>
<?php
}
?>
</tr>
<?php
echo smn_draw_hidden_field('orders_selected[' . $row . ']', $orders['orders_id']);
$row++;
}
?>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '5');
?>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
示例14: smn_href_link
echo 'action="' . smn_href_link(FILENAME_SPECIALS, smn_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'NONSSL') . '"';
?>
method="post"><?php
if ($form_action == 'update') {
echo smn_draw_hidden_field('specials_id', $_GET['sID']);
}
?>
<td><br><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_SPECIALS_PRODUCT;
?>
</td>
<td class="main"><?php
echo isset($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : smn_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array);
echo smn_draw_hidden_field('products_price', isset($sInfo->products_price) ? $sInfo->products_price : '');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_SPECIALS_SPECIAL_PRICE;
?>
</td>
<td class="main"><?php
echo smn_draw_input_field('specials_price', isset($sInfo->specials_new_products_price) ? $sInfo->specials_new_products_price : '');
?>
</td>
</tr>
<tr>
<td class="main"><?php
示例15: Copyright
<?php
/*
Copyright (c) 2002 - 2006 SystemsManager.Net
SystemsManager Technologies
oscMall System Version 4
http://www.systemsmanager.net
Portions Copyright (c) 2002 osCommerce
This source file is subject to version 2.0 of the GPL license,
that is bundled with this package in the file LICENSE. If you
did not receive a copy of the oscMall System license and are unable
to obtain it through the world-wide-web, please send a note to
license@systemsmanager.net so we can mail you a copy immediately.
*/
?>
<table border="0" cellspacing="0" cellpadding="5" width="96%">
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_IMAGE;
?>
</td>
<td class="main"><?php
echo smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_draw_file_field('products_image') . '<br>' . smn_draw_separator('pixel_trans.gif', '24', '15') . ' ' . smn_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image) . smn_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
</tr>
</table>