Graffiti.Asp
上传用户:qfkgdy
上传日期:2020-06-18
资源大小:1888k
文件大小:7k
- <!--#include file="wml.ini"-->
- <%
- id=request("id")
- page=cint(request("page"))
- p=cint(request("p"))
- pp=cint(request("pp"))
- %>
- <%
- call wmlbegin("制作涂鸦图片","wrap")
- set rs=conn.execute("select * from [Picture] WHERE id=" & id & "")
- do while not rs.eof
- path=rs("File_Url")
- 'call wmlimg(rs("File_Url"),rs("Title"),true)
- v1=wap.rndc()
- if wap.ftype(rs("File_Url"))="gif" then
- Set fso = Server.CreateObject("Scripting.FileSystemObject")
- fso.copyfile server.mappath(replace(rs("File_Url"),"/","")),server.mappath("") & "imagestemp"
- set objfso=nothing
- end if
- if wap.ftype(rs("File_Url"))<>"gif" then
- Call (new ImageClass).zoom(rs("File_Url"),"images/temp/"& v1 & rs("id") &"_176x220." & wap.ftype(rs("File_Url")) & "",176,220)
- call wmlimg("/images/temp/" & v1 & rs("id") & "_176x220." & wap.ftype(rs("File_Url")) & "",wap.filter("wml",rs("Title")),true)
- else
- call wmlimg("/images/temp/" & Split(rs("File_Url"),"/")(4) & "",wap.filter("wml",rs("Title")),true)
- end if
- %>
- 宽:<input type="text" format="*N" name="width" maxlength="3" size="3" value="160"/>
- 高:<input type="text" format="*N" name="height" maxlength="3" size="3" value="240"/>
- <br/>涂鸦文字:<input type="text" format="*m" name="texts" maxlength="20" value="Hello World!"/>
- <br/>字体大小:<input type="text" format="*N" name="font_size" maxlength="2" value="10" size="3"/>
- <br/>文字阴影颜色:<select name="font_shadow" value="a">
- <option value="a">不加阴影</option>
- <option value="FFFFFF">白色</option>
- <option value="F5F5F5">烟白色</option>
- <option value="FFFF00">黄色</option>
- <option value="9ACD32">黄绿色</option>
- <option value="F0F8FF">艾利斯兰</option>
- <option value="FAEBD7">古董白</option>
- <option value="00FFFF">浅绿色</option>
-
- <option value="7FFFD4">碧绿色</option>
- <option value="F0FFFF">天蓝色</option>
- <option value="F5F5DC">米色</option>
- <option value="FFE4C4">桔黄色</option>
- <option value="000000">黑色</option>
- <option value="FFEBCD">白杏色</option>
- <option value="0000FF">蓝色</option>
-
- <option value="8A2BE2">紫罗兰色</option>
- <option value="A52A2A">褐色</option>
- <option value="DEB887">实木色</option>
- <option value="5F9EA0">军兰色</option>
- <option value="7FFF00">黄绿色</option>
- <option value="D2691E">巧可力色</option>
- <option value="FF7F50">珊瑚色</option>
- </select>
- <br/>文字背景颜色:<select name="font_background" value="a">
- <option value="a">不加背景颜色</option>
- <option value="FFFFFF">白色</option>
- <option value="F5F5F5">烟白色</option>
- <option value="FFFF00">黄色</option>
- <option value="9ACD32">黄绿色</option>
- <option value="F0F8FF">艾利斯兰</option>
- <option value="FAEBD7">古董白</option>
- <option value="00FFFF">浅绿色</option>
-
- <option value="7FFFD4">碧绿色</option>
- <option value="F0FFFF">天蓝色</option>
- <option value="F5F5DC">米色</option>
- <option value="FFE4C4">桔黄色</option>
- <option value="000000">黑色</option>
- <option value="FFEBCD">白杏色</option>
- <option value="0000FF">蓝色</option>
-
- <option value="8A2BE2">紫罗兰色</option>
- <option value="A52A2A">褐色</option>
- <option value="DEB887">实木色</option>
- <option value="5F9EA0">军兰色</option>
- <option value="7FFF00">黄绿色</option>
- <option value="D2691E">巧可力色</option>
- <option value="FF7F50">珊瑚色</option>
- </select>
- <br/>字体:<select name="font_family" value="SimSun">
- <option value="SimSun">宋体</option>
- <option value="LiSu">隶书</option>
- <option value="KaiTi_GB2312">楷体</option>
- <option value="YouYuan">幼圆</option>
- <option value="SimHei">黑体</option>
- </select>
- <br/>字体样式:<select name="font_bold" value="true">
- <option value="False">无</option>
- <option value="true">粗体</option>
- </select>
- <br/>字体颜色:<select name="font_color" value="FFFFFF">
- <option value="FFFFFF">白色</option>
- <option value="F5F5F5">烟白色</option>
- <option value="FFFF00">黄色</option>
- <option value="9ACD32">黄绿色</option>
- <option value="F0F8FF">艾利斯兰</option>
- <option value="FAEBD7">古董白</option>
- <option value="00FFFF">浅绿色</option>
-
- <option value="7FFFD4">碧绿色</option>
- <option value="F0FFFF">天蓝色</option>
- <option value="F5F5DC">米色</option>
- <option value="FFE4C4">桔黄色</option>
- <option value="000000">黑色</option>
- <option value="FFEBCD">白杏色</option>
- <option value="0000FF">蓝色</option>
-
- <option value="8A2BE2">紫罗兰色</option>
- <option value="A52A2A">褐色</option>
- <option value="DEB887">实木色</option>
- <option value="5F9EA0">军兰色</option>
- <option value="7FFF00">黄绿色</option>
- <option value="D2691E">巧可力色</option>
- <option value="FF7F50">珊瑚色</option>
- </select>
- <br/>位置:<select name="position" value="0">
- <option value="0">自定义</option>
- <option value="1">左上角</option>
- <option value="2">右上角</option>
- <option value="3">左下角</option>
- <option value="4">右下角</option>
- <option value="5">居中</option>
- </select>
- <br/>
- X坐标:<input type="text" format="*N" name="px" maxlength="3" size="3" value="90"/>
- Y坐标:<input type="text" format="*N" name="py" maxlength="3" size="3" value="220"/>
- <br/>
- <anchor>打完收工
- <go href="DIY.Asp?" method="post" accept-charset="utf-8">
- <postfield name="width" value="$(width)"/>
- <postfield name="font_size" value="$(font_size)"/>
- <postfield name="height" value="$(height)"/>
- <postfield name="texts" value="$(texts)"/>
- <postfield name="font_shadow" value="$(font_shadow)"/>
- <postfield name="font_background" value="$(font_background)"/>
- <postfield name="font_family" value="$(font_family)"/>
- <postfield name="font_bold" value="$(font_bold)"/>
- <postfield name="font_color" value="$(font_color)"/>
- <postfield name="position" value="$(position)"/>
- <postfield name="px" value="$(px)"/>
- <postfield name="py" value="$(py)"/>
- <postfield name="pid" value="<%=id%>"/>
- <postfield name="path" value="<%=path%>"/>
- </go>
- </anchor>
- <br/>
- <%
- ClassID=rs("ClassID")
- AlbumID=rs("AlbumID")
- rs.movenext
- loop
- Closers()
- %>
- <br/>
- <%
- set rs=conn.execute("select * from [Class] WHERE id=" & ClassID & "")
-
- do while not rs.eof
- Class_Title=rs("Class_Title")
- rs.movenext
- loop
- Closers()
- set rs=conn.execute("select * from [Album] WHERE id=" & AlbumID & "")
- do while not rs.eof
- Album_Title=rs("Album_Title")
- rs.movenext
- loop
- Closers()
- call wap.navs(Class_Title&",Categories.Asp?id="& ClassID &"&page=" & p & "|"&Album_Title&",View.Asp?id=" & AlbumID & "&page=" & pp & "&p=" & p & ",")
- call wmlend
- %>