<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% If request.Form("submit") = "确认添加" Then If request.Form("mj_photo_category_name") = "" Then Call infoback("请输入分类名称!") End If If request.Form("mj_photo_category_order") = "" or not isnumeric(request.Form("mj_photo_category_order")) Then Call infoback("请输入排序数字,且必须为数字!") End If Set rs = server.CreateObject("adodb.recordset") sql = "select * from mj_photo_category" rs.Open sql, conn, 1, 3 rs.addnew rs("mj_photo_category_name") = request.Form("mj_photo_category_name") rs("mj_photo_category_order") = request.Form("mj_photo_category_order") rs("mj_photo_category_keywords") = request.Form("mj_photo_category_keywords") rs("mj_photo_category_description") = request.Form("mj_photo_category_description") rs("mj_photo_category_content") = request.Form("mj_photo_category_content") rs("mj_uploadfile") = request.Form("mj_uploadfile") rs("mj_photo_category_about") = request.Form("mj_photo_category_about") rs("mj_photo_category_password") = request.Form("mj_photo_category_password") rs.update call close_rs call close_conn call infohref("相册分类添加成功!","mj_photo_category.asp") End If %>
相册分类
 
 
当前位置:相册分类
在这里,您可以管理您的相册分类
 
    管理相册分类
<% Set rs = server.CreateObject("adodb.recordset") sql = "select * from mj_photo_category order by mj_photo_category_order asc" rs.Open sql, conn, 1, 1 Do While Not rs.EOF %> <% rs.movenext Loop Call close_rs %>
ID 分类名称 排序 导航调用地址 操作
<%=rs("ID")%> <%=rs("mj_photo_category_name")%> <%=rs("mj_photo_category_order")%> <% if rs("mj_photo_category_about")=1 then%>" target="_blank">photoboy.asp?id=<%=rs("ID")%><%end if%><% if rs("mj_photo_category_about")=2 then%>" target="_blank">photogirl.asp?id=<%=rs("ID")%><%end if%> [">修改] [" onClick="return confirm('确定要删除此分类吗?并且此分类下的所有相册也将会被删除!删除后将不可恢复!')">删除]
   添加相册分类
分类名称: 必填
分类排序: 必填且必须为数字!
相册所有: <% if rsadmin("id")=1 then%>男主人<%else%>女主人<%end if%>
访问密码: 留空则不需要密码直接可访问
相册墙纸: 请输入照片图片地址,或直接上传。
关键字:
关键描述:
详细介绍: <% Dim oFCKeditor Set oFCKeditor = New FCKeditor oFCKeditor.BasePath = "fckeditor/" oFCKeditor.ToolbarSet = "Default" oFCKeditor.Width = "100%" oFCKeditor.Height = "260" oFCKeditor.Value = "" oFCKeditor.Create "mj_photo_category_content" %>