Ejemplo n.º 1
0
  
   
    <div class="container">
      <h2>Tuotteen lisääminen</h2>
      <!-- lahetysFormi-->
      <form  class="form-horizontal" id="lahetysform" action="tuoteLisays.php" method="post" enctype="multipart/form-data">
  
        <div class="form-group">
    <label class="col-sm-1 col-md-2 control-label">Tuotteen nimi</label>
    <div class="col-sm-4 col-md-4">
      <input type="text" class="form-control" name="nimi"  placeholder="Tuotteen nimi" value="<?php 
print htmlentities($tuote->getNimi(), ENT_QUOTES, "UTF-8");
?>
"/>
    <?php 
print "<span class='pun'>" . $tuote->getError($nimiVirhe) . "</span>";
?>
 
    </div>
  </div>

          <div class="form-group">
    <label class="col-sm-1 col-md-2 control-label">Valmistaja</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" name="valmistaja"  placeholder="Tuotteen valmistaja" value="<?php 
print htmlentities($tuote->getValmistaja(), ENT_QUOTES, "UTF-8");
?>
"/>
    <?php 
print "<span class='pun'>" . $tuote->getError($valmistajaVirhe) . "</span>";
?>