• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP event_date_display函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中event_date_display函数的典型用法代码示例。如果您正苦于以下问题:PHP event_date_display函数的具体用法?PHP event_date_display怎么用?PHP event_date_display使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了event_date_display函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: enter_attendee_payments


//.........这里部分代码省略.........
    $city = $attendee->city;
    $state = $attendee->state;
    $zip = $attendee->zip;
    $email = $attendee->email;
    $phone = $attendee->phone;
    $date = $attendee->date;
    $payment_status = $attendee->payment_status;
    $txn_type = $attendee->txn_type;
    $txn_id = $attendee->txn_id;
    $quantity = $attendee->quantity;
    $payment_date = $attendee->payment_date;
    $event_id = $attendee->event_id;
    $coupon_code = $attendee->coupon_code;
    $pre_approve = $attendee->pre_approve;
    $start_date = $attendee->start_date;
    $event_time = $attendee->event_time;
    $amount_pd = $attendee->amount_pd;
    $total_cost = $attendee->total_cost;
    $orig_price = $attendee->orig_price;
    $final_price = $attendee->final_price;
    $SQL = "SELECT * FROM " . EVENTS_DETAIL_TABLE . " WHERE id='%d'";
    $event = $wpdb->get_row($wpdb->prepare($SQL, $event_id));
    if ($event === FALSE) {
        echo '<div id="message" class="error"><p><strong>' . __('An error occured. The event data for this registration could not be found.', 'event_espresso') . '</strong></p></div>';
        exit;
    }
    $event_id = $event->id;
    $event_name = $event->event_name;
    $event_desc = $event->event_desc;
    $event_description = $event->event_desc;
    $event_identifier = $event->event_identifier;
    $cost = isset($event->event_cost) ? $event->event_cost : 0;
    $active = $event->is_active;
    $event_date = event_date_display($start_date . ' ' . $event_time, get_option('date_format') . ' g:i a');
    //	$total_paid = espresso_attendee_price(array('registration_id'=>$_REQUEST['registration_id'], 'session_total'=>true));
    // display success messages
    if (!empty($notifications['success'])) {
        $success_msg = implode($notifications['success'], '<br />');
        ?>
			
<div id="message" class="updated fade">
<p>
	<strong><?php 
        echo $success_msg;
        ?>
</strong>
</p>
</div>

	<?php 
    }
    // display error messages
    if (!empty($notifications['error'])) {
        $error_msg = implode($notifications['error'], '<br />');
        ?>
			
<div id="message" class="error">
<p>
	<strong><?php 
        echo $error_msg;
        ?>
</strong>
</p>
</div>

	<?php 
开发者ID:HandsomeDogStudio,项目名称:peanutbutterplan,代码行数:67,代码来源:enter_attendee_payments.php


示例2: event_process_payments


//.........这里部分代码省略.........
            $event_description = $event->event_desc;
            $event_identifier = $event->event_identifier;
            $event_cost = $event->event_cost;
            $active = $event->is_active;
            $event_status = $event->event_status;
            $status = array();
            $status = event_espresso_get_is_active($event_id);
            $start_date = $event->start_date;
            $end_date = $event->end_date;
            $reg_limit = $event->reg_limit;
            ?>
          	<tr>
            <td>
            <?php 
            echo $event_status == 'D' ? '<input name="checkbox[' . $event_id . ']" type="checkbox"  title="Permanently delete ' . $event_name . '" />' : '';
            ?>
            
            </td>
            <td><?php 
            echo $event_id;
            ?>
</td>
            <td><a href="admin.php?page=events&amp;event_id=<?php 
            echo $event_id;
            ?>
&amp;event_admin_reports=list_attendee_payments" title="<?php 
            _e('View Attendees', 'event_espresso');
            ?>
"><?php 
            echo stripslashes($event_name);
            ?>
</a></td>
            <td><?php 
            echo event_date_display($start_date);
            ?>
</td>
            <td><?php 
            echo $status['display'];
            ?>
</td>
            <td><?php 
            echo get_number_of_attendees_reg_limit($event_id, 'num_attendees_slash_reg_limit');
            ?>
</td>
            <td><a href="admin.php?page=events&amp;event_id=<?php 
            echo $event_id;
            ?>
&amp;event_admin_reports=list_attendee_payments" title="<?php 
            _e('View Attendees', 'event_espresso');
            ?>
"><img src="<?php 
            echo EVENT_ESPRESSO_PLUGINFULLURL;
            ?>
images/icons/group.png" width="16" height="16" alt="<?php 
            _e('View Attendees', 'event_espresso');
            ?>
" /></a> | <a href="admin.php?page=events&amp;action=edit&amp;event_id=<?php 
            echo $event_id;
            ?>
" title="<?php 
            _e('Edit Event', 'event_espresso');
            ?>
"><img src="<?php 
            echo EVENT_ESPRESSO_PLUGINFULLURL;
            ?>
images/icons/calendar_edit.png" width="16" height="16" alt="<?php 
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:67,代码来源:process_payments.php


示例3: edit_event

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">
//.........这里部分代码省略.........
开发者ID:HandsomeDogStudio,项目名称:peanutbutterplan,代码行数:101,代码来源:edit_event.php


示例4: _e

		<tr>
			<td><?php 
_e('Primary Registrant:', 'event_espresso');
?>
</td>
			<td><?php 
echo stripslashes_deep($fname . ' ' . $lname);
?>
</td>
		</tr>
		<tr>
			<?php 
echo $txn_type == '' ? '' : '<td>' . __('Payment Type:', 'event_espresso') . '</td> <td>' . stripslashes_deep(espresso_payment_type($txn_type)) . '</td>';
?>
 <?php 
echo $payment_date == '' || $payment_status == 'Pending' && (espresso_payment_type($txn_type) == 'Invoice' || espresso_payment_type($txn_type) == 'Offline payment') ? '' : '<tr><td>' . __('Payment Date:', 'event_espresso') . '</td> <td>' . event_date_display($payment_date) . '</td></tr>';
?>
		</tr>
		<tr>
			<td><?php 
_e('Amount Paid/Owed:', 'event_espresso');
?>
</td>
			<td><?php 
echo $org_options['currency_symbol'];
echo $total_cost;
?>
				<?php 
event_espresso_paid_status_icon($payment_status);
?>
			</td>
开发者ID:HandsomeDogStudio,项目名称:peanutbutterplan,代码行数:31,代码来源:payment_overview.php


示例5: event_espresso_my_events


//.........这里部分代码省略.........
            $event_url = home_url() . "/?page_id=" . $org_options['event_page_id'] . "&regevent_action=register&event_id=" . $event_id;
            $event_link = '<a class="row-title" href="' . $event_url . '">' . stripslashes_deep($event->event_name) . '</a>';
            //Build the payment link
            $payment_url = home_url() . "/?page_id=" . $org_options['return_url'] . "&amp;registration_id=" . $registration_id;
            //$payment_link = '<a href="' . $payment_url . '" title="'.__('View Your Payment Details').'">' . event_espresso_paid_status_icon( $payment_status ) . '</a>';
            //If the custom ticket is available, load the template file
            if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "/ticketing/template.php")) {
                if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "/ticketing/functions.php")) {
                    include_once EVENT_ESPRESSO_UPLOAD_DIR . "/ticketing/functions.php";
                    $qr_code = espresso_qr_code(array('attendee_id' => $attendee_id, 'event_name' => stripslashes_deep($event_name), 'attendee_first' => $fname, 'attendee_last' => $lname, 'registration_id' => $registration_id, 'event_code' => $event_code, 'ticket_type' => $ticket_type, 'event_time' => $event_time, 'amount_pd' => $amount_pd));
                }
                //Build the ticket link
                $ticket_url = home_url() . "/?download_ticket=true&amp;id=" . $attendee_id . "&amp;registration_id=" . $registration_id;
                $ticket_link = '<strong><a href="' . $ticket_url . '">' . __('Download Ticket Now!') . '</a></strong>';
            }
            ?>
	<tr>
	<td><input name="checkbox[<?php 
            echo $attendee_id;
            ?>
]" type="checkbox"  title="Cancel registration for <?php 
            echo $event_name;
            ?>
"></td>
			  <td class="post-title page-title column-title"><strong><?php 
            echo $event_link;
            ?>
</strong> </td>
              <td class="post-title page-title column-title"><?php 
            echo $ticket_type;
            ?>
</td>
			  <td class="date column-date"><?php 
            echo event_date_display($start_date);
            ?>
</td>
              <td class="date column-date"><?php 
            echo $start_time;
            ?>
</td>
              <td class="date column-date"><?php 
            echo '<a target="_blank" href="' . $payment_url . '" title="' . __('View Your Payment Details') . '">';
            event_espresso_paid_status_icon($payment_status) . '</a>';
            ?>
</td>
              <td class="date column-date"><?php 
            echo $org_options['currency_symbol'];
            echo $amount_pd;
            ?>
</td>
              <?php 
            echo $ticketing_installed == true ? '<td>' . $ticket_link . '</td>' : '';
            ?>
			  </tr>
              <div id="event_info_<?php 
            echo $attendee_id;
            ?>
" style="display:none">
              <?php 
            _e('<h2>Event Information</h2>', 'event_espresso');
            ?>
				<ul>
                <li><h3 class="h3_event_title" id="h3_event_title-<?php 
            echo $event_id;
            ?>
"><?php 
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:67,代码来源:my_events_page.php


示例6: espresso_replace_ticket_shortcodes

function espresso_replace_ticket_shortcodes($content, $data)
{
    global $wpdb, $org_options;
    $SearchValues = array("[att_id]", "[qr_code]", "[gravatar]", "[event_id]", "[event_identifier]", "[registration_id]", "[registration_date]", "[fname]", "[lname]", "[event_name]", "[description]", "[cost]", "[ticket_type]", "[ticket_qty]", "[company]", "[co_add1]", "[co_add2]", "[co_city]", "[co_state]", "[co_zip]", "[start_date]", "[start_time]", "[end_date]", "[end_time]", "[ticket_content]", "[ticket_logo_url]", "[ticket_logo_image]", "[venue_title]", "[venue_address]", "[venue_address2]", "[venue_city]", "[venue_state]", "[venue_zip]", "[venue_country]", "[venue_phone]", "[venue_description]", "[venue_website]", "[venue_image]", "[google_map_image]", "[google_map_link]", "[seatingchart_tag]");
    $ReplaceValues = array($data->attendee->id, $data->qr_code, $data->gravatar, $data->attendee->event_id, $data->event->event_identifier, $data->attendee->registration_id, event_date_display($data->attendee->registration_date), stripslashes_deep($data->attendee->fname), stripslashes_deep($data->attendee->lname), stripslashes_deep($data->event->event_name), stripslashes_deep($data->event->event_desc), $org_options['currency_symbol'] . ' ' . $data->attendee->final_price, $data->attendee->price_option, $data->attendee->quantity, stripslashes_deep($org_options['organization']), $org_options['organization_street1'], $org_options['organization_street2'], $org_options['organization_city'], $org_options['organization_state'], $org_options['organization_zip'], event_date_display($data->attendee->start_date), event_date_display($data->attendee->event_time, get_option('time_format')), event_date_display($data->attendee->end_date), event_date_display($data->attendee->end_time, get_option('time_format')), espresso_format_content($data->event->ticket_content), $data->event->ticket_logo_url, $data->event->ticket_logo_image, $data->event->venue_name, $data->event->address, $data->event->address2, $data->event->city, $data->event->state, $data->event->zip, $data->event->country, isset($data->event->venue_meta['phone']) && !empty($data->event->venue_meta['phone']) ? $data->event->venue_meta['phone'] : '', isset($data->event->venue_meta['description']) && !empty($data->event->venue_meta['description']) ? espresso_format_content($data->event->venue_meta['description']) : '', isset($data->event->venue_meta['website']) && !empty($data->event->venue_meta['website']) ? $data->event->venue_meta['website'] : '', isset($data->event->venue_meta['image']) && !empty($data->event->venue_meta['image']) ? $data->event->venue_meta['image'] : '', $data->event->google_map_image, $data->event->google_map_link, isset($data->attendee->seatingchart_tag) && !empty($data->attendee->seatingchart_tag) ? $data->attendee->seatingchart_tag : '');
    //Get the questions and answers
    $questions = $wpdb->get_results("select qst.question as question, ans.answer as answer from " . EVENTS_ANSWER_TABLE . " ans inner join " . EVENTS_QUESTION_TABLE . " qst on ans.question_id = qst.id where ans.attendee_id = " . $data->attendee->id, ARRAY_A);
    //echo '<p>'.print_r($questions).'</p>';
    if ($wpdb->num_rows > 0 && $wpdb->last_result[0]->question != NULL) {
        foreach ($questions as $q) {
            $k = $q['question'];
            $v = $q['answer'];
            //Output the question
            array_push($SearchValues, "[" . 'question_' . $k . "]");
            array_push($ReplaceValues, $k);
            //Output the answer
            array_push($SearchValues, "[" . 'answer_' . $k . "]");
            array_push($ReplaceValues, $v);
        }
    }
    //Get the event meta
    //echo '<p>'.print_r($data->event->event_meta).'</p>';
    if (!empty($data->event->event_meta)) {
        foreach ($data->event->event_meta as $k => $v) {
            array_push($SearchValues, "[" . $k . "]");
            array_push($ReplaceValues, stripslashes_deep($v));
        }
    }
    return str_replace($SearchValues, $ReplaceValues, $content);
}
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:30,代码来源:functions.php


示例7: event_espresso_send_attendee_registration_approval_pending

 function event_espresso_send_attendee_registration_approval_pending($registration_id)
 {
     global $org_options, $wpdb;
     do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, '');
     //Get the event information
     $events = $wpdb->get_results("SELECT ed.* FROM " . EVENTS_DETAIL_TABLE . " ed\n\t\t\t\t\t\tJOIN " . EVENTS_ATTENDEE_TABLE . " ea\n\t\t\t\t\t\tON ed.id = ea.event_id\n\t\t\t\t\t\tWHERE ea.registration_id='" . $registration_id . "'");
     foreach ($events as $event) {
         $event_id = $event->id;
         $event_name = stripslashes_deep($event->event_name);
         $event_desc = stripslashes_deep($event->event_desc);
         $display_desc = $event->display_desc;
         $event_identifier = $event->event_identifier;
         $reg_limit = $event->reg_limit;
         $active = $event->is_active;
         $send_mail = $event->send_mail;
         $conf_mail = $event->conf_mail;
         $email_id = $event->email_id;
         $alt_email = $event->alt_email;
         $start_date = event_date_display($event->start_date);
         $end_date = $event->end_date;
         $virtual_url = $event->virtual_url;
         $virtual_phone = $event->virtual_phone;
         $event_address = $event->address;
         $event_address2 = $event->address2;
         $event_city = $event->city;
         $event_state = $event->state;
         $event_zip = $event->zip;
         $event_country = $event->country;
         $location = ($event_address != '' ? $event_address : '') . ($event_address2 != '' ? '<br />' . $event_address2 : '') . ($event_city != '' ? '<br />' . $event_city : '') . ($event_state != '' ? ', ' . $event_state : '') . ($event_zip != '' ? '<br />' . $event_zip : '') . ($event_country != '' ? '<br />' . $event_country : '');
         $location_phone = $event->phone;
         $require_pre_approval = $event->require_pre_approval;
         $google_map_link = espresso_google_map_link(array('address' => $event_address, 'city' => $event_city, 'state' => $event_state, 'zip' => $event_zip, 'country' => $event_country));
     }
     //Build links
     $event_url = espresso_reg_url($event_id);
     $event_link = '<a href="' . $event_url . '">' . $event_name . '</a>';
     $sql = "SELECT * FROM " . EVENTS_ATTENDEE_TABLE;
     if ($registration_id != '') {
         $sql .= " WHERE registration_id = '" . $registration_id . "' ";
     } elseif ($attendee_id != '') {
         $sql .= " WHERE id = '" . $attendee_id . "' ";
     } else {
         _e('No ID Supplied', 'event_espresso');
     }
     $sql .= " ORDER BY id ";
     $sql .= " LIMIT 0,1 ";
     //Get the first attendees details
     $attendees = $wpdb->get_results($sql);
     //global $attendee_id;
     foreach ($attendees as $attendee) {
         $attendee_id = $attendee->id;
         $attendee_email = $attendee->email;
         $lname = $attendee->lname;
         $fname = $attendee->fname;
         $address = $attendee->address;
         $address2 = $attendee->address2;
         $city = $attendee->city;
         $state = $attendee->state;
         $zip = $attendee->zip;
         $payment_status = $attendee->payment_status;
         $txn_type = $attendee->txn_type;
         $amount_pd = $attendee->amount_pd;
         $event_cost = $attendee->amount_pd;
         $payment_date = event_date_display($attendee->payment_date);
         $phone = $attendee->phone;
         $event_time = event_date_display($attendee->event_time, get_option('time_format'));
         $end_time = event_date_display($attendee->end_time, get_option('time_format'));
         $date = event_date_display($attendee->date);
         $pre_approve = $attendee->pre_approve;
     }
     $admin_email = $alt_email == '' ? $org_options['contact_email'] : $alt_email . ',' . $org_options['contact_email'];
     if (!empty($admin_email)) {
         $subject = "New attendee registration approval pending";
         $body = "\nEvent title: {$event_name}\n<br/>\nAttendee name: {$fname}&nbsp;{$lname}\n<br/>\nThank You.\n";
         $email_params = array('send_to' => $admin_email, 'email_subject' => __($subject, 'event_espresso'), 'email_body' => $body);
         event_espresso_send_email($email_params);
     }
     if (!empty($attendee_email)) {
         $subject = "Event registration pending";
         $body = "\nEvent title: {$event_name}\n<br/>\nAttendee name: {$fname}&nbsp;{$lname}\n<br/>\nYour registration is pending for approval from event admin. You will receive an email with payment info when admin approves your registration.\n<br/><br/>\nThank You.\n";
         $email_params = array('send_to' => $attendee_email, 'email_subject' => __($subject, 'event_espresso'), 'email_body' => $body);
         event_espresso_send_email($email_params);
     }
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:84,代码来源:email.php


示例8: espresso_export_stuff


//.........这里部分代码省略.........
                         $sql .= ", a.state, a.zip, a.phone, a.payment, a.date, a.payment_status, a.txn_type, a.txn_id";
                         $sql .= ", a.amount_pd, a.quantity, a.coupon_code, a.checked_in, a.checked_in_quantity";
                         $sql .= ", a.payment_date, a.event_time, a.price_option";
                         $sql .= " FROM " . EVENTS_ATTENDEE_TABLE . " a ";
                         $sql .= " JOIN " . EVENTS_DETAIL_TABLE . " ed ON ed.id=a.event_id ";
                         $sql .= $_REQUEST['all_events'] == "true" ? '' : " WHERE ed.id = '" . $event_id . "' ";
                         if (function_exists('espresso_member_data') && (espresso_member_data('role') == 'espresso_event_manager' || espresso_member_data('role') == 'espresso_group_admin')) {
                             $sql .= " AND ed.wp_user = '" . espresso_member_data('id') . "' ";
                         }
                         $sql .= ") ORDER BY id ";
                         $participants = $wpdb->get_results($sql);
                         $filename = $_REQUEST['all_events'] == "true" ? __('all-events', 'event_espresso') : sanitize_title_with_dashes($event_name);
                         $filename = $filename . "-" . $today;
                         switch ($_REQUEST['type']) {
                             case "csv":
                                 $st = "";
                                 $et = ",";
                                 $s = $et . $st;
                                 header("Content-type: application/x-msdownload");
                                 header("Content-Disposition: attachment; filename=" . $filename . ".csv");
                                 //header("Content-Disposition: attachment; filename='" .$filename .".csv'");
                                 header("Pragma: no-cache");
                                 header("Expires: 0");
                                 //echo header
                                 echo implode($s, $basic_header) . "\r\n";
                                 break;
                             default:
                                 $st = "";
                                 $et = "\t";
                                 $s = $et . $st;
                                 header("Content-Disposition: attachment; filename=" . $filename . ".xls");
                                 //header("Content-Disposition: attachment; filename='" .$filename .".xls'");
                                 header("Content-Type: application/vnd.ms-excel");
                                 header("Pragma: no-cache");
                                 header("Expires: 0");
                                 //echo header
                                 echo implode($s, $basic_header) . $et . "\r\n";
                                 break;
                         }
                         //echo data
                         if ($participants) {
                             $temp_reg_id = '';
                             //will temporarily hold the registration id for checking with the next row
                             $attendees_group = '';
                             //will hold the names of the group members
                             $group_counter = 1;
                             $amount_pd = 0;
                             foreach ($participants as $participant) {
                                 if ($temp_reg_id == '') {
                                     $temp_reg_id = $participant->registration_id;
                                     $amount_pd = $participant->amount_pd;
                                 }
                                 if ($temp_reg_id == $participant->registration_id) {
                                 } else {
                                     $group_counter++;
                                     $temp_reg_id = $participant->registration_id;
                                 }
                                 $attendees_group = "Group {$group_counter}";
                                 echo $attendees_group . $s . $participant->id . $s . escape_csv_val(stripslashes($participant->lname)) . $s . escape_csv_val(stripslashes($participant->fname)) . $s . stripslashes($participant->email) . $s . escape_csv_val(stripslashes($participant->address)) . $s . escape_csv_val(stripslashes($participant->address2)) . $s . escape_csv_val(stripslashes($participant->city)) . $s . escape_csv_val(stripslashes($participant->state)) . $s . escape_csv_val(stripslashes($participant->zip)) . $s . escape_csv_val(stripslashes($participant->phone)) . $s . escape_csv_val(stripslashes($participant->payment)) . $s . event_date_display($participant->date, 'Y-m-d') . $s . stripslashes($participant->payment_status) . $s . stripslashes($participant->txn_type) . $s . stripslashes($participant->txn_id) . $s . $participant->amount_pd . $s . escape_csv_val($participant->coupon_code) . $s . $participant->quantity . $s . event_date_display($participant->payment_date, 'Y-m-d') . $s . escape_csv_val($participant->event_name) . $s . $participant->price_option . $s . event_date_display($participant->start_date, 'Y-m-d') . $s . event_date_display($participant->event_time, get_option('time_format')) . $s . $participant->checked_in . $s . $participant->checked_in_quantity;
                                 $answers = $wpdb->get_results("SELECT a.question_id, a.answer FROM " . EVENTS_ANSWER_TABLE . " a WHERE question_id IN ({$question_filter}) AND attendee_id = '" . $participant->id . "'", OBJECT_K);
                                 foreach ($question_list as $k => $v) {
                                     /*
                                      * in case the event organizer removes a question from a question group,
                                      * the orphaned answers will remian in the answers table.  This check will make sure they don't get exported.
                                      */
                                     /*if (array_key_exists($k, $answers))
                                     		{*/
                                     $search = array("\r", "\n", "\t");
                                     $clean_answer = str_replace($search, " ", $answers[$k]->answer);
                                     $clean_answer = escape_csv_val($clean_answer);
                                     echo $s . $clean_answer;
                                     /*} 
                                     		else 
                                     		{
                                     			echo $s;
                                     		}*/
                                 }
                                 switch ($_REQUEST['type']) {
                                     case "csv":
                                         echo "\r\n";
                                         break;
                                     default:
                                         echo $et . "\r\n";
                                         break;
                                 }
                             }
                         } else {
                             echo __('No participant data has been collected.', 'event_espresso');
                         }
                         exit;
                         break;
                     default:
                         echo '<p>' . __('This Is Not A Valid Selection!', 'event_espresso') . '</p>';
                         break;
                 }
             default:
                 break;
         }
     }
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:101,代码来源:export.php


示例9: espresso_event_time

 function espresso_event_time($event_id, $type, $format = '')
 {
     global $wpdb;
     $sql = "SELECT e.id, e.start_date start_date, e.end_date end_date, ese.start_time start_time, ese.end_time end_time ";
     $sql .= "FROM " . EVENTS_DETAIL_TABLE . " e ";
     $sql .= "LEFT JOIN " . EVENTS_START_END_TABLE . " ese ON ese.event_id = e.id ";
     $sql .= "WHERE e.id = '" . $event_id . "' LIMIT 0,1";
     $date_format = $format == '' ? get_option('date_format') : $format;
     $time_format = $format == '' ? get_option('time_format') : $format;
     $wpdb->get_results($sql);
     //event_date_display($date, $format = 'M d, Y');
     switch ($type) {
         case 'start_time':
             return event_date_display($wpdb->last_result[0]->start_time, $time_format);
             break;
         case 'end_time':
             return event_date_display($wpdb->last_result[0]->end_time, $time_format);
             break;
         case 'start_date':
             return event_date_display($wpdb->last_result[0]->start_date, $date_format);
             break;
         case 'end_date':
             return event_date_display($wpdb->last_result[0]->end_date, $date_format);
             break;
         case 'start_timestamp':
             return strtotime($wpdb->last_result[0]->start_date . ' ' . $wpdb->last_result[0]->start_time);
             break;
         case 'end_timestamp':
             return strtotime($wpdb->last_result[0]->end_date . ' ' . $wpdb->last_result[0]->end_time);
             break;
         case 'end_date_time':
             return event_date_display($wpdb->last_result[0]->end_date, $date_format) . ' ' . event_date_display($wpdb->last_result[0]->end_time, $time_format);
             break;
         case 'start_date_time':
         default:
             return event_date_display($wpdb->last_result[0]->start_date, $date_format) . ' ' . event_date_display($wpdb->last_result[0]->start_time, $time_format);
             break;
     }
 }
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:39,代码来源:time_date.php


示例10: event_list_attendees


//.........这里部分代码省略.........
					<a href="admin.php?page=events&amp;event_admin_reports=edit_attendee_record&amp;event_id=<?php 
            echo $event_id;
            ?>
&amp;registration_id=<?php 
            echo $registration_id;
            ?>
&amp;form_action=edit_attendee&amp;id=<?php 
            echo $id;
            ?>
" title="<?php 
            echo 'ID#:' . $id . ' [ REG#: ' . $registration_id . ' ] Email: ' . $attendee->email;
            ?>
">
						<?php 
            echo $fname;
            ?>
 <?php 
            echo $lname;
            ?>
 <?php 
            echo $email;
            ?>
	              </a>
				 </td>
				
	            <td nowrap="nowrap">
					<?php 
            echo $registration_id;
            ?>
				</td>
				
	            <td class="date column-date">
					<?php 
            echo event_date_display($date, get_option('date_format') . ' g:i a');
            ?>
				</td>
				
	            <td nowrap="nowrap">
					<a href="admin.php?page=events&amp;event_admin_reports=list_attendee_payments&amp;event_id=<?php 
            echo $event_id;
            ?>
" title="<?php 
            _e('View attendees for this event', 'event_espresso');
            ?>
">
						<?php 
            echo stripslashes_deep($event_name);
            ?>
					</a>
				</td>
				
	            <td nowrap="nowrap">
					<?php 
            echo event_date_display($event_time, get_option('time_format'));
            ?>
				</td>
				
	            <?php 
            if ($ticketing_installed == true) {
                ?>
	            <td nowrap="nowrap">
					<p style="padding-left:15px">
						<?php 
                echo $attended == 1 || $ticket_scanned >= 1 ? event_espresso_paid_status_icon('Checkedin') : event_espresso_paid_status_icon('NotCheckedin');
                ?>
					</p>
开发者ID:sriram911,项目名称:pls,代码行数:67,代码来源:event_list_attendees.php


示例11: espresso_get_table

function espresso_get_table($sql)
{
    global $wpdb, $org_options;
    //echo 'This page is located in ' . get_option( 'upload_path' );
    $event_page_id = $org_options['event_page_id'];
    $currency_symbol = $org_options['currency_symbol'];
    $events = $wpdb->get_results($sql);
    $category_name = $wpdb->last_result[0]->category_name;
    $category_desc = $wpdb->last_result[0]->category_desc;
    $display_desc = $wpdb->last_result[0]->display_desc;
    if ($display_desc == 'Y') {
        echo '<p>' . stripslashes_deep($category_name) . '</p>';
        echo '<p>' . stripslashes_deep($category_desc) . '</p>';
    }
    ?>
<table class="espresso-table" width="100%">
  
      <thead class="espresso-table-header-row">
      <tr>
          <th class="th-group"><?php 
    _e('Course', 'event_espresso');
    ?>
</th>
          <th class="th-group"><?php 
    _e('Location', 'event_espresso');
    ?>
</th>
          <th class="th-group"><?php 
    _e('City', 'event_espresso');
    ?>
</th>
          <th class="th-group"><?php 
    _e('State', 'event_espresso');
    ?>
</th>
          <th class="th-group"><?php 
    _e('Date', 'event_espresso');
    ?>
</th>
          <th class="th-group"><?php 
    _e('Time', 'event_espresso');
    ?>
</th>
          <th class="th-group"><?php 
    _e('', 'event_espresso');
    ?>
</th>
     </tr>
      </thead>
	<tbody>

      <?php 
    foreach ($events as $event) {
        $reg_limit = $event->reg_limit;
        $event_desc = wpautop($event->event_desc);
        $register_button = '<a id="a_register_link-' . $event->id . '" href="' . get_option('siteurl') . '/?page_id=' . $event_page_id . '&regevent_action=register&event_id=' . $event->id . '&name_of_event=' . stripslashes_deep($event->event_name) . '">Register</a>';
        //Check to see how many open spots are available
        $open_spots = get_number_of_attendees_reg_limit($event->id, 'available_spaces') == 'Unlimited' ? 999 : get_number_of_attendees_reg_limit($event->id, 'available_spaces');
        //echo $open_spots;
        if ($open_spots < 1) {
            $live_button = 'Closed';
        }
        ?>
      <tr class="espresso-table-row">
       	<td class="td-group">
            <?php 
        echo $event->event_name;
        ?>
          </td>	
          <td class="td-group">
            <?php 
        echo $event->address;
        ?>
          </td>
          <td class="td-group">
            <?php 
        echo $event->city;
        ?>
          </td>
      	  <td class="td-group">
            <?php 
        echo $event->state;
        ?>
          </td>
          <td class="td-group">
              <?php 
        echo event_date_display($event->start_date, $format = 'l, M d, Y');
        ?>
          </td>
          <td class="td-group">
              <?php 
        echo espresso_event_time($event->id, 'start_time', get_option('time_format'));
        ?>
          </td>
         
          <td class="td-group">
              <?php 
        echo $register_button;
        ?>
          </td>
//.........这里部分代码省略.........
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:101,代码来源:espresso_table.php


示例12: enter_attendee_payments


//.........这里部分代码省略.........
        $id = $attendee->id;
        //$registration_id = $attendee->registration_id;//Removed by Imon
        $lname = $attendee->lname;
        $fname = $attendee->fname;
        $address = $attendee->address;
        $city = $attendee->city;
        $state = $attendee->state;
        $zip = $attendee->zip;
        $email = $attendee->email;
        $phone = $attendee->phone;
        $date = $attendee->date;
        $payment_status = $attendee->payment_status;
        $txn_type = $attendee->txn_type;
        $txn_id = $attendee->txn_id;
        $amount_pd = $attendee->amount_pd;
        $quantity = $attendee->quantity;
        $payment_date = $attendee->payment_date;
        $event_id = $attendee->event_id;
        $coupon_code = $attendee->coupon_code;
        $pre_approve = $attendee->pre_approve;
        $start_date = $attendee->start_date;
        $event_time = $attendee->event_time;
    }
    $events = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . EVENTS_DETAIL_TABLE . " WHERE id='%d'", $event_id));
    foreach ($events as $event) {
        $event_id = $event->id;
        $event_name = $event->event_name;
        $event_desc = $event->event_desc;
        $event_description = $event->event_desc;
        $event_identifier = $event->event_identifier;
        $cost = isset($event->event_cost) ? $event->event_cost : 0;
        $active = $event->is_active;
    }
    $event_date = event_date_display($start_date . ' ' . $event_time, get_option('date_format') . ' g:i a');
    $total_paid = espresso_attendee_price(array('registration_id' => $_REQUEST['registration_id'], 'session_total' => true));
    if (isset($_REQUEST['status']) && $_REQUEST['status'] == 'saved') {
        ?>

        <div id="message" class="updated fade">
          <p><strong>
            <?php 
        _e('Payment details saved for', 'event_espresso');
        ?>
            <?php 
        echo $fname;
        ?>
 <?php 
        echo $lname;
        ?>
.
            <?php 
        if (isset($_REQUEST['send_payment_rec']) && $_REQUEST['send_payment_rec'] == "send_message") {
            ?>
            <?php 
            _e('Payment notification has been sent.', 'event_espresso');
            ?>
            <?php 
        }
        ?>
            </strong></p>
        </div>
<?php 
    }
    ?>
<div class="metabox-holder">
<div class="postbox">
开发者ID:macconsultinggroup,项目名称:WordPress,代码行数:67,代码来源:enter_attendee_payments.php


示例13: add_new_attendee


//.........这里部分代码省略.........
});

	</script>
<div class="metabox-holder">
  <div class="postbox">
    <div id="espresso-admin-add-new-attendee-dv">

        <form method="post" action="<?php 
        echo $_SERVER['REQUEST_URI'];
        ?>
" onsubmit="return validateForm(this)"  id="registration_form" class="espresso_form">
			<?php 
        wp_nonce_field('reg_nonce', 'reg_form_nonce');
        ?>
          <h3 class="h3_event_title" id="h3_event_title-<?php 
        echo $event_id;
        ?>
"><?php 
        echo $event_name;
        ?>
</h3>
           <div  class="padding">
     	     <div  class="inside">
				<fieldset>
		 		<h4 class="reg-quest-title section-title&q 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP event_del函数代码示例发布时间:2022-05-15
下一篇:
PHP event_change_pageby函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap