Ejemplo n.º 1
0
 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');
     }
 }
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);
}
Ejemplo n.º 3
0
    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');
    $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>';
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  =============== //
}
            $_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 
Ejemplo n.º 7
0
 /** 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";
 }
Ejemplo n.º 8
0
function event_espresso_display_realauth_settings()
{
    $realauth_settings = get_option('event_espresso_realauth_settings');
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    $uri = $_SERVER['REQUEST_URI'];
    $uri = substr("{$uri}", 0, strpos($uri, '&activate_realauth=true'));
    ?>
	<form method="post" action="<?php 
    echo $uri;
    ?>
#realauth">
		<table width="99%" border="0" cellspacing="5" cellpadding="5" class="form-table">
			<tbody>
				<tr>
					<td valign="top">
						<ul>
							<li>
								<label for="merchant_id"><?php 
    _e('Merchant ID', 'event_espresso');
    ?>
</label>
								<input class="regular-text" type="text" name="merchant_id" id="merchant_id" size="35" value="<?php 
    echo $realauth_settings['merchant_id'];
    ?>
">
							</li>
							<li>
								<label for="shared_secret"><?php 
    _e('Shared Secret', 'event_espresso');
    ?>
</label>
								<input class="regular-text" type="text" name="shared_secret" id="shared_secret" size="35" value="<?php 
    echo $realauth_settings['shared_secret'];
    ?>
">
							</li>
							<li>
								<label for="currency_format"><?php 
    _e('Country Currency', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=realauth_currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a></label>
								<select name="currency_format" data-placeholder="Choose a currency..." class="wide">
									<option value="<?php 
    echo $realauth_settings['currency_format'];
    ?>
"><?php 
    echo $realauth_settings['currency_format'];
    ?>
</option>									<option value="EUR"><?php 
    _e('Euro', 'event_espresso');
    ?>
</option>
									<option value="GBP"><?php 
    _e('Pound Sterling', 'event_espresso');
    ?>
</option>
									<option value="USD"><?php 
    _e('U.S. Dollar', 'event_espresso');
    ?>
</option>
									<option value="SEK"><?php 
    _e('Swedish Krona', 'event_espresso');
    ?>
</option>
									<option value="CHF"><?php 
    _e('Swiss Franc', 'event_espresso');
    ?>
</option>
									<option value="HKD"><?php 
    _e('Hong Kong Dollar', 'event_espresso');
    ?>
</option>
									<option value="JPY"><?php 
    _e('Japanese Yen', 'event_espresso');
    ?>
</option>
								</select>
							</li>
							<li>
								<label for="button_url"><?php 
    _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&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;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 
}
               	<?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 = '******' OR wp_user = '******') ";
    } else {
        $sql .= " wp_user = '******' ";
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>
					<div class="postbox">
						<?php 
    if (function_exists('wp_editor')) {
        $args = array("textarea_rows" => 5, "textarea_name" => "category_desc", "editor_class" => "my_editor_custom");
        wp_editor("", "category_desc", $args);
    } else {
        the_editor('', $id = 'category_desc', $prev_id = 'title', $media_buttons = true, $tab_index = 3);
    }
    ?>
						<table id="cat-descr-add-form" cellspacing="0">
							<tbody>
								<tr>
									<td class="aer-word-count"></td>
									<td class="autosave-info"><span>
										<p></p>
										</span></td>
								</tr>
							</tbody>
						</table>
					</div>
					<!-- /.postbox -->
					<p>
						<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Submit');
    ?>
" id="add_new_category" />
					</p>
				</div>
				<!-- /.postarea -->
			</form>
		</div>
		<!-- /.inside --> 
	</div>
	<!-- /.postbox --> 
</div>
<!-- metabox-holder -->
<?php 
    wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false);
    wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false);
}
Ejemplo n.º 11
0
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']);
    ?>
							<label for="payment_means[MASTERCARD]">
								<?php 
    _e('MASTERCARD', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[MASTERCARD]", $values, $settings['payment_means']['MASTERCARD']);
    ?>
							<label for="payment_means[AMEX]">
								<?php 
    _e('AMEX', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[AMEX]", $values, $settings['payment_means']['AMEX']);
    ?>
							<label for="payment_means[DINERS]">
								<?php 
    _e('DINERS', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[DINERS]", $values, $settings['payment_means']['DINERS']);
    ?>
							<label for="payment_means[FINAREF]">
								<?php 
    _e('FINAREF', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[FINAREF]", $values, $settings['payment_means']['FINAREF']);
    ?>
							<label for="payment_means[FNAC]">
								<?php 
    _e('FNAC', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[FNAC]", $values, $settings['payment_means']['FNAC']);
    ?>
							<label for="payment_means[CYRILLUS]">
								<?php 
    _e('CYRILLUS', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[CYRILLUS]", $values, $settings['payment_means']['CYRILLUS']);
    ?>
							<label for="payment_means[PRINTEMPS]">
								<?php 
    _e('PRINTEMPS', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[PRINTEMPS]", $values, $settings['payment_means']['PRINTEMPS']);
    ?>
							<label for="payment_means[KANGOUROU]">
								<?php 
    _e('KANGOUROU', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[KANGOUROU]", $values, $settings['payment_means']['KANGOUROU']);
    ?>
							<label for="payment_means[SURCOUF]">
								<?php 
    _e('SURCOUF', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[SURCOUF]", $values, $settings['payment_means']['SURCOUF']);
    ?>
							<label for="payment_means[POCKETCARD]">
								<?php 
    _e('POCKETCARD', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[POCKETCARD]", $values, $settings['payment_means']['POCKETCARD']);
    ?>
							<label for="payment_means[CONFORAMA]">
								<?php 
    _e('CONFORAMA', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[CONFORAMA]", $values, $settings['payment_means']['CONFORAMA']);
    ?>
							<label for="payment_means[NUITEA]">
								<?php 
    _e('NUITEA', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[NUITEA]", $values, $settings['payment_means']['NUITEA']);
    ?>
							<label for="payment_means[AURORE]">
								<?php 
    _e('AURORE', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[AURORE]", $values, $settings['payment_means']['AURORE']);
    ?>
							<label for="payment_means[PASS]">
								<?php 
    _e('PASS', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[PASS]", $values, $settings['payment_means']['PASS']);
    ?>
							<label for="payment_means[PLURIEL]">
								<?php 
    _e('PLURIEL', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[PLURIEL]", $values, $settings['payment_means']['PLURIEL']);
    ?>
							<label for="payment_means[TOYSRUS]">
								<?php 
    _e('TOYSRUS', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[TOYSRUS]", $values, $settings['payment_means']['TOYSRUS']);
    ?>
							<label for="payment_means[CONNEXION]">
								<?php 
    _e('CONNEXION', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[CONNEXION]", $values, $settings['payment_means']['CONNEXION']);
    ?>
							<label for="payment_means[HYPERMEDIA]">
								<?php 
    _e('HYPERMEDIA', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[HYPERMEDIA]", $values, $settings['payment_means']['HYPERMEDIA']);
    ?>
							<label for="payment_means[DELATOUR]">
								<?php 
    _e('DELATOUR', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[DELATOUR]", $values, $settings['payment_means']['DELATOUR']);
    ?>
							<label for="payment_means[NORAUTO]">
								<?php 
    _e('NORAUTO', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[NORAUTO]", $values, $settings['payment_means']['NORAUTO']);
    ?>
							<label for="payment_means[NOUVFRONT]">
								<?php 
    _e('NOUVFRONT', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[NOUVFRONT]", $values, $settings['payment_means']['NOUVFRONT']);
    ?>
							<label for="payment_means[SERAP]">
								<?php 
    _e('SERAP', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[SERAP]", $values, $settings['payment_means']['SERAP']);
    ?>
							<label for="payment_means[BOURBON]">
								<?php 
    _e('BOURBON', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[BOURBON]", $values, $settings['payment_means']['BOURBON']);
    ?>
							<label for="payment_means[COFINOGA]">
								<?php 
    _e('COFINOGA', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA]", $values, $settings['payment_means']['COFINOGA']);
    ?>
							<label for="payment_means[COFINOGA_BHV]">
								<?php 
    _e('BHV', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_BHV]", $values, $settings['payment_means']['COFINOGA_BHV']);
    ?>
							<label for="payment_means[COFINOGA_CASINOGEANT]">
								<?php 
    _e('CASINOGEANT', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_CASINOGEANT]", $values, $settings['payment_means']['COFINOGA_CASINOGEANT']);
    ?>
							<label for="payment_means[COFINOGA_DIAC]">
								<?php 
    _e('DIAC', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_DIAC]", $values, $settings['payment_means']['COFINOGA_DIAC']);
    ?>
							<label for="payment_means[COFINOGA_GL]">
								<?php 
    _e('GL', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_GL]", $values, $settings['payment_means']['COFINOGA_GL']);
    ?>
							<label for="payment_means[COFINOGA_GOSPORT]">
								<?php 
    _e('GOSPORT', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_GOSPORT]", $values, $settings['payment_means']['COFINOGA_GOSPORT']);
    ?>
							<label for="payment_means[COFINOGA_MONOPRIX]">
								<?php 
    _e('MONOPRIX', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_MONOPRIX]", $values, $settings['payment_means']['COFINOGA_MONOPRIX']);
    ?>
							<label for="payment_means[COFINOGA_MRBRICOLAGE]">
								<?php 
    _e('MRBRICOLAGE', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_MRBRICOLAGE]", $values, $settings['payment_means']['COFINOGA_MRBRICOLAGE']);
    ?>
							<label for="payment_means[COFINOGA_SOFICARTE]">
								<?php 
    _e('SOFICARTE', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_SOFICARTE]", $values, $settings['payment_means']['COFINOGA_SOFICARTE']);
    ?>
							<label for="payment_means[COFINOGA_SYGMA]">
								<?php 
    _e('SYGMA', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[COFINOGA_SYGMA]", $values, $settings['payment_means']['COFINOGA_SYGMA']);
    ?>
							<label for="payment_means[JCB]">
								<?php 
    _e('JCB', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[JCB]", $values, $settings['payment_means']['JCB']);
    ?>
							<label for="payment_means[DELTA]">
								<?php 
    _e('DELTA', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[DELTA]", $values, $settings['payment_means']['DELTA']);
    ?>
							<label for="payment_means[SWITCH]">
								<?php 
    _e('SWITCH', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[SWITCH]", $values, $settings['payment_means']['SWITCH']);
    ?>
							<label for="payment_means[SOLO]">
								<?php 
    _e('SOLO', 'event_espresso');
    ?>
							</label>
							<?php 
    echo select_input("payment_means[SOLO]", $values, $settings['payment_means']['SOLO']);
    ?>
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_atos" value="update_atos">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Atos SIPS Settings', 'event_espresso');
    ?>
" id="save_atos_settings" />
		</p>
	</form>
	<p>
		<?php 
    _e("Notes on Files and Permissions: ", "event_espresso");
    _e("In order for the Atos gateway to work properly, you will need to upload the files given to you by your provider to the folder matching your selected provider above. Eg, gateways/atos/mercanet/. The file called pathfile will need to be writable by your web server and the two files in gateways/atos/bin/ will need to be executable by your web server. The current implementation uses the Atos provided Linux executables. Please contact support if you are using a Windows server, and would like to sponsor development of a version that will run on your server. ", "event_espresso");
    _e("For more information on setting file permissions, see: ", "event_espresso");
    ?>
		<a href="http://codex.wordpress.org/Changing_File_Permissions" target="blank">http://codex.wordpress.org/Changing_File_Permissions</a>
		<?php 
}
Ejemplo n.º 12
0
 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;
     }
 }
Ejemplo n.º 13
0
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();
function espresso_calendar_config_mnu()
{
    global $wpdb, $espresso_calendar;
    /*Calendar*/
    function espresso_calendar_updated()
    {
        return __('Calendar details saved.', 'event_espresso');
    }
    if (isset($_POST['update_calendar'])) {
        $espresso_calendar['espresso_page_post'] = $_POST['espresso_page_post'];
        $espresso_calendar['espresso_calendar_header'] = $_POST['espresso_calendar_header'];
        $espresso_calendar['espresso_calendar_buttonText'] = $_POST['espresso_calendar_buttonText'];
        $espresso_calendar['espresso_calendar_firstday'] = $_POST['espresso_calendar_firstday'];
        $espresso_calendar['espresso_calendar_weekends'] = $_POST['espresso_calendar_weekends'];
        $espresso_calendar['espresso_calendar_height'] = $_POST['espresso_calendar_height'];
        $espresso_calendar['espresso_calendar_width'] = $_POST['espresso_calendar_width'];
        $espresso_calendar['espresso_calendar_titleFormat'] = $_POST['espresso_calendar_titleFormat'];
        $espresso_calendar['espresso_calendar_columnFormat'] = $_POST['espresso_calendar_columnFormat'];
        $espresso_calendar['espresso_calendar_monthNames'] = $_POST['espresso_calendar_monthNames'];
        $espresso_calendar['espresso_calendar_monthNamesShort'] = $_POST['espresso_calendar_monthNamesShort'];
        $espresso_calendar['espresso_calendar_dayNames'] = $_POST['espresso_calendar_dayNames'];
        $espresso_calendar['espresso_calendar_dayNamesShort'] = $_POST['espresso_calendar_dayNamesShort'];
        $espresso_calendar['calendar_pages'] = $_POST['calendar_pages'] == '' ? 0 : $_POST['calendar_pages'];
        update_option('espresso_calendar_settings', $espresso_calendar);
        add_action('admin_notices', 'espresso_calendar_updated');
    }
    if ($_REQUEST['reset_calendar'] == 'true') {
        delete_option("espresso_calendar_settings");
        espresso_calendar_install();
    }
    $espresso_calendar = get_option('espresso_calendar_settings');
    ?>
    <style type="text/css">
	#configure_calendar_form ul{
		width:80% !important;
	}
	</style>
<div class="wrap">
  <div id="icon-options-event" class="icon32"> </div>
  <h2>
    <?php 
    _e('Event Espresso - Calendar Settings', 'event_espresso');
    ?>
  </h2>
  <div id="poststuff" class="metabox-holder has-right-sidebar">
  <?php 
    event_espresso_display_right_column();
    ?>
  <div id="post-body">
<div id="post-body-content">
  <form class="espresso_form" method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
      <ul id="event_espresso-sortables">
        <li>
          <div class="metabox-holder">
			<div class="postbox">
            <h3>
              <?php 
    _e('Calendar Settings', 'event_espresso');
    ?>
            </h3>
          <div class="padding">
              <ul>

              <li>
              <strong><?php 
    _e('Directions:', 'event_espresso');
    ?>
</strong><br />
             <?php 
    _e(' Add [ESPRESSO_CALENDAR] to any page or post to display a calendar of Event Espresso events. Use [ESPRESSO_CALENDAR event_category_id="your_category_identifier"] to show events of a certain category (also creates a CSS using the category_identifier as the class name.) Use [ESPRESSO_CALENDAR show_expired="true"] to show expired events, can also be used in  conjunction with the category ID.', 'event_espresso');
    ?>
</li>
              <li><strong><?php 
    _e('Examples Shortcodes:', 'event_espresso');
    ?>
</strong><br />
            	[ESPRESSO_CALENDAR]<br />
				[ESPRESSO_CALENDAR show_expired="true"]<br />
				[ESPRESSO_CALENDAR event_category_id="your_category_identifier"]<br />
                [ESPRESSO_CALENDAR event_category_id="your_category_identifier" show_expired="true"]<br />
                [ESPRESSO_CALENDAR cal_view="month"] (Available parameters: month, basicWeek, basicDay, agendaWeek, agendaDay)
              </li>
              <li><strong><?php 
    _e('Styles/Colors:', 'event_espresso');
    ?>
</strong><br />
              <?php 
    _e('To edit the calendar styles, copy the CSS file located in the plugin folder to your "wp-content/uploads/espresso/" directory. Then edit as needed. Refer to <a href="http://arshaw.com/fullcalendar/docs/event_rendering/Colors/" target="_blank">this page</a> for an example of styling the calendar and colors.', 'event_espresso');
    ?>
              </li>

              <li><strong><?php 
    _e('Category Colors:', 'event_espresso');
    ?>
</strong><br />
              <?php 
    _e('Event Categories can have their own colors on the calendar. To use this feature, simply create a class in theme CSS file with the names of your event categories. For more inforamtion <a href="http://eventespresso.com/forums/?p=650" target="_blank">please visit the tutorial</a> for this topic.', 'event_espresso');
    ?>
              </li></ul>
              </div>
              </div>
              </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');
    ?>
                  </label><?php 
    _e('If you are using the "Create a Post" feature. Use this option to link to the posts that are created by Event Espresso.', 'event_espresso');
    ?>
<br />
                   <?php 
    echo select_input('espresso_page_post', array(array('id' => 'R', 'text' => __('Registration Page', 'event_espresso')), array('id' => 'P', 'text' => __('Post', 'event_espresso'))), $espresso_calendar['espresso_page_post']);
    ?>
                </li>

                <li>
                  <input class="button-primary" type="submit" name="save_calendar_settings" value="<?php 
    _e('Save Calendar Options', 'event_espresso');
    ?>
" id="save_calendar_settings2" />
                </li>
                </ul>
                </div></div></div>
                <div class="metabox-holder">
			<div class="postbox"> <h3><?php 
    _e('Advanced Settings', 'event_espresso');
    ?>
</h3>
            <div class="padding">
                <ul>
                <li>

<table width="100%" border="0" cellpadding="20" cellspacing="5">
  <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Header Style:', 'event_espresso');
    ?>
</strong><br /><?php 
    _e('Defines the buttons and title at the top of the calendar.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_header" id="espresso_calendar_header" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_header']);
    ?>
</textarea></td>
    <td align="left"  valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>left: 'prev,<br />today', <br />center: 'title', <br />right: 'month,agendaWeek,agendaDay,next'</p>
      <p>
        <?php 
    _e('More Ino:', 'event_espresso');
    ?>
        <br />
        <a href="http://arshaw.com/fullcalendar/docs/display/header/" target="_blank">http://arshaw.com/fullcalendar/docs/display/header/</a></p></td>
  </tr>
  <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Button Text:', 'event_espresso');
    ?>
</strong><br /><?php 
    _e('Text that will be displayed on buttons of the header.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_buttonText" id="espresso_calendar_buttonText" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_buttonText']);
    ?>
</textarea></td>
    <td align="left"  valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p>
      <p>prev:     '&amp;nbsp;&amp;#9668;&amp;nbsp;',  //<span class="red_text">(Eg. left triangle)</span><br />
next:     '&amp;nbsp;&amp;#9658;&amp;nbsp;',//<span class="red_text"> (Eg. right triangle)</span><br />
prevYear: '&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;', //<span class="red_text">(Eg. &lt;&lt; )</span><br />
nextYear: '&amp;nbsp;&amp;gt;&amp;gt;&amp;nbsp;', //<span class="red_text">(Eg. &gt;&gt; )</span><br />
today:    'today',<br />
month:    'month',<br />
week:     'week',<br />
day:      'day'</p>
      <p><?php 
    _e('More Ino:', 'event_espresso');
    ?>
<br /><a href="http://arshaw.com/fullcalendar/docs/text/buttonText/" target="_blank">http://arshaw.com/fullcalendar/docs/text/buttonText/</a></p></td>
  </tr>
  <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Title Format:', 'event_espresso');
    ?>
</strong><br />
<?php 
    _e('For date formatting options.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_titleFormat" id="espresso_calendar_titleFormat" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_titleFormat']);
    ?>
</textarea></td>
    <td align="left" valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>month: 'MMMM yyyy', //<span class="red_text">(Eg. September 2009)</span><br />week: "MMM d[ yyyy]{ '&#8212;'[ MMM] d yyyy}", //<span class="red_text">(Eg. Sep 7 - 13 2009)</span><br />day: 'dddd, MMM d, yyyy' //<span class="red_text">(Eg. Tuesday, Sep 8, 2009)</span></p>
      <p><?php 
    _e('For date formatting options, please refer to: ', 'event_espresso');
    ?>
 <br />
        <a href="http://arshaw.com/fullcalendar/docs/utilities/formatDate/" target="_blank">http://arshaw.com/fullcalendar/docs/utilities/formatDate/</a></p></td>
  </tr>
  <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Column Format:', 'event_espresso');
    ?>
</strong><br />
<?php 
    _e('For date formatting options.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_columnFormat" id="espresso_calendar_columnFormat" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_columnFormat']);
    ?>
</textarea></td>
    <td align="left" valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>month: 'ddd', //<span class="red_text">(Eg. Mon) </span><br />week: 'ddd M/d', //<span class="red_text">(Eg. Mon 9/7) </span><br />day: 'dddd M/d' //<span class="red_text">(Eg. Monday 9/7)</span></p>
      <p><?php 
    _e('More Ino:', 'event_espresso');
    ?>
<br />
<a href="http://arshaw.com/fullcalendar/docs/text/columnFormat/" target="_blank">http://arshaw.com/fullcalendar/docs/text/columnFormat/</a></p></td>
  </tr>
   <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Month Names:', 'event_espresso');
    ?>
</strong><br />
<?php 
    _e('Full names of months.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_monthNames" id="espresso_calendar_monthNames" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_monthNames']);
    ?>
</textarea></td>
    <td align="left" valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>'January', 'February', 'March', <br />'April', 'May', 'June', <br />'July', 'August', 'September', 'October', <br />'November', 'December'</p></td>
  </tr>
   <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Month Names Short:', 'event_espresso');
    ?>
</strong><br />
<?php 
    _e('Abbreviated names of months.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_monthNamesShort" id="espresso_calendar_monthNamesShort" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_monthNamesShort']);
    ?>
</textarea></td>
    <td align="left" valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'</p></td>
  </tr>
   <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Day Names:', 'event_espresso');
    ?>
</strong><br />
<?php 
    _e('Full names of days-of-week.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_dayNames" id="espresso_calendar_dayNames" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_dayNames']);
    ?>
</textarea></td>
    <td align="left" valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'</p></td>
  </tr>
   <tr>
    <td align="left" valign="top">
   <p> <strong><?php 
    _e('Day Names Short:', 'event_espresso');
    ?>
</strong><br />
<?php 
    _e('Abbreviated names of days-of-week.', 'event_espresso');
    ?>
</p><textarea name="espresso_calendar_dayNamesShort" id="espresso_calendar_dayNamesShort" cols="30" rows="5"><?php 
    echo stripslashes_deep($espresso_calendar['espresso_calendar_dayNamesShort']);
    ?>
</textarea></td>
    <td align="left" valign="top"><p><strong><?php 
    _e('Example:', 'event_espresso');
    ?>
</strong></p><p>'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'</p></td>
  </tr>
</table>
                </li>
                 <?php 
    //Changed 8-30-2011 by Seth
    /*?><li>
        <label for="espresso_calendar_width">
          <?php _e('Width:','event_espresso'); ?>
        </label>
         <input type="text" name="espresso_calendar_width" size="100" maxlength="100" value="<?php echo $espresso_calendar['espresso_calendar_width'];?>" />
      </li><?php */
    //End Seth
    ?>
                <li><input type="hidden" name="update_calendar" value="update" />
      <p>
        <input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Save Calendar Options', 'event_espresso');
    ?>
" id="save_calendar_settings_1" />
      </p>
      <p>Reset Calendar Settings? <input name="reset_calendar" type="checkbox" value="true" /> </p>

      </li>
              </ul>
              </div>
            </div>
          </div>
        </li>
        </ul>
 </form>
 </div>
        </div>
		</div>
        </div>

<?php 
}
Ejemplo n.º 15
0
<?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>";
Ejemplo n.º 16
0
function event_espresso_display_eway_settings()
{
    $eway_settings = get_option('event_espresso_eway_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="eway_id">
								<?php 
    _e('eWay ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_id" size="35" value="<?php 
    echo $eway_settings['eway_id'];
    ?>
">
							<br />
							<?php 
    _e('(Typically 87654321)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="eway_username">
								<?php 
    _e('eWay username', 'event_espresso');
    ?>
							</label>
							<input type="text" name="eway_username" size="35" value="<?php 
    echo $eway_settings['eway_username'];
    ?>
">
							<br />
							<?php 
    _e('(Typically TestAccount)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="region">
								<?php 
    _e('Choose Your Region', 'event_espresso');
    ?>
							</label>
							<select name="region">
								<option value="<?php 
    echo $eway_settings['region'];
    ?>
"><?php 
    echo $eway_settings['region'];
    ?>
</option>
								<option value="UK">
									<?php 
    _e('United Kingdom', 'event_espresso');
    ?>
								</option>
								<option value="AU">
									<?php 
    _e('Australia', 'event_espresso');
    ?>
								</option>
								<option value="NZ">
									<?php 
    _e('New Zealand', 'event_espresso');
    ?>
								</option>
							</select>
						</li>
						<li>
							<label for="currency_format">
								<?php 
    _e('The currency set for your region is', 'event_espresso');
    ?>
							</label>
							<span class="display-path" style="background-color: rgb(255, 251, 204); border:#999 solid 1px; padding:2px;"><?php 
    echo $eway_settings['currency_format'];
    ?>
</span>
							<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a> </li>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page)', 'event_espresso');
    ?>
							</label>
							<input type="text" name="image_url" size="35" value="<?php 
    echo $eway_settings['image_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=image_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
							<?php 
    _e('(used for your business/personal logo on the eWay page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top">
					<ul>
						<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 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $eway_settings['bypass_payment_page']);
    ?>
						</li>
						<li>
							<label for="force_ssl_return">
								<?php 
    _e('Force HTTPS on Return URL', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
    echo $eway_settings['force_ssl_return'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Turn on Debugging Using the', 'event_espresso');
    ?>
 <a href="http://www.eway.com.au/Developer/Testing/" title="eWay Sandbox Login" target="_blank"><?php 
    _e('eWay Sandbox', 'event_espresso');
    ?>
</a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=eway_sandbox_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $eway_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
						<li>
							<label for="button_url">
								<?php 
    _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 type="text" name="button_url" size="34" value="<?php 
    echo $eway_settings['button_url'] == '' ? '' : $eway_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;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>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							<?php 
    echo $eway_settings['button_url'] == '' ? '<img src="' . $button_url . '" />' : '<img src="' . $eway_settings['button_url'] . '" />';
    ?>
</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_eway" value="update_eway">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update eWay Settings', 'event_espresso');
    ?>
" id="save_eway_settings" />
		</p>
	</form>
	<div id="eway_sandbox_info" style="display:none">
		<h2><?php 
    _e('eWay Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the eWay Sandbox feature. The debugging feature will also output the form variables to the payment page, send an email to the admin that contains the all eWay variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The eWay Sandbox is a testing environment that is a duplicate of the live eWay site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live eWay environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="image_url_info" style="display:none">
		<h2>
			<?php 
    _e('eWay Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the 150x50-pixel image displayed as your logo in the upper left corner of the eWay checkout pages.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('Default - Your business name, if you have a Business account, or your email address, if you have Premier or Personal account.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('eWay Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('eWay uses 3-character ISO-4217 codes for specifying currencies in fields and variables. </p><p>The default currency code is British Pounds (GBP). The currency must match the region where you are using eway, so changing the region will automatically change the currency.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Ejemplo n.º 17
0
function event_espresso_display_2checkout_settings()
{
    $twocheckout_settings = get_option('event_espresso_2checkout_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="2checkout_id">
								<?php 
    _e('2checkout I.D.', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="2checkout_id" size="35" value="<?php 
    echo $twocheckout_settings['2checkout_id'];
    ?>
">
							<br />
							<?php 
    _e('(Typically 87654321)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="2checkout_username">
								<?php 
    _e('2checkout username', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="2checkout_username" size="35" value="<?php 
    echo $twocheckout_settings['2checkout_username'];
    ?>
">
							<br />
							<?php 
    _e('(Typically TestAccount)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="currency_format">
								<?php 
    _e('Select the currency for your country:', 'event_espresso');
    ?>
							</label>
							<br />
							<select name="currency_format">
								<option value="<?php 
    echo $twocheckout_settings['currency_format'];
    ?>
"><?php 
    echo $twocheckout_settings['currency_format'];
    ?>
								</option>
								<option value="ARS">
									<?php 
    _e('Argentina Peso', 'event_espresso');
    ?>
								</option>
								<option value="AUD">
									<?php 
    _e('Australian Dollars (A $)', 'event_espresso');
    ?>
								</option>
								<option value="BRL">
									<?php 
    _e('Brazilian Real', 'event_espresso');
    ?>
								</option>
								<option value="GBP">
									<?php 
    _e('British Pound', 'event_espresso');
    ?>
								</option>
								<option value="CAD">
									<?php 
    _e('Canadian Dollar', 'event_espresso');
    ?>
								</option>
								<option value="DKK">
									<?php 
    _e('Danish Krone', 'event_espresso');
    ?>
								</option>
								<option value="EUR">
									<?php 
    _e('Euros (&#8364;)', 'event_espresso');
    ?>
								</option>
								<option value="HKD">
									<?php 
    _e('Hong Kong Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="INR">
									<?php 
    _e('Indian Rupee (Rs.)', 'event_espresso');
    ?>
								</option>
								<option value="ILS">
									<?php 
    _e('Israeli New Shekel', 'event_espresso');
    ?>
								</option>
								<option value="JPY">
									<?php 
    _e('Yen (&yen;)', 'event_espresso');
    ?>
								</option>
								<option value="LTL">
									<?php 
    _e('Lithuanian Litas', 'event_espresso');
    ?>
								</option>
								<option value="MYR">
									<?php 
    _e('Malaysian Ringgit', 'event_espresso');
    ?>
								</option>
								<option value="MXN">
									<?php 
    _e('Mexican Peso', 'event_espresso');
    ?>
								</option>
								<option value="NZD">
									<?php 
    _e('New Zealand Dollar', 'event_espresso');
    ?>
								</option>
								<option value="NOK">
									<?php 
    _e('Norwegian Krone', 'event_espresso');
    ?>
								</option>
								<option value="PHP">
									<?php 
    _e('Philippine Peso', 'event_espresso');
    ?>
								</option>
								<option value="RON">
									<?php 
    _e('Romanian New Leu', 'event_espresso');
    ?>
								</option>
								<option value="RUB">
									<?php 
    _e('Russian Ruble', 'event_espresso');
    ?>
								</option>
								<option value="SGD">
									<?php 
    _e('Singapore Dollar', 'event_espresso');
    ?>
								</option>
								<option value="ZAR">
									<?php 
    _e('South African Rand', 'event_espresso');
    ?>
								</option>
								<option value="SEK">
									<?php 
    _e('Swedish Krona', 'event_espresso');
    ?>
								</option>
								<option value="CHF">
									<?php 
    _e('Swiss Franc', 'event_espresso');
    ?>
								</option>
								<option value="TRY">
									<?php 
    _e('Turkish Lira', 'event_espresso');
    ?>
								</option>
								<option value="USD">
									<?php 
    _e('U.S. Dollar', 'event_espresso');
    ?>
								</option>
								<option value="AED">
									<?php 
    _e('United Arab Emirates Dirham ', 'event_espresso');
    ?>
								</option>
							</select>
							<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a> </li>
						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL: ', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="button_url" size="34" value="<?php 
    echo $twocheckout_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <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> </li>
					</ul></td>
				<td valign="top"><ul>
						<label for="bypass_payment_page">
							<?php 
    _e('By-pass the payment confirmation page?', 'event_espresso');
    ?>
						</label>
						<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $twocheckout_settings['bypass_payment_page']);
    ?>
						&nbsp;<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></li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the debugging feature and the', 'event_espresso');
    ?>
 <a href="https://www.2checkout.com/va/signup/create_activation" target="_blank"><?php 
    _e('2checkout Sandbox', 'event_espresso');
    ?>
</a>?
							</label>
							<input id ="sandbox_checkbox_2co" name="use_sandbox" type="checkbox" value="1" <?php 
    echo $twocheckout_settings['use_sandbox'] == "1" ? 'checked="checked"' : '';
    ?>
 />
							&nbsp;<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=sandbox_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
						</li>
						<li>
							<label for="force_ssl_return">
								<?php 
    _e('Do you want to force the return url to be https? ', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
    echo $twocheckout_settings['force_ssl_return'] ? 'checked="checked"' : '';
    ?>
 /></li>
						<li>
							<?php 
    _e('Current Button Image:', 'event_espresso');
    ?>
							<br />
							<?php 
    echo '<img src="' . $twocheckout_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_2checkout" value="update_2checkout">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update 2checkout Settings', 'event_espresso');
    ?>
" id="save_2checkout_settings" />
		</p>
	</form>
	<div id="sandbox_info" style="display:none">
		<h2><?php 
    _e('2checkout Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the 2checkout Sandbox fetaure. The debugging feature will also output the form varibales to the payment page, send an email to the admin that contains the all 2checkout variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The 2checkout Sandbox is a testing environment that is a duplicate of the live 2checkout site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live 2checkout environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('2checkout Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('2checkout 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 2checkout (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Ejemplo n.º 18
0
function event_espresso_display_worldpay_settings()
{
    $worldpay_settings = get_option('event_espresso_worldpay_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="worldpay_id">
								<?php 
    _e('worldpay installation I.D.', 'event_espresso');
    ?>
							</label>
							<input class="regular-text" type="text" name="worldpay_id" size="35" value="<?php 
    echo $worldpay_settings['worldpay_id'];
    ?>
" />
							<p><?php 
    _e('(Typically payment@yourdomain.com)', 'event_espresso');
    ?>
</p>
						</li>

						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL: ', 'event_espresso');
    ?>
 <?php 
    echo apply_filters('espresso_help', 'button_image');
    ?>
							</label>
							<input class="regular-text" type="text" name="button_url" size="34" value="<?php 
    echo $worldpay_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <?php 
    echo '<img src="' . $worldpay_settings['button_url'] . '" />';
    ?>
</li>

						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page):', 'event_espresso');
    ?>
 <?php 
    echo apply_filters('espresso_help', 'worldpay_image_url_info');
    ?>
							</label>
							<input class="regular-text" type="text" name="image_url" size="35" value="<?php 
    echo $worldpay_settings['image_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=image_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a><br />
							<?php 
    _e('(used for your business/personal logo on the worldpay page)', 'event_espresso');
    ?>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="currency_format">
								<?php 
    _e('Select the currency for your country:', 'event_espresso');
    ?>
 <?php 
    echo apply_filters('espresso_help', 'worldpay_currency_info');
    ?>
							</label>
							<select name="currency_format" data-placeholder="Choose a currency..." class="chzn-select wide">
								<option value="<?php 
    echo $worldpay_settings['currency_format'];
    ?>
"><?php 
    echo $worldpay_settings['currency_format'];
    ?>
</option>
								<option value="USD">
									<?php 
    _e('U.S. Dollars ($)', 'event_espresso');
    ?>
								</option>
								<option value="AUD">
									<?php 
    _e('Australian Dollars (A $)', 'event_espresso');
    ?>
								</option>
								<option value="GBP">
									<?php 
    _e('Pounds Sterling (&pound;)', 'event_espresso');
    ?>
								</option>
								<option value="CAD">
									<?php 
    _e('Canadian Dollars (C $)', 'event_espresso');
    ?>
								</option>
								<option value="CZK">
									<?php 
    _e('Czech Koruna', 'event_espresso');
    ?>
								</option>
								<option value="DKK">
									<?php 
    _e('Danish Krone', 'event_espresso');
    ?>
								</option>
								<option value="EUR">
									<?php 
    _e('Euros (&#8364;)', 'event_espresso');
    ?>
								</option>
								<option value="CHF">
									<?php 
    _e('Swiss Franc', 'event_espresso');
    ?>
								</option>
								<option value="HKD">
									<?php 
    _e('Hong Kong Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="HUF">
									<?php 
    _e('Hungarian Forint', 'event_espresso');
    ?>
								</option>
								<option value="ILS">
									<?php 
    _e('Israeli Shekel', 'event_espresso');
    ?>
								</option>
								<option value="JPY">
									<?php 
    _e('Yen (&yen;)', 'event_espresso');
    ?>
								</option>
								<option value="MXN">
									<?php 
    _e('Mexican Peso', 'event_espresso');
    ?>
								</option>
								<option value="NZD">
									<?php 
    _e('New Zealand Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="NOK">
									<?php 
    _e('Norwegian Krone', 'event_espresso');
    ?>
								</option>
								<option value="PLN">
									<?php 
    _e('Polish Zloty', 'event_espresso');
    ?>
								</option>
								<option value="SGD">
									<?php 
    _e('Singapore Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="SEK">
									<?php 
    _e('Swedish Krona', 'event_espresso');
    ?>
								</option>
								<option value="BRL">
									<?php 
    _e('Brazilian Real (only for Brazilian users)', 'event_espresso');
    ?>
								</option>
								<option value="MYR">
									<?php 
    _e('Malaysian Ringgits (only for Malaysian users)', 'event_espresso');
    ?>
								</option>
								<option value="PHP">
									<?php 
    _e('Philippine Pesos', 'event_espresso');
    ?>
								</option>
								<option value="TWD">
									<?php 
    _e('Taiwan New Dollars', 'event_espresso');
    ?>
								</option>
								<option value="THB">
									<?php 
    _e('Thai Baht', 'event_espresso');
    ?>
								</option>
							</select>

						<li><label for="bypass_payment_page">
								<?php 
    _e('By-pass the payment confirmation page?', 'event_espresso');
    ?>
 <?php 
    echo apply_filters('espresso_help', 'worldpay_bypass_confirmation');
    ?>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $worldpay_settings['bypass_payment_page']);
    ?>
</li>

						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the debugging feature and the worldpay Sandbox?', 'event_espresso');
    ?>
 <?php 
    echo apply_filters('espresso_help', 'worldpay_sandbox_info');
    ?>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $worldpay_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />

						</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_worldpay" value="update_worldpay">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update worldpay Settings', 'event_espresso');
    ?>
" id="save_worldpay_settings" />
		</p>
		<?php 
    wp_nonce_field('espresso_form_check', 'add_worldpay_settings');
    ?>
	</form>

	<div id="worldpay_sandbox_info" style="display:none">
		<h2><?php 
    _e('worldpay Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the worldpay Sandbox fetaure. The debugging feature will also output the form varibales to the payment page, send an email to the admin that contains the all worldpay variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The worldpay Sandbox is a testing environment that is a duplicate of the live worldpay site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live worldpay environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>

	<div id="worldpay_image_url_info" style="display:none">
		<h2>
			<?php 
    _e('worldpay Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the 150x50-pixel image displayed as your logo in the upper left corner of the worldpay checkout pages.', 'event_espresso');
    ?>
		</p>
		<p>
			<?php 
    _e('Default - Your business name, if you have a Business account, or your email address, if you have Premier or Personal account.', 'event_espresso');
    ?>
		</p>
	</div>

	<div id="worldpay_currency_info" style="display:none">
		<h2><?php 
    _e('worldpay Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('worldpay 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 worldpay (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Ejemplo n.º 19
0
        /**
         * Displays the widget settings controls on the widget panel.
         * Make use of the get_field_id() and get_field_name() function
         * when creating your form elements. This handles the confusing stuff.
         * */
        function form($instance)
        {
            /* Set up some default widget settings. */
            $defaults = array('title' => __('Upcoming Events', 'event_espresso'), 'category_name' => '', 'show_expired' => 'false', 'show_secondary' => 'false', 'show_deleted' => 'false', 'show_recurrence' => 'false');
            $instance = wp_parse_args((array) $instance, $defaults);
            $values = array(array('id' => 'false', 'text' => __('No', 'event_espresso')), array('id' => 'true', 'text' => __('Yes', 'event_espresso')));
            //select_input('allow_multiple', $values, $allow_multiple);
            ?>

            <!-- Widget Title: Text Input -->

            <p>
                <label for="<?php 
            echo $this->get_field_id('title');
            ?>
">
            <?php 
            _e('Title:', 'event_espresso');
            ?>
                </label>
                <input id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" value="<?php 
            echo $instance['title'];
            ?>
" size="20" type="text" />
            </p>
            <p> <label for="<?php 
            echo $this->get_field_id('category_name');
            ?>
">
            <?php 
            _e('Event Category:', 'event_espresso');
            ?>
                </label><br />
                    <?php 
            echo espresso_db_dropdown('id', 'category_name', EVENTS_CATEGORY_TABLE, 'id', $instance['category_name'], $strMethod = "desc", $this->get_field_name('category_name'));
            ?>
</p>
            <p>
                <label for="<?php 
            echo $this->get_field_id('limit');
            ?>
">
                <?php 
            _e('Limit:', 'event_espresso');
            ?>
                </label>
                <input id="<?php 
            echo $this->get_field_id('limit');
            ?>
" name="<?php 
            echo $this->get_field_name('limit');
            ?>
" value="<?php 
            echo $instance['limit'];
            ?>
" size="3" type="text" />
            </p>
            <p><strong><?php 
            _e('Optional Settings:', 'event_espresso');
            ?>
</strong></p>
            <p><?php 
            _e('Show Expired Events?', 'event_espresso');
            ?>
 <?php 
            echo select_input($this->get_field_name('show_expired'), $values, $instance['show_expired']);
            ?>
</p>
            <p><?php 
            _e('Show Waitlist Events?', 'event_espresso');
            ?>
 <?php 
            echo select_input($this->get_field_name('show_secondary'), $values, $instance['show_secondary']);
            ?>
</p>
            <p><?php 
            _e('Show Deleted Events?', 'event_espresso');
            ?>
 <?php 
            echo select_input($this->get_field_name('show_deleted'), $values, $instance['show_deleted']);
            ?>
</p>
            <p><?php 
            _e('Show Recurring Events?', 'event_espresso');
            ?>
 <?php 
            echo select_input($this->get_field_name('show_recurrence'), $values, $instance['show_recurrence']);
            ?>
</p>

            <?php 
        }
function event_espresso_member_only($member_only = 'N')
{
    global $espresso_premium;
    if ($espresso_premium != true) {
        return;
    }
    ?>
	<p><?php 
    _e('Member only event? ', 'event_espresso');
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('member_only', $values, $member_only);
    ?>
</p>
 <?php 
}
Ejemplo n.º 21
0
function event_espresso_display_invoice_payment_settings()
{
    $invoice_payment_settings = get_option('event_espresso_invoice_payment_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="invoice_title">
								<?php 
    _e('Title', 'event_espresso');
    ?>
							</label>
							<input type="text" name="invoice_title" size="30" value="<?php 
    echo stripslashes_deep($invoice_payment_settings['invoice_title']);
    ?>
" />
						</li>
						<li>
							<label for="invoice_instructions">
								<?php 
    _e('Invoice Instructions', 'event_espresso');
    ?>
							</label>
							<textarea name="invoice_instructions" cols="30" rows="5"><?php 
    echo stripslashes_deep($invoice_payment_settings['invoice_instructions']);
    ?>
</textarea>
						</li>
						<li>
							<label for="payable_to">
								<?php 
    _e('Payable To', 'event_espresso');
    ?>
							</label>
							<input type="text" name="payable_to" size="30" value="<?php 
    echo stripslashes_deep($invoice_payment_settings['payable_to']);
    ?>
" />
						</li>
						<li>
							<label for="payment_address">
								<?php 
    _e('Address to Send Payment', 'event_espresso');
    ?>
							</label>
							<textarea name="payment_address" cols="30" rows="5"><?php 
    echo stripslashes_deep(str_replace("<br />", ",&nbsp", $invoice_payment_settings['payment_address']));
    ?>
</textarea>
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<h4><?php 
    _e('PDF Settings', 'event_espresso');
    ?>
</h4>
						</li>
						<li>
							<label for="pdf_title">
								<?php 
    _e('PDF Title (top right of the invoice):', 'event_espresso');
    ?>
							</label>
							<input type="text" name="pdf_title" size="30" value="<?php 
    echo stripslashes_deep($invoice_payment_settings['pdf_title']);
    ?>
" />
						</li>
						<li>
							<label for="image_url">
								<?php 
    _e('Logo URL', 'event_espresso');
    ?>
							</label>
							<input type="text" name="image_url" size="45" value="<?php 
    echo $invoice_payment_settings['image_url'];
    ?>
" /><br />
							<?php 
    _e('(logo for the top left of the invoice)', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="pdf_instructions">
								<?php 
    _e('Invoice Instructions in PDF', 'event_espresso');
    ?>
							</label>
							<textarea name="pdf_instructions" cols="30" rows="5"><?php 
    echo stripslashes_deep($invoice_payment_settings['pdf_instructions']);
    ?>
</textarea>
						</li>
						<li>
							<label for="show"><?php 
    _e('Show as an option on the payment page?', 'event_espresso');
    ?>
</label>
							<?php 
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    echo select_input('show', $values, $invoice_payment_settings['show']);
    ?>
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<input type="hidden" name="update_invoice_payment_settings" value="update_invoice_payment_settings">
		<p>
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Invoice Payment Settings', 'event_espresso');
    ?>
" id="save_invoice_payment_settings" />
		</p>
	</form>
	<?php 
}
Ejemplo n.º 22
0
function event_espresso_display_firstdata_connect_2_settings()
{
    $firstdata_connect_2_settings = get_option('event_espresso_firstdata_connect_2_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>
								<?php 
    _e('First Data Storename', 'event_espresso');
    ?>
							</label>
							<input type="text" name="storename" size="35" value="<?php 
    echo $firstdata_connect_2_settings['storename'];
    ?>
">
						</li>

						<li>
							<label>
								<?php 
    _e('First Data Shared Secret', 'event_espresso');
    ?>
							</label>
							<input type="text" name="sharedSecret" size="35" value="<?php 
    echo $firstdata_connect_2_settings['sharedSecret'];
    ?>
">
						</li>

						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the debugging feature and the', 'event_espresso');
    _e('FirstData Connect 2 Sandbox? ', 'event_espresso');
    echo apply_filters('espresso_help', 'sandbox_info_firstdata_connect_2');
    ?>
							</label>
							<input name="sandbox" type="checkbox" value="1" <?php 
    echo $firstdata_connect_2_settings['sandbox'] ? 'checked="checked"' : '';
    ?>
 />
						</li>
					</ul>
				</td>
				<td valign="top">
					<ul>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('By-pass the payment confirmation page? ', 'event_espresso');
    echo apply_filters('espresso_help', 'bypass_confirmation');
    ?>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $firstdata_connect_2_settings['bypass_payment_page']);
    ?>
						</li>

						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL: ', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="button_url" size="34" value="<?php 
    echo $firstdata_connect_2_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <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>
						</li>

						<li>
							<label for="timezone">
								<?php 
    _e('Choose a timezone for the transaction? ', 'event_espresso');
    echo apply_filters('espresso_help', 'timezone');
    ?>
							</label>
							<?php 
    $values = array(array('id' => 'GMT', 'text' => __('GMT', 'event_espresso')), array('id' => 'EST', 'text' => __('EST', 'event_espresso')), array('id' => 'CST', 'text' => __('CST', 'event_espresso')), array('id' => 'MST', 'text' => __('MST', 'event_espresso')), array('id' => 'PST', 'text' => __('PST', 'event_espresso')));
    echo select_input('timezone', $values, $firstdata_connect_2_settings['timezone']);
    ?>
						</li>
					</ul>
				</td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_firstdata_connect_2" value="update_firstdata_connect_2">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update First Data Connect 2 Settings', 'event_espresso');
    ?>
" id="save_first_data_connect_2_settings" />
		</p>
	</form>
	<div id="sandbox_info_firstdata_connect_2" style="display:none">
		<h2><?php 
    _e('First Data Sandbox', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('In addition to using the First Data Sandbox fetaure. The debugging feature will also output the form varibales to the payment page, send an email to the admin that contains the all First Data variables.', 'event_espresso');
    ?>
</p>
		<hr />
		<p><?php 
    _e('The First Data Sandbox is a testing environment that is a duplicate of the live First Data site, except that no real money changes hands. The Sandbox allows you to test your entire integration before submitting transactions to the live environment. Create and manage test accounts, and view emails and API credentials for those test accounts.', 'event_espresso');
    ?>
</p>
	</div>
	<?php 
}
Ejemplo n.º 23
0
function event_espresso_display_exact_settings()
{
    $exact_settings = get_option('event_espresso_exact_settings');
    $org_options = get_option('events_organization_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="exact_login_id">
								<?php 
    _e('E-xact Login ID', 'event_espresso');
    ?>
							</label>
							<input type="text" name="exact_login_id" size="35" value="<?php 
    echo $exact_settings['exact_login_id'];
    ?>
">
						</li>
						<li>
							<label for="exact_transaction_key">
								<?php 
    _e('E-xact Transaction Key', 'event_espresso');
    ?>
							</label>
							<input type="text" name="exact_transaction_key" size="35" value="<?php 
    echo $exact_settings['exact_transaction_key'];
    ?>
">
						</li>
						<li>
							<label for="button_url">
								<?php 
    _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 type="text" name="button_url" size="35" value="<?php 
    echo $exact_settings['button_url'] == '' ? $button_url : $exact_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;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>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=exact_image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="image_url" size="35" value="<?php 
    echo $exact_settings['image_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=image_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>
							<br />
							<?php 
    _e('(used for your business/personal logo on the E-xact payment page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top"><ul>
						<li>
							<label><?php 
    _e('Relay Response URL', 'event_espresso');
    ?>
</label>
							<span class="display-path" style="background-color: rgb(255, 251, 204); border:#999 solid 1px; padding:2px;"><?php 
    if ($exact_settings['force_ssl_return']) {
        echo str_replace("http://", "https://", home_url() . '/?type=exact&page_id=' . $org_options['return_url']);
    } else {
        echo home_url() . '/?type=exact&page_id=' . $org_options['return_url'];
    }
    ?>
</span> &nbsp;<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=relay_response"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a> </li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Account Uses E-xact.com\'s Development Server', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=exact_sandbox"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $exact_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							</li>
						<li>
							<label for="test_transactions">
								<?php 
    _e('Submit a Test Transaction', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=exact_sandbox"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="test_transactions" type="checkbox" value="1" <?php 
    echo $exact_settings['test_transactions'] ? '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 
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $exact_settings['bypass_payment_page']);
    ?>
							 </li>
						<?php 
    if (espresso_check_ssl() == TRUE || isset($exact_settings['force_ssl_return']) && $exact_settings['force_ssl_return'] == 1) {
        ?>
						<li>
							<label for="force_ssl_return">
								<?php 
        _e('Force HTTPS on Return URL', 'event_espresso');
        ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
        echo EVENT_ESPRESSO_PLUGINFULLURL;
        ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
        echo $exact_settings['force_ssl_return'] ? 'checked="checked"' : '';
        ?>
 /></li>
							<?php 
    }
    ?>
						<li>
							<label><?php 
    _e('Current Button Image', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $exact_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_exact" value="update_exact">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update E-xact Settings', 'event_espresso');
    ?>
" id="save_exact_settings" />
		</p>
	</form>
	<div id="relay_response" style="display:none">
		<h2><?php 
    _e('Relay Response', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('This shows the specific the URL to which the gateway should return the relay response for a transaction. This the page should be set in your E-xact account. Login to E-xact, goto Account > Response/Receipt URLs > Add URL and enter the following URL.', 'event_espresso');
    ?>
</p>
		<p><strong><?php 
    _e('Relay Response URL:', 'event_espresso');
    ?>
</strong> <?php 
    echo home_url() . '/?page_id=' . $org_options['notify_url'];
    ?>
<br />
			<span style="color:red;"><?php 
    _e('Note:', 'event_espresso');
    ?>
</span> <?php 
    _e('This URL can be changed in the "Organization Settings" page.', 'event_espresso');
    ?>
</p>
		<p><?php 
    _e('For complete information on configuring relay response, please refer to', 'event_espresso');
    ?>
 <a href="https://account.authorize.net/help/Merchant_Interface_RoboHelp_Project.htm#Miscellaneous/Reference.htm%3E%3Epan=2"><?php 
    _e('Reference &amp; User Guides', 'event_espresso');
    ?>
</a>.</p>
	</div>
	<div id="exact_image_url_info" style="display:none">
		<h2>
			<?php 
    _e('E-xact Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the image displayed as your logo in the header of the Authorize.net checkout pages.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="exact_sandbox" style="display:none">
		<h2><?php 
    _e('E-xact Test Mode', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Test Mode allows you to submit test transactions to the payment gateway. Transactions that are submitted while Test Mode is ON are NOT actually processed. The result of a transaction depends on the card number submitted, and the invoice amount. If you want a transaction to be approved, use one of the following card numbers.', 'event_espresso');
    ?>
</p><p>370000000000002 (<?php 
    _e('American Express', 'event_espresso');
    ?>
)<br />6011000000000012 (<?php 
    _e('Discover', 'event_espresso');
    ?>
)<br />5424000000000015 (<?php 
    _e('Master Card', 'event_espresso');
    ?>
)<br />4007000000027 (<?php 
    _e('Visa', 'event_espresso');
    ?>
)</p>
	</div>
	<?php 
}
Ejemplo n.º 24
0
function event_espresso_form_builder_new()
{
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    ?>
<div class="metabox-holder">
	<div class="postbox">
		<div title="Click to toggle" class="handlediv"><br /></div>
	  	<h3 class="hndle"><?php 
    _e('Add New Questions', 'event_espresso');
    ?>
</h3>
   		<div class="inside">
		
			<p class="intro">
				<?php 
    _e('By default, all event registrants will be asked for their first name, last name, and email address.', 'event_espresso');
    ?>
			</p>
			
			<form name="newquestion" method="post" action="" id="new-question-form">
				<table class="espresso_form form-table">
					<tbody>
					
						<tr>
							<th>
								<label for="question"><?php 
    _e('Question', 'event_espresso');
    ?>
<em title="<?php 
    _e('This field is required', 'event_espresso');
    ?>
"> *</em></label>
							</th>
							<td>
								<input class="question-name wide-text"  name="question" id="question" value="" type="text" />
							</td>
						</tr>
						
						<tr>
							<th id="question-type-select">
								<label for="question_type"><?php 
    _e('Type', 'event_espresso');
    ?>
</label>
							</th>
							<td>
		  					<?php 
    $q_values = array(array('id' => 'TEXT', 'text' => __('Text', 'event_espresso')), array('id' => 'TEXTAREA', 'text' => __('Text Area', 'event_espresso')), array('id' => 'SINGLE', 'text' => __('Radio Button', 'event_espresso')), array('id' => 'DROPDOWN', 'text' => __('Drop Down', 'event_espresso')), array('id' => 'MULTIPLE', 'text' => __('Checkbox', 'event_espresso')));
    echo select_input('question_type', $q_values, '', 'id="question_type"');
    ?>
							</td>
						</tr>
						
						<tr id="add-question-values">
							<th>
								<label for="question_values"><?php 
    _e('Answer Options', 'event_espresso');
    ?>
<em title="<?php 
    _e('This field is required', 'event_espresso');
    ?>
"> *</em></label>
							</th>
							<td>
								<input name="question_values" id="question-values" class="wide-text" value="" type="text" /><br />
								<span class="description"><?php 
    _e('A comma seperated list of values. Eg. black, blue, red', 'event_espresso');
    ?>
</span>
							</td>
						</tr>
						
						<?php 
    do_action('action_hook_espresso_generate_price_mod_form_inputs', $values);
    ?>
						
						<tr>
							<th>
								<label class="inline" for="required"><?php 
    _e('Required:', 'event_espresso');
    ?>
</label>
							</th>
							<td>
								<?php 
    echo select_input('required', $values, 'N');
    ?>
&nbsp;&nbsp; 
								<span class="description"><?php 
    _e('Mark this question as required.', 'event_espresso');
    ?>
</span>
							</td>
						</tr>
						
						<tr>
							<th>
								<label for="required_text"><?php 
    _e('Required Text', 'event_espresso');
    ?>
</label>
							</th>
							<td>
			 					<input name="required_text" id="required_text" class="wide-text" type="text" />
								<br /><span class="description"><?php 
    _e('Text to display if not completed.', 'event_espresso');
    ?>
</span>
							</td>
						</tr>
						
						<tr>
							<th>
								<label class="inline" for="admin_only"><?php 
    _e(' Admin View Only', 'event_espresso');
    ?>
</label>
							</th>
							<td>
								<?php 
    echo select_input('admin_only', $values, 'N');
    ?>
							</td>
						</tr>
						
						<tr>
							<th>
								<label for="sequence"><?php 
    _e('Order/Sequence', 'event_espresso');
    ?>
</label>
							</th>
							<td>
			  				<input name="sequence" id="sequence" class="tiny-text" value="<?php 
    if (isset($sequence)) {
        echo $sequence;
    }
    ?>
" type="text" />
							</td>
						</tr>
						
						<tr>
							<th>
							</th>
							<td>
								<input name="action" value="insert" type="hidden" />
								<?php 
    wp_nonce_field('espresso_form_check', 'add_new_question');
    ?>
<br/>
								<input class="button-primary" name="Submit" value="Add Question" type="submit" />
							</td>
						</tr>
						
					</tbody>
				</table><br/>
			</form>
		</div>
	</div>
</div><br/><br/>
<?php 
}
function edit_event($event_id = 0)
{
    global $wpdb, $org_options, $espresso_premium;
    ob_start();
    $SQL = "SELECT e.*, ev.id as venue_id\n\t    FROM " . EVENTS_DETAIL_TABLE . " e\n\t    LEFT JOIN " . EVENTS_VENUE_REL_TABLE . " vr ON e.id = vr.event_id\n\t    LEFT JOIN " . EVENTS_VENUE_TABLE . " ev ON vr.venue_id = ev.id\n\t    WHERE e.id = %d";
    $events = $wpdb->get_results($wpdb->prepare($SQL, $event_id));
    if (!is_array($events) || count($events) <= 0) {
        event_espresso_edit_list();
        #echo "<div class='updated fade below-h2'><p>";
        #_e("Event is not available any more!","eventespresso");
        #echo "</p></div>";
        return 1;
    }
    foreach ($events as $event) {
        $event_id = $event->id;
        $event_name = htmlentities(stripslashes($event->event_name), ENT_QUOTES, 'UTF-8');
        $event_desc = htmlentities(stripslashes($event->event_desc), ENT_QUOTES, 'UTF-8');
        $display_desc = $event->display_desc;
        $display_reg_form = $event->display_reg_form;
        $member_only = $event->member_only;
        $phone = stripslashes_deep($event->phone);
        $externalURL = stripslashes_deep($event->externalURL);
        //Early discounts
        $early_disc = stripslashes_deep($event->early_disc);
        $early_disc_date = stripslashes_deep($event->early_disc_date);
        $early_disc_percentage = stripslashes_deep($event->early_disc_percentage);
        $post_id = $event->post_id;
        $post_type = $event->post_type;
        $event_identifier = stripslashes_deep($event->event_identifier);
        $registration_start = $event->registration_start;
        $registration_end = $event->registration_end;
        $registration_startT = $event->registration_startT;
        $resitration_endT = $event->registration_endT;
        $timezone_string = $event->timezone_string;
        $start_date = $event->start_date;
        $end_date = $event->end_date;
        $tax_percentage = $event->tax_percentage;
        $tax_mode = $event->tax_mode;
        $start_time = isset($event->start_time) ? $event->start_time : '';
        $end_time = isset($event->end_time) ? $event->end_time : '';
        $reg_limit = $event->reg_limit;
        $additional_limit = $event->additional_limit;
        $allow_overflow = $event->allow_overflow;
        $overflow_event_id = $event->overflow_event_id;
        $allow_multiple = $event->allow_multiple;
        $event_cost = unserialize(isset($event->event_cost) ? $event->event_cost : '');
        $is_active = $event->is_active;
        $status = array();
        $status = event_espresso_get_is_active($event_id);
        $event_status = $event->event_status;
        $conf_mail = stripslashes_deep($event->conf_mail);
        $send_mail = stripslashes_deep($event->send_mail);
        $use_coupon_code = $event->use_coupon_code;
        $alt_email = $event->alt_email;
        $address = stripslashes_deep($event->address);
        $address2 = stripslashes_deep($event->address2);
        $city = stripslashes_deep($event->city);
        $state = stripslashes_deep($event->state);
        $zip = stripslashes_deep($event->zip);
        $country = stripslashes_deep($event->country);
        $venue_id = stripslashes_deep($event->venue_id);
        $venue_title = stripslashes_deep($event->venue_title);
        $venue_url = stripslashes_deep($event->venue_url);
        $venue_phone = stripslashes_deep($event->venue_phone);
        $venue_image = stripslashes_deep($event->venue_image);
        $email_id = $event->email_id;
        $ticket_id = $event->ticket_id;
        $wp_user = $event->wp_user;
        $date_submitted = $event->submitted != '0000-00-00 00:00:00' ? empty($event->submitted) ? '' : event_date_display($event->submitted, get_option('date_format')) : 'N/A';
        $google_map_link = espresso_google_map_link(array('address' => $address, 'city' => $city, 'state' => $state, 'zip' => $zip, 'country' => $country));
        //Virtual location
        $virtual_url = stripslashes_deep($event->virtual_url);
        $virtual_phone = stripslashes_deep($event->virtual_phone);
        $question_groups = unserialize($event->question_groups);
        global $event_meta;
        $event_meta = unserialize($event->event_meta);
        $recurrence_id = $event->recurrence_id;
        $visible_on = $event->visible_on;
        $require_pre_approval = $event->require_pre_approval;
        if (function_exists('event_espresso_edit_event_groupon')) {
            $use_groupon_code = $event->use_groupon_code;
        }
    }
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    //If user is an event manager, then show only their events
    if (function_exists('espresso_is_my_event') && espresso_is_my_event($event_id) != true) {
        echo '<h2>' . __('Sorry, you do not have permission to edit this event.', 'event_espresso') . '</h2>';
        return;
    }
    ?>
	<!--Update event display-->
	<div id="submitdiv" class="postbox">
		<div class="handlediv" title="Click to toggle"><br />
		</div>
		<h3 class='hndle'> <span>
	<?php 
    _e('Quick Overview', 'event_espresso');
    ?>
			</span> </h3>
		<div class="inside">
			<div class="submitbox" id="submitpost">
				<div id="minor-publishing">
					<div id="minor-publishing-actions" class="clearfix">
						<div id="preview-action"> <a class="preview button" href="<?php 
    echo espresso_reg_url($event_id);
    ?>
" target="_blank" id="event-preview" tabindex="5">
	<?php 
    _e('View Event', 'event_espresso');
    ?>
							</a>
							<input type="hidden" name="event-preview" id="event-preview" value="" />
						</div>
						<div id="copy-action"> <a class="preview button" href="admin.php?page=events&amp;action=copy_event&event_id=<?php 
    echo $event_id;
    ?>
" id="post-copy" tabindex="4" onclick="return confirm('<?php 
    _e('Are you sure you want to copy ' . $event_name . '?', 'event_espresso');
    ?>
')">
	<?php 
    _e('Duplicate Event', 'event_espresso');
    ?>
							</a>
							<input  type="hidden" name="event-copy" id="event-copy" value="" />
						</div>
					</div>
					<!-- /minor-publishing-actions -->

					<div id="misc-publishing-actions">
						<div class="misc-pub-section curtime" id="visibility"> <span id="timestamp">
	<?php 
    _e('Start Date', 'event_espresso');
    ?>
								<b> <?php 
    echo event_date_display($start_date);
    ?>
 <?php 
    echo event_date_display($start_time, get_option('time_format'));
    ?>
</b> </span> </div>
						<div class="misc-pub-section">
							<label for="post_status">
	<?php 
    _e('Current Status:', 'event_espresso');
    ?>
							</label>
							<span id="post-status-display"> <?php 
    echo $status['display'];
    ?>
</span> </div>
						<div class="misc-pub-section" id="visibility"> <img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
images/icons/group.png" width="16" height="16" alt="<?php 
    _e('View Attendees', 'event_espresso');
    ?>
" /> <?php 
    echo !empty($number_attendees) ? __('Attendees', 'event_espresso') : '<a href="admin.php?page=events&amp;event_admin_reports=list_attendee_payments&amp;event_id=' . $event_id . '">' . __('Attendees', 'event_espresso') . '</a>';
    ?>
: <?php 
    echo get_number_of_attendees_reg_limit($event_id, 'num_attendees_slash_reg_limit');
    ?>
 </div>
						<div class="misc-pub-section <?php 
    echo function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true ? '' : 'misc-pub-section-last';
    ?>
" id="visibility2"> <a href="admin.php?page=events&amp;event_admin_reports=event_newsletter&amp;event_id=<?php 
    echo $event_id;
    ?>
" title="<?php 
    _e('Email Event Attendees', 'event_espresso');
    ?>
"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
images/icons/email_go.png" width="16" height="16" alt="<?php 
    _e('Newsletter', 'event_espresso');
    ?>
" /></a> <a href="admin.php?page=events&amp;event_admin_reports=event_newsletter&amp;event_id=<?php 
    echo $event_id;
    ?>
" title="<?php 
    _e('Email Event Attendees', 'event_espresso');
    ?>
">
						<?php 
    _e('Email Event Attendees', 'event_espresso');
    ?>
							</a></div>
						<?php 
    if (function_exists('espresso_is_admin') && espresso_is_admin() == true && $espresso_premium == true) {
        $user_name = espresso_user_meta($wp_user, 'user_firstname') != '' ? espresso_user_meta($wp_user, 'user_firstname') . ' ' . espresso_user_meta($wp_user, 'user_lastname') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)' : espresso_user_meta($wp_user, 'display_name') . ' (<a href="user-edit.php?user_id=' . $wp_user . '">' . espresso_user_meta($wp_user, 'user_nicename') . '</a>)';
        $user_company = espresso_user_meta($wp_user, 'company') != '' ? espresso_user_meta($wp_user, 'company') : '';
        $user_organization = espresso_user_meta($wp_user, 'organization') != '' ? espresso_user_meta($wp_user, 'organization') : '';
        $user_co_org = $user_company != '' ? $user_company : $user_organization;
        echo '<div class="misc-pub-section misc-pub-section-last" id="visibility3">';
        echo '<ul>';
        echo '<li><strong>' . __('Submitted By:', 'event_espresso') . '</strong> ' . $user_name . '</li>';
        echo '<li><strong>' . __('Email:', 'event_espresso') . '</strong> ' . espresso_user_meta($wp_user, 'user_email') . '</li>';
        echo $user_co_org != '' ? '<li><strong>' . __('Organization:', 'event_espresso') . '</strong> ' . espresso_user_meta($wp_user, 'company') . '</li>' : '';
        echo '<li><strong>' . __('Date Submitted:', 'event_espresso') . '</strong> ' . $date_submitted . '</li>';
        echo '</ul>';
        echo '</div>';
    }
    ?>
					</div>
					<!-- /misc-publishing-actions -->
				</div>
				<!-- /minor-publishing -->

				<div id="major-publishing-actions" class="clearfix">
							<?php 
    if ($recurrence_id > 0) {
        ?>
						<div id="delete-action"> &nbsp; <a class="submitdelete deletion" href="admin.php?page=events&amp;action=delete_recurrence_series&recurrence_id=<?php 
        echo $recurrence_id;
        ?>
" onclick="return confirm('<?php 
        _e('Are you sure you want to delete ' . $event_name . '?', 'event_espresso');
        ?>
')">
						<?php 
        _e('Delete all events in this series', 'event_espresso');
        ?>
							</a> </div>
							<?php 
    } else {
        ?>
						<div id="delete-action"> <a class="submitdelete deletion" href="admin.php?page=events&amp;action=delete&event_id=<?php 
        echo $event_id;
        ?>
" onclick="return confirm('<?php 
        _e('Are you sure you want to delete ' . $event_name . '?', 'event_espresso');
        ?>
')">
						<?php 
        _e('Delete Event', 'event_espresso');
        ?>
							</a> </div>
	<?php 
    }
    ?>
					<div id="publishing-action">
						<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Event', 'event_espresso');
    ?>
" id="save_event_setting" />
					</div>
					<!-- /publishing-action -->
				</div>
				<!-- /major-publishing-actions -->
			</div>
			<!-- /submitpost -->
		</div>
		<!-- /inside -->
	</div>
	<!-- /submitdiv -->

	<?php 
    if ($espresso_premium == true) {
        do_action('action_hook_espresso_edit_event_right_column_top', $event_id);
    }
    $advanced_options = '';
    if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/event-management/advanced_settings.php')) {
        require_once EVENT_ESPRESSO_PLUGINFULLPATH . "includes/admin-files/event-management/advanced_settings.php";
    } else {
        //Display Lite version options
        $status = array(array('id' => 'A', 'text' => __('Active', 'event_espresso')), array('id' => 'D', 'text' => __('Deleted', 'event_espresso')));
        $advanced_options = '<p><strong>' . __('Advanced Options:', 'event_espresso') . '</strong></p>' . '<p><label>' . __('Is this an active event? ', 'event_espresso') . '</label>' . __(select_input('is_active', $values, $is_active)) . '</p>' . '<p><label>' . __('Display  description? ', 'event_espresso') . '</label>' . select_input('display_desc', $values, $display_desc) . '</p>' . '<p><label>' . __('Display  registration form? ', 'event_espresso') . '</label>' . select_input('display_reg_form', $values, $display_reg_form) . '</p>';
    }
    //Display Lite version options - End
    espresso_postbox('event-status', 'Event Options', '<p><label for"reg-limit">' . __('Attendee Limit', 'event_espresso') . ': </label><input name="reg_limit" id="reg-limit" size="10" type="text" value="' . $reg_limit . '" /><br />' . '<span>(' . __('leave blank for unlimited', 'event_espresso') . ')</span></p>' . '<p><label>' . __('Allow group registrations?', 'event_espresso') . '</label> ' . select_input('allow_multiple', $values, $allow_multiple) . '</p>' . '<p><label for="addit-limit">' . __('Max Group Registrants', 'event_espresso') . ':</label> <input type="text" id="addit-limit" name="additional_limit" value="' . $additional_limit . '" size="4" />' . '</p>' . $advanced_options);
    if (function_exists('espresso_ticket_dd') && $espresso_premium == true) {
        ?>
		<div id="event-category" class="postbox">
			<div class="handlediv" title="Click to toggle"><br>
			</div>
			<h3 class="hndle"> <span>
				<?php 
        _e('Custom Tickets', 'event_espresso');
        ?>
				</span> </h3>
			<div class="inside"> <?php 
        echo espresso_ticket_dd($ticket_id);
        ?>
 </div>
		</div>
	<?php 
    }
    if ($espresso_premium == true) {
        ?>
		<div id="featured-image-options" class="postbox">
				<div class="handlediv" title="Click to toggle"><br />
				</div>
				<h3 class="hndle"> <span>
					<?php 
        _e('Featured Image', 'event_espresso');
        ?>
					</span> </h3>
		<div class="inside">
			<div id="featured-image">
				<?php 
        if (!empty($event_meta['event_thumbnail_url'])) {
            $event_thumb = $event_meta['event_thumbnail_url'];
        } else {
            $event_thumb = '';
        }
        ?>
				<label for="upload_image">
					<?php 
        _e('Add Featured Image', 'event_espresso');
        ?>
				</label>
				<input id="upload_image" type="hidden" size="36" name="upload_image" value="<?php 
        echo $event_thumb;
        ?>
" />
				<input id="upload_image_button" type="button" value="<?php 
        _e('Upload Image', 'event_espresso');
        ?>
" />
				<?php 
        if ($event_thumb) {
            ?>
					<p class="event-featured-thumb"><img style="width: 100%;"  src="<?php 
            echo $event_thumb;
            ?>
" alt="" /></p>
					<a id='remove-image' href='#' title='<?php 
            _e('Remove Image', 'event_espresso');
            ?>
' onclick='return false;'><?php 
            _e('Remove Image', 'event_espresso');
            ?>
</a>
				<?php 
        }
        ?>
			</div>
			
		</div>
		</div>
	<?php 
    }
    /*
     * Added for seating chart addon
     */
    if (defined('ESPRESSO_SEATING_CHART')) {
        $seating_chart_id = 0;
        $seating_chart_event = $wpdb->get_row("select * from " . EVENTS_SEATING_CHART_EVENT_TABLE . " where event_id = {$event_id}");
        if ($seating_chart_event !== NULL) {
            $seating_chart_id = $seating_chart_event->seating_chart_id;
        }
        ?>
		<div style="display: block;" id="seating_chart-options" class="postbox">
			<div class="handlediv" title="Click to toggle"><br />
			</div>
			<h3 class="hndle"><span>
		<?php 
        _e('Seating chart', 'event_espresso');
        ?>
				</span></h3>
			<div class="inside">
				<p>
					<select name="seating_chart_id" id="seating_chart_id" style="float:none;">
						<option value="0" <?php 
        if ($seating_chart_id == 0) {
            echo 'selected="selected"';
        }
        ?>
 ><?php 
        _e('None', 'event_espresso');
        ?>
</option>
						<?php 
        $seating_charts = $wpdb->get_results("select * from " . EVENTS_SEATING_CHART_TABLE . " order by name");
        foreach ($seating_charts as $seating_chart) {
            ?>
							<option value="<?php 
            echo $seating_chart->id;
            ?>
" <?php 
            if ($seating_chart_id == $seating_chart->id) {
                echo 'selected="selected"';
            }
            ?>
 ><?php 
            echo $seating_chart->name;
            ?>
</option>
			<?php 
        }
        ?>
					</select>
					<?php 
        do_action('espresso_seating_chart_select', $event_id);
        ?>
					<?php 
        do_action('ee_seating_chart_js');
        ?>
					<?php 
        do_action('ee_seating_chart_css');
        ?>
					<?php 
        do_action('ee_seating_chart_flush_expired_seats');
        ?>
				</p>
			</div>
		</div>
		<?php 
    }
    /*
     * End
     */
    ###### Modification by wp-developers to introduce attendee pre-approval requirement ##########
    if (isset($org_options['use_attendee_pre_approval']) && $org_options['use_attendee_pre_approval'] == 'Y' && $espresso_premium == true) {
        ?>
		<div id="attendee-pre-approval-options" class="postbox">
			<div class="handlediv" title="Click to toggle"><br />
			</div>
			<h3 class="hndle"> <span>
					<?php 
        _e('Attendee pre-approval required?', 'event_espresso');
        ?>
				</span> </h3>
			<div class="inside">
				<p class="pre-approve">
		<?php 
        $pre_approval_values = array(array('id' => '1', 'text' => __('Yes', 'event_espresso')), array('id' => '0', 'text' => __('No', 'event_espresso')));
        echo select_input("require_pre_approval", $pre_approval_values, $require_pre_approval);
        ?>
				</p>
			</div>
		</div>
		<?php 
    }
    ########## END #################################
    if (defined('EVENT_ESPRESSO_MEMBERS_DIR') && $espresso_premium == true) {
        ?>
		<div  id="member-options" class="postbox">
			<div class="handlediv" title="Click to toggle"><br>
			</div>
			<h3 class="hndle"> <span>
		<?php 
        _e('Member Options', 'event_espresso');
        ?>
				</span> </h3>
			<div class="inside">
				<p><?php 
        echo event_espresso_member_only($member_only);
        ?>
</p>
			</div>
		</div>
		<!-- /member-options -->
		<?php 
    }
    if (defined('EVENTS_MAILCHIMP_ATTENDEE_REL_TABLE') && $espresso_premium == true) {
        MailChimpView::event_list_selection();
    }
    ?>
	
	<div  id="event-categories" class="postbox">
		<div class="handlediv" title="Click to toggle"><br>
		</div>
		<h3 class="hndle"> <span>
	<?php 
    _e('Event Category', 'event_espresso');
    ?>
			</span> </h3>
		<div class="inside"> <?php 
    echo event_espresso_get_categories($event_id);
    ?>
 </div>
	</div>
	<!-- /event-category -->

	<?php 
    if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/event-management/promotions_box.php')) {
        require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/event-management/promotions_box.php';
    }
    ?>
	<!-- /event-promotions -->

	<?php 
    echo espresso_event_question_groups($question_groups, $event_meta['add_attendee_question_groups'], $event);
    ?>
	<!-- /event-questions -->

	<?php 
    do_action('action_hook_espresso_staff_cb', $event_id, $recurrence_id);
    if (defined('EVENTS_GROUPON_CODES_TABLE') && $espresso_premium == true) {
        ?>
		<div id="groupon-options" class="postbox">
			<div class="handlediv" title="Click to toggle"><br>
			</div>
			<h3 class="hndle"> <span>
		<?php 
        _e('Groupon Options', 'event_espresso');
        ?>
				</span> </h3>
			<div class="inside">
				<p><?php 
        echo event_espresso_edit_event_groupon($use_groupon_code);
        ?>
</p>
			</div>
		</div>
		<!-- /groupon-options -->
			<?php 
    }
    if ($espresso_premium == true) {
        do_action('action_hook_espresso_edit_event_right_column_bottom', $event_id);
    }
    $sidebar_content = ob_get_clean();
    ob_start();
    ?>
	<div id="titlediv"> <strong>
	<?php 
    _e('Event Title', 'event_espresso');
    ?>
		</strong>
		<div id="titlewrap">
			<label class="screen-reader-text" for="title">
	<?php 
    _e('Event Title', 'event_espresso');
    ?>
			</label>
			<input type="text" name="event" size="30" tabindex="1" value="<?php 
    echo $event_name;
    ?>
" id="title" autocomplete="off" />
		</div>
		<!-- /titlewrap -->
		<div class="inside">
			<div id="edit-slug-box"> <strong>
	<?php 
    _e('Unique Event Identifier:', 'event_espresso');
    ?>
				</strong>
				<input disabled="disabled" type="text" size="30" tabindex="2" name="event_identifier" id="event_identifier" value ="<?php 
    echo $event_identifier;
    ?>
" />
	<?php 
    echo '<a href="#" class="button" onclick="prompt(&#39;Event Shortcode:&#39;, \'[SINGLEEVENT single_event_id=&#34;\' + jQuery(\'#event_identifier\').val() + \'&#34;]\'); return false;">' . __('Shortcode') . '</a>';
    ?>
 <?php 
    echo '<a href="#" class="button" onclick="prompt(&#39;Short URL:&#39;, \'' . espresso_reg_url($event_id) . '\'); return false;">' . __('Short URL') . '</a>';
    ?>
 <?php 
    echo '<a href="#" class="button" onclick="prompt(&#39;Full URL:&#39;, \'' . home_url() . '/?page_id=' . $org_options['event_page_id'] . '&amp;regevent_action=register&amp;event_id=' . $event_id . '\'); return false;">' . __('Full URL') . '</a>';
    ?>
 </div>
			<!-- /edit-slug-box -->
		</div>
		<!-- /.inside -->
	</div>
	<!-- /titlediv -->

	<div id="descriptiondivrich" class="postarea"> <strong>
		<?php 
    _e('Event Description', 'event_espresso');
    ?>
		</strong>
		<?php 
    if (function_exists('wp_editor')) {
        $args = array("textarea_rows" => 5, "textarea_name" => "event_desc", "editor_class" => "my_editor_custom");
        wp_editor(espresso_admin_format_content($event_desc), "event_desc", $args);
    } else {
        /*
         This is the editor used by WordPress. It is very very hard to find documentation for this thing, so I pasted everything I could find below.
         param: string $content Textarea content.
         param: string $id Optional, default is 'content'. HTML ID attribute value.
         param: string $prev_id Optional, default is 'title'. HTML ID name for switching back and forth between visual editors.
         param: bool $media_buttons Optional, default is true. Whether to display media buttons.
         param: int $tab_index Optional, default is 2. Tabindex for textarea element.
        */
        //the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2)
        //the_editor(espresso_admin_format_content($event_desc), $id = 'event_desc'/* , $prev_id = 'title', $media_buttons = true, $tab_index = 3 */);
        the_editor(espresso_admin_format_content($event_desc), $id = 'event_desc');
    }
    ?>
		<table id="post-status-info" cellspacing="0">
			<tbody>
				<tr>
					<td id="wp-word-count"></td>
					<td class="autosave-info"><span id="autosave">&nbsp;</span></td>
				</tr>
			</tbody>
		</table>
	</div>
	<!-- /postdivrich -->
	<?php 
    $main_post_content = ob_get_clean();
    ob_start();
    ?>
	<div id="normal-sortables" class="meta-box-sortables ui-sortable">
		<div style="display: block;" id="event-date-time" class="postbox">
			<div class="handlediv" title="Click to toggle"><br>
			</div>
			<h3 class="hndle"> <span>
	<?php 
    _e('Event Date/Times', 'event_espresso');
    ?>
				</span> </h3>
			<div class="inside">
				<table width="100%" border="0" cellpadding="5">
					<tr valign="top">
						<td class="a"><fieldset id="add-reg-dates">
								<legend>
	<?php 
    _e('Registration Dates', 'event_espresso');
    ?>
								</legend>
								<p>
									<label for="registration_start"> <?php 
    echo __('Registration Start:', 'event_espresso');
    ?>
</label>
									<input type="text" class="datepicker" size="15" id="registration_start" name="registration_start"  value="<?php 
    echo $registration_start;
    ?>
" />
								</p>
								<p>
									<label for="registration_end"><?php 
    echo __('Registration End:', 'event_espresso');
    ?>
</label>
									<input type="text" class="datepicker" size="15" id="registration_end" name="registration_end"  value="<?php 
    echo $registration_end;
    ?>
" />
								</p>
							</fieldset>
							<fieldset>
								<legend>
	<?php 
    _e('Event Dates', 'event_espresso');
    ?>
								</legend>
								<p>
									<label for="start_date"><?php 
    echo __('Event Start Date', 'event_espresso');
    ?>
</label>
									<input type="text" class="datepicker" size="15" id="start_date" name="start_date" value="<?php 
    echo $start_date;
    ?>
" />
								</p>
								<p>
									<label for="end_date"><?php 
    echo __('Event End Date', 'event_espresso');
    ?>
</label>
									<input type="text" class="datepicker" size="15" id="end_date" name="end_date" value="<?php 
    echo $end_date;
    ?>
" />
								</p>
							</fieldset>
										<?php 
    if (isset($org_options['use_event_timezones']) && $org_options['use_event_timezones'] == 'Y' && $espresso_premium == true) {
        ?>
								<fieldset id="event-timezone">
									<p>
										<label>
								<?php 
        _e('Event Timezone', 'event_espresso');
        ?>
											:</label>
		<?php 
        echo eventespresso_ddtimezone($event_id);
        ?>
</p>
								</fieldset>
									<?php 
    }
    ?>
</td>
								<?php 
    // ADD TIME REGISTRATION
    ?>
						<td class="b"><fieldset id="add-register-times">
								<legend>
	<?php 
    _e('Registration Times', 'event_espresso');
    ?>
								</legend>
									<?php 
    echo event_espresso_timereg_editor($event_id);
    ?>
							</fieldset>
							<fieldset id="add-event-times">
								<legend>
							<?php 
    _e('Event Times', 'event_espresso');
    ?>
								</legend>
									<?php 
    echo event_espresso_time_editor($event_id);
    ?>
							</fieldset>
									<?php 
    if ((!isset($org_options['use_event_timezones']) || $org_options['use_event_timezones'] != 'Y') && $espresso_premium == true) {
        ?>
								<p><span class="run-in">
								<?php 
        _e('Current Time', 'event_espresso');
        ?>
										:</span> <span class="current-date"> <?php 
        echo date(get_option('date_format')) . ' ' . date(get_option('time_format'));
        ?>
</span> <a class="change-date-time" href="options-general.php" target="_blank">
		<?php 
        _e('Change timezone and date format settings?', 'event_espresso');
        ?>
									</a></p>
		<?php 
    }
    ?>
</td>
					</tr>
				</table>
			</div>
		</div>
		<?php 
    /**
     * Load the recurring events form if the add-on has been installed.	*
     */
    if (defined('EVENT_ESPRESSO_RECURRENCE_TABLE') && $espresso_premium == true) {
        require_once EVENT_ESPRESSO_RECURRENCE_FULL_PATH . "functions/re_view_functions.php";
        //For now, only the recurring events will show the form
        if ($recurrence_id > 0) {
            event_espresso_re_form($recurrence_id);
        }
    }
    ?>
		<div id="event-pricing" class="postbox">
					<?php 
    defined('EVENT_ESPRESSO_MEMBERS_DIR') ? $members_active = 'class="members-active"' : ($members_active = '');
    ?>
			<div class="handlediv" title="Click to toggle"><br>
			</div>
			<h3 class="hndle"> <span>
	<?php 
    _e('Event Pricing', 'event_espresso');
    ?>
				</span> </h3>
			<div class="inside">
				<table <?php 
    echo $members_active;
    ?>
width="100%" border="0" cellpadding="5">
					<tr valign="top">
						<td id="standard-pricing" class="a"><?php 
    event_espresso_multi_price_update($event_id);
    //Standard pricing
    ?>
</td>
						<?php 
    //If the members addon is installed, define member only event settings
    if (defined('EVENT_ESPRESSO_MEMBERS_DIR') && $espresso_premium == true) {
        ?>
							<td id="member-pricing" class="b"><?php 
        echo event_espresso_member_only_pricing($event_id);
        //Show the the member only pricing options.
        ?>
</td>
	<?php 
    }
    ?>
					</tr>
				</table>
			</div>
		</div>
		<h2>
	<?php 
    _e('Advanced Options', 'event_espresso');
    ?>
		</h2>
		<?php 
    if ($espresso_premium == true) {
        do_action('action_hook_espresso_edit_event_left_column_advanced_options_top', $event_id);
    }
    ?>
		<div id="event-location" class="postbox">
			<div class="handlediv" title="Click to toggle"><br />
			</div>
			<h3 class="hndle"> <span>
	<?php 
    _e('Additional Event/Venue Information', 'event_espresso');
    ?>
				</span> </h3>
			<div class="inside">
				<table width="100%" border="0" cellpadding="5">
					<tr valign="top">

	<?php 
    if (function_exists('espresso_venue_dd') && $org_options['use_venue_manager'] == 'Y' && $espresso_premium == true) {
        $ven_type = 'class="use-ven-manager"';
        ?>
							<td <?php 
        echo $ven_type;
        ?>
><fieldset id="venue-manager">
									<legend><?php 
        echo __('Venue Information', 'event_espresso');
        ?>
</legend>
									<?php 
        if (!espresso_venue_dd()) {
            ?>
										<p class="info"><b>
										<?php 
            _e('You have not created any venues yet.', 'event_espresso');
            ?>
											</b></p>
										<p><a href="admin.php?page=event_venues"><?php 
            echo __('Add venues to the Venue Manager', 'event_espresso');
            ?>
</a></p>
							<?php 
        } else {
            ?>
								<?php 
            echo espresso_venue_dd($venue_id);
            ?>
							<?php 
        }
        ?>
								</fieldset></td>
		<?php 
    } else {
        $ven_type = 'class="manual-venue"';
        ?>
							<td <?php 
        echo $ven_type;
        ?>
><fieldset>
									<legend>
											<?php 
        _e('Physical Location', 'event_espresso');
        ?>
									</legend>
									<p>
										<label for="phys-addr">
		<?php 
        _e('Address:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="phys-addr" tabindex="100"  type="text"  value="<?php 
        echo $address;
        ?>
" name="address" />
									</p>
									<p>
										<label for="phys-addr-2">
		<?php 
        _e('Address 2:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="phys-addr-2" tabindex="101"  type="text"  value="<?php 
        echo $address2;
        ?>
" name="address2" />
									</p>
									<p>
										<label for="phys-city">
		<?php 
        _e('City:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="phys-city" tabindex="102"  type="text"  value="<?php 
        echo $city;
        ?>
" name="city" />
									</p>
									<p>
										<label for="phys-state">
		<?php 
        _e('State:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="phys-state" tabindex="103"  type="text"  value="<?php 
        echo $state;
        ?>
" name="state" />
									</p>
									<p>
										<label for="zip-postal">
		<?php 
        _e('Zip/Postal Code:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="zip-postal"  tabindex="104"  type="text"  value="<?php 
        echo $zip;
        ?>
" name="zip" />
									</p>
									<p>
										<label for="phys-country">
										<?php 
        _e('Country:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="phys-country" tabindex="105"  type="text"  value="<?php 
        echo $country;
        ?>
" name="country" />
									</p>
									<p>
		<?php 
        _e('Google Map Link (for email):', 'event_espresso');
        ?>
										<br />
		<?php 
        echo $google_map_link;
        ?>
 </p>
								</fieldset></td>
							<td <?php 
        echo $ven_type;
        ?>
>

								<fieldset>

									<legend>
											<?php 
        _e('Venue Information', 'event_espresso');
        ?>
									</legend>
									<p>
										<label for="ven-title">
		<?php 
        _e('Title:', 'event_espresso');
        ?>
										</label>
										<input size="20"id="ven-title" tabindex="106"  type="text"  value="<?php 
        echo $venue_title;
        ?>
" name="venue_title" />
									</p>
									<p>
										<label for="ven-website">
		<?php 
        _e('Website:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="ven-website" tabindex="107"  type="text"  value="<?php 
        echo $venue_url;
        ?>
" name="venue_url" />
									</p>
									<p>
										<label for="ven-phone">
		<?php 
        _e('Phone:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="ven-phone" tabindex="108"  type="text"  value="<?php 
        echo $venue_phone;
        ?>
" name="venue_phone" />
									</p>
									<p>
										<label for="ven-image">
									<?php 
        _e('Image:', 'event_espresso');
        ?>
										</label>
										<input size="20" id="ven-image" tabindex="110"  type="text"  value="<?php 
        echo $venue_image;
        ?>
" name="venue_image" />
									</p>
									<?php 
    }
    ?>
						</td>

						<td <?php 
    echo $ven_type;
    ?>
><fieldset id="virt-location">
								<legend>
										<?php 
    _e('Virtual Location', 'event_espresso');
    ?>
								</legend>
								<p>
									<label for="virt-phone">
	<?php 
    _e('Phone:', 'event_espresso');
    ?>
									</label>
									<input size="20" id="virt-phone" type="text" tabindex="111" value="<?php 
    echo $phone;
    ?>
" name="phone" />
								</p>
								<p>
									<label for="url-event">
	<?php 
    _e('URL of Event:', 'event_espresso');
    ?>
									</label>
									<textarea id="url-event" cols="30" rows="4" tabindex="112"  name="virtual_url"><?php 
    echo $virtual_url;
    ?>
</textarea>
								</p>
								<p>
									<label for="call-in-num">
	<?php 
    _e('Call in Number:', 'event_espresso');
    ?>
									</label>
									<input id="call-in-num" size="20" tabindex="113"  type="text"  value="<?php 
    echo $virtual_phone;
    ?>
" name="virtual_phone" />
								</p>
							</fieldset></td>
					</tr>

				</table>
			</div>
		</div>
		<!-- /event-location-->
					<?php 
    if ($espresso_premium == true) {
        ?>
			<div id="event-meta" class="postbox">
				<div class="handlediv" title="Click to toggle"><br>
				</div>
				<h3 class="hndle"> <span>
		<?php 
        _e('Event Meta', 'event_espresso');
        ?>
					</span> </h3>
				<div class="inside">
		<?php 
        event_espresso_meta_edit($event_meta);
        ?>
				</div>
			</div>
	<?php 
    }
    ?>
		<!-- /event-meta-->
		<div id="confirmation-email" class="postbox">
			<div class="handlediv" title="Click to toggle"><br />
			</div>
			<h3 class="hndle"> <span>
	<?php 
    _e('Email Confirmation:', 'event_espresso');
    ?>
				</span> </h3>
			<div class="inside">
				<div id="emaildescriptiondivrich" class="postarea">
					<div class="email-conf-opts">
						<p><?php 
    echo __('Send custom confirmation emails for this event?', 'event_espresso') . ' ' . select_input('send_mail', $values, $send_mail);
    ?>
 <?php 
    echo '<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_info"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a>';
    ?>
</p>
								<?php 
    if ($espresso_premium == true) {
        ?>
							<p>
		<?php 
        _e('Use a ', 'event_espresso');
        ?>
								<a href="admin.php?page=event_emails" target="_blank">
							<?php 
        _e('pre-existing email', 'event_espresso');
        ?>
								</a>? <?php 
        echo espresso_db_dropdown('id', 'email_name', EVENTS_EMAIL_TABLE, 'email_name', $email_id, 'desc') . ' <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=email_manager_info"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a>';
        ?>
 </p>
							<br />
							<em>OR</em>
	<?php 
    }
    ?>
						<p>
						<?php 
    _e('Create a custom email:', 'event_espresso');
    ?>
  <?php 
    echo '<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=event_custom_emails"><img src="' . EVENT_ESPRESSO_PLUGINFULLURL . '/images/question-frame.png" width="16" height="16" /></a>';
    ?>
						</p>
					</div>

					<div class="postbox">
						<?php 
    //echo '<p>version_compare ='.(version_compare($wp_version, $wp_min_version) >= 0).'</p>';
    if (function_exists('wp_editor')) {
        $args = array("textarea_rows" => 5, "textarea_name" => "conf_mail", "editor_class" => "my_editor_custom");
        wp_editor(espresso_admin_format_content($conf_mail), "conf_mail", $args);
    } else {
        echo '<textarea name="conf_mail" class="theEditor" id="conf_mail">' . espresso_admin_format_content($conf_mail) . '</textarea>';
        espresso_tiny_mce();
    }
    ?>
											<?php 
    /* ?>  <textarea name="conf_mail" class="theEditor" id="conf_mail"><?php echo espresso_admin_format_content($conf_mail); ?></textarea><?php */
    ?>
						<table id="email-confirmation-form" cellspacing="0">
							<tr>
								<td class="aer-word-count"></td>
								<td class="autosave-info"><span><a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_info">
	<?php 
    _e('View Custom Email Tags', 'event_espresso');
    ?>
										</a> | <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_example">
	<?php 
    _e('Email Example', 'event_espresso');
    ?>
										</a></span></td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</div>
		<!-- /confirmation-email-->
	<?php 
    if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/event-management/edit_event_post.php')) {
        require_once EVENT_ESPRESSO_PLUGINFULLPATH . "includes/admin-files/event-management/edit_event_post.php";
    }
    ?>
	</div>
	<!-- /normal-sortables-->
	<?php 
    $center_metabox_content = ob_get_clean();
    espresso_choose_layout($main_post_content, $sidebar_content, $center_metabox_content);
    include_once 'create_events_help.php';
    ?>
	<?php 
    wp_nonce_field('espresso_verify_update_event_nonce', 'nonce_verify_update_event');
    //Security check using nonce
    ?>
	<input type="hidden" name="edit_action" value="update">
	<input type="hidden" name="date_submitted" value="<?php 
    echo $date_submitted;
    ?>
">
	<input type="hidden" name="recurrence_id" value="<?php 
    echo $recurrence_id;
    ?>
">
	<input type="hidden" name="action" value="edit">
	<input type="hidden" name="event_id" value="<?php 
    echo $event_id;
    ?>
">
	<script type="text/javascript" charset="utf-8">
		//<![CDATA[
		jQuery(document).ready(function() {

			postboxes.add_postbox_toggles('events');

			jQuery(".datepicker" ).datepicker({
				changeMonth: true,
				changeYear: true,
				dateFormat: "yy-mm-dd",
				showButtonPanel: true
			});
	
			//Image upload		
			var header_clicked = false;
			jQuery('#upload_image_button').click(function() {
				formfield = jQuery('#upload_image').attr('name');
				tb_show('', 'media-upload.php?type=image&amp;TB_iframe=1');
				jQuery('p.event-featured-thumb').addClass('old');
				header_clicked = true;
				return false;
			});		
					
			window.original_send_to_editor = window.send_to_editor;
		
			window.send_to_editor = function(html) {
				if(header_clicked) {
					imgurl = jQuery('img',html).attr('src');
					jQuery('#' + formfield).val(imgurl);
					jQuery('#featured-image').append("<p id='image-display'><img class='show-selected-image' src='"+imgurl+"' alt='' /></p>");
					header_clicked = false;
					tb_remove();
			
				} else {
					window.original_send_to_editor(html);
				}
			}
		
			// process the remove link in the metabox
			jQuery('#remove-image').click(function(){
				var answer = confirm("<?php 
    _e("Do you really want to delete this image? Please remember to update your event to complete the removal.", 'event_espresso');
    ?>
");
				if (answer){
					jQuery("#upload_image").val('');
					jQuery("p.event-featured-thumb").remove();
					jQuery("p#image-display").remove();
					jQuery('#remove-image').remove();
					jQuery("#show_thumb_in_lists, #show_on_calendar, #show_thumb_in_regpage").val(false);
				}
				return false;
			});
	
	
		});
		//]]>
	</script>
	<?php 
}
Ejemplo n.º 26
0
function event_espresso_display_mwarrior_settings()
{
    $mwarrior_settings = get_option('event_espresso_mwarrior_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="mwarrior_id">
								<?php 
    _e('MW Merchant UUID', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="mwarrior_id" size="35" value="<?php 
    echo $mwarrior_settings['mwarrior_id'];
    ?>
" />
						</li>
						<li>
							<label for="mwarrior_apikey">
								<?php 
    _e('MW API Key', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="mwarrior_apikey" size="35" value="<?php 
    echo $mwarrior_settings['mwarrior_apikey'];
    ?>
" />
						</li>
						<li>
							<label for="mwarrior_passphrase">
								<?php 
    _e('MW API Passphrase', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="mwarrior_passphrase" size="35" value="<?php 
    echo $mwarrior_settings['mwarrior_passphrase'];
    ?>
" />
						</li>
						<li>
							<label for="currency_format">
								<?php 
    _e('Select the currency for your country:', 'event_espresso');
    ?>
							</label>
							<br />
							<select name="currency_format">
								<option value="AUD" <?php 
    echo $mwarrior_settings['currency_format'] == "AUD" ? "selected" : "";
    ?>
>
									<?php 
    _e('Australian Dollars (A $)', 'event_espresso');
    ?>
								</option>
								<option value="USD" <?php 
    echo $mwarrior_settings['currency_format'] == "USD" ? "selected" : "";
    ?>
>
									<?php 
    _e('U.S. Dollars ($)', 'event_espresso');
    ?>
								</option>
								<option value="GBP" <?php 
    echo $mwarrior_settings['currency_format'] == "GBP" ? "selected" : "";
    ?>
>
									<?php 
    _e('Pounds Sterling (&pound;)', 'event_espresso');
    ?>
								</option>
								<option value="CAD" <?php 
    echo $mwarrior_settings['currency_format'] == "CAD" ? "selected" : "";
    ?>
>
									<?php 
    _e('Canadian Dollars (C $)', 'event_espresso');
    ?>
								</option>
								<option value="EUR" <?php 
    echo $mwarrior_settings['currency_format'] == "EUR" ? "selected" : "";
    ?>
>
									<?php 
    _e('Euros (&#8364;)', 'event_espresso');
    ?>
								</option>
								<option value="JPY" <?php 
    echo $mwarrior_settings['currency_format'] == "JPY" ? "selected" : "";
    ?>
>
									<?php 
    _e('Yen (&yen;)', 'event_espresso');
    ?>
								</option>
								<option value="NZD" <?php 
    echo $mwarrior_settings['currency_format'] == "NZD" ? "selected" : "";
    ?>
>
									<?php 
    _e('New Zealand Dollar ($)', 'event_espresso');
    ?>
								</option>
								<option value="SGD" <?php 
    echo $mwarrior_settings['currency_format'] == "SGD" ? "selected" : "";
    ?>
>
									<?php 
    _e('Singapore Dollar ($)', 'event_espresso');
    ?>
								</option>
							</select>
							<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=currency_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a> </li>
						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL: ', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="button_url" size="34" value="<?php 
    echo $mwarrior_settings['button_url'] == '' ? $button_url : $mwarrior_settings['button_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=button_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <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> </li>
						<li>
							<label for="image_url">
								<?php 
    _e('Image URL (logo for payment page):', 'event_espresso');
    ?>
							</label>
							<br />
							<input type="text" name="image_url" size="35" value="<?php 
    echo $mwarrior_settings['image_url'];
    ?>
" />
							<a href="media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true&amp;width=640&amp;height=580&amp;rel=image_url" id="add_image" class="thickbox" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a> <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=image_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
							<?php 
    _e('(used for your business/personal logo on the Merchant Warrior page)', 'event_espresso');
    ?>
						</li>
					</ul></td>
				<td valign="top"><ul>
						<li>
							<label for="bypass_payment_page">
								<?php 
    _e('By-pass the payment confirmation page?', 'event_espresso');
    ?>
							</label>
							<?php 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $mwarrior_settings['bypass_payment_page']);
    ?>
							&nbsp;<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></li>
						<li>
							<label for="use_sandbox">
								<?php 
    _e('Use the Test Mode for Merchant Warrior', 'event_espresso');
    ?>
							</label>
							<input name="use_sandbox" type="checkbox" value="1" <?php 
    echo $mwarrior_settings['use_sandbox'] ? 'checked="checked"' : '';
    ?>
 />
							&nbsp;<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=sandbox_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
						</li>
						<li>
							<?php 
    _e('Current Button Image:', 'event_espresso');
    ?>
							<br />
							<?php 
    echo '<img src="' . $mwarrior_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		<p>
			<input type="hidden" name="update_mwarrior" value="update_mwarrior">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update Merchant Warrior Settings', 'event_espresso');
    ?>
" id="save_mwarrior_settings" />
		</p>
	</form>
	<div id="sandbox_info" style="display:none">
		<h2><?php 
    _e('Merchant Warrior Test Mode', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Test Mode allows you to submit test transactions to the payment gateway. This allows you to test your entire integration before submitting transactions to the live Merchant Warrior environment. ', 'event_espresso');
    ?>
</p>
	</div>
	<div id="image_url_info" style="display:none">
		<h2>
			<?php 
    _e('Merchant Warrior Image URL (logo for payment page)', 'event_espresso');
    ?>
		</h2>
		<p>
			<?php 
    _e('The URL of the image displayed as your logo in the header of the Merchant Warrior checkout pages.', 'event_espresso');
    ?>
		</p>
	</div>
	<div id="currency_info" style="display:none">
		<h2><?php 
    _e('Merchant Warrior Currency', 'event_espresso');
    ?>
</h2>
		<p><?php 
    _e('Merchant Warrior uses 3-character ISO-4217 codes for specifying currencies in fields and variables. </p><p>The default currency code is Australian Dollars (AUD). If you want to accept payments in other currencies, select the currency you wish to use. The dropdown lists all currencies that Merchant Warrior (currently) supports.', 'event_espresso');
    ?>
 </p>
	</div>
	<?php 
}
Ejemplo n.º 27
0
function get_admin_tab($input, $head = true)
{
    switch ($input['type']) {
        case "upload":
            upload_input($input, $head);
            break;
        case "uploadbg":
            uploadbg_input($input, $head);
            break;
        case "text":
            text_input($input, $head);
            break;
        case "ptext":
            ptext_input($input, $head);
            break;
        case "color":
            color_input($input, $head);
            break;
        case "tags":
            tags_input($input, $head);
            break;
        case "textarea":
            textarea_input($input, $head);
            break;
        case "number":
            number_input($input, $head);
            break;
        case "checkbox":
            checkbox_input($input, $head);
            break;
        case "radio":
            radio_input($input, $head);
            break;
        case "radio_bgtype":
            radio_bgtype_input($input, $head);
            break;
        case "select":
            select_input($input, $head);
            break;
        case "slider_num":
            slider_num_input($input, $head);
            break;
        case "background_bd":
            background_bd_input($input, $head);
            break;
        case "typography":
            typography_input($input, $head);
            break;
    }
}
Ejemplo n.º 28
0
function event_espresso_display_anz_settings()
{
    $anz_settings = get_option('event_espresso_anz_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="anz_id">
								<?php 
    _e('Merchant ID', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=anz_creds"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="anz_id" size="35" value="<?php 
    echo $anz_settings['anz_id'];
    ?>
">
							<br />
							<?php 
    _e('Eg, 1234567', 'event_espresso');
    ?>
						</li>
						<li>
							<label for="anz_access_code">
								<?php 
    _e('Access Code', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=anz_creds"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="anz_access_code" size="35" value="<?php 
    echo $anz_settings['anz_access_code'];
    ?>
">
							<br />
							<?php 
    _e('Eg, 1234567', 'event_espresso');
    ?>
						</li>	
						<li>
							<label for="anz_secure_secret">
								<?php 
    _e('Secure Secret', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=anz_creds"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input type="text" name="anz_secure_secret" size="35" value="<?php 
    echo $anz_settings['anz_secure_secret'];
    ?>
">
							<br />
							<?php 
    _e('Eg, 1234567', 'event_espresso');
    ?>
						</li>	
					</ul></td>
				<td valign="top"><ul><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 
    $values = array(array('id' => 'N', 'text' => __('No', 'event_espresso')), array('id' => 'Y', 'text' => __('Yes', 'event_espresso')));
    echo select_input('bypass_payment_page', $values, $anz_settings['bypass_payment_page']);
    ?>
						</li>
						
						
						<li>
							<label for="force_ssl_return">
								<?php 
    _e('Force HTTPS on Return URL', 'event_espresso');
    ?>
								<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input name="force_ssl_return" type="checkbox" value="1" <?php 
    echo $anz_settings['force_ssl_return'] ? 'checked="checked"' : '';
    ?>
 /></li>
						
						<li>
							<label for="button_url">
								<?php 
    _e('Button Image URL', 'event_espresso');
    ?>
 <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=anz_button_image"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
							</label>
							<input class="upload_url_input" type="text" name="button_url" size="34" value="<?php 
    echo $anz_settings['button_url'];
    ?>
" />
							<a class="upload_image_button" title="Add an Image"><img src="images/media-button-image.gif" alt="Add an Image"></a>  </li><li>
							<label><?php 
    _e('Current Button Image:', 'event_espresso');
    ?>
</label>
							<?php 
    echo '<img src="' . $anz_settings['button_url'] . '" />';
    ?>
</li>
					</ul></td>
			</tr>
		</table>
		</p>
			<input type="hidden" name="update_anz" value="update_anz">
			<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Update ANZ Settings', 'event_espresso');
    ?>
" id="save_anz_settings" />
		</p>
	</form>
<div id='anz_creds' style='display:none'>
	<h2><?php 
    _e("ANZ eGate Credentials", 'event_espresso');
    ?>
</h2>
	<p><?php 
    _e("The Merchant ID, Access Code, and Secure Secrets are provided from ANZ upon registration with them. Note: if you want to test your account, use the test credentials (the test Merchant ID always starts with the characters 'TEST'. e.g., if your normal account has a Merchant ID of 'ANZKANGAROO', your test merchant ID should be 'TESTANZKANGAROO'.)", 'event_espresso');
    ?>
</p>
	<p><?php 
    _e("Note, ANZ will provide you wish two Secure Secrets. You may use either one.", 'event_espresso');
    ?>
</p>
		
</div>
	<div id="anz_button_image" style="display:none">
		<h2><?php 
    _e('Button Image URL', 'event_espresso');
    ?>
</h2>
		<p><?php 
    echo sprintf(__('You may specify the URL of any image you want to be displayed to users when selecting their payment gateway.
			By default, the ANZ icon is selected. We also have a merchant accounts image available at %s', 'event_espresso'), EVENT_ESPRESSO_GATEWAY_URL . "anz/ANZLogo_eGate.gif");
    ?>
</p>
	</div>
	<?php 
}
Ejemplo n.º 29
0
$sem = explode('-', $this->session->userdata('PERIODO'))[2] == 2 ? 'primer' : 'segundo';
?>
<!-- Content Header (Page header) -->
<section class="content-header">
    <?php 
echo page_title(['ob' => $this, 'class' => 'fa fa-check', 'text' => 'Certificado ' . Uncamelize(__FILE__)]);
?>
</section>
<!-- Main content -->
<div class="container">
    <?php 
echo form_open('seguimiento/pazysalvo', ['class' => 'form-horizontal col-md-6', 'target' => '_blank', 'style' => 'margin-left: 20%']);
?>
    <hr style="border: 1px solid #099a5b;"/>
    <?php 
echo select_input(['text' => 'Proyecto', 'select' => Dropdown(['name' => 'ID_PROYECTO', 'dataProvider' => $this->proyectos_model->TraeAsesorProyectosDD(), 'placeholder' => '-- Seleccione un proyecto --', 'fields' => ['NOMBRE_PROYECTO']])]);
?>
    <div class="box">
        <div class="box-header bg-gray">
            <h3 style="color:#7d7d80;text-align: center"><span class="fa fa-group"></span> Practicantes
            </h3>
        </div>
        <div class="box-body"></div>
    </div>
    <?php 
echo form_dropdown('PROGRAMA', ['Ingeniería de sistemas' => 'Ingeniería de sistemas', 'Ingeniería de software' => 'Ingeniería de software', 'Electromedicina' => 'Electromedicina', 'Robótica y automatización' => 'Robótica y automatización'], ['input' => ['col' => 8], 'label' => ['text' => 'Programa', 'col' => 2]]);
?>
    <div class="form-group">
        <label class="col-lg-3 control-label">Inicio:</label>

        <div class="col-lg-5">
Ejemplo n.º 30
0
function organization_config_mnu()
{
    global $org_options, $espresso_premium, $espresso_check_for_updates;
    if (isset($_POST['update_org'])) {
        $org_options['organization'] = isset($_POST['org_name']) && !empty($_POST['org_name']) ? stripslashes_deep($_POST['org_name']) : '';
        $org_options['organization_street1'] = isset($_POST['org_street1']) && !empty($_POST['org_street1']) ? $_POST['org_street1'] : '';
        $org_options['organization_street2'] = isset($_POST['org_street2']) && !empty($_POST['org_street2']) ? $_POST['org_street2'] : '';
        $org_options['organization_city'] = isset($_POST['org_city']) && !empty($_POST['org_city']) ? $_POST['org_city'] : '';
        $org_options['organization_state'] = isset($_POST['org_state']) && !empty($_POST['org_state']) ? $_POST['org_state'] : '';
        $org_options['organization_zip'] = isset($_POST['org_zip']) && !empty($_POST['org_zip']) ? $_POST['org_zip'] : '';
        $org_options['organization_country'] = isset($_POST['org_country']) && !empty($_POST['org_country']) ? $_POST['org_country'] : '';
        $org_options['contact_email'] = isset($_POST['email']) && !empty($_POST['email']) ? $_POST['email'] : '';
        $org_options['expire_on_registration_end'] = isset($_POST['expire_on_registration_end']) && !empty($_POST['expire_on_registration_end']) ? $_POST['expire_on_registration_end'] : '';
        $org_options['event_page_id'] = isset($_POST['event_page_id']) && !empty($_POST['event_page_id']) ? $_POST['event_page_id'] : '';
        $org_options['return_url'] = isset($_POST['return_url']) && !empty($_POST['return_url']) ? $_POST['return_url'] : '';
        $org_options['cancel_return'] = isset($_POST['cancel_return']) && !empty($_POST['cancel_return']) ? $_POST['cancel_return'] : '';
        $org_options['notify_url'] = isset($_POST['notify_url']) && !empty($_POST['notify_url']) ? $_POST['notify_url'] : '';
        $org_options['events_in_dasboard'] = isset($_POST['events_in_dasboard']) && !empty($_POST['events_in_dasboard']) ? $_POST['events_in_dasboard'] : '';
        $org_options['default_mail'] = isset($_POST['default_mail']) && !empty($_POST['default_mail']) ? $_POST['default_mail'] : '';
        $org_options['payment_subject'] = isset($_POST['payment_subject']) && !empty($_POST['payment_subject']) ? $_POST['payment_subject'] : '';
        $org_options['payment_message'] = isset($_POST['payment_message']) && !empty($_POST['payment_message']) ? esc_html($_POST['payment_message']) : '';
        $org_options['message'] = isset($_POST['success_message']) && !empty($_POST['success_message']) ? esc_html($_POST['success_message']) : '';
        $org_options['email_before_payment'] = isset($_POST['email_before_payment']) && !empty($_POST['email_before_payment']) ? $_POST['email_before_payment'] : '';
        $org_options['email_fancy_headers'] = isset($_POST['email_fancy_headers']) && !empty($_POST['email_fancy_headers']) ? $_POST['email_fancy_headers'] : '';
        $org_options['use_captcha'] = isset($_POST['use_captcha']) && !empty($_POST['use_captcha']) ? $_POST['use_captcha'] : '';
        $org_options['recaptcha_publickey'] = isset($_POST['recaptcha_publickey']) && !empty($_POST['recaptcha_publickey']) ? $_POST['recaptcha_publickey'] : '';
        $org_options['recaptcha_privatekey'] = isset($_POST['recaptcha_privatekey']) && !empty($_POST['recaptcha_privatekey']) ? $_POST['recaptcha_privatekey'] : '';
        $org_options['recaptcha_theme'] = isset($_POST['recaptcha_theme']) && !empty($_POST['recaptcha_theme']) ? $_POST['recaptcha_theme'] : '';
        $org_options['recaptcha_width'] = isset($_POST['recaptcha_width']) && !empty($_POST['recaptcha_width']) ? $_POST['recaptcha_width'] : '';
        $org_options['recaptcha_language'] = isset($_POST['recaptcha_language']) && !empty($_POST['recaptcha_language']) ? $_POST['recaptcha_language'] : '';
        $org_options['espresso_dashboard_widget'] = isset($_POST['espresso_dashboard_widget']) && !empty($_POST['espresso_dashboard_widget']) ? $_POST['espresso_dashboard_widget'] : '';
        $org_options['time_reg_limit'] = isset($_POST['time_reg_limit']) && !empty($_POST['time_reg_limit']) ? $_POST['time_reg_limit'] : '';
        $org_options['skip_confirmation_page'] = isset($_POST['skip_confirmation_page']) ? $_POST['skip_confirmation_page'] : 'N';
        $org_options['allow_mer_discounts'] = isset($_POST['allow_mer_discounts']) ? $_POST['allow_mer_discounts'] : 'N';
        $org_options['allow_mer_vouchers'] = isset($_POST['allow_mer_vouchers']) ? $_POST['allow_mer_vouchers'] : 'N';
        $org_options['use_attendee_pre_approval'] = isset($_POST['use_attendee_pre_approval']) && !empty($_POST['use_attendee_pre_approval']) ? $_POST['use_attendee_pre_approval'] : '';
        if (!empty($_POST['event_ssl_active'])) {
            $org_options['event_ssl_active'] = isset($_POST['event_ssl_active']) && !empty($_POST['event_ssl_active']) ? $_POST['event_ssl_active'] : '';
        }
        $org_options['show_pending_payment_options'] = isset($_POST['show_pending_payment_options']) && !empty($_POST['show_pending_payment_options']) ? $_POST['show_pending_payment_options'] : '';
        $org_options['use_venue_manager'] = isset($_POST['use_venue_manager']) && !empty($_POST['use_venue_manager']) ? $_POST['use_venue_manager'] : '';
        $org_options['use_personnel_manager'] = isset($_POST['use_personnel_manager']) && !empty($_POST['use_personnel_manager']) ? $_POST['use_personnel_manager'] : '';
        $org_options['use_event_timezones'] = isset($_POST['use_event_timezones']) && !empty($_POST['use_event_timezones']) ? $_POST['use_event_timezones'] : '';
        $org_options['full_logging'] = isset($_POST['full_logging']) && !empty($_POST['full_logging']) ? $_POST['full_logging'] : '';
        $org_options['surcharge'] = isset($_POST['surcharge']) && !empty($_POST['surcharge']) ? $_POST['surcharge'] : '';
        $org_options['surcharge_type'] = isset($_POST['surcharge_type']) && !empty($_POST['surcharge_type']) ? $_POST['surcharge_type'] : '';
        $org_options['surcharge_text'] = isset($_POST['surcharge_text']) && !empty($_POST['surcharge_text']) ? $_POST['surcharge_text'] : '';
        $org_options['show_reg_footer'] = isset($_POST['show_reg_footer']) && !empty($_POST['show_reg_footer']) ? $_POST['show_reg_footer'] : '';
        $org_options['affiliate_id'] = isset($_POST['affiliate_id']) && !empty($_POST['affiliate_id']) ? $_POST['affiliate_id'] : '';
        $org_options['site_license_key'] = isset($_POST['site_license_key']) && !empty($_POST['site_license_key']) ? $_POST['site_license_key'] : '';
        $org_options['default_payment_status'] = isset($_POST['default_payment_status']) && !empty($_POST['default_payment_status']) ? $_POST['default_payment_status'] : '';
        $org_options['default_logo_url'] = isset($_REQUEST['upload_image']) && !empty($_REQUEST['upload_image']) ? $_REQUEST['upload_image'] : '';
        $currency_format = getCountryFullData($org_options['organization_country']);
        switch ($currency_format['iso_code_3']) {
            case 'USA':
                $org_options['currency_symbol'] = '$';
                // US Dollar
                break;
            case 'CHE':
                $org_options['currency_symbol'] = 'Fr.';
                // Swiss Franc
                break;
            case 'AUS':
                $org_options['currency_symbol'] = 'A$';
                // Australian Dollar
                break;
            case 'GBR':
                $org_options['currency_symbol'] = '&pound;';
                // British Pound
                break;
            case 'NOR':
                $org_options['currency_symbol'] = 'kr';
                // Norwegian Krone
                break;
            case 'BRA':
                $org_options['currency_symbol'] = 'R$';
                // Brazillian Real
                break;
            case 'CAN':
                $org_options['currency_symbol'] = 'C$';
                // Canadian Dollar
                break;
            case 'JPN':
                $org_options['currency_symbol'] = '&yen;';
                // Japanese Yen
                break;
            case 'SWE':
                $org_options['currency_symbol'] = 'kr';
                // Swedish Krona
                break;
            case 'DNK':
                $org_options['currency_symbol'] = 'kr';
                // Danish Krone
                break;
            case 'ZAF':
                $org_options['currency_symbol'] = 'R';
                // South African Rand
                break;
            case 'IND':
                $org_options['currency_symbol'] = 'Rs';
                // Indian Rupee
                break;
            case 'TUR':
                $org_options['currency_symbol'] = 'TL';
                // Turkish Lira
                break;
            case 'NZL':
                $org_options['currency_symbol'] = 'NZ$';
                // New Zealand Dollar
                break;
            case 'HKG':
                $org_options['currency_symbol'] = 'HK$';
                // Hong Kong Dollar
                break;
            case 'SGP':
                $org_options['currency_symbol'] = 'S$';
                // Singapore Dollar
                break;
            case 'POL':
                $org_options['currency_symbol'] = 'zl';
                // Polish Zloty (hex code: z&#x0142;)
                break;
            case 'HUN':
                $org_options['currency_symbol'] = 'Ft';
                // Hungarian Forint
                break;
            case 'CZE':
                $org_options['currency_symbol'] = 'Kc';
                // Czech Koruna (hex code: K&#x10D;)
                break;
            case 'ISR':
                $org_options['currency_symbol'] = 'ILS';
                // Israeli Shekel (hex code: &#8362;)
                break;
            case 'MEX':
                $org_options['currency_symbol'] = 'Mex$';
                // Mexican Peso
                break;
            case 'MYS':
                $org_options['currency_symbol'] = 'RM';
                // Malaysian Ringgit
                break;
            case 'PHL':
                $org_options['currency_symbol'] = 'PhP';
                // Phillipine Peso (hex code: &#x20b1;)
                break;
            case 'TWN':
                $org_options['currency_symbol'] = 'NT$';
                // New Taiwan Dollar
                break;
            case 'THA':
                $org_options['currency_symbol'] = 'THB';
                // Thai Baht (hex code: &#xe3f;)
                break;
            case 'AUT' || 'BEL' || 'CYP' || 'EST' || 'FIN' || 'FRA' || 'DEU' || 'GRC' || 'IRL' || 'ITA' || 'LUX' || 'MLT' || 'NLD' || 'PRT' || 'SVK' || 'SVN' || 'ESP' || 'AND' || 'MCO' || 'SMR' || 'VAT' | 'MYT' || 'MNE' || 'XKV' || 'SPM':
                $org_options['currency_symbol'] = 'EUR';
                // use the Euro for all eurozone countries
                break;
            default:
                $org_options['currency_symbol'] = '$';
                break;
        }
        /* if (getCountryZoneId($org_options['organization_country']) == '2') {
        	  $org_options['currency_symbol'] = 'Euro: '; //Creates the symbol for the Euro
        	  } */
        update_option('events_organization_settings', $org_options);
        echo '<div id="message" class="updated fade"><p><strong>' . __('Organization details saved.', 'event_espresso') . '</strong></p></div>';
    }
    $org_options = get_option('events_organization_settings');
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    ?>
	<div class="wrap columns-2">
		<div id="icon-options-event" class="icon32"> </div>
		<h2>
			<?php 
    _e('General Settings', 'event_espresso');
    ?>
		</h2>
		<?php 
    ob_start();
    ?>
		<div class="meta-box-sortables ui-sortable">
			<form class="espresso_form" method="post" action="<?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
">
				<ul id="event_espresso-sortables">
					<li>
						<div class="metabox-holder">
							<div class="postbox">
								<div title="Click to toggle" class="handlediv"><br />
								</div>
								<h3 class="hndle">
									<?php 
    _e('Organization Settings', 'event_espresso');
    ?>
								</h3>
								<div class="inside">
									<div class="padding">
									<h4>
											<?php 
    _e('Company Logo', 'event_espresso');
    ?>
										</h4>
											<ul>
												<li><label for="upload_image">
															<?php 
    _e('Add a Default Logo', 'event_espresso');
    ?>
															<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=espresso_default_logo_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a></label>
															<div id="default-logo-image">
															<?php 
    $org_options['default_logo_url'] = isset($org_options['default_logo_url']) ? $org_options['default_logo_url'] : '';
    ?>
															<input id="upload_image" type="hidden" size="36" name="upload_image" value="<?php 
    echo $org_options['default_logo_url'];
    ?>
" />
															<input id="upload_image_button" type="button" value="Upload Image" />
															<?php 
    if ($org_options['default_logo_url'] != '') {
        ?>
																<p class="default-logo-thumb"><img src="<?php 
        echo $org_options['default_logo_url'];
        ?>
" alt="" /><br />
																<a id="remove-image" href="#" title="Remove this image" onclick="return false;"><?php 
        _e('Remove Image', 'event_espresso');
        ?>
</a></p>
															<?php 
    }
    ?>
														</div>
														<div id="espresso_default_logo_info" class="pop-help" style="display:none">
															<h2>
																<?php 
    _e('Default Logo', 'event_espresso');
    ?>
															</h2>
															<p><?php 
    echo __('The default logo will be used in your custom invoice, ticketing, certificates, and payment templates.', 'event_espresso');
    ?>
</p>
														</div>
														</li>
														<li><h4><?php 
    _e('Contact Information', 'event_espresso');
    ?>
</h4></li>									
											<li>
												<label for="org_name">
													<?php 
    _e('Organization Name:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="org_name" size="45" value="<?php 
    echo stripslashes_deep($org_options['organization']);
    ?>
" />
											</li>
											<li>
												<label for="org_street1">
													<?php 
    _e('Organization Street 1:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="org_street1" size="45" value="<?php 
    echo $org_options['organization_street1'];
    ?>
" />
											</li>
											<li>
												<label for="org_street2">
													<?php 
    _e('Organization Street 2:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="org_street2" size="45" value="<?php 
    echo $org_options['organization_street2'];
    ?>
" />
											</li>
											<li>
												<label for="org_city">
													<?php 
    _e('Organization City:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="org_city" size="45" value="<?php 
    echo $org_options['organization_city'];
    ?>
" />
											</li>
											<li>
												<label for="org_state">
													<?php 
    _e('Organization State:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="org_state" size="45" value="<?php 
    echo $org_options['organization_state'];
    ?>
" />
											</li>
											<li>
												<label for="org_zip">
													<?php 
    _e('Organization Zip/Postal Code:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="org_zip" size="10" value="<?php 
    echo $org_options['organization_zip'];
    ?>
" />
											</li>
											<li>
												<label for="org_country">
													<?php 
    _e('Organization Country:', 'event_espresso');
    ?>
												</label>
												<?php 
    printCountriesSelector("org_country", $org_options['organization_country']);
    ?>
 (<?php 
    echo $org_options['currency_symbol'];
    ?>
)</li>
											<li>
												<label for="email">
													<?php 
    _e('Primary contact email:', 'event_espresso');
    ?>
												</label>
												<input type="text" name="email" size="45" value="<?php 
    echo $org_options['contact_email'];
    ?>
" />
											</li>
											<li>
												<h4>
													<?php 
    _e('Time and Date Settings', 'event_espresso');
    ?>
												</h4>
											</li >
											<li class="time-date">
												<p> <span class="run-in">
														<?php 
    _e('Current Time: ', 'event_espresso');
    ?>
													</span><span class="current-date"> <?php 
    echo date(get_option('date_format') . ' ' . get_option('time_format'));
    ?>
 </span><a class="change-date-time" href="options-general.php" target="_blank">
														<?php 
    _e('Change timezone and date format settings?', 'event_espresso');
    ?>
													</a> </p>
												<p> <span class="important">
														<?php 
    _e('Note:', 'event_espresso');
    ?>
													</span>
													<?php 
    _e('You must set the time zone for your city, or the city closest to you. UTC time will not work.', 'event_espresso');
    ?>
													<a href="http://ee-updates.s3.amazonaws.com/images/time-zone-settings-example.jpg" class="thickbox">View an example?</a> </p>
											</li>
											
										</ul>
										
										<p>
											<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Save Options', 'event_espresso');
    ?>
" id="save_organization_saetting_1" />
										</p>
									</div>
								</div>
							</div>
						</div>
					</li>
					<li>
						<div class="metabox-holder">
							<div class="postbox">
								<div title="Click to toggle" class="handlediv"><br />
								</div>
								<h3 class="hndle">
									<?php 
    _e('Page Settings', 'event_espresso');
    ?>
								</h3>
								<div class="inside">
									<div class="padding"> <a name="page_settings" id="page_settings"></a>
										<?php 
    if (empty($org_options['event_page_id']) || empty($org_options['return_url']) || empty($org_options['notify_url']) || empty($org_options['cancel_return'])) {
        espresso_create_default_pages();
    }
    //Check to see if we are using the deprecated SSL option. If we are, recommend updating to WordPress HTTPS (SSL).
    if (!empty($org_options['event_ssl_active']) && $espresso_premium == true && $org_options['event_ssl_active'] == 'Y') {
        echo '<div id="ssl-reg" style="background-color: #ffffe0; border: #e6db55 1px solid; padding:4px;">';
        echo '<p><strong>' . __('Attention!', 'event_espresso') . '</strong><br />' . __('The Secure Payment System has been removed.', 'event_espresso') . '</p>';
        echo '<p>' . __('If your site uses SSL to handle secure transactions. Please install the <a href="http://ee-updates.s3.amazonaws.com/espresso-https.1.0.zip" title="Download Now">Event Espresso SSL/HTTPS</a> plugin now.', 'event_espresso') . ' ' . __('<a href="http://eventespresso.com/forums/2011/09/use-wordpress-https-for-ssl-encryption-on-your-event-espresso-site/" target="_blank">More information here</a>.', 'event_espresso') . '</p>';
        $ssl_values = array(array('id' => 'N', 'text' => __('Yes', 'event_espresso')), array('id' => 'Y', 'text' => __('No', 'event_espresso')));
        ?>
											<label for="event_ssl_active">
												<?php 
        _e('Turn off this message?', 'event_espresso');
        ?>
											</label>
											<br />
											<?php 
        echo select_input('event_ssl_active', $ssl_values, $org_options['event_ssl_active']);
        echo '</div>';
    }
    ?>
										<p>
											<?php 
    _e('The following shortcodes and page settings are required for Event Espresso to function properly. These shortcodes should not be replaced with any other shortcodes. Please view <a href="admin.php?page=support#shortcodes">this page</a> for a list of optional shortcodes.', 'event_espresso');
    ?>
										</p>
										<p>
											<label for="event_page_id">
												<?php 
    _e('Main registration page:', 'event_espresso');
    ?>
											</label>
											<select name="event_page_id">
												<option value="0">
													<?php 
    _e('Main page', 'event_espresso');
    ?>
												</option>
												<?php 
    parent_dropdown($default = $org_options['event_page_id']);
    ?>
											</select>
											<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=registration_page_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
											<span class="messages"><?php 
    echo sprintf(__("This page should contain the %s shortcode. <br />This page can be hidden from navigation if desired, <br />but should always contain the %s shortcode.", 'event_espresso'), '<span class="highlight">[ESPRESSO_EVENTS]</span>', '[ESPRESSO_EVENTS]');
    ?>
)</span></p>
										<?php 
    ###### Popup help box #######
    ?>
										<div id="registration_page_info" class="pop-help" style="display:none">
											<h2>
												<?php 
    _e('Main Events Page', 'event_espresso');
    ?>
											</h2>
											<p><?php 
    echo sprintf(__('This is the page that displays your events and doubles as your registration page. It is very important that this page always contains the %s shortcode.', 'event_espresso'), '<strong>[ESPRESSO_EVENTS]</strong>');
    ?>
</p>
											<p><?php 
    echo sprintf(__("This page should ALWAYS contain the %s shortcode.", 'event_espresso'), '<strong>[ESPRESSO_EVENTS]</strong>');
    ?>
</p>
										</div>
										<?php 
    ###### close popup help box ######
    ?>
										<p>
											<label for="return_url">
												<?php 
    _e('Auto Return URL (Thank You and Return Payment page):', 'event_espresso');
    ?>
											</label>
											<select name="return_url">
												<option value="0">
													<?php 
    _e('Main page', 'event_espresso');
    ?>
												</option>
												<?php 
    parent_dropdown($default = $org_options['return_url']);
    ?>
											</select>
											<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=return_url_info" target="_blank"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
											<span class="messages">(<?php 
    echo sprintf(__("This page should contain the %s shortcode.<br />This page should hidden from your navigation,<br />but still viewable to the public (not password protected.)", 'event_espresso'), '<span class="highlight">[ESPRESSO_PAYMENTS]</span>');
    ?>
 </span></p>
										<?php 
    ##### Popup help box #####
    ?>
										<div id="return_url_info" class="pop-help" style="display:none">
											<h2>
												<?php 
    _e('Auto Return URL', 'event_espresso');
    ?>
											</h2>
											<p>
												<?php 
    _e('The URL to which the payer\'s browser is redirected after completing the payment; for example, a URL on your site that displays a "Thank you for your payment" page.', 'event_espresso');
    ?>
											</p>
											<p><?php 
    echo sprintf(__("This page should contain the %s shortcode.", 'event_espresso'), '<strong>[ESPRESSO_PAYMENTS]</strong>');
    ?>
</p>
											<p><em class="important"><b>
														<?php 
    _e('ATTENTION:', 'event_espresso');
    ?>
													</b><br />
													<?php 
    _e('This page should be hidden from from your navigation menu. Exclude pages by using the "Exclude Pages" plugin from http://wordpress.org/extend/plugins/exclude-pages/ or using the "exclude" parameter in your "wp_list_pages" template tag. Please refer to http://codex.wordpress.org/Template_Tags/wp_list_pages for more inforamation about excluding pages.', 'event_espresso');
    ?>
												</em> </p>
										</div>
										<?php 
    ##### close popup help #####
    ?>
										<p>
											<label for="cancel_return">
												<?php 
    _e('Cancel Return URL (used for cancelled payments):', 'event_espresso');
    ?>
											</label>
											<select name="cancel_return">
												<option value="0">
													<?php 
    _e('Main page', 'event_espresso');
    ?>
												</option>
												<?php 
    parent_dropdown($default = $org_options['cancel_return']);
    ?>
											</select>
											<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=cancel_return_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
											<span class="messages">(
												<?php 
    echo sprintf(__("This should be a page on your website that contains a cancelled message %s and the %s shortcode. This page should hidden %s from your navigation, but still viewable to the public (not password protected.)", 'event_espresso'), '<br />', '<span class="highlight">[ESPRESSO_CANCELLED]</span>', '<br />');
    ?>
												)</span></p>
										<?php 
    ##### popup help box #####
    ?>
										<div id="cancel_return_info" class="pop-help" style="display:none">
											<h2>
												<?php 
    _e('Cancel Return URL', 'event_espresso');
    ?>
											</h2>
											<p>
												<?php 
    _e('A URL to which the payer\'s browser is redirected if payment is cancelled; for example, a URL on your website that displays a "Payment Canceled" page.', 'event_espresso');
    ?>
											</p>
											<p>
												<?php 
    echo sprintf(__("This should be a page on your website that contains a cancelled message and the %s shortcode.", 'event_espresso'), '<strong>[ESPRESSO_CANCELLED]</strong>');
    ?>
											</p>
											<p><em class="important"><b>
														<?php 
    _e('ATTENTION:', 'event_espresso');
    ?>
													</b><br />
													<?php 
    _e('This page should be hidden from from your navigation menu. Exclude pages by using the "Exclude Pages" plugin from http://wordpress.org/extend/plugins/exclude-pages/ or using the "exclude" parameter in your "wp_list_pages" template tag. Please refer to http://codex.wordpress.org/Template_Tags/wp_list_pages for more inforamation about excluding pages.', 'event_espresso');
    ?>
												</em></p>
										</div>
										<?php 
    ##### close popup help box #####
    ?>
										<p>
											<label for="notify_url">
												<?php 
    _e('Notify URL (used to process payments):', 'event_espresso');
    ?>
											</label>
											<select name="notify_url">
												<option value="0">
													<?php 
    _e('Main page', 'event_espresso');
    ?>
												</option>
												<?php 
    parent_dropdown($default = $org_options['notify_url']);
    ?>
											</select>
											<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=notify_url_info"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a><br />
											<span class="messages">(<?php 
    echo sprintf(__("This page should contain the %s shortcode.<br />This page should hidden from your navigation, <br />but still viewable to the public (not password protected.)", 'event_espresso'), '<span class="highlight">[ESPRESSO_TXN_PAGE]</span>');
    ?>
</span></p>
										<?php 
    ##### popup help box #####
    ?>
										<div id="notify_url_info" class="pop-help" style="display:none">
											<h2>
												<?php 
    _e('Notify URL', 'event_espresso');
    ?>
											</h2>
											<p>
												<?php 
    _e('The URL to which PayPal posts information about the transaction, in the form of Instant Payment Notification messages.', 'event_espresso');
    ?>
											</p>
											<p> <?php 
    echo sprintf(__('This page should contain the %s shortcode.', 'event_espresso'), '<strong>[ESPRESSO_TXN_PAGE]</strong>');
    ?>
 </p>
											<p><em class="important"><b>
														<?php 
    _e('ATTENTION:', 'event_espresso');
    ?>
													</b><br />
													<?php 
    _e('This page should be hidden from from your navigation menu. Exclude pages by using the "Exclude Pages" plugin from http://wordpress.org/extend/plugins/exclude-pages/ or using the "exclude" parameter in your "wp_list_pages" template tag. Please refer to http://codex.wordpress.org/Template_Tags/wp_list_pages for more inforamation about excluding pages.', 'event_espresso');
    ?>
												</em> </p>
										</div>
										<p>
											<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Save Options', 'event_espresso');
    ?>
" id="save_organization_saetting_2" />
										</p>
									</div>
								</div>
							</div>
						</div>
					</li>
					<li>
						<div class="metabox-holder">
							<div class="postbox">
								<div title="Click to toggle" class="handlediv"><br />
								</div>
								<h3 class="hndle">
									<?php 
    _e('Email Settings', 'event_espresso');
    ?>
								</h3>
								<div class="inside">
									<div class="padding"><a name="email-settings" id="email-settings"></a>
										<?php 
    $values = array(array('id' => 'Y', 'text' => __('Yes', 'event_espresso')), array('id' => 'N', 'text' => __('No', 'event_espresso')));
    ?>
										<p>
											<?php 
    _e('Send payment confirmation emails?', 'event_espresso');
    echo select_input('default_mail', $values, $org_options['default_mail']);
    ?>
										</p>
										<p>
											<?php 
    _e('Send registration confirmation emails before payment is received?', 'event_espresso');
    echo select_input('email_before_payment', $values, $org_options['email_before_payment']);
    ?>
										</p>
										<p>
	<?php 
    _e('Use fancy email headers?', 'event_espresso');
    echo select_input('email_fancy_headers', $values, $org_options['email_fancy_headers']);
    ?>
											<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=fancyemailheaders"><img src="<?php 
    echo EVENT_ESPRESSO_PLUGINFULLURL;
    ?>
/images/question-frame.png" width="16" height="16" /></a>
										</p>
												<?php 
    ###### Popup help box #######
    ?>
										<div id="fancyemailheaders" class="pop-help" style="display:none">
											<h2>
	<?php 
    _e('Fancy Email Headers', 'event_espresso');
    ?>
											</h2>
											<p><?php 
    echo sprintf(__("This option enables the use of the email header format %s From: name %s %s Reply-to: name %s %s.", 'event_espresso'), '<br />', '&lt;email@address.com&gt;', '<br />', '&lt;email@address.com&gt;', '<br />');
    ?>
</p>
											<p><?php 
    _e("You should only use this if you know it will not cause email delivery problems. Some servers will not send emails that use this format.", 'event_espresso');
    ?>
</p>
										</div>
										<h4>
												<?php 
    _e('Payment Confirmation Email:', 'event_espresso');
    ?>
										</h4>
										<p>
											<label for="payment_subject">
	<?php 
    _e('Email Subject:', 'event_espresso');
    ?>
											</label>
											<input id="payment_subject" name="payment_subject" size="50" type="text" value="<?php 
    echo stripslashes_deep($org_options['payment_subject']);
    ?>
" />
										</p>

										<div id="payment-conf-email" class="postbox">
											<?php 
    if (function_exists('wp_editor')) {
        $args = array("textarea_rows" => 5, "textarea_name" => "payment_message", "editor_class" => "my_editor_custom");
        wp_editor(espresso_admin_format_content($org_options['payment_message']), "payment_message", $args);
    } else {
        echo '<textarea class="theEditor std-textarea" id="payment_message" name="payment_message">' . espresso_admin_format_content($org_options['payment_message']) . '</textarea>';
    }
    ?>
	<?php 
    /* ?><textarea class="theEditor std-textarea" id="payment_message" name="payment_message"><?php echo espresso_admin_format_content($org_options['payment_message']); ?></textarea><?php */
    ?>
											<table id="payment-confirmation-form" cellspacing="0">
												<tbody>
													<tr>
														<td class="aer-word-count"></td>
														<td class="autosave-info"><span><a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_info">
	<?php 
    _e('View Custom Email Tags', 'event_espresso');
    ?>
																</a></span></td>
													</tr>
												</tbody>
											</table>
										</div>
										<h4>
											<?php 
    _e('Default Registration Confirmation Email:', 'event_espresso');
    ?>
										</h4>

										<div id="reg-conf-email" class="postbox">
											<?php 
    if (function_exists('wp_editor')) {
        $args = array("textarea_rows" => 5, "textarea_name" => "success_message", "editor_class" => "my_editor_custom");
        wp_editor(espresso_admin_format_content($org_options['message']), "success_message", $args);
    } else {
        echo '<textarea class="theEditor std-textarea" id="success_message" name="success_message">' . espresso_admin_format_content($org_options['message']) . '</textarea>';
    }
    ?>
	<?php 
    /* ?><textarea class="theEditor std-textarea"  id="reg-conf-email-mce" name="success_message"><?php echo espresso_admin_format_content($org_options['message']); ?></textarea><?php */
    ?>
											<table id="email-confirmation-form" cellspacing="0">
												<tbody>
													<tr>
														<td class="aer-word-count"></td>
														<td class="autosave-info"><span><a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_info">
	<?php 
    _e('View Custom Email Tags', 'event_espresso');
    ?>
																</a> | <a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=custom_email_example">
	<?php 
    _e('Example', 'event_espresso');
    ?>
																</a></span></td>
													</tr>
												</tbody>
											</table>
										</div>
										<p>
											<input class="button-primary" type="submit" name="Submit" value="<?php 
    _e('Save Options', 'event_espresso');
    ?>
" id="save_organization_saetting_5" />
										</p>
									</div>
								</div>
							</div>
						</div>
						<div style="clear:both;"></div>
					</li>
					<li>
						<h2>
					<?php 
    _e('Advanced Features', 'event_espresso');
    ?>
						</h2>
						<hr />
					</li>
					<?php 
    if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/recaptcha_form.php') || file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/optional_event_settings.php')) {
        if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/optional_event_settings.php')) {
            echo '<li>';
            require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/optional_event_settings.php';
            echo '</li>';
        }
        if (file_exists(EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/recaptcha_form.php')) {
            echo '<li>';
            require_once EVENT_ESPRESSO_PLUGINFULLPATH . 'includes/admin-files/recaptcha_form.php';
            echo '</li>';
        }
    } else {
        ?>
						<li>
							<div class="metabox-holder">
								<div class="postbox">
									<div title="Click to toggle" class="handlediv"><br />
									</div>
									<h3 class="hndle">
		<?php 
        _e('Optional Event Settings', 'event_espresso');
        ?>
									</h3>
									<div class="inside">
										<div class="padding">
											<p><?php 
        echo __('Please purchase a', 'event_espresso');
        ?>
 <a href="http://eventespresso.com/download/" target="_blank"><?php 
        echo __('support license', 'event_espresso');
        ?>
</a> <?php 
        echo __('to gain access to these features.', 'event_espresso');
        ?>
</p>
											<p>
													<?php 
        _e('Additional features include:', 'event_espresso');
        ?>
											</p>
											<ol>
												<li>
													<?php 
        _e('Upcoming events widget in the admin dashboard', 'event_espresso');
        ?>
												</li>
												<li>
													<?php 
        _e('Registration limits on time slots', 'event_espresso');
        ?>
												</li>
												<li>
													<?php 
        _e('Ability to display short descriptions in the event listings', 'event_espresso');
        ?>
												</li>
												<li>
													<?php 
        _e('Custom post types for events', 'event_espresso');
        ?>
												</li>
												<li>
													<?php 
        _e('Attendee pre-approval feature', 'event_espresso');
        ?>
												</li>
												<li>
													<?php 
        _e('Event Venue/Staff Manager', 'event_espresso');
        ?>
												</li>
												<li>
		<?php 
        _e('Graphical Reports', 'event_espresso');
        ?>
												</li>
											</ol>
										</div>
									</div>
								</div>
							</div>
						</li>
						<li>
							<div class="metabox-holder">
								<div class="postbox">
									<div title="Click to toggle" class="handlediv"><br />
									</div>
									<h3 class="hndle">
		<?php 
        _e('reCAPTCHA Settings', 'event_espresso');
        ?>
									</h3>
									<div class="inside">
										<div class="padding">
											<p><?php 
        echo __('Please purchase a', 'event_espresso');
        ?>
 <a href="http://eventespresso.com/download/" target="_blank"><?php 
        echo __('support license', 'event_espresso');
        ?>
</a> <?php 
        echo __('to gain access to this feature.', 'event_espresso');
        ?>
</p>
											<p> <?php 
        echo sprintf(__('reCAPTCHA helps prevent automated abuse of your site (such as comment spam or bogus registrations) by using a %s to ensure that only humans perform certain actions.', 'event_espresso'), '<a href="http://recaptcha.net/captcha.html">CAPTCHA</a>');
        ?>
 </p>
										</div>
									</div>
								</div>
							</div>
						</li>
						<?php 
    }
    if ($espresso_check_for_updates == true && $espresso_premium == true) {
        ?>

						<li><a name="license_key" id="license_key"></a>
							<div class="metabox-holder">
								<div class="postbox">
									<div title="Click to toggle" class="handlediv"><br />
									</div>
									<h3 class="hndle">
		<?php 
        _e('Support License', 'event_espresso');
        ?>
									</h3>
									<div class="inside">
										<div class="padding">
											<ul>
												<li>
													<label for="site_license_key">
		<?php 
        _e('Site License Key:', 'event_espresso');
        ?>
													</label>
													<input type="text" name="site_license_key" size="45" value="<?php 
        echo isset($org_options['site_license_key']) ? stripslashes_deep($org_options['site_license_key']) : '';
        ?>
" />
												</li>

											</ul>
											<p>
												<input class="button-primary" type="submit" name="Submit" value="<?php 
        _e('Save Options', 'event_espresso');
        ?>
" id="save_organization_saetting_5" />
											</p>
										</div>
									</div>
								</div>
							</div>
						</li>
	<?php 
    }
    ?>
				</ul>
				<input type="hidden" name="update_org" value="update" />
			</form>
		</div>
		<?php 
    $post_content = ob_get_clean();
    espresso_choose_layout($post_content, event_espresso_display_right_column());
    ?>
	</div>
	<script type="text/javascript" charset="utf-8">
		//<![CDATA[
		jQuery(document).ready(function() {
			postboxes.add_postbox_toggles('event_espresso');

			//Logo uploader
			var header_clicked = false;
			jQuery('#upload_image_button').click(function() {
				formfield = jQuery('#upload_image').attr('name');
				tb_show('', 'media-upload.php?type=image&amp;TB_iframe=1');
				jQuery('p.default-logo-thumb').addClass('old');
				header_clicked = true;
				return false;
			});
			window.original_send_to_editor = window.send_to_editor;

			window.send_to_editor = function(html) {
				if(header_clicked) {
					//Remove old image
					jQuery("#upload_image").val('');
					jQuery("p.default-logo-thumb").remove();
					jQuery("p#image-display").remove();
					jQuery('#remove-image').remove();
					
					//Add new image
					imgurl = jQuery('img',html).attr('src');
					jQuery('#' + formfield).val(imgurl);
					jQuery('#default-logo-image').append("<p id='image-display'><img src='"+imgurl+"' alt='' /></p>");
					header_clicked = false;
					tb_remove();
				} else {
					window.original_send_to_editor(html);
				}
			}
			
			// process the remove link in the metabox
			jQuery('#remove-image').click(function(){
				var answer = confirm('<?php 
    _e('Do you really want to delete this image? Please remember to save your settings to complete the removal.', 'event_espresso');
    ?>
');
				if (answer){
					jQuery("#upload_image").val('');
					jQuery("p.default-logo-thumb").remove();
					jQuery("p#image-display").remove();
					jQuery('#remove-image').remove();
				}
				return false;
			});

		});
		//]]>
	</script>
	<?php 
    echo event_espresso_custom_email_info();
    if (!function_exists('wp_editor')) {
        espresso_tiny_mce();
    }
}