[ Index ] |
|
Code source de WebCalendar 1.0.5 |
1 <script type="text/javascript"> 2 <!-- <![CDATA[ 3 function selectUsers () { 4 // find id of user selection object 5 var listid = 0; 6 for ( i = 0; i < document.searchformentry.elements.length; i++ ) { 7 if ( document.searchformentry.elements[i].name == "users[]" ) 8 listid = i; 9 } 10 url = "usersel.php?form=searchformentry&listid=" + listid + "&users="; 11 // add currently selected users 12 for ( i = 0, j = 0; i < document.searchformentry.elements[listid].length; i++ ) { 13 if ( document.searchformentry.elements[listid].options[i].selected ) { 14 if ( j != 0 ) 15 url += ","; 16 j++; 17 url += document.searchformentry.elements[listid].options[i].value; 18 } 19 } 20 //alert ( "URL: " + url ); 21 // open window 22 window.open ( url, "UserSelection", 23 "width=500,height=500,resizable=yes,scrollbars=yes" ); 24 } 25 26 function show(foo,f,section) { 27 document.getElementById(foo).style.display = "block"; 28 if (f) { setCookie(foo, "o", section); } 29 } 30 31 function hide(foo,f, section) { 32 if (document.getElementById(foo)) { 33 document.getElementById(foo).style.display = "none"; 34 if (f) { deleteCookie(foo, section); } 35 } 36 } 37 //]]> --> 38 </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 |
![]() |