<%@ page contentType="text/html; charset=utf-8"%> <%@ page import="bug.entity.*"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <html> <head> <script language="JavaScript"> function add() { document.bugActionForm.id = idC.value; document.bugActionForm.sta.value = staC.innerText; document.bugActionForm.url.value = urlC.innerText; document.bugActionForm.pha = phaC.innerText; document.bugActionForm.cat = catC.innerText; document.bugActionForm.ref = refC.innerText; document.bugActionForm.dis = disC.innerText; document.bugActionForm.action = "AddBugAction.do"; document.bugActionForm.submit(); } function search() { document.bugActionForm.id = idC.value; document.bugActionForm.sta.value = staC.innerText; document.bugActionForm.url.value = urlC.innerText; document.bugActionForm.pha = phaC.innerText; document.bugActionForm.cat = catC.innerText; document.bugActionForm.ref = refC.innerText; document.bugActionForm.dis = disC.innerText; document.bugActionForm.action = "AddBugAction.do"; document.bugActionForm.submit(); } function del(id) { document.bugActionForm.id = id; document.bugActionForm.action = "DeleteBugAction.do"; document.bugActionForm.submit(); } </script> </head> <body> <em><bean:message key="message.bugDB"/></em><p> <table> <html:errors/> </table> <bean:message key="message.id"/>:<input name="id" value="" type="text"> <bean:message key="message.sta"/>:<input type="sta" name="textfield"> <bean:message key="message.url"/> :<input type="url" name="textfield3"> <p> <bean:message key="message.pha"/>:<input type="pha" name="textfield2"> <bean:message key="message.cat"/>:<input type="cat" name="textfield4"> </p> <textarea style="height:100" name=refC></textarea> <textarea style="height:100" name=disC></textarea> <html:form action="BugAction.do"> <html:hidden property="id"/> <html:hidden property="sta"/> <html:hidden property="url"/> <html:hidden property="pha"/> <html:hidden property="cat"/> <html:hidden property="ref"/> <html:hidden property="dis"/> <p> <input type="button" onClick="add();" value="<bean:message key="message.add"/>"> <input type="button" onclick="search();" value="<bean:message key="message.search"/>"> </p> </html:form> <table border=1 cellspacing=1 cellpadding=2> <tr> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.id"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.sta"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.url"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.pha"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.cat"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.ref"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.dis"/></td> <td style="background-color: #808080;font-size: 12pt;color: #ffffff;font-weight: bold;line-height: 15pt;border: 1px solid #808080;"><bean:message key="message.delete"/></td> </tr> <logic:notEmpty name="allBug"> <logic:iterate name="allBug" id="bug" type="bug.entity.Bug"> <tr> <td style="word-break: break-all;" > <bean:write property="id" name="bug"/> </td> <td style="word-break: break-all;" > <bean:write property="sta" name="bug"/> </td> <td style="word-break: break-all;" > <bean:write property="url" name="bug"/> </td> <td style="word-break: break-all;" > <bean:write property="pha" name="bug"/> </td> <td style="word-break: break-all;" > <bean:write property="cat" name="bug"/> </td> <td style="word-break: break-all;" > <bean:write property="ref" name="bug"/> </td> <td style="word-break: break-all;" > <bean:write property="dis" name="bug"/> </td> <td style="word-break: break-all;" ><input type="button" onclick="del('<%=bug.getId()%>');" value="<bean:message key="message.delete"/>"></td> </tr> </logic:iterate> </logic:notEmpty> </table> </body> </html>