1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<!DOCTYPE HTML>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Test</title>
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css"> -->
<!-- <link rel="stylesheet" href="bootstrap/css/bootstrap.css"> -->
<!-- <link rel="stylesheet" href="bootstrap/css/bootstrap-responsive.css"> -->
</head>
<body>
<form class="well" action="upload.cgi" target="iframecfg" method="post" enctype="multipart/form-data">
<fieldset>
<legend>Upload fichier</legend>
<div class="input-append">
<input class="hide" type="file" name="configFile_fileBox" id="configFile_fileBox"/>
<input class="span2" id="configFile_fileBox_textBox" type="text">
<button id="configFile_fileBox_button" class="btn" type="button">Parcourir...</button>
</div>
<div class="input-append">
<button type="submit" class="btn btn-primary">Envoyer</button>
</div>
</fieldset>
</form>
<script src="http://twitter.github.com/bootstrap/assets/js/jquery.js"></script>
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap.js"></script>
<!-- <script src="jquery/jquery-1.9.1.js"></script> -->
<!-- <script src="bootstrap/js/bootstrap.js"></script> -->
<script type="text/javascript">
$("#configFile_fileBox_button").click(function(){
$("#configFile_fileBox").click();
});
$("#configFile_fileBox").change(function(){
$("#configFile_fileBox_textBox").val($(this).val());
});
</script>
</body>
</html> |