[ Index ] |
|
Code source de WebCalendar 1.0.5 |
1 <?php 2 global $form, $fmonth, $fday, $fyear; 3 if (preg_match("/\/includes\//", $PHP_SELF)) { 4 die ("You can't access this file directly!"); 5 } 6 ?> 7 8 <script type="text/javascript"> 9 <!-- <![CDATA[ 10 function sendDate ( date ) { 11 year = date.substring ( 0, 4 ); 12 month = date.substring ( 4, 6 ); 13 day = date.substring ( 6, 8 ); 14 window.opener.document.<?php echo $form ?>.<?php echo $fday ?>.selectedIndex = day - 1; 15 window.opener.document.<?php echo $form ?>.<?php echo $fmonth ?>.selectedIndex = month - 1; 16 for ( i = 0; i < window.opener.document.<?php echo $form ?>.<?php echo $fyear ?>.length; i++ ) { 17 if ( window.opener.document.<?php echo $form ?>.<?php echo $fyear ?>.options[i].value == year ) { 18 window.opener.document.<?php echo $form ?>.<?php echo $fyear ?>.selectedIndex = i; 19 } 20 } 21 window.close (); 22 } 23 //]]> --> 24 </script>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Nov 30 19:09:19 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |