This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Member payment report | |
Plugin URI: http://www.michiganjaycees.org | |
Description: this is a report showing the payments that have processed | |
Author: Dan Moellering | |
Version: .1 | |
Author URI: http://mdmnow.com | |
*/ | |
add_action('admin_menu', 'member_payment_report_action'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Member payment report | |
Plugin URI: http://www.michiganjaycees.org | |
Description: this is a report showing the payments that have processed | |
Author: Dan Moellering | |
Version: .1 | |
Author URI: http://mdmnow.com | |
*/ | |
add_action('admin_menu', 'member_payment_report_action'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
o.user_id, | |
o.timestamp, | |
(select user_login from wp_users where id = o.user_id limit 1) as user_login, | |
(select user_email from wp_users where id = o.user_id limit 1) as user_email, | |
(select name from wp_pmpro_membership_levels where id = o.membership_id limit 1) as level, | |
o.total, | |
(select meta_value from wp_usermeta where user_id = o.user_id and meta_key = 'last_name' limit 1) as last_name, | |
(select meta_value from wp_usermeta where user_id = o.user_id and meta_key = 'first_name' limit 1) as first_name, | |
(select meta_value from wp_usermeta where user_id = o.user_id and meta_key = 'pmpro_saddress1' limit 1) as address, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var someDate = new Date(); | |
var n = someDate.getDay(); | |
someDate.setDate(someDate.getDate()-n); | |
var dd = someDate.getDate(); | |
var mm = someDate.getMonth() + 1; | |
var y = someDate.getFullYear(); | |
var someFormattedDate = mm + '/'+ dd + '/'+ y; | |
alert('start week: '+someFormattedDate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.write(screen.width); | |
if (screen.width < 980) { | |
IWidth = screen.width; | |
} else { IWidth = 980 } | |
document.write('<iframe src="https://mapsengine.google.com/map/embed?mid=zv4x1F3xtt1A.kNa-SYOcLRXY" width="'+IWidth+'" height="680"></iframe>' ); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row-fluid"> | |
<div class="span6"><label for="dob">Date of Birth</label>{% text_field "custom_values.date_of_birth", class:"text" %}</div> | |
</div> |