Advertisement
Guest User

Untitled

a guest
Sep 5th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. currentMonth = getCurrentMonth();
  2. actualDateWithZero = appendMonthWithZero();
  3. docs = getFlightResults();
  4. monthsArray = ['Jan', 'Feb', 'Mar'.......];
  5.  
  6. for(count = 0; count < 12; count++)
  7. {  
  8.     outboundMonth = subString(doc[count+1].getOutboundMonth());
  9.     //If we get past December onto a new year we need to reset the current month back to 01
  10.     if(currentMonth + count > 12)
  11.     {
  12.                 //e.g. 9 + 4 = 13, 13 - 12 = 1 (January). Or 9 + 11 = 20, 20 - 12 = 8 (August)
  13.         currentMonth = (currentMonth + count) - 12;
  14.         if(currentMonth < 10)
  15.         {
  16.             currentMonth = appendMonthWithZero();
  17.         }
  18.     }      
  19.     if(currentMonth + count == outboundBoundMonth || currentMonth == outboundMonth)
  20.     {
  21.         //Get rest of data from doc etc etc
  22.         //Set up divs etc etc
  23.         //Get string month with displayed Month [Jan, Feb, Mar....]
  24.     }
  25.     else
  26.     {      
  27.         //display price not available
  28.         //Get string month with displayed Month [Jan, Feb, Mar....]
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement