[ Index ]
 

Code source de WebCalendar 1.0.5

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables | Statistiques

title

Body

[fermer]

/includes/js/ -> colors.php (source)

   1  <?php
   2  global $color;
   3  if (preg_match("/\/includes\//", $PHP_SELF)) {
   4      die ("You can't access this file directly!");
   5  }
   6  $color = clean_word($color);
   7  ?>
   8  
   9  <script type="text/javascript">
  10  <!-- <![CDATA[
  11  function sendColor ( color ) {
  12      var thisInput = window.opener.document.prefform.<?php echo $color; ?>;
  13  
  14    thisInput.value = color;
  15      if (thisInput.onkeyup) {
  16          // This updates the color swatch for this color input.  It relies on the
  17          // <input>s of the prefform having onkeyup="updateColor(this);" as an
  18          // attribute
  19          thisInput.onkeyup();
  20      }
  21    window.close ();
  22  }
  23  //]]> -->
  24  </script>


Généré le : Fri Nov 30 19:09:19 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics