Current File : /home/obabain/public_html/abc/edit_ele.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ include file="Connection.jsp" %>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.*,java.util.*"%>
<%@include file="master.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<%
String id=request.getParameter("id");
String p="";
String e="";
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("SELECT * FROM elements_specification where id="+id );
while(rs.next())
{
e=rs.getString("elements");
p=rs.getString("prefix");
}
%>
<form action="update_ele.jsp?id=<%=id%>" method="post">
<div class="content">
<div class="row">
<div class="col-md-8" style="background-color:white; ">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Edit Elements <i class="fa fa-edit"></i></h3>
</div>
</div>
<div class="panel-body" >
<div class="row" style="margin-left:140px;">
<div class="col-xs-4">
<label for="lastname" style="margin-left:5px; color:;">Prefix</label>
<input type="text" name="prefix" value="<%=p%>" class="form-control " >
</div>
<div class="col-xs-4">
<label for="lastname" style="margin-left:5px; color:;">Elements</label>
<input type="text" name="elements" value="<%=e%>" class="form-control" id="datetimepicker">
</div>
</div>
<div style="margin-top:30px">
<input type="submit" class="btn btn-primary" style="margin-left:230px;">
<input type="button" value="Back" style="background:#204b58;" class="pull-left btn btn-info" onclick="goBack()">
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>