[content_band style=”color: #333;” bg_color=”#ffddea” border=”all” inner_container=”true”] [custom_headline style=”margin-top: 0;” level=”h3″ looks_like=”h3″]Control Panel[/custom_headline]
[/content_band]
[insert_php]
$current_user = wp_get_current_user();
$formid=$current_user->ID;
$meta = get_user_meta($formid);
$plus = $meta[‘googleplus’][0];
$moreplus = (string)$plus;
echo “Page view status:”.$moreplus.PHP_EOL;
if ($moreplus==””){
echo ““;}
if ($moreplus==”unlocked”){
echo ““;}
echo ““;
[/insert_php]
[insert_php]
global $ipt_fsqm_info, $wpdb;
$current_user = wp_get_current_user();
$formid=$current_user->description;
$fordb=$current_user->user_login;
$syntax=’blog_id=1&orderby=nicename&role=subscriber’;
$blogusers = get_users($syntax);
$total=0;
foreach ( $blogusers as $user ) {
$desc=get_user_meta($user->ID, ‘description’, true);
if ($desc==$fordb){$total=$total+1;}
}
// Array of WP_User objects.
//get_user_meta($user->ID, ‘description’, true);
echo “[highlight type=’dark’]Total number users in your distribution:”.$total.”[/highlight]”;
if (!$total==0){
echo “
| Action | Delete | ||
| “;echo $ematch;echo “ | “; $sql=”SELECT mcq FROM 4zgc14mywebsitetransfercom_1667397749.wp_fsq_data WHERE (form_id = $formid AND email=’$ematch’)”; //echo $sql; $myrows = $wpdb->get_var($sql); if (empty($myrows)){echo ‘This participants has not completed the survey yet’;} else { $real=$real+1; echo “ “;echo “ | “; // global $wpdb; $current_user = wp_get_current_user(); $salmon=$current_user->ID; $meta = get_user_meta($salmon); $plus = $meta[‘googleplus’][0]; $moreplus = (string)$plus; //ifstatement if ($moreplus==”lock”){echo “Locked”;} else { echo “ “;} | “; echo “ “; |
“;
$pct=($counter/$total)*100;
if ($real>1){
echo ““;
echo ““;
echo “[gap size=’30px’]”;
}
}
else {echo “
“;echo “
“;echo “You have no participants yet!
“;echo “
“;echo “
“;}
[/insert_php]