Goals Accomplishment Status

“;
echo “

“;
echo “

\n\n”;
if ($required<$x) { $required=$x ; } $y = $x/$required*100; echo "

\n\n”;
echo “

\n\n”;
$offset = $second_date-$first_date;
$days =floor($offset/60/60/24);
if ($offset < 1) { $days = 0; } echo "

\n\n”;
echo “

\n\n”;
if ($offset < 1) { $days = 1 ; } echo "

\n\n”;
echo “

“;
echo “Number of Posts Required
“.$required.”
Number of Posts Published“;
$x=wp_count_posts()->publish;
echo $x,”
Number of Posts Remaining“;
echo $required-$x,”
Target Date“.date(“d-M-Y”,$second_date).”
Days Remaining“.$days . ” days
Completion Percentage“,round($y,2),”%
Required Average Posts Per Day“,ceil(($required-$x)/$days),” per day

“;
echo “

“;
echo “

Progress Bar:
Completed“;
for ($i=1; $i<=$y; $i++) { echo "|”;
}
for ($i=$y+1; $i<=100; $i++) { echo "|”;
}
echo “
Remaining

“;
echo “

“;
} else
echo “Login is required to view this page Click here to login“;
?>

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.