ok to jest kod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <link rel="stylesheet" type="text/css" media="screen" href="css/ui-lightness/jquery-ui-1.8.4.custom.css" /> body { font-size:11px; }
<link type="text/css" rel="stylesheet" href="css/jquery.ui.all.css" /> <link type="text/css" rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.4.custom.css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.4.custom.min.js"></script> <script type="text/javascript" src="js/jquery.ui.button.js"></script> <script type="text/javascript" src="js/jquery.ui.position.js"></script> <script type="text/javascript" src="js/jquery.ui.autocomplete.js"></script> <script type="text/javascript" src="js/select/jqSelecta.min.js"></script>
<?
//połączenie do bazy
?>
<form action="<?php echo$SERVER['PHP_SELF'];?>"method="post">
<select id="mvc" class="box" name="mvc">
<?php
$zapytanie ="SELECT DISTINCT `region` FROM region ORDER BY region ASC";
$wynik=mysql_query($zapytanie);
while($rekord=mysql_fetch_assoc($wynik)){
echo'<option value"'.$rekord['region'].'">'.$rekord['region']."
</option>\n";
}
?>
<select multiple="multiple" style="height:5em" size="4" name="countries" id="countries"> <?php
$zapytanie ="SELECT DISTINCT `name_pl` FROM dane_koncowe ORDER BY name_pl ASC";
$wynik=mysql_query($zapytanie);
while($rekord=mysql_fetch_assoc($wynik)){
echo'<option value"'.$rekord['name_pl'].'">'.$rekord['name_pl']."
</option>\n";
}
?>
<script type="text/javascript"> //try {
var countriesSelecta = jQuery('#countries').jqSelecta({
//debug:true,
closeButton:true,
width:'480px',
autoScrollOverflowX:false,
titleSetFrom:'text',
height:'150px',
columns:3,
title:'Wybierz miejsce'
});
/**/
var mvcSelecta = jQuery('#mvc').jqSelecta({
//debug:true,
closeButton:true,
buttonWidth:'150px',
width:'200px',
columns:1,
title:'Wybierz region',
// fadeSpeed: 900,
autoScrollOverflowX: false,
autoScrollOverflowY: false,
// labelCallback: function(i){
// return 'Wybierz region' },
multiSelect:false,
showFooter:false
});
/**/
//}catch(e){
// alert('Unable to create jqSelecta UI component:' + e.msg);
//}