本文整理汇总了PHP中ym_box_top函数 的典型用法代码示例。如果您正苦于以下问题:PHP ym_box_top函数的具体用法?PHP ym_box_top怎么用?PHP ym_box_top使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ym_box_top函数 的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: ym_fbook_admin
//.........这里部分代码省略.........
// echo '<p style="text-align: right;"><a href="#nowhere" id="tabkiller">Remove Tabs/All Settings on a single page</a></p>';
echo '<div id="ym_fbook_tabs">';
echo '<form action="" method="post" enctype="multipart/form-=data" id="ym_fb">';
$credits = FALSE;
global $ym_active_modules;
if (in_array('ym_facebook_credits', $ym_active_modules)) {
// if (get_option('ym_facebook_credits')) {
$credits = TRUE;
}
echo '
<ul>
<li><a href="#guide">Guide</a></li>
<li><a href="#facebook_settings">Facebook</a></li>
<li><a href="#settings_settings">Settings</a></li>
<li><a href="';
if ($credits) {
echo '#facebook_credits';
}
echo '">Facebook Credits</a></li>
<li><a href="';
if ($credits) {
echo '#facebook_pricing';
}
echo '">Facebook Pricing</a></li>
<li><a href="#share_control">Like/Share</a></li>
<li><a href="#open_graph">Open Graph</a></li>
<li><a href="';
if ($credits) {
echo '#transaction_logging';
}
echo '">Transaction Log</a></li>
</ul>';
echo '<div id="guide">';
ym_box_top('Guide');
echo '<div id="message" class="updated">';
echo '<p>We have written a guide that should help you get Your Members Facebook Integration Up and Running, you can read it <a href="http://www.yourmembers.co.uk/the-support/guides-tutorials/your-members-facebook-integration/" target="_blank">here</a></p>';
echo '</div>';
ym_box_bottom();
echo '</div>';
echo '<div id="facebook_settings" class="subtabs">';
echo '
<ul>
<li><a href="#master_enable">Master Enable</a></li>
<li><a href="#keys_settings">Application Keys</a></li>
<li><a href="#canvas_settings">Canvas Settings</a></li>
<li><a href="#page_settings">Page Settings</a></li>
<li><a href="#dim_settings">Dimensions</a></li>
<li><a href="#permissions">Permissions</a></li>
</ul>
';
echo '<div id="master_enable">';
ym_box_top('Enable Facebook');
$review = '';
if (!$facebook_settings->app_id) {
$review .= '<div id="message" class="updated"><p>If you havn't created an app yet, you can do so <a href="http://developers.facebook.com/setup" target="_new">here</a></p></div>';
}
echo $review;
echo '<table class="form-table">';
$ym_formgen->render_form_table_radio_row('Enable Facebook', 'enabled', $facebook_settings->enabled, 'If not enabled if a users access the app, they are redirected to the site');
echo '</table>';
ym_box_bottom();
echo '</div>
<div id="keys_settings">';
ym_box_top('Application Keys');
$review .= '<p>You can find and review these settings <a href="https://developers.facebook.com/apps/';
if ($facebook_settings->app_id) {
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:67, 代码来源:ym_facebook.php
示例2: ym_post
$sub_id = ym_post('package', false);
$package_type = ym_post('package_type', false);
if (ym_group_membership_create_child($email_address, $username, $password, $c_password, $sub_id, $package_type, TRUE)) {
// reload
$ym_user = new YourMember_User($ym_user->ID);
}
} else {
ym_display_message(__('Unknown Action Requested', 'ym'), 'error');
}
}
}
// get breakdown
$current_counts = ym_group_membership_get_counts();
echo '<div id="poststuff" class="wrap">
<h2>' . __('Group Membership', 'ym') . '</h2>';
ym_box_top(' ');
echo '<p>' . sprintf(__('You are eligible to have %s account%s in your Group, you currently have %s Child Account%s', 'ym'), $ym_user->child_accounts_allowed, $ym_user->child_accounts_allowed != 1 ? 's' : '', count($ym_user->child_ids), count($ym_user->child_ids) != 1 ? 's' : '') . '</p>';
echo '
<table class="form-table widefat">';
if (count($ym_user->child_ids)) {
echo '<tr>
<th>' . __('User Email', 'ym') . '</th>
<th>' . __('User Login', 'ym') . '</th>
<th>' . __('Package Type', 'ym') . '</th>
<th>' . __('Status, click to Toggle', 'ym') . '</th>
<th>' . __('Delete', 'ym') . '</th>
</tr>';
foreach ($ym_user->child_ids as $child) {
echo '<tr>';
$child = get_user_by('id', $child);
if ($child) {
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-profile_group_membership.php
示例3: get_lists
private function get_lists($is_option = FALSE)
{
$lists = $this->mailchimp->lists();
if (!count($lists->data)) {
ym_box_top($this->name . ' Error');
echo '<p>' . __('You have no lists on ' . $this->name . ' to associate with') . '</p>';
ym_box_bottom();
return;
}
$list_data = array();
if ($is_option) {
$list_data[] = __('--Select--');
}
foreach ($lists->data as $data) {
$list_data[$data->id] = $data->name;
}
return $list_data;
}
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:18, 代码来源:mailchimp.php
示例4: invoice_tab
function invoice_tab()
{
$invoice = new ym_invoice();
global $wpdb;
if (ym_post('user_id')) {
$user_id = ym_post('user_id');
$op = ym_post('op', '');
$undo = ym_post('undo', FALSE);
$user = new YourMember_User($user_id);
if ($undo) {
$data = array('status' => YM_STATUS_PENDING, 'status_str' => __('Invoice Undo', 'ym'));
$user->update($data);
$user->save();
$packet = array('user_id' => $user_id, 'status' => FALSE);
do_action('ym_invoice_status_update', $packet);
} else {
if ($op == 'resend') {
$invoice->generate_invoice($user, $invoice);
echo '<div id="message" class="updated"><p>' . __('Inovice Resent', 'ym') . '</p></div>';
@ym_log_transaction(YM_USER_STATUS_UPDATE, __('Invoice Resent', 'ym'), $user_id);
} else {
if ($op == 'active') {
$data = array('status' => YM_STATUS_ACTIVE, 'status_str' => __('Invoice Paid', 'ym'), 'amount' => intval(ym_post('amount', 0)), 'last_pay_date' => time());
$current_status = $user->status;
if ($current_status == YM_STATUS_GRACE) {
$extend = $user->last_pay_date;
$packdata = ym_get_pack_by_id($user->pack_id);
$data['expire_date'] = $user->expiry_time($packdata['duration'], $packdata['duration_type'], $extend);
}
// check for force end
if (isset($packdata['force_end_date'])) {
$force_end_date = $packdata['force_end_date'];
if ($force_end_date > time()) {
// greater than now
@ym_log_transaction(YM_ACCESS_EXTENSION, 'Adjustment (Force End Date): ' . $force_end_date, $user_id);
$data['expire_date'] = $force_end_date;
}
}
$data['amount'] = preg_replace('/[^\\d\\.]/', '', $data['amount']);
$data['amount'] = number_format($data['amount'], 2, '.', '');
$user->update($data, TRUE);
$optional = ym_post('optional');
if (!$optional) {
$optional = __('Invoice Paid', 'ym');
}
@ym_log_transaction(YM_IPN, $optional, $user_id);
@ym_log_transaction(YM_PAYMENT, $data['amount'], $user_id);
@ym_log_transaction(YM_USER_STATUS_UPDATE, $data['status'] . ' - ' . $data['status_str'], $user_id);
echo '<div id="message" class="updated"><p>' . __('Updated and Activated the User', 'ym') . '</p></div>';
$packet = array('user_id' => $user_id, 'pack_id' => $user->pack_id, 'status' => TRUE);
$invoice = new ym_invoice();
$invoice->notify_user($packet);
do_action('ym_invoice_status_update', $packet);
}
}
}
}
echo '<div id="poststuff" class="wrap">';
ym_box_top(__('Invoice Management', 'ym'));
$search = ym_post('ym_invoice_search', false);
if ($search) {
$query = 'SELECT u.user_id AS ID FROM ' . $wpdb->usermeta . ' u
LEFT JOIN ' . $wpdb->usermeta . ' s ON s.user_id = u.user_id
LEFT JOIN ' . $wpdb->users . ' us ON us.id = u.user_id
WHERE
u.meta_key = \'ym_payment_type\' AND u.meta_value = \'invoice\'
AND s.meta_key = \'ym_status\'
AND (
us.user_login LIKE \'%' . $search . '%\'
OR
us.user_email LIKE \'%' . $search . '%\'
)
ORDER BY ID DESC
';
} else {
$query = 'SELECT u.user_id AS ID FROM ' . $wpdb->prefix . 'usermeta u
LEFT JOIN ' . $wpdb->prefix . 'usermeta s ON s.user_id = u.user_id
WHERE
u.meta_key = \'ym_payment_type\' AND u.meta_value = \'invoice\'
AND s.meta_key = \'ym_status\'
ORDER BY ID DESC
';
}
$results = $wpdb->get_results($query);
// quick search
if ($wpdb->num_rows != 0 || $search) {
// render search form
echo '
<form action="" method="post" style="float: right;">
<fieldset>
' . __('Username/Email Search:', 'ym') . '
<input type="text" name="ym_invoice_search" value="' . $search . '" />
<input type="submit" value="' . __('Search', 'ym') . '" />
</fieldset>
</form>';
}
echo '<p>' . __('Here you can update users based on the honouring of their invoice, you can use the Info to store field to store extra IPN style info such as a Cheque Number', 'ym') . '</p>';
if ($wpdb->num_rows == 0) {
echo ym_display_message(__('No Users are Invoice Pending', 'ym'), 'error');
} else {
//.........这里部分代码省略.........
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:101, 代码来源:ym_invoice.php
示例5: __
if ($emails) {
echo $ym_formgen->render_combo_from_array_row(__('Select Prior Email', 'ym_mailmanager'), 'email_id', $emails, '', __('Select a previously created email', 'ym_mailmanager'));
}
$days = array();
for ($x = 0; $x <= 365; $x++) {
$days[$x] = $x . ' Days';
}
echo $ym_formgen->render_combo_from_array_row(__('Select Delay', 'ym_mailmanager'), 'delay', $days, '', __('Select number of days between emails', 'ym_mailmanager'));
echo '
</table>
<p style="text-align: right;">
<input type="submit" value="' . __('Add Email to Series', 'ym_mailmanager') . '" />
</p>
</form>';
ym_box_bottom();
ym_box_top(__('Current Series Content', 'ym_mailmanager'));
echo '<p>' . __('Currently in this series', 'ym_mailmanager') . '</p>';
echo '<table class="form-table">
<tr><th>' . __('ID', 'ym_mailmanager') . '</th><th>' . __('Email', 'ym_mailmanager') . '</th><th>' . __('Delay', 'ym_mailmanager') . '</th><th>' . __('Preview', 'ym_mailmanager') . '</th><th>' . __('Action', 'ym_mailmanager') . '</th></tr>
';
$sql = 'SELECT eis.id AS id, e.id as series, name, delay_days, email_id FROM ' . $wpdb->prefix . 'mm_email_in_series eis LEFT JOIN ' . $wpdb->prefix . 'mm_email e ON e.id = eis.email_id WHERE series_id = ' . $series;
foreach ($wpdb->get_results($sql) as $row) {
echo '<tr>';
echo '<td>' . $row->id . '</td>';
echo '<td>' . $row->name . '</td>';
echo '<td>' . $row->delay_days . ' ' . __('Days') . '</td>';
echo '<td><a href="' . $mm->page_root . '&mm_action=preview&iframe_preview=' . $row->email_id . '" class="previewlink">' . __('Email Preview', 'ym_mailmanager') . '</a></td>';
echo '<td><a href="' . $mm->page_root . '&mm_action=series&series_action=assoc&series=' . $row->series . '&deleteid=' . $row->id . '" class="deletelink">' . __('Delete', 'ym_mailmanager') . '</a></td>';
echo '</tr>';
}
echo '
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:series.php
示例6: Subject
$ym_formgen->render_form_table_text_row(__('Reminder Subject (Recurring Subscriptions)', 'ym'), 'email_reminder_subject_recur', $ym_sys->email_reminder_subject_recur, __('Supports [site_name]', 'ym'));
$ym_formgen->render_form_table_wp_editor_row(__('Reminder Message (Recurring Subscriptions)', 'ym'), 'email_reminder_message_recur', $ym_sys->email_reminder_message_recur);
echo '<tr><td></td><td>
<p class="submit" style="float: left;">
' . __('Send Test Email to ', 'ym') . $target . '
<input type="submit" name="send_test_recur" value="' . __('Send', 'ym') . ' »" class="button-secondary" />
</p>
</td></tr>
';
echo '</table>
<p class="submit" style="text-align: right;">
<input type="submit" name="settings_update" value="' . __('Save Settings', 'ym') . ' »" class="button-primary" />
</p>
';
echo ym_end_box();
echo ym_box_top(__('Email Reminder for Drip Fed Content', 'ym'));
echo '<table class="form-table">';
$ym_formgen->render_form_table_radio_row(__('Enable Drip Feeding Reminder Email', 'ym'), 'email_drip_reminder_enable', $ym_sys->email_drip_reminder_enable);
$ym_formgen->render_form_table_text_row(__('Reminder Subject (New Dripped Content)', 'ym'), 'email_drip_subject', $ym_sys->email_drip_subject, __('Supports [site_name]', 'ym'));
$ym_formgen->render_form_table_wp_editor_row(__('Reminder Message (New Dripped Content)', 'ym'), 'email_drip_message', $ym_sys->email_drip_message);
echo '</table>
<p class="submit" style="text-align: right;">
<input type="submit" name="settings_update" value="' . __('Save Settings', 'ym') . ' »" class="button-primary" />
</p>
</form>
';
echo ym_end_box();
echo '</div>';
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-advanced-email.php
示例7: update_option
}
}
}
update_option('ym_packs', $ym_packs);
ym_display_message(__('Packs Updated', 'ym'));
// core
$ym_sys->login_redirect_url = $fields['login_redirect_url'];
$ym_sys->wpadmin_disable_redirect_url = $fields['wpadmin_disable_redirect_url'];
$ym_sys->logout_redirect_url = $fields['logout_redirect_url'];
update_option('ym_sys', $ym_sys);
ym_display_message(__('System Updated', 'ym'));
}
echo '<div class="wrap" id="poststuff">
<form action="" method="post">
';
echo ym_box_top(__('Redirects Control', 'ym'));
echo '<p>' . __('This page Collects together all Redirect options, that are duplicated/refined by Pack', 'ym') . '</p>';
echo '<table>
<tr>
<th style="width: 300px">' . __('Redirect For', 'ym') . '</th><td style="min-width: 700px;"></td>
</tr>
';
$last_pack_id = FALSE;
foreach ($fields as $key => $value) {
echo '
<tr>
';
echo ' ';
if (substr($key, 0, 8) == 'ym_pack_') {
list($pack_id, $item) = explode('-', substr($key, 8));
if (!$last_pack_id || $last_pack_id != $pack_id) {
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-advanced-redirects.php
示例8: ym_box_bottom
</select>
<input type="submit" class="button-secondary" name="del_btn" value="Go" style="font-size: 13px; width: auto;" />
</form>
';
} else {
echo '-';
}
echo '
</td>
</tr>
';
}
echo '</table>';
echo '</form>';
ym_box_bottom();
ym_box_top(__('Create a new Package Type', 'ym'));
echo '
<form action="" method="post">
<fieldset>
<table class="form-table">
<tr><td>
<label for="new_package_type">' . __('Create a new Package Type', 'ym') . '</label>
</td><td>
<input type="text" name="new_package_type" id="new_package_type" value="" />
</td><td>
<input type="submit" class="button-primary" value="' . __('Add New Package Type', 'ym') . '" />
</td></tr>
</table>
</fieldset>
</form>
';
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-membership-package_types.php
示例9: broadcast_create
function broadcast_create($email_id, $email_subject, $email_content, $recipient_list, $time)
{
define('STOP_BROADCAST', TRUE);
// burn baby burn
//send_newsletter($campaign_id, $from_field = FALSE, $subject, $contents, $flags, $contacts = FALSE, $get_contacts = FALSE, $suppressions = FALSE, $get_suppressions = FALSE) {
$flags = array('clicktrack', 'openrate');
$test = explode('_', $recipient_list);
if ($test[0] == 'wordpress') {
// everyone
$key = 'everyone';
} else {
if ($test[1] == 'ac') {
$key = 'segment_account_type';
} else {
if ($test[1] == 'pack') {
$key = 'segment_pack_id';
} else {
if ($test[1] == 'all') {
$key = 'segment_all';
} else {
echo '<div id="message" class="error"><p>An error occured with determining who to send to</p></div>';
return;
}
}
}
}
if ($key != 'everyone') {
$paras = array('customs' => array(array('name' => $key, 'content' => array('EQUALS' => $recipient_list))));
} else {
$paras = array('campaigns' => array($this->options->campaign_id));
}
$from_email_id = $this->from_id();
if (!$from_email_id) {
echo '<div id="message" class="error"><p>An error occured with determining a Send From ID</p></div>';
return;
}
$contents = array('plain' => strip_tags($email_content), 'html' => $email_content);
if ($time < time()) {
// now
$r = $this->getresponse->send_newsletter($this->options->campaign_id, $from_email_id, $email_subject, $contents, $flags, FALSE, $paras, FALSE, FALSE);
echo '<div id="message" class="';
if ($r) {
echo 'updated"><p>Message was sent successfully</p></div>';
} else {
echo 'error"><p>An Error Occured</p></div>';
}
} else {
$email_json = array('campaign_id' => $this->options->campaign_id, 'from_email_id' => $from_email_id, 'email_subject' => $email_subject, 'contents' => $contents, 'flags' => $flags, 'paras' => $paras);
$email_json = json_encode($email_json);
// scheduler
global $wpdb;
if (!$email_id) {
$sql = 'INSERT INTO ' . $wpdb->prefix . 'mm_email(name, subject, body) VALUES (\'broadcast_' . $email_subject . '\', \'' . $email_subject . '\', \'' . $email_json . '\')';
$wpdb->query($sql);
$email_id = $wpdb->insert_id;
} else {
// build json packet
$sql = 'UPDATE ' . $wpdb->prefix . 'mm_email SET subject = \'json_encode_for_schedule\', body = \'' . $email_json . '\' WHERE id = ' . $email_id;
$wpdb->query($sql);
}
$args = array($email_id, $recipient_list);
wp_schedule_single_event($time, 'mm_scheduled_email', $args);
ym_box_top('Broadcast');
echo 'Scheduled for ' . date('r', $time) . ' it is currently ' . date('r', time());
ym_box_bottom();
}
return;
}
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:68, 代码来源:getresponse.php
示例10: foreach
echo '<ul id="ym_graph_nav">';
foreach ($graphs_to_render as $graph) {
echo '<li><a href="#' . $graph[0] . '">' . $graph[1] . '</a></li>';
}
echo '</ul>';
echo '<div id="ym_graph_holder" class="aligncenter">';
ym_render_graphs($graphs_to_render);
echo '</div>';
ym_box_bottom();
echo '</div>';
echo '<div class="ym_two_third alignleft">';
ym_box_top(__('Posts Purchased', 'ym'), 300);
ym_render_posts_purchased(false, true);
ym_box_bottom();
echo '<div style="clear:both;"> </div>';
ym_box_top(__('Recent History', 'ym'), 300);
if ($limit = ym_post('ym_home_timeline_log_limit', FALSE)) {
update_option('ym_home_timeline_log_limit', ym_post('ym_home_timeline_log_limit'));
} else {
$limit = get_option('ym_home_timeline_log_limit', 20);
}
ym_show_timeline_log_home($limit);
echo '
<form action="" method="post" class="alignright"><fieldset>
<input type="text" name="ym_home_timeline_log_limit" value="' . $limit . '" size="4" /> <input type="submit" value="' . __('Change Limit', 'ym') . '" />
</fieldset></form>
';
ym_box_bottom();
echo '</div>';
echo '<div class="ym_third alignright">';
do_action('ym_nm_news_box');
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-dashboard.php
示例11: __
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_email_row(__('Email Address', 'ym'), 'cron_notify_email', $ym_sys->cron_notify_email, __('Output from YM Cron Tasks can be Forwarded to a Email Address for Logging Needs', 'ym'));
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym'), 'cron_notify_subject', $ym_sys->cron_notify_subject, __('Choose the Subject, useful for Mail Sorting', 'ym'));
echo '</table>';
echo ym_end_box();
?>
<p class="submit" style="text-align: right;">
<input type="submit" name="settings_update" value="<?php
_e('Save Settings', 'ym');
?>
»" class="button-primary" style="float: right;" />
</p>
</form>
<?php
$schedules = wp_get_schedules();
echo ym_box_top(__('Cron Jobs', 'ym'));
echo '<table class="form-table">';
echo '<thead><tr>
<th>' . __('Task', 'ym') . '</th>
<th style="width: 60px;">' . __('Exists', 'ym') . '</th>
<th style="width: 60px;">' . __('Enabled', 'ym') . '</th>
<th style="width: 75px;">' . __('Schedule', 'ym') . '</th>
<th style="width: 75px;">' . __('Next Scheduled Run', 'ym') . '</th>
<th style="width: 75px;">' . __('Change Schedule', 'ym') . '</th>
<th style="width: 90px;">' . __('Run Now', 'ym') . '</th>
</tr></thead>';
echo '<tbody>';
$string = __('Never', 'ym');
if ($ym_sys->enable_manual_cron) {
$string = __('Manual', 'ym');
}
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-advanced-cron.php
示例12: __
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row(__('Enable This Message', 'ym_mailmanager'), 'subscription_enabled', $data->subscription_enabled);
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym_mailmanager'), 'subscription_subject', $data->subscription_subject, __('Subject of Message', 'ym_mailmanager'));
$ym_formgen->render_form_table_wp_editor_row(__('Email Message', 'ym_mailmanager'), 'subscription_message', $data->subscription_message);
echo '</table>';
ym_box_bottom();
echo '</div><div id="post">';
ym_box_top(__('Post Purchase Complete', 'ym_mailmanager'));
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row(__('Enable This Message', 'ym_mailmanager'), 'post_enabled', $data->post_enabled);
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym_mailmanager'), 'post_subject', $data->post_subject, __('Subject of Message', 'ym_mailmanager'));
$ym_formgen->render_form_table_wp_editor_row(__('Email Message', 'ym_mailmanager'), 'post_message', $data->post_message);
echo '</table>';
ym_box_bottom();
echo '</div><div id="bundle">';
ym_box_top(__('Bundle Purchase Complete', 'ym_mailmanager'));
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row(__('Enable This Message', 'ym_mailmanager'), 'bundle_enabled', $data->bundle_enabled);
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym_mailmanager'), 'bundle_subject', $data->bundle_subject, __('Subject of Message', 'ym_mailmanager'));
$ym_formgen->render_form_table_wp_editor_row(__('Email Message', 'ym_mailmanager'), 'bundle_message', $data->bundle_message);
echo '</table>';
ym_box_bottom();
echo '</div>
<p class="submit" style="text-align: right;"><input type="submit" name="submit" value="' . __('Update All Messages', 'ym_mailmanager') . '" /></p>
</form>
</div>';
echo '
<script type="text/javascript">
jQuery(document).ready(function() {
setTimeout(\'tabulate()\', 500);
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:invoice.php
示例13: mailmanager_list_stats
function mailmanager_list_stats()
{
ym_box_top('List Stats');
echo '<ul>';
foreach (mailmanager_get_recipients() as $value => $text) {
echo '<li>';
echo $text;
echo ' - ';
echo mailmanager_get_size_of_list($value);
echo ' ' . __('Subscribers', 'ym_mailmanager');
echo '</li>';
}
echo '</ul>';
ym_box_bottom();
}
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:15, 代码来源:mm_includes.php
示例14: __
$ym_formgen->render_form_table_text_row(__('What to show next to required custom fields?', 'ym'), 'required_custom_field_symbol', $ym_sys->required_custom_field_symbol, __('Most commonly "* Required"', 'ym'));
?>
</table>
<p class="submit" style="text-align: right;">
<input type="submit" class="button-primary" name="settings_update" value="<?php
_e('Save Settings', 'ym');
?>
»" />
</p>
<?php
echo ym_end_box();
echo '</div>';
echo '<div class="wrap" id="poststuff">
';
echo ym_box_top(__('SSL Control', 'ym'));
echo '<p>' . __('This control is redudant if your entire site runs over SSL', 'ym') . '</p>';
$url = get_option('siteurl');
if (substr($url, 0, 5) == 'https') {
echo '<p>' . __('And you are running in SSL Only', 'ym') . '</p>';
} else {
echo '<table class="form-table">';
$ym_formgen->render_form_table_radio_row(__('Enable SSL Only WordPress Registration', 'ym'), 'register_https_only', $ym_sys->register_https_only);
//$ym_formgen->render_form_table_radio_row(__('Escape SSL When Not Registration', 'ym'), 'register_https_escape', $ym_sys->register_https_escape);
echo '</table>';
echo '<p>' . __('You can enable Registration to be done over SSL, in the case of Registration Flow Pages, or Pages that have the [ym_register] shortcode on, in order to avoid a meta Refresh, this control exists', 'ym') . '</p>';
echo '<table class="form-table">';
$ym_formgen->render_form_table_text_row(__('Comma Separated List of Page/Post IDs', 'ym'), 'register_https_pages', $ym_sys->register_https_pages);
?>
</table>
<p class="submit" style="text-align: right;">
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-advanced-registration.php
示例15: series_precontent
function series_precontent()
{
ym_box_top('Message');
echo '<p>' . __('Series are being kept synced with') . ' ' . $this->name . '</p>';
echo '<p>' . __('The ' . $this->name . ' Associated Lists can only be sent to via') . ' ' . $this->name . ' A series link exists only for Sync Purposes</p>';
ym_box_bottom();
add_filter('mailmanager_adjust_recipients', array($this, 'filter_lists_remove'), 10, 1);
}
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:8, 代码来源:campaign_monitor.php
示例16: do_action
<?php
do_action('mailmanager_view_emails');
if (defined('STOP_VIEW_EMAILS')) {
return;
}
ym_box_top(__('Email List', 'ym_mailmanager'));
echo '<table class="form-table">';
echo '<tr><th>' . __('Email Name', 'ym_mailmanager') . '</th><th>' . __('Email Subject', 'ym_mailmanager') . '</th><th>' . __('Preview', 'ym_mailmanager') . '</th><th>' . __('Edit', 'ym_mailmanager') . '</th></tr>';
$emails = array();
$sql = 'SELECT * FROM ' . $wpdb->prefix . 'mm_email ORDER BY name';
foreach ($wpdb->get_results($sql) as $email) {
$emails[] = $email;
}
$emails = apply_filters('mailmanager_view_emails_filter', $emails);
foreach ($emails as $email) {
echo '<tr>';
echo '<td>' . $email->name . '</td>';
echo '<td>' . $email->subject . '</td>';
echo '<td><a href="' . $mm->page_root . '&mm_action=preview&iframe_preview=' . $email->id . '" class="previewlink">' . __('Email Preview', 'ym_mailmanager') . '</a></td>';
echo '<td><a href="' . $mm->page_root . '&mm_action=create&email_id=' . $email->id . '">' . __('Edit', 'ym_mailmanager') . '</a></td>';
echo '</tr>';
}
echo '</table>';
ym_box_bottom();
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:25, 代码来源:emails.php
示例17: array
// add_filter('ym_beta_db_check_target', 'ym_dev_ym_beta_db_check_target');
// ym_database_updater();
$file = YM_PLUGIN_DIR_PATH . 'sql/sql_update_' . $_POST['db_step'] . '.php';
if (is_file($file)) {
$queries = array();
include $file;
foreach ($queries as $query) {
$wpdb->query($query);
}
echo '<div class="update-nag" style="display: block;">' . sprintf(__('Updated the Your Members database to Version %s', 'ym'), $_POST['db_step']) . '</div>';
}
}
}
if (@$_POST) {
ym_box_bottom();
ym_box_top('Reset');
}
echo '<p style="float: right;"><a href="' . YM_ADMIN_URL . '&ym_page=ym-dev-tools&ym_dev=1">Disable Tools</a></p>';
echo '
<form action="" method="post">
<input type="submit" name="reset_sys" value="Reset YM SYS" />
</form>
<form action="" method="post">
<input type="submit" name="reset_res" value="Reset YM RES" />
</form>
<form action="" method="post">
<input type="submit" name="reset_all" value="Reset YM" />
</form>
<br /><br />
<form action="" method="post">
<input type="submit" name="fidget_patch" value="Convert StdClass ym_user to YM Object with Scalar Uncode" />
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:31, 代码来源:ym-dev-tools.php
示例18: settings
function settings(&$break)
{
global $ym_formgen, $mm;
$break = TRUE;
if ($_POST) {
$this->options->canspam = ym_post('canspam');
$this->options->broadcast_header = ym_post('broadcast_header');
$this->options->broadcast_footer = ym_post('broadcast_footer');
$this->options->generic_header = ym_post('generic_header');
$this->options->generic_footer = ym_post('generic_footer');
$this->options->postal_address = ym_post('postal_address');
$this->options->unsubscribe_page = ym_post('unsubscribe_page');
ym_box_top('Mail Manager Settings');
if (ym_post('canspam') == 1) {
if (!ym_post('postal_address')) {
$this->options->canspam = 0;
echo '<p>You must provide you Postal Address for CAN-SPAM Act (2003) Compliance</p>';
}
if (FALSE === strpos($this->options->broadcast_footer, '[unsubscribe]')) {
$this->options->canspam = 0;
echo '<p>You must include the unsubscribe shortcode in your Broadcast Footer for CAN-SPAM Act (2003) Compliance</p>';
}
if (FALSE === strpos($this->options->generic_footer, '[unsubscribe]')) {
$this->options->canspam = 0;
echo '<p>You must include the unsubscribe shortcode in your Generic Footer for CAN-SPAM Act (2003) Compliance</p>';
}
if (FALSE === strpos($this->options->broadcast_footer, '[address]')) {
$this->options->canspam = 0;
echo '<p>You must include the address shortcode in your Broadcast Footer for CAN-SPAM Act (2003) Compliance</p>';
}
if (FALSE === strpos($this->options->generic_footer, '[address]')) {
$this->options->canspam = 0;
echo '<p>You must include the address shortcode in your Generic Footer for CAN-SPAM Act (2003) Compliance</p>';
}
}
$this->saveoptions();
echo '<p>Settings were updated</p>';
ym_box_bottom();
echo '<meta http-equiv="refresh" content="5" />';
return;
}
echo '<form action="" method="post">';
ym_box_top('CAN-SPAM Compliant');
echo '<p>This option allows you to turn compliancy with the <a href="http://en.wikipedia.org/wiki/CAN-SPAM_Act_of_2003">CAN-SPAM Act of 2003</a> on or off.
<!--
If it is on when somebody signs up to an email series then it will first send a confirmation email to the registrant to click before it will add them to the list. When this is off it will just sign them up.
-->
</p>';
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row('CAN-SPAM Act (2003) Compliant?', 'canspam', $this->options->canspam);
echo '</table>
<p class="submit" style="text-align: right;">
<input type="submit" name="submit" value="' . __('Save Settings', 'ym') . ' »" />
</p>
';
ym_box_bottom();
ym_box_top('Email Templates', TRUE);
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_textarea_row('Broadcast Email Header', 'broadcast_header', $this->options->broadcast_header, 'This will be attached to the start of any email messages that are broadcasts');
echo $ym_formgen->render_form_table_textarea_row('Broadcast Email Footer', 'broadcast_footer', $this->options->broadcast_footer, 'This will be attached to the end of any email messages that are broadcasts. You can use the following hooks:<br />
[unsubscribe] = The unsubscribe link (required for CAN-SPAM compliance)<br />
[address] = The address you entered on this page (required for CAN-SPAM compliance]');
echo $ym_formgen->render_form_table_textarea_row('Generic Email Header', 'generic_header', $this->options->generic_header, 'This will be attached to the start of any non broadcast emails');
echo $ym_formgen->render_form_table_textarea_row('Generic Email Footer', 'generic_footer', $this->options->generic_footer, 'This will be attached to the end of any non broadcast emails. You can use the following hooks:<br />
[unsubscribe] = The unsubscribe link (required for CAN-SPAM compliance)<br />
[address] = The address you entered on this page (required for CAN-SPAM compliance]');
echo $ym_formgen->render_form_table_textarea_row('Postal Address', 'postal_address', $this->options->postal_address, 'A postal address which can be inserted into your emails if you use the [address] hook (required for CAN-SPAM compliance)');
echo '</table>';
echo '
<p class="submit" style="text-align: right;">
<input type="submit" name="submit" value="' . __('Save Settings', 'ym') . ' »" />
</p>
';
ym_box_bottom();
ym_box_top('Un/Subscribe');
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_text_row('Series Unsubscribe Page', 'unsubscribe_page', $this->options->unsubscribe_page, 'Users will be redirect here when they unsubscribe from a series');
echo '
</table>
<p class="submit" style="text-align: right;">
<input type="submit" name="submit" value="' . __('Save Settings', 'ym') . ' »" />
</p>
';
ym_box_bottom();
echo '</form>';
}
开发者ID:AdultStack, 项目名称:ap-members, 代码行数:86, 代码来源:wp_mail.php
示例19: yss_s3_distribution
krishnaik06/Machine-Learning-in-90-days
阅读:1062| 2022-08-18
joaomh/curso-de-matlab
阅读:1149| 2022-08-17
在美元的英文“dollar”里面明明没有字母“s”,为什么美元的符号($)是一条竖线穿过字
阅读:1063| 2022-11-06
问题来源:http://www.cnblogs.com/del/archive/2009/03/09/1284244.html#1472084{函数
阅读:1317| 2022-07-18
rugk/mastodon-simplified-federation: Simplifies following and interacting with r
阅读:1081| 2022-08-17
Zulip is an open-source team collaboration tool. Zulip Server versions 2.1.0 abo
阅读:647| 2022-07-29
Gabriella439/Haskell-Optparse-Generic-Library: Auto-generate a command-line pars
阅读:958| 2022-08-15
Tangshitao/Dense-Scene-Matching: Learning Camera Localization via Dense Scene Ma
阅读:763| 2022-08-16
长沙城南,有一所以“环保”为名的学校,从1979年创立以来,四易归属、五更其名。 这
阅读:757| 2022-11-06
//校验手机号 function IsMobileNumber( num:string ):boolean; begin
阅读:480| 2022-07-18
请发表评论