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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
<!doctype html>
<html lang="fr-FR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../Dependencies/css/bootstrap.css"/>
<link rel="stylesheet" href="../Dependencies/css/bootstrap-responsive.css"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="span12">
<div class="hero-unit">
<table class="table table-bordered table-striped">
<form class="form-horizontal" action="addArticleprocess.php" method="post">
<thead>
<tr>
<th>Désignation Articles</th>
<th>Tonnage Article</th>
<th>Quantité</th>
<th>N° Containeur</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="controls">
<select name="article[]" id="article">
<?php foreach ( $result as $value ) : ?>
<option value="<?= $value->designation; ?>"><?= $value->designation; ?></option>
<?php endforeach ?>
</select>
</div>
</td>
<td>
<div class="controls">
<input type="number" id="tonnage" placeholder="Entrer le tonnage" name="tonnage[]" required>
</div>
</td>
<td>
<div class="controls">
<input type="number" id="quantite" placeholder="Entrer la quantite" name="quantite[]" required>
</div>
</td>
<td>
<div class="controls">
<input type="text" id="container" placeholder="Entrer le numéro de container" name="container[]">
</div>
</td>
<td>
<a href="#" id="add"> Ajouter</a>
</td>
</tr>
<tr id="newRow">
<td>
<div class="controls">
<select name="article[]" id="article">
<?php foreach ( $result as $value ) : ?>
<option value="<?= $value->designation; ?>"><?= $value->designation; ?></option>
<?php endforeach ?>
</select>
</div>
</td>
<td>
<div class="controls">
<input type="number" id="tonnage" placeholder="Entrer le tonnage" name="tonnage[]" required>
</div>
</td>
<td>
<div class="controls">
<input type="number" id="quantite" placeholder="Entrer la quantite" name="quantite[]" required>
</div>
</td>
<td>
<div class="controls">
<input type="text" id="container" placeholder="Entrer le numéro de container" name="container[]">
</div>
</td>
<td>
<a href="#" id="add"> Ajouter</a>
</td>
</tr>
</tbody>
</table>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="button" class="btn">Cancel</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="../Dependencies/js/jquery-1.9.1.js"></script>
<script src="../Dependencies/js/bootstrap.js"></script>
<script src="../Dependencies/js/bootstrap-transition.js"></script>
<script src="../Dependencies/js/bootstrap-button.js"></script>
<script>
$(document).ready(function () {
var newRow = $('#newRow');
newRow.hide();
$('#add').on('click', function () {
$('tr:last').append(newRow);
});
});
</script>
</body>
</html> |
Partager