[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/jquery_ui/jquery.ui.old/demos/functional/templates/ -> ui.datepicker.dbd.html (source)

   1  <input type="text" size="10" value="" id="dayByDay"/>
   2  <style type="text/css">
   3  .ar_day { color: white !important; background: #eee url(templates/images/ar.gif) no-repeat center !important; }
   4  .au_day { color: blue !important; background: #eee url(templates/images/au.gif) no-repeat center !important; }
   5  .br_day { color: green !important; background: #eee url(templates/images/br.gif) no-repeat center !important; }
   6  .cn_day { color: red !important; background: #eee url(templates/images/cn.gif) no-repeat center !important; }
   7  .id_day { color: white !important; background: #eee url(templates/images/id.gif) no-repeat center !important; }
   8  .ie_day { color: white !important; background: #eee url(templates/images/ie.gif) no-repeat center !important; }
   9  .ke_day { color: red !important; background: #eee url(templates/images/ke.gif) no-repeat center !important; }
  10  .lb_day { color: white !important; background: #eee url(templates/images/lb.gif) no-repeat center !important; }
  11  .nz_day { color: blue !important; background: #eee url(templates/images/nz.gif) no-repeat center !important; }
  12  .se_day { color: blue !important; background: #eee url(templates/images/se.gif) no-repeat center !important; }
  13  .us_day { color: white !important; background: #eee url(templates/images/us.gif) no-repeat center !important; }
  14  .za_day { color: green !important; background: #eee url(templates/images/za.gif) no-repeat center !important; }
  15  </style>
  16  <script type="text/javascript">
  17  var natDays = [[1, 26, "au"], [2, 6, "nz"], [3, 17, "ie"], [4, 27, "za"], [5, 25, "ar"], [6, 6, "se"], 
  18      [7, 4, "us"], [8, 17, "id"], [9, 7, "br"], [10, 1, "cn"], [11, 22, "lb"], [12, 12, "ke"]]; 
  19   
  20  function nationalDays(date) { 
  21      for (i = 0; i < natDays.length; i++) { 
  22          if (date.getMonth() == natDays[i][0] - 1 && date.getDate() == natDays[i][1]) { 
  23              return [false, natDays[i][2] + "_day"]; 
  24          } 
  25      } 
  26      return [true, ""]; 
  27  }
  28  
  29  function highlightToday(date, inst) { 
  30      var today = new Date(); 
  31      today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); 
  32      return $.datepicker.dateStatus(date, inst) + 
  33          (today.getTime() == date.getTime() ? " (today)" : ""); 
  34  } 
  35  
  36  function showDayOfYear(date) {
  37      var lastYearEnd = new Date(date.getFullYear() - 1, 12 - 1, 31, 0, 0, 0, 0);
  38      return [true, "", "Day " + ((date.getTime() - lastYearEnd.getTime()) / 86400000) + " of  the year"];
  39  }
  40  </script>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7