Advertisement
Guest User

Ryand101

a guest
Feb 9th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. $titleInt = (int) $title; //convert title to integer
  2. if ($titleInt === $weekNumberInt ) { //check if roster is made for current week
  3. $description = $mondayDate .'-'. $sundayDate . '(' . $monthResult . ')';
  4. }
  5. else if ($titleInt === ($NextWeekNumberInt)) { //check if roster is made for Next week
  6. $description = $nextMondayDate .'-'. $nextSundayDate . '(' . $monthResult . ')';
  7. }
  8. else if ($titleInt === ($NextWeekNumberInt+1)) { //check if roster is made for Next week
  9. $description = $mondayDateTwoWeekAhead .'-'. $sundayDateTwoWeekAhead . '(' . $monthResult . ')';
  10. }
  11. else if ($titleInt === ($NextWeekNumberInt+2)) { //check if roster is made for Next week
  12. $description = $mondayDateThreeWeekAhead .'-'. $sundayDateThreeWeekAhead . '(' . $monthResult . ')';
  13. }
  14. else if ($titleInt === ($NextWeekNumberInt+3)) { //check if roster is made for Next week
  15. $description = $mondayDateFourWeekAhead.'-'. $sundayDateFourWeekAhead . '(' . $monthResult . ')';
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement