本文整理汇总了PHP中osc_draw_hidden_field函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_draw_hidden_field函数的具体用法?PHP osc_draw_hidden_field怎么用?PHP osc_draw_hidden_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_draw_hidden_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process_button
function process_button()
{
global $osC_Currencies, $osC_ShoppingCart, $osC_Language;
if (MODULE_PAYMENT_ENBANK_CURRENCY == 'Selected Currency') {
$currency = $osC_Currencies->getCode();
} else {
$currency = MODULE_PAYMENT_ENBANK_CURRENCY;
}
$amount = round($osC_Currencies->formatRaw($osC_ShoppingCart->getTotal(), $currency), 2);
$order = $this->_order_id;
$process_button_string = osc_draw_hidden_field('MID', MODULE_PAYMENT_ENBANK_MERCHANT_ID) . osc_draw_hidden_field('ResNum', $order) . osc_draw_hidden_field('RedirectURL', osc_href_link(FILENAME_CHECKOUT, 'process', 'SSL', null, null, true)) . osc_draw_hidden_field('Amount', $amount);
return $process_button_string;
}
示例2: initialize
public function initialize()
{
$OSCOM_Database = Registry::get('Database');
$Qmanufacturers = $OSCOM_Database->query('select manufacturers_id as id, manufacturers_name as text from :table_manufacturers order by manufacturers_name');
$Qmanufacturers->setCache('manufacturers');
$Qmanufacturers->execute();
$manufacturers_array = array(array('id' => '', 'text' => OSCOM::getDef('pull_down_default')));
while ($Qmanufacturers->next()) {
$manufacturers_array[] = $Qmanufacturers->toArray();
}
$Qmanufacturers->freeResult();
$this->_content = '<form name="manufacturers" action="' . OSCOM::getLink() . '" method="get">' . osc_draw_hidden_field('Index', null) . osc_draw_pull_down_menu('Manufacturers', $manufacturers_array, null, 'onchange="this.form.submit();" size="' . BOX_MANUFACTURERS_LIST_SIZE . '" style="width: 100%"') . osc_draw_hidden_session_id_field() . '</form>';
}
示例3: process_button
function process_button()
{
global $osC_ShoppingCart;
$params = array('accessKey' => MODULE_PAYMENT_AMAZON_ACCESS_KEY, 'amount' => $osC_ShoppingCart->getTotal(), 'description' => STORE_NAME, 'signatureMethod' => 'HmacSHA256', 'referenceId' => $this->_order_id, 'immediateReturn' => '0', 'returnUrl' => osc_href_link(FILENAME_CHECKOUT, 'process', 'SSL', null, null, true), 'abandonUrl' => osc_href_link(FILENAME_CHECKOUT, 'checkout&view=paymentInformationForm', 'SSL', null, null, true), 'processImmediate' => '1', 'ipnUrl' => osc_href_link(FILENAME_CHECKOUT, 'callback&module=' . $this->_code, 'SSL', null, null, true), 'cobrandingStyle' => 'logo', 'signatureVersion' => '2');
$site = parse_url($this->form_action_url);
$params['signature'] = self::_sign_params($params, MODULE_PAYMENT_AMAZON_SECRET_KEY, 'post', $site['host'], $site['path'], 'HmacSHA256');
$process_button_string = '';
foreach ($params as $key => $value) {
$key = trim($key);
$value = trim($value);
$process_button_string .= osc_draw_hidden_field($key, $value);
$process_button_string .= "\n";
}
return $process_button_string;
}
示例4: initialize
function initialize()
{
global $osC_Session;
$data = array();
foreach (osC_Template::getTemplates() as $template) {
$data[] = array('id' => $template['code'], 'text' => $template['title']);
}
if (sizeof($data) > 1) {
$hidden_get_variables = '';
foreach ($_GET as $key => $value) {
if ($key != 'template' && $key != $osC_Session->getName() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= osc_draw_hidden_field($key, $value);
}
}
$this->_content = '<form name="templates" action="' . osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), null, 'AUTO', false) . '" method="get">' . $hidden_get_variables . osc_draw_pull_down_menu('template', $data, $_SESSION['template']['code'], 'onchange="this.form.submit();" style="width: 100%"') . osc_draw_hidden_session_id_field() . '</form>';
}
}
示例5: initialize
function initialize()
{
global $osC_Database, $osC_Language, $osC_Template;
$Qpoll = $osC_Database->query('select p.polls_id, p.polls_type, pd.polls_title from :table_polls p, :table_polls_description pd where p.polls_status = 1 and p.polls_id = pd.polls_id and pd.languages_id = :languages_id');
$Qpoll->bindTable(':table_polls', TABLE_POLLS);
$Qpoll->bindTable(':table_polls_description', TABLE_POLLS_DESCRIPTION);
$Qpoll->bindInt(':languages_id', $osC_Language->getID());
$Qpoll->executeRandomMulti();
$this->_content = '<div id="polls"><form name="frmPolls" id="frmPolls" action="' . osc_href_link(FILENAME_JSON) . '" method="get">' . osc_draw_hidden_field('polls_id', $Qpoll->valueInt('polls_id'));
if ($Qpoll->numberOfRows() > 0) {
$this->_content .= '<h6>' . $Qpoll->value('polls_title') . '</h6>';
$Qanswers = $osC_Database->query('select pa.polls_id, pa.polls_answers_id, pa.votes_count, pa.sort_order, pad.answers_title from :table_polls_answers pa, :table_polls_answers_description pad where pa.polls_id = :polls_id and pa.polls_answers_id = pad.polls_answers_id and pad.languages_id = :languages_id order by pa.sort_order desc');
$Qanswers->bindTable(':table_polls_answers', TABLE_POLLS_ANSWERS);
$Qanswers->bindTable(':table_polls_answers_description', TABLE_POLLS_ANSWERS_DESCRIPTION);
$Qanswers->bindInt(':polls_id', $Qpoll->valueInt('polls_id'));
$Qanswers->bindInt(':languages_id', $osC_Language->getID());
$Qanswers->execute();
if ($Qanswers->numberOfRows() > 0) {
$this->_content .= '<ul>';
while ($Qanswers->next()) {
if ($Qpoll->valueInt('polls_type')) {
$this->_content .= '<li>' . osc_draw_checkbox_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . ' ' . $Qanswers->value('answers_title') . '</li>';
} else {
$this->_content .= '<li>' . osc_draw_radio_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . ' ' . $Qanswers->value('answers_title') . '</li>';
}
}
$this->_content .= '</ul>';
$this->_content .= '<span style="float: right;">' . osc_draw_image_button('button_vote.png', $osC_Language->get('button_vote'), 'class="button" id="btnPollVote"') . '</span>';
$this->_content .= osc_draw_image_button('button_result.png', $osC_Language->get('button_result'), 'class="button" id="btnPollResult"');
$Qanswers->freeResult();
}
}
$Qpoll->freeResult();
$this->_content .= '</form></div>';
$osC_Template->addJavascriptFilename('includes/javascript/polls.js');
$js .= '<script type="text/javascript">
window.addEvent(\'domready\',function(){
var polls = new Polls();
});
</script>';
$this->_content .= $js . "\n";
}
示例6: process_button
function process_button()
{
global $osC_Customer, $osC_Currencies, $osC_ShoppingCart;
if (MODULE_PAYMENT_CHRONOPAY_CURRENCY == 'Selected Currency') {
$currency = $osC_Currencies->getCode();
} else {
$currency = MODULE_PAYMENT_CHRONOPAY_CURRENCY;
}
switch ($osC_ShoppingCart->getBillingAddress('country_iso_code_3')) {
case 'USA':
case 'CAN':
$state_code = $osC_ShoppingCart->getBillingAddress('state_code');
break;
default:
$state_code = 'XX';
break;
}
$process_button_string = osc_draw_hidden_field('product_id', MODULE_PAYMENT_CHRONOPAY_PRODUCT_ID) . osc_draw_hidden_field('product_name', STORE_NAME) . osc_draw_hidden_field('product_price', $osC_Currencies->formatRaw($osC_ShoppingCart->getTotal(), $currency)) . osc_draw_hidden_field('product_price_currency', $currency) . osc_draw_hidden_field('cb_url', urlencode(osc_href_link(FILENAME_CHECKOUT, 'callback&module=' . $this->_code, 'SSL', null, null, true))) . osc_draw_hidden_field('cb_type', 'P') . osc_draw_hidden_field('decline_url', urlencode(osc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL', null, null, true))) . osc_draw_hidden_field('language', 'EN') . osc_draw_hidden_field('f_name', $osC_ShoppingCart->getBillingAddress('firstname')) . osc_draw_hidden_field('s_name', $osC_ShoppingCart->getBillingAddress('lastname')) . osc_draw_hidden_field('street', $osC_ShoppingCart->getBillingAddress('street_address')) . osc_draw_hidden_field('city', $osC_ShoppingCart->getBillingAddress('city')) . osc_draw_hidden_field('state', $state_code) . osc_draw_hidden_field('zip', $osC_ShoppingCart->getBillingAddress('postcode')) . osc_draw_hidden_field('country', $osC_ShoppingCart->getBillingAddress('country_iso_code_3')) . osc_draw_hidden_field('phone', $osC_ShoppingCart->getBillingAddress('telephone_number')) . osc_draw_hidden_field('email', $osC_Customer->getEmailAddress()) . osc_draw_hidden_field('cs1', $osC_Customer->getID()) . osc_draw_hidden_field('cs2', $this->_order_id) . osc_draw_hidden_field('cs3', md5(MODULE_PAYMENT_CHRONOPAY_PRODUCT_ID . $this->_order_id . $osC_Customer->getID() . $osC_Currencies->formatRaw($osC_ShoppingCart->getTotal(), $currency) . MODULE_PAYMENT_CHRONOPAY_MD5_HASH));
return $process_button_string;
}
示例7: showConfirmation
function showConfirmation()
{
global $osC_Database, $osC_Language, $osC_Template;
if (isset($_POST['customer']) && !empty($_POST['customer'])) {
$Qcustomers = $osC_Database->query('select count(customers_id) as total from :table_customers c left join :table_newsletters_log nl on (c.customers_email_address = nl.email_address and nl.newsletters_id = :newsletters_id) where nl.email_address is null');
$Qcustomers->bindTable(':table_customers', TABLE_CUSTOMERS);
$Qcustomers->bindTable(':table_newsletters_log', TABLE_NEWSLETTERS_LOG);
$Qcustomers->bindInt(':newsletters_id', $this->_newsletter_id);
if (is_numeric($_POST['customer'])) {
$Qcustomers->appendQuery('and c.customers_id = :customers_id');
$Qcustomers->bindInt(':customers_id', $_POST['customer']);
}
$Qcustomers->execute();
$this->_audience_size += $Qcustomers->valueInt('total');
}
$confirmation_string = '<p><font color="#ff0000"><b>' . sprintf($osC_Language->get('newsletter_email_total_recipients'), $this->_audience_size) . '</b></font></p>' . '<p><b>' . $this->_newsletter_title . '</b></p>' . '<p>' . nl2br(osc_output_string_protected($this->_newsletter_content)) . '</p>' . '<form name="confirm" action="' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&nID=' . $this->_newsletter_id . '&action=send') . '" method="post">' . '<p align="right">';
if ($this->_audience_size > 0) {
$confirmation_string .= osc_draw_hidden_field('customer', $_POST['customer']) . osc_draw_hidden_field('subaction', 'execute') . '<input type="submit" value="' . $osC_Language->get('button_send') . '" class="operationButton" /> ';
}
$confirmation_string .= '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&nID=' . $this->_newsletter_id . '&action=send') . '\'" class="operationButton" /> ' . '<input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\'" class="operationButton"/></p>' . '</form>';
return $confirmation_string;
}
示例8: initialize
function initialize()
{
global $osC_Session, $osC_Currencies;
$data = array();
foreach ($osC_Currencies->currencies as $key => $value) {
$data[] = array('id' => $key, 'text' => $value['title']);
}
if (sizeof($data) > 1) {
$hidden_get_variables = '';
foreach ($_GET as $key => $value) {
if ($key != 'currency' && $key != $osC_Session->getName() && $key != 'x' && $key != 'y') {
if (is_array($value)) {
foreach ($value as $hidden_value) {
$hidden_get_variables .= osc_draw_hidden_field($key, $hidden_value);
}
} else {
$hidden_get_variables .= osc_draw_hidden_field($key, $value);
}
}
}
$this->_content = '<form name="currencies" action="' . osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), null, 'AUTO', false) . '" method="get">' . $hidden_get_variables . osc_draw_pull_down_menu('currency', $data, $_SESSION['currency'], 'onchange="this.form.submit();" style="width: 99%"') . osc_draw_hidden_session_id_field() . '</form>';
}
}
示例9: sendEmail
function sendEmail()
{
global $osC_Database, $osC_Language, $osC_Template;
$max_execution_time = 0.8 * (int) ini_get('max_execution_time');
$time_start = explode(' ', PAGE_PARSE_START_TIME);
$Qrecipients = $osC_Database->query('select c.customers_firstname, c.customers_lastname, c.customers_email_address from :table_customers c left join :table_newsletters_log nl on (c.customers_email_address = nl.email_address and nl.newsletters_id = :newsletters_id) where c.customers_newsletter = 1 and nl.email_address is null');
$Qrecipients->bindTable(':table_customers', TABLE_CUSTOMERS);
$Qrecipients->bindTable(':table_newsletters_log', TABLE_NEWSLETTERS_LOG);
$Qrecipients->bindInt(':newsletters_id', $this->_newsletter_id);
$Qrecipients->execute();
if ($Qrecipients->numberOfRows() > 0) {
$osC_Mail = new osC_Mail(null, null, null, EMAIL_FROM, $this->_newsletter_title);
$osC_Mail->setBodyPlain($this->_newsletter_content);
while ($Qrecipients->next()) {
$osC_Mail->clearTo();
$osC_Mail->addTo($Qrecipients->value('customers_firstname') . ' ' . $Qrecipients->value('customers_lastname'), $Qrecipients->value('customers_email_address'));
$osC_Mail->send();
$Qlog = $osC_Database->query('insert into :table_newsletters_log (newsletters_id, email_address, date_sent) values (:newsletters_id, :email_address, now())');
$Qlog->bindTable(':table_newsletters_log', TABLE_NEWSLETTERS_LOG);
$Qlog->bindInt(':newsletters_id', $this->_newsletter_id);
$Qlog->bindValue(':email_address', $Qrecipients->value('customers_email_address'));
$Qlog->execute();
$time_end = explode(' ', microtime());
$timer_total = number_format($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0]), 3);
if ($timer_total > $max_execution_time) {
echo '<p><font color="#38BB68"><b>' . $osC_Language->get('sending_refreshing_page') . '</b></font></p>' . '<form name="execute" action="' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&nID=' . $this->_newsletter_id . '&action=send') . '" method="post">' . '<p>' . osc_draw_hidden_field('subaction', 'execute') . '</p>' . '</form>' . '<script language="javascript">' . 'var counter = 3;' . 'function counter() {' . ' count--;' . ' if (count > 0) {' . ' Id = window.setTimeout("counter()", 1000);' . ' } else {' . ' document.execute.submit();' . ' }' . '}' . '</script>';
exit;
}
}
$Qrecipients->freeResult();
}
$Qupdate = $osC_Database->query('update :table_newsletters set date_sent = now(), status = 1 where newsletters_id = :newsletters_id');
$Qupdate->bindTable(':table_newsletters', TABLE_NEWSLETTERS);
$Qupdate->bindInt(':newsletters_id', $this->_newsletter_id);
$Qupdate->execute();
}
示例10: osc_draw_input_field
</tr>
<tr>
<td class="inputField"><?php
echo 'Administrator Password<br />' . osc_draw_input_field('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
<td class="inputDescription">The password to use for the administrator account.</td>
</tr>
</table>
<p align="right"><input type="image" src="images/button_continue.gif" border="0" alt="Continue" id="inputButton" /> <a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel" /></a></p>
<?php
reset($HTTP_POST_VARS);
while (list($key, $value) = each($HTTP_POST_VARS)) {
if ($key != 'x' && $key != 'y') {
if (is_array($value)) {
for ($i = 0, $n = sizeof($value); $i < $n; $i++) {
echo osc_draw_hidden_field($key . '[]', $value[$i]);
}
} else {
echo osc_draw_hidden_field($key, $value);
}
}
}
?>
</form>
</div>
</div>
示例11: process_button
function process_button()
{
global $order, $osC_Currencies, $osC_Customer;
$process_button_string = osc_draw_hidden_field('cmd', '_xclick') . osc_draw_hidden_field('email', MODULE_PAYMENT_NOCHEX_ID) . osc_draw_hidden_field('amount', number_format($order->info['total'] * $osC_Currencies->currencies['GBP']['value'], $osC_Currencies->currencies['GBP']['decimal_places'])) . osc_draw_hidden_field('ordernumber', $osC_Customer->getID() . '-' . date('Ymdhis')) . osc_draw_hidden_field('returnurl', osc_href_link(FILENAME_CHECKOUT, 'process', 'SSL')) . osc_draw_hidden_field('cancel_return', osc_href_link(FILENAME_CHECKOUT, 'payment', 'SSL'));
return $process_button_string;
}
示例12: in
echo OSCOM::getLink(null, null, 'BatchDelete&Process');
?>
" method="post">
<p><?php
echo OSCOM::getDef('introduction_batch_delete_administrators');
?>
</p>
<?php
$Qadmins = $OSCOM_Database->query('select id, user_name from :table_administrators where id in (":id") order by user_name');
$Qadmins->bindRaw(':id', implode('", "', array_unique(array_filter(array_slice($_POST['batch'], 0, MAX_DISPLAY_SEARCH_RESULTS), 'is_numeric'))));
$Qadmins->execute();
$names_string = '';
while ($Qadmins->next()) {
$names_string .= osc_draw_hidden_field('batch[]', $Qadmins->valueInt('id')) . '<b>' . $Qadmins->valueProtected('user_name') . '</b>, ';
}
if (!empty($names_string)) {
$names_string = substr($names_string, 0, -2);
}
echo '<p>' . $names_string . '</p>';
?>
<p><?php
echo osc_draw_button(array('priority' => 'primary', 'icon' => 'trash', 'title' => OSCOM::getDef('button_delete'))) . ' ' . osc_draw_button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
</form>
</div>
示例13: get_filters_params
/**
* Generate the filters params for the product listing page
*
* @access public
*
* @return mixed
*/
function get_filters_params()
{
global $cPath, $osC_Services, $osC_Template;
$params = '';
//pass the manufacturers or cPath param as seo is disabled
if (!$osC_Services->isStarted('sefu') || $osC_Template->getGroup() == 'search') {
if (isset($_GET['manufacturers']) && !empty($_GET['manufacturers'])) {
$params .= osc_draw_hidden_field('manufacturers', $_GET['manufacturers']);
} else {
if (isset($_GET['cPath']) && !empty($_GET['cPath'])) {
$params .= osc_draw_hidden_field('cPath', $cPath);
}
}
}
//pass the cpath or manufacturer filter for the search result page
if ($osC_Template->getGroup() == 'search') {
if (isset($_GET['filter']) && !empty($_GET['filter'])) {
$params .= osc_draw_hidden_field('filter', $_GET['filter']);
}
}
$params .= osc_draw_hidden_session_id_field();
//whether the products attributes filter and the category/manufacturer filter is linked
if (defined('PRODUCT_LINK_FILTER') && PRODUCT_LINK_FILTER == '1') {
if (isset($_GET['products_attributes']) && is_array($_GET['products_attributes'])) {
foreach ($_GET['products_attributes'] as $att_value_id => $att_value) {
$params .= osc_draw_hidden_field('products_attributes[' . $att_value_id . ']', $att_value);
}
}
}
//pass search params
$keys = array('keywords', 'pfrom', 'pto', 'datefrom_days', 'datefrom_months', 'datefrom_years', 'dateto_days', 'dateto_months', 'dateto_years');
foreach ($keys as $key) {
if (isset($_GET[$key])) {
$params .= osc_draw_hidden_field($key, $_GET[$key]);
}
}
return $params;
}
示例14: osc_draw_radio_field
<?php
if ($osC_Shipping->numberOfQuotes() > 1 || sizeof($quotes['methods']) > 1) {
?>
<td><?php
echo $osC_Currencies->displayPrice($methods['cost'], $quotes['tax_class_id']);
?>
</td>
<td align="right"><?php
echo osc_draw_radio_field('shipping_mod_sel', $quotes['id'] . '_' . $methods['id'], $osC_ShoppingCart->getShippingMethod('id'));
?>
</td>
<?php
} else {
?>
<td align="right" colspan="2"><?php
echo $osC_Currencies->displayPrice($methods['cost'], $quotes['tax_class_id']) . osc_draw_hidden_field('shipping_mod_sel', $quotes['id'] . '_' . $methods['id']);
?>
</td>
<?php
}
?>
<td width="10"> </td>
</tr>
<?php
$radio_buttons++;
}
}
?>
</table></td>
</tr>
<?php
示例15: foreach
echo $template;
?>
/languages/<?php
echo $language;
?>
/images/buttons/cancel.gif" border="0" alt="<?php
echo IMAGE_BUTTON_CANCEL;
?>
"></a></td>
</tr>
</table>
<?php
foreach ($_POST as $key => $value) {
if ($key != 'x' && $key != 'y') {
if (is_array($value)) {
for ($i = 0, $n = sizeof($value); $i < $n; $i++) {
echo osc_draw_hidden_field($key . '[]', $value[$i]);
}
} else {
echo osc_draw_hidden_field($key, $value);
}
}
}
echo osc_draw_hidden_field('install[]', 'configure');
?>
</form>
<?php
}