138 lines
5.2 KiB
Plaintext
138 lines
5.2 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/manager_for_cms/include/manager_head.jsp"%>
|
|
<%
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
if(c_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong Connection.");
|
|
location.href="list.jsp"
|
|
</script>
|
|
<%
|
|
}else{
|
|
%>
|
|
<script>
|
|
function go(){
|
|
if(document.bcb.c_name.value == ""){
|
|
alert("Insert Field Name.");
|
|
document.bcb.c_name.focus();
|
|
}else if(document.bcb.c_eng_name.value == ""){
|
|
alert("Please enter the English name in the field.");
|
|
document.bcb.c_eng_name.focus();
|
|
}else{
|
|
|
|
document.bcb.action = "edit_ok.jsp";
|
|
document.bcb.target = "exec";
|
|
document.bcb.method = "post";
|
|
document.bcb.submit();
|
|
}
|
|
}
|
|
</script>
|
|
<center>
|
|
<table width="800" cellSpacing="0" cellPadding="0" border="0">
|
|
<tr >
|
|
<td >
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td height="60" style="font-weight:bold;">
|
|
Edit Main Field
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!---------------------------------------------------------------------------------------->
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td align=right style="line-height:120%">
|
|
<font color=red>
|
|
* Please be sure to enter the items marked with the mark.
|
|
</font>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
String sql1=" SELECT * from tbl_field where c_no = " + c_no + " ";
|
|
ResultSet rst = stmt.executeQuery(sql1);
|
|
if(rst.next()) {
|
|
%>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=eeeeee >
|
|
<form name="bcb" method="post" >
|
|
<input name="c_no" value="<%=c_no%>" type="hidden">
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Field Name </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_name" id="" style="width:258px" value="<%=rst.getString("c_name")%>"/> </td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Field Enflish Name </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_eng_name" id="" style="width:200px" maxlength="20" value="<%=rst.getString("c_eng_name")%>"/> <font color=red>* Please register the English name of the field so that it does not overlap with other fields without spaces.</font></td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Site Name </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_site_name" id="" style="width:258px" value="<%=rst.getString("c_site_name")%>"/> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Main Page Type </td>
|
|
<td width="85%" style="padding:5px">
|
|
<table>
|
|
<tr>
|
|
<td height=60 width="120">
|
|
<img src="/images/type1.gif">
|
|
</td>
|
|
<td width=10px"></td>
|
|
<td width="120">
|
|
<img src="/images/type2.gif">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height=30 align=center>
|
|
<input type="radio" name="c_main_type" id="" value="1" <%if(rst.getInt("c_main_type") == 1){%>checked<%}%>>Type 1.
|
|
</td>
|
|
<td width=10px"></td>
|
|
<td align=center>
|
|
<input type="radio" name="c_main_type" id="" value="2" <%if(rst.getInt("c_main_type") == 2){%>checked<%}%>>Type 2.
|
|
</td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Organization name </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_institute" id="" style="width:258px" value="<%=rst.getString("c_institute")%>"/> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> manager </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_master" id="" style="width:80px" maxlength="6" value="<%=rst.getString("c_master")%>"/> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Phone </td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_tel" id="" style="width:100px" maxlength="20" value="<%=rst.getString("c_tel")%>"/> </td>
|
|
</tr>
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> Explain </td>
|
|
<td width="85%" style="padding:5px">
|
|
<textarea style="width:100%" rows=5 name="c_exp"><%=rst.getString("c_exp")%></textarea>
|
|
</td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
<%
|
|
}
|
|
rst.close();
|
|
%>
|
|
<!---------------------------------------------------------------------------------------->
|
|
<table width="100%">
|
|
<tr>
|
|
<td height="35" align="right" colspan="5" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
|
|
<a href="#none" onclick="go()" style="width: 50px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">Edit</a>
|
|
<a href="list.jsp" style="width: 50px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;">Cancel</a>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<iframe name="exec" width=0 height=0 src=""></iframe>
|
|
<%
|
|
}
|
|
%>
|
|
<%@include file="/manager_for_cms/include/manager_bottom.jsp"%>
|