Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as HTML by smail2133 ( 13 years ago )
<%@ include file="managerHeader.jsp"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<h2>${title}</h2>
<div class="form">
 <form form acti method="post" class="niceform"
  commandName="order">
  <fieldset>
   <dl>
    <dt>
     <form:label path="idSender">Отправитель:</form:label>
    </dt>
    <dd>
     <select path="idSender" size="1">
      <c:forEach var="item" items="${customers}">
       <option value="${item.idPeople}">${item.firstName} ${item.lastName}</option>
      </c:forEach>
     </select>
    </dd>
    <div class="mini" align="center">
     <a href="customerAdd.php">Добавить нового</a>
    </div>
   </dl>
   <dl>
    <dt>
     <form:label path="idSender">Получатель:</form:label>
    </dt>
    <dd>
     <select path="idSender" size="1">
      <c:forEach var="item" items="${customers}">
       <option value="${item.idPeople}">${item.firstName} ${item.lastName}</option>
      </c:forEach>
     </select>
    </dd>
    <div class="mini" align="center">
     <a href="customerAdd.php">Добавить нового</a>
    </div>
   </dl>
   <dl>
    <dt>
     <form:label path="description">Описание:</form:label>
    </dt>
    <dd>
     <form:textarea path="description" id="comments" rows="5" cols="34"></form:textarea>
    </dd>
   </dl>
   <dl>
    <dt>
     <form:label path="weight">Вес:</form:label>
    </dt>
    <dd>
     <form:input type="text" path="weight" size="54" />
     <div class="mini">грам.</div>
    </dd>
   </dl>
   <dl>
    <dt>
     <form:label path="destinationStore">Склад доставки:</form:label>
    </dt>
    <dd>
     <select path="destinationStore" size="1">
      <c:forEach var="item" items="${stores}">
       <option value="${item.idStore}">${item.address}</option>
      </c:forEach>
     </select>
    </dd>
   </dl>
   <dl>
    <dt>
     <form:label path="beginStore">Склад отправки:</form:label>
    </dt>
    <dd>
     <form:select path="beginStore" size="1">
      <c:forEach var="item" items="${stores}">
       <form:option value="${item.idStore}">${item.address}</form:option>
      </c:forEach>
     </form:select>
    </dd>
   </dl>
   <dl class="submit">
    <input type="submit" name="submit" id="submit_id" value="Отправить" />
   </dl>
  </fieldset>
 </form:form>
</div>
<%@ include file="footer.jsp"%>

 

Revise this Paste

Your Name: Code Language: