本文整理汇总了PHP中select_input函数的典型用法代码示例。如果您正苦于以下问题:PHP select_input函数的具体用法?PHP select_input怎么用?PHP select_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了select_input函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: traeCooperadoresAgenciaAjax
public function traeCooperadoresAgenciaAjax()
{
if ($this->input->is_ajax_request()) {
echo select_input(['select' => Dropdown(['name' => 'ID_COOPERADOR', 'dataProvider' => $this->practicantes_model->TraeCooperadoresAgencia(), 'placeholder' => '-- Seleccione un cooperador--', 'fields' => ['NOMBRE_COOPERADOR']]), 'text' => 'Cooperador']);
} else {
redirect(site_url(), 'refresh');
}
}
示例2: event_espresso_edit_event_groupon
function event_espresso_edit_event_groupon($use_groupon_code)
{
?>
<label><?php
_e('Allow GROUPON codes?', 'event_espresso');
?>
</label> <?php
$values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
echo select_input('use_groupon_code', $values, $use_groupon_code);
}
示例3: foreach
echo "<tr><td>PRIMARY<td>";
foreach ($primary["columns"] as $key => $column) {
echo select_input(" disabled", $fields, $column);
echo "<label><input disabled type='checkbox'>" . lang('descending') . "</label> ";
}
echo "<td><td>\n";
}
$j = 1;
foreach ($row["indexes"] as $index) {
if (!$_POST["drop_col"] || $j != key($_POST["drop_col"])) {
echo "<tr><td>" . html_select("indexes[{$j}][type]", array(-1 => "") + $index_types, $index["type"], $j == count($row["indexes"]) ? "indexesAddRow(this);" : 1);
echo "<td>";
ksort($index["columns"]);
$i = 1;
foreach ($index["columns"] as $key => $column) {
echo "<span>" . select_input(" name='indexes[{$j}][columns][{$i}]' onchange=\"" . ($i == count($index["columns"]) ? "indexesAddColumn" : "indexesChangeColumn") . "(this, '" . js_escape($jush == "sql" ? "" : $_GET["indexes"] . "_") . "');\"", $fields ? array_combine($fields, $fields) : $fields, $column);
echo $jush == "sql" || $jush == "mssql" ? "<input type='number' name='indexes[{$j}][lengths][{$i}]' class='size' value='" . h($index["lengths"][$key]) . "'>" : "";
echo $jush != "sql" ? checkbox("indexes[{$j}][descs][{$i}]", 1, $index["descs"][$key], lang('descending')) : "";
echo " </span>";
$i++;
}
echo "<td><input name='indexes[{$j}][name]' value='" . h($index["name"]) . "' autocapitalize='off'>\n";
echo "<td><input class='btn btn-xs btn-danger' type='submit' name='drop_col[{$j}]' data-toggle='tooltip' data-placement='top' value='X' title='" . lang('Remove') . "' onclick=\"return !editingRemoveRow(this, 'indexes\$1[type]');\">\n";
}
$j++;
}
?>
</table>
<p>
<input class="btn btn-xs btn-success" type="submit" value="<?php
echo lang('Save');
示例4: array
$status = array(array('id' => 'A', 'text' => __('Public', 'event_espresso')), array('id' => 'S', 'text' => __('Waitlist', 'event_espresso')), array('id' => 'O', 'text' => __('Ongoing', 'event_espresso')), array('id' => 'R', 'text' => __('Draft', 'event_espresso')), array('id' => 'D', 'text' => __('Deleted', 'event_espresso')));
}
$additional_attendee_reg_info = array(array('id' => '1', 'text' => __('No info required', 'event_espresso')), array('id' => '2', 'text' => __('Personal Information only', 'event_espresso')), array('id' => '3', 'text' => __('Full registration information', 'event_espresso')));
$default_payment_status = array(array('id' => "", 'text' => 'No Change'), array('id' => 'Incomplete', 'text' => 'Incomplete'), array('id' => 'Pending', 'text' => 'Pending'), array('id' => 'Completed', 'text' => 'Completed'));
$advanced_options = '';
$advanced_options .= '<p class="inputunder"><label>' . __('Additional Attendee Registration info?', 'event_espresso') . '</label> ' . select_input('additional_attendee_reg_info', $additional_attendee_reg_info, isset($event_meta['additional_attendee_reg_info']) ? $event_meta['additional_attendee_reg_info'] : '') . '</p>';
$advanced_options .= '<p><strong>' . __('Advanced Options:', 'event_espresso') . '</strong></p>';
if (function_exists('espresso_member_data') && espresso_member_data('role') == 'espresso_event_manager' && $espresso_manager['event_manager_approval'] == 'Y' && ($event_status == '' || $event_status == 'X' || $event_status == 'P')) {
$advanced_options .= '<p><label>' . __('Event Status: ', 'event_espresso') . '</label><span style="color: #ff8400; font-weight:bold;">' . __('PENDING', 'event_espresso') . '</span></p>';
$advanced_options .= '<input name="event_status" id="event_status" type="hidden" value="P" />';
$advanced_options .= '<input name="is_active" id="is_active" type="hidden" value="Y" />';
} else {
$is_active = isset($is_active) ? $is_active : '';
$event_status = isset($event_status) ? $event_status : '';
$advanced_options .= '<p><label>' . __('Is this an active event? ', 'event_espresso') . '</label>' . __(select_input('is_active', $values, $is_active)) . '</p>';
$advanced_options .= '<p><label>' . __('Event Status: ', 'event_espresso') . '</label>' . __(select_input('event_status', $status, $event_status)) . ' <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=status_types_info"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a></p>';
}
$display_desc = isset($display_desc) ? $display_desc : '';
$display_reg_form = isset($display_reg_form) ? $display_reg_form : '';
$overflow_event_id = isset($overflow_event_id) ? $overflow_event_id : '0';
$allow_overflow = isset($allow_overflow) ? $allow_overflow : 'N';
$externalURL = isset($externalURL) ? $externalURL : '';
$alt_email = isset($alt_email) ? $alt_email : '';
$advanced_options .= '<p><label>' . __('Display description? ', 'event_espresso') . '</label>' . select_input('display_desc', $values, $display_desc) . '</p>';
$advanced_options .= '<p><label>' . __('Display registration form? ', 'event_espresso') . '</label>' . select_input('display_reg_form', $values, $display_reg_form) . '</p>';
$advanced_options .= '<p class="inputunder"><label>' . __('Default Payment Status for Event: ', 'event_espresso') . '</label>' . select_input('default_payment_status', $default_payment_status, isset($event_meta['default_payment_status']) ? $event_meta['default_payment_status'] : '') . '</p>';
$advanced_options .= $event_status != 'S' ? espresso_secondary_events_dd($overflow_event_id, $allow_overflow) : '';
$advanced_options .= '<p class="inputunder"><label>' . __('Alternate Registration Page (optional)', 'event_espresso') . '</label>
<input name="externalURL" size="20" type="text" value="' . $externalURL . '"> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=external_URL_info"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a><br /></p>';
$advanced_options .= '<p class="inputunder"><label>' . __('Alternate Email Address (optional)', 'event_espresso') . '</label>
<input name="alt_email" size="20" type="text" value="' . $alt_email . '"> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=alt_email_info"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a></p>';
示例5: event_espresso_member_config_mnu
function event_espresso_member_config_mnu()
{
if (!empty($_POST['update_member_settings']) && $_POST['update_member_settings'] == 'update') {
$member_options = get_option('events_member_settings');
$member_options['login_page'] = $_POST['login_page'];
$member_options['register_page'] = $_POST['register_page'];
$member_options['member_only_all'] = $_POST['member_only_all'];
update_option('events_member_settings', $member_options);
echo '<div id="message" class="updated fade"><p><strong>' . __('Member settings saved.', 'event_espresso') . '</strong></p></div>';
}
$member_options = get_option('events_member_settings');
$login_page = empty($member_options['login_page']) ? '' : $member_options['login_page'];
$register_page = empty($member_options['register_page']) ? '' : $member_options['register_page'];
$member_only_all = empty($member_options['member_only_all']) ? 'N' : $member_options['member_only_all'];
?>
<div id="event_reg_theme" class="wrap">
<div id="icon-options-event" class="icon32"></div><h2><?php
echo _e('Manage Member Settings', 'event_espresso');
?>
</h2>
<div class="metabox-holder">
<div class="postbox">
<h3><?php
_e('Member Settings', 'event_espresso');
?>
</h3>
<div class="inside">
<form method="post" action="<?php
echo $_SERVER['REQUEST_URI'];
?>
">
<ul>
<li>
<label><?php
_e('Login page (if different from default Wordpress login page): ', 'event_espresso');
?>
</label> <input type="text" name="login_page" size="25" <?php
echo isset($login_page) ? 'value="' . $login_page . '"' : "";
?>
></li>
<?php
if (!get_option('users_can_register')) {
echo '<li class="updated" style="width:65%">' . __('New user registration is currently closed. If you would like to set a custom user regsistration page, you must enable "Anyone can register" in your Wordpress "<a href="options-general.php">General Settings</a>" page.', 'event_espresso') . '</li>';
} else {
?>
<li><label><?php
_e('Member registration page (if different from default Wordpress register page): ', 'event_espresso');
?>
</label> <input name="register_page" size="25" <?php
echo isset($register_page) ? 'value="' . $register_page . '"' : "";
?>
></li>
<?php
}
?>
<li>
<label><?php
_e('Require login for all events? ', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
echo select_input('member_only_all', $values, $member_only_all);
?>
</li>
<li>
<input type="hidden" name="update_member_settings" value="update">
<p>
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Save Settings', 'event_espresso');
?>
" id="save_member_settings" />
</p>
</li>
</ul>
</form>
</div>
</div>
</div>
</div>
<?php
//============= End Event Registration Members Subpage - Settings =============== //
}
示例6: isset
$_POST['month_range'] = isset($_POST['month_range']) ? $_POST['month_range'] : '';
espresso_event_months_dropdown($_POST['month_range']);
//echo $_POST[ 'month_range' ];
?>
<input type="submit" class="button-secondary" value="Filter Month" id="post-query-submit">
<?php
$_REQUEST['category_id'] = isset($_REQUEST['category_id']) ? $_REQUEST['category_id'] : '';
echo espresso_category_dropdown($_REQUEST['category_id']);
?>
<input type="submit" class="button-secondary" value="Filter Category" id="post-query-submit">
<?php
$status = array(array('id' => '', 'text' => __('Show Active/Inactive', 'event_espresso')), array('id' => 'A', 'text' => __('Active', 'event_espresso')), array('id' => 'IA', 'text' => __('Inactive', 'event_espresso')), array('id' => 'P', 'text' => __('Pending', 'event_espresso')), array('id' => 'R', 'text' => __('Draft', 'event_espresso')), array('id' => 'S', 'text' => __('Waitlist', 'event_espresso')), array('id' => 'O', 'text' => __('Ongoing', 'event_espresso')), array('id' => 'X', 'text' => __('Denied', 'event_espresso')), array('id' => 'D', 'text' => __('Deleted', 'event_espresso')));
if (empty($_REQUEST['event_status'])) {
$_REQUEST['event_status'] = '';
}
echo select_input('event_status', $status, $_REQUEST['event_status']);
?>
<input type="submit" class="button-secondary" value="Filter Status" id="post-query-submit">
<a class="button-secondary" href="admin.php?page=events" style=" width:40px; display:inline">
<?php
_e('Reset Filters', 'event_espresso');
?>
</a>
<?php
break;
}
?>
</form>
</div>
</div>
<?php
示例7: selectOrderPrint
/** Print order box in select
* @param array result of selectOrderProcess()
* @param array selectable columns
* @param array
* @return null
*/
function selectOrderPrint($order, $columns, $indexes)
{
print_fieldset("sort", lang('Sort'), $order);
$i = 0;
foreach ((array) $_GET["order"] as $key => $val) {
if ($val != "") {
echo "<div>" . select_input(" name='order[{$i}]' onchange='selectFieldChange(this.form);'", $columns, $val);
echo checkbox("desc[{$i}]", 1, isset($_GET["desc"][$key]), lang('descending')) . "</div>\n";
$i++;
}
}
echo "<div>" . select_input(" name='order[{$i}]' onchange='selectAddRow(this);'", $columns);
echo checkbox("desc[{$i}]", 1, false, lang('descending')) . "</div>\n";
echo "</div></fieldset>\n";
}
示例8: event_espresso_display_realauth_settings
//.........这里部分代码省略.........
_e('Button Image URL', 'event_espresso');
?>
<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=button_image"><img src="<?php
echo EVENT_ESPRESSO_PLUGINFULLURL;
?>
/images/question-frame.png" width="16" height="16" /></a></label>
<input class="regular-text" type="text" name="button_url" size="34" value="<?php
echo $realauth_settings['button_url'];
?>
" /> <a href="media-upload.php?post_id=0&type=image&TB_iframe=true&width=640&height=580&rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
</li>
</ul>
</td>
<td valign="top">
<ul>
<li>
<label for="use_sandbox"><?php
_e('Use the debugging feature');
?>
</label>
<input name="use_sandbox" type="checkbox" value="1" <?php
echo $realauth_settings['use_sandbox'] ? 'checked="checked"' : '';
?>
/>
</li>
<li>
<label for="bypass_payment_page"><?php
_e('Bypass Payment Overview Page', 'event_espresso');
?>
<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=bypass_confirmation"><img src="<?php
echo EVENT_ESPRESSO_PLUGINFULLURL;
?>
/images/question-frame.png" width="16" height="16" /></a></label>
<?php
echo select_input('bypass_payment_page', $values, $realauth_settings['bypass_payment_page']);
?>
</li>
<li>
<label for="auto_settle"><?php
_e('Auto settle transactions', 'event_espresso');
?>
<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=auto_settle_info"><img src="<?php
echo EVENT_ESPRESSO_PLUGINFULLURL;
?>
/images/question-frame.png" width="16" height="16" /></a></label>
<?php
echo select_input('auto_settle', $values, $realauth_settings['auto_settle']);
?>
</li>
<li>
<label><?php
_e('Current Button Image', 'event_espresso');
?>
</label>
<?php
echo '<img src="' . $realauth_settings['button_url'] . '" />';
?>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<p>
<input type="hidden" name="update_realauth" value="update_realauth">
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Update RealAuth Settings', 'event_espresso');
?>
" id="save_realauth_settings" />
</p>
<?php
wp_nonce_field('espresso_form_check', 'add_realauth_settings');
?>
</form>
<div id="auto_settle_info" style="display:none">
<h2>
<?php
_e('RealAuth Auto Settle', 'event_espresso');
?>
</h2>
<p>
<?php
_e('Used to signify whether or not you wish the transaction to be captured in the next batch or not. If set to “Y” and assuming the transaction is authorised then it will automatically be settled in the next batch. If set to “N” then the merchant must use the realcontrol application to manually settle the transaction. This option can be used if a merchant wishes to delay the payment until after the goods have been shipped. Transactions can be settled for up to 115% of the original amount.', 'event_espresso');
?>
</p>
</div>
<div id="realauth_currency_info" style="display:none">
<h2>
<?php
_e('RealAuth Currency', 'event_espresso');
?>
</h2>
<p>
<?php
_e('RealAuth uses 3-character ISO-4217 codes for specifying currencies in fields and variables. </p><p>The default currency code is US Dollars (USD). If you want to require or accept payments in other currencies, select the currency you wish to use. The dropdown lists all currencies that RealAuth (currently) supports.', 'event_espresso');
?>
</p>
</div>
<?php
}
示例9: select_input
<?php
echo select_input('early_disc_percentage', $values, !isset($early_disc_percentage) ? '' : $early_disc_percentage);
?>
</p>
<p><?php
_e('(Leave blank if not applicable)', 'event_espresso');
?>
</p>
<p class="disc-codes">
<label><?php
_e('Allow discount codes?', 'event_espresso');
?>
</label>
<?php
echo select_input('use_coupon_code', $values, !isset($use_coupon_code) || $use_coupon_code == '' ? 'N' : $use_coupon_code);
?>
<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=coupon_code_info"><img src="<?php
echo EVENT_ESPRESSO_PLUGINFULLURL;
?>
/images/question-frame.png" width="16" height="16" /></a></p>
<?php
$sql = "SELECT * FROM " . EVENTS_DISCOUNT_CODES_TABLE;
if (function_exists('espresso_member_data')) {
$wpdb->get_results("SELECT wp_user FROM " . EVENTS_DETAIL_TABLE . " WHERE id = '" . $event_id . "'");
$wp_user = $wpdb->last_result[0]->wp_user != '' ? $wpdb->last_result[0]->wp_user : espresso_member_data('id');
$sql .= " WHERE ";
if ($wp_user == 0 || $wp_user == 1) {
$sql .= " (wp_user = '0' OR wp_user = '1') ";
} else {
$sql .= " wp_user = '" . $wp_user . "' ";
示例10: add_new_event_category
function add_new_event_category()
{
?>
<!--Add event display-->
<div id="add-edit-categories" class="metabox-holder">
<div class="postbox">
<h3>
<?php
_e('Add a Category', 'event_espresso');
?>
</h3>
<div class="inside">
<form id="add-new-cat" method="post" action="<?php
echo $_SERVER['REQUEST_URI'];
?>
">
<input type="hidden" name="action" value="add">
<p class="add-cat-name inputunder">
<label for="category_name">
<?php
_e('Category Name', 'event_espresso');
?>
<em title="<?php
_e('This field is required', 'event_espresso');
?>
"> *</em></label>
<input id="category_name" type="text" name="category_name" size="25" />
</p>
<p class="add-cat-id inputunder">
<label for="cat_id">
<?php
_e('Unique ID For Category', 'event_espresso');
?>
</label>
<input id="cat_id" type="text" name="category_identifier" />
<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=unique_id_info"><img src="<?php
echo EVENT_ESPRESSO_PLUGINFULLURL;
?>
/images/question-frame.png" width="16" height="16" /></a> </p>
<p class="section-quest">
<?php
_e('Display category description on event listings Page?', 'event_espresso');
?>
</p>
<?php
$values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
echo select_input('display_desc', $values, 'N');
?>
<?php
global $espresso_premium;
if ($espresso_premium == true) {
?>
<table class="form-table">
<tbody>
<tr>
<th> <label for="espresso_use_pickers">
<?php
_e('Use Color Pickers', 'event_espresso');
?>
</label>
</th>
<td><?php
echo select_input('use_pickers', $values, '', 'id="espresso_use_pickers"');
?>
</td>
</tr>
<tr class="color-picker-selections">
<th class="color-picker-style">
<label for="background-color">
<?php
_e('Event Background Color', 'event_espresso');
?>
</label>
</th>
<td><input id="background-color"type="text" name="event_background" value="#486D96" />
<div id="colorpicker-1"></div></td>
</tr>
<tr class="color-picker-selections">
<th class="color-picker-style">
<label for="text-color">
<?php
_e('Event Text Color', 'event_espresso');
?>
</label>
</th>
<td><input id="text-color" type="text" name="event_text_color" value="#ebe6e8" />
<div id="colorpicker-2"></div></td>
</tr>
</tbody>
</table>
<?php
}
?>
<div id="categorydescriptiondivrich" class="postarea">
<p id="add-category-desc" class="section-heading">
<?php
_e('Category Description', 'event_espresso');
?>
</p>
//.........这里部分代码省略.........
示例11: event_espresso_display_atos_settings
function event_espresso_display_atos_settings()
{
global $org_options;
$settings = get_option('event_espresso_atos_settings');
?>
<form method="post" action="<?php
echo $_SERVER['REQUEST_URI'];
?>
">
<table width="99%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td valign="top">
<ul>
<li>
<label for="merchant_id">
<?php
_e('Merchant ID number', 'event_espresso');
?>
</label>
<br />
<input type="text" name="merchant_id" size="15" value="<?php
echo $settings['merchant_id'];
?>
">
</li>
<li>
<label for="merchant_country">
<?php
_e('Merchant Country', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'be', 'text' => __('Belgium', 'event_espresso')), array('id' => 'fr', 'text' => __('France', 'event_espresso')), array('id' => 'de', 'text' => __('Germany', 'event_espresso')), array('id' => 'it', 'text' => __('Italy', 'event_espresso')), array('id' => 'es', 'text' => __('Spain', 'event_espresso')), array('id' => 'en', 'text' => __('United Kingdom', 'event_espresso')));
echo select_input('merchant_country', $values, $settings['merchant_country']);
?>
</li>
<li>
<label for="currency_code">
<?php
_e('Merchant Currency', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => '978', 'text' => __('Euro', 'event_espresso')), array('id' => '840', 'text' => __('Us Dollar', 'event_espresso')), array('id' => '756', 'text' => __('Swiss Franc', 'event_espresso')), array('id' => '826', 'text' => __('Pound Sterling', 'event_espresso')), array('id' => '124', 'text' => __('Canadian Dollar', 'event_espresso')), array('id' => '392', 'text' => __('Yen', 'event_espresso')), array('id' => '484', 'text' => __('Mexican Peso', 'event_espresso')), array('id' => '792', 'text' => __('Turkish Lira', 'event_espresso')), array('id' => '036', 'text' => __('Australian Dollar', 'event_espresso')), array('id' => '554', 'text' => __('New Zealand Dollar', 'event_espresso')), array('id' => '578', 'text' => __('Norwegian Krone', 'event_espresso')), array('id' => '986', 'text' => __('Brazilian Real', 'event_espresso')), array('id' => '032', 'text' => __('Argentinean Peso', 'event_espresso')), array('id' => '116', 'text' => __('Riel', 'event_espresso')), array('id' => '901', 'text' => __('Taiwan Dollar', 'event_espresso')), array('id' => '752', 'text' => __('Swedish Krona', 'event_espresso')), array('id' => '208', 'text' => __('Danish Krone', 'event_espresso')), array('id' => '410', 'text' => __('Won', 'event_espresso')), array('id' => '702', 'text' => __('Singapore Dollar', 'event_espresso')), array('id' => '953', 'text' => __('Polynesian Franc', 'event_espresso')), array('id' => '952', 'text' => __('CFA Franc', 'event_espresso')));
echo select_input('currency_code', $values, $settings['currency_code']);
?>
</li>
<li>
<label for="language">
<?php
_e('Language', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'fr', 'text' => __('French', 'event_espresso')), array('id' => 'ge', 'text' => __('German', 'event_espresso')), array('id' => 'en', 'text' => __('English', 'event_espresso')), array('id' => 'sp', 'text' => __('Spanish', 'event_espresso')), array('id' => 'it', 'text' => __('Italian', 'event_espresso')));
echo select_input('language', $values, $settings['language']);
?>
</li>
<li>
<label for="provider">
<?php
_e('Provider', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'default', 'text' => __('Default', 'event_espresso')), array('id' => 'mercanet', 'text' => __('Mercanet', 'event_espresso')));
echo select_input('provider', $values, $settings['provider']);
?>
</li>
<li>
<label for="debug_mode">
<?php
_e('Use Debug Mode', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => FALSE, 'text' => __('No', 'event_espresso')), array('id' => TRUE, 'text' => __('Yes', 'event_espresso')));
echo select_input('debug_mode', $values, $settings['debug_mode']);
?>
</li>
<li>
<?php
_e('Means of Payment and Block Position', 'event_espresso');
$values = array(array('id' => '0', 'text' => __('OFF', 'event_espresso')), array('id' => '1', 'text' => __('Choose a means of payment below:', 'event_espresso')), array('id' => '2', 'text' => __('You are using the standard secure SSL form; select a card below:', 'event_espresso')), array('id' => '4', 'text' => __('Other means of payment:', 'event_espresso')));
?>
<label for="payment_means[CB]">
<?php
_e('Carte Bleue', 'event_espresso');
?>
</label>
<?php
echo select_input("payment_means[CB]", $values, $settings['payment_means']['CB']);
?>
<label for="payment_means[VISA]">
<?php
_e('VISA', 'event_espresso');
?>
</label>
<?php
echo select_input("payment_means[VISA]", $values, $settings['payment_means']['VISA']);
//.........这里部分代码省略.........
示例12: espresso_secondary_events_dd
function espresso_secondary_events_dd($current_value = '0', $allow_overflow = 'N')
{
global $wpdb;
$sql = "SELECT id, event_name FROM " . EVENTS_DETAIL_TABLE;
$sql .= " WHERE event_status = 'S' ";
$events = $wpdb->get_results($sql);
$num_rows = $wpdb->num_rows;
//return print_r( $events );
if ($num_rows > 0) {
$field = '<select name="overflow_event_id" id="overflow_event_id">\\n';
$field .= '<option value="0">Select an event</option>';
foreach ($events as $event) {
$selected = $event->id == $current_value ? 'selected="selected"' : '';
$field .= '<option ' . $selected . ' value="' . $event->id . '">' . $event->event_name . '</option>\\n';
}
$field .= "</select>";
$values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
$html = '<p><label>' . __('Assign a Waitlist Event? ', 'event_espresso') . '</label> ' . select_input('allow_overflow', $values, $allow_overflow) . ' <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=secondary_info"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a> </p>' . '<p class="inputunder"><label>' . __('Overflow Event', 'event_espresso') . ': </label><br />' . $field . '</p>';
return $html;
}
}
示例13: form_input
echo form_input(['placeholder' => 'Ingrese el código del estudiante', 'name' => 'CODIGO', 'class' => 'obligatorio', 'label' => ['text' => 'Código']], $Info->CODIGO);
?>
<?php
echo form_dropdown('ID_PROGRAMA', [1 => 'Ingeniería de sistemas', 2 => 'Ingeniería de software', 3 => 'Electromedicina', 4 => 'Robótica y automatización'], ['label' => ['text' => 'Programa']], ['selected' => $Info->ID_PROGRAMA]);
?>
<?php
echo form_dropdown('ID_MODALIDAD_PRACTICA', ['1' => 'Validación experiencia profesional', 2 => 'Práctica empresarial'], ['label' => ['text' => 'Modalidad']], ['selected' => $Info->ID_MODALIDAD_PRACTICA]);
?>
<?php
echo select_input(['select' => $Proyectos, 'text' => 'Proyecto']);
?>
<?php
echo select_input(['select' => $Agencias, 'text' => 'Agencia']);
?>
<div id="flag"><?php
echo select_input(['select' => $Cooperadores, 'text' => 'Cooperador']);
?>
</div>
<!--Envíar-->
<?php
echo input_submit(['class' => 'col-lg-offset-5 col-lg-10', 'text' => 'Actualizar']);
?>
<?php
echo call_spin_div();
?>
<?php
echo br(3);
?>
<?php
echo form_close();
示例14: espresso_calendar_config_mnu
//.........这里部分代码省略.........
</div>
<div class="metabox-holder">
<div class="postbox">
<h3><?php
_e('Basic Settings', 'event_espresso');
?>
</h3>
<div class="padding">
<ul>
<li>
<label for="espresso_calendar_firstday">
<?php
_e('First Day of the Week:', 'event_espresso');
?>
</label>
<?php
_e('(Sunday=0, Monday=1, Tuesday=2, etc.)', 'event_espresso');
?>
<br />
<input type="text" name="espresso_calendar_firstday" size="10" maxlength="1" value="<?php
echo $espresso_calendar['espresso_calendar_firstday'];
?>
" />
</li>
<li>
<label for="espresso_calendar_weekends">
<?php
_e('Show Weekends:', 'event_espresso');
?>
</label>
<?php
$values = array(array('id' => 'true', 'text' => __('Yes', 'event_espresso')), array('id' => 'false', 'text' => __('No', 'event_espresso')));
echo select_input('espresso_calendar_weekends', $values, $espresso_calendar['espresso_calendar_weekends']);
?>
</li>
<li>
<label for="espresso_calendar_height">
<?php
_e('Height:', 'event_espresso');
?>
</label><?php
_e('Will make the entire calendar (including header) a pixel height.', 'event_espresso');
?>
<br />
<input type="text" name="espresso_calendar_height" size="100" maxlength="100" value="<?php
echo $espresso_calendar['espresso_calendar_height'];
?>
" />
</li>
<li><label for="calendar_pages">
<?php
_e('Page(s) displaying the calendar:', 'event_espresso');
?>
</label><?php
_e('This tells the plugin to load the calendar CSS file on these pages. This should be a comma seperated list of page ids. The default value is "0", meaning the CSS will load on all pages of your website. The list of page ids will need to be updated if you add/delete/move your calendar page(s). If you have are uncertian on what this setting does, please do not modify the default value.', 'event_espresso');
?>
<br />
<input type="text" name="calendar_pages" size="100" maxlength="100" value="<?php
echo $espresso_calendar['calendar_pages'] == '' ? 0 : $espresso_calendar['calendar_pages'];
?>
" /></li>
<li>
<label for="espresso_page_post">
<?php
_e('Links go to post or registration page?', 'event_espresso');
示例15: list_db
<?php
if (verif_connect()) {
if (request_confirm('Write')) {
echo LanguageValidation::iMsg("intro.message.write");
$Player_List = list_db('list_account_friends', array('Account_ID' => logged_data('Account_ID')));
foreach ($Player_List as $Player) {
$Receiver = strip_tags(stripslashes($Player['Account_Pseudo']));
$Players[$Receiver] = $Receiver;
}
echo formulaire_input(array(select_input("label.message.destinataire", "Receiver", $Players, null, null, "Receiver"), text_input("label.message.subject", "Message_Subject", null, null, null, "placeholder.message.subject"), call_bbcode_editor("Message"), submit_input("Send", "btn.message.send")), "Mailbox-Send", get_link('Mailbox', 'User'), "post", null);
} else {
if (request_confirm('Read')) {
$Messages = list_db('request_mailbox', user_data());
echo "<table class='newsboard email' >";
echo "<tr><th><div class='important'>" . LanguageValidation::iMsg("label.message.emetteur") . "</div></th>";
echo "<th><div class='important'>" . LanguageValidation::iMsg("label.message.subject") . "</div></th>";
echo "<th>" . LanguageValidation::iMsg("label.message.content") . "</th>";
echo '<th></th></tr>';
echo '<tr>';
echo '<td class="none" colspan="4" >';
echo '</td>';
echo '</tr>';
if (!empty($Messages)) {
foreach ($Messages as $Message) {
extract(stripslashes_r($Message));
$ID = get_db('request_mail', $Message);
if (!empty($ID)) {
$Transmitter = $ID['Account_Pseudo'];
echo "<tr><td>{$Transmitter}</td>";
echo "<td>{$Private_Message_Subject}</td>";