|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/chinatranslationsweb/admin/ |
Upload File : |
<html>
<head>
<title>Module Setup - Edit Module</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function show_type_onchange() {
if (theform.show_type.value =="1") {
theform.Button.disabled = false ;
}else{
theform.Button.disabled = true ;
}
}
//-->
</SCRIPT>
</head>
<%
set conn = APPLICATION("ACN")
if request("Submit")<>empty then
str = " update list_module set "&_
" module_name ='"&request("module_name")&"',"&_
" show_type = "&request("show_type")&","&_
" sort_id="&request("sort_id")&","&_
" module_note = '"&request("note")&"',"&_
" f_face = '"&request("f_face")&"',"&_
" f_color = '"&request("f_color")&"',"&_
" f_color_c = '"&request("f_color_c")&"',"&_
" f_size = "&request("f_size")&","&_
" nf_face = '"&request("nf_face")&"',"&_
" nf_color = '"&request("nf_color")&"',"&_
" nf_size = "&request("nf_size")&","&_
" s_width = "&request("s_width")&","&_
" pagesize = "&request("pagesize")&","&_
" show_location = '"&request("show_location")&"'"&_
" where module_id ="&Request.Form("module_id")
conn.execute(str)
Response.Redirect "module_set.asp"
end if
module_id = request("module_id")
Set rs = server.CreateObject("adodb.recordset")
sSQL = "select * from list_module where module_id ="&module_id
rs.Open sSQL,conn
if not (rs.BOF and rs.EOF) then
module_name = rs("module_name")
show_type = rs("show_type")
sort_id = rs("sort_id")
note = rs("module_note")
pagesize = rs("pagesize")
f_face = rs("f_face")
f_color=rs("f_color")
f_color_c = rs("f_color_c")
f_size = rs("f_size")
nf_face = rs("nf_face")
nf_color = rs("nf_color")
nf_size = rs("nf_size")
s_width = rs("s_width")
show1_color = rs("show1_color")
show_location = rs("show_location")
end if
rs.Close
%>
<body bgcolor="#FFFFFF">
<form method="post" action="" name=theform >
<table width="70%" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" bgcolor="eeeeff" height="25"><font size="2"><b>Edit Module</b></font></td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ModuleName</font></td>
<td width="81%">
<input type="text" name="module_name" value="<%= module_name %>">
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ShowType</font></td>
<td width="81%">
<select name="show_type" size=1 LANGUAGE=javascript onchange="return show_type_onchange()">
<%
sSQL = "select * from list_showtype "
rs.Open sSQL,conn
if not (rs.BOF and rs.EOF) then
do while not rs.eof
response.write " <option "
if cint(show_type) = cint(rs("show_id")) then Response.Write " selected "
response.write " value='"&rs("show_id")&"'>"& rs("show_name")&" </option>"
rs.MoveNext
loop
end if
rs.close
%>
</select>
<font size = 2 >ListIcon��<%=show1_color%></font>
<input type="button" name="Button" value="Setup" language=javascript
onClick="window.location.href ='show1pic_set.asp?module_id=<%=module_id%>'">
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Location</font></td>
<td width="81%">
<select name="show_location">
<option value="M" <% if show_location ="M" then Response.Write "selected " %>>navigation bar</option>
<option value="O" <% if show_location ="O" then Response.Write "selected " %> >left/right</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Sort ID</font></td>
<td width="81%">
<input type="text" name="sort_id" value="<%= sort_id %>"> <font size=2> ( figure )</font>
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">InfoNumber per page</font></td>
<td width="81%">
<input type="text" name="pagesize" value="<%= pagesize %>">
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ModuleName Font</font></td>
<td width="81%">
<input type="text" name="f_face" value="<%= f_face %>">
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ModuleName FontColor</font></td>
<td width="81%"> <font size="2">#
<input type="text" name="f_color" value="<%= f_color %>" size="6" maxlength="6" >
( hex 0 - F ) </font> </td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Selected FontColor</font></td>
<td width="81%"> <font size="2">#
<input type="text" name="f_color_c" value="<%= f_color_c %>" size="6" maxlength="6" >
( hex 0 - F ) </font> </td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ModuleName FontSize</font></td>
<td width="81%">
<input type="text" name="f_size" value="<%= f_size %>" size="2" maxlength=2 >
<font size="2">( figure from 1 to 7 ) </font> </td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">ModuleName Width</font></td>
<td width="81%"> <font size="2">
<input type="text" name="s_width" value="<%= s_width %>" size="6" maxlength="6" >
( figure ) </font> </td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#000000" >
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Note</font></td>
<td width="81%">
<textarea name="note" cols="50" rows="5"><%=note %></textarea>
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Note Font</font></td>
<td width="81%">
<input type="text" name="nf_face" value="<%= nf_face %>">
</td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Note FontColor</font></td>
<td width="81%"> <font size="2">#
<input type="text" name="nf_color" value="<%= nf_color %>" size="6" maxlength="6" >
( hex 0 - F ) </font> </td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td width="19%" height="25" bgcolor="F4F8F6" ><font size="2">Note FontSize</font></td>
<td width="81%">
<input type="text" name="nf_size" value="<%= nf_size %>" size="2" maxlength=2 >
<font size="2">( figure from 1 to 7 ) </font> </td>
</tr>
<tr>
<td colspan="2" height=1 bgcolor="#aaaaFF" >
</tr>
<tr>
<td colspan="2" height="25" >
<div align="center">
<input type="submit" name="Submit" value="Save">
<input type="button" name="Butcal" value="Cancel" language=javascript
onClick="window.location.href ='module_set.asp'">
<INPUT type="hidden" name=module_id value="<%= module_id %>">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<div align=center>
<!--#include file="menu.asp" -->
</div>
</body>
</html>