<%@ page contentType="text/html; charset=GBK" session="false"%>

<%@ taglib uri="/cmsTag" prefix="cms"%>
<%@ page contentType="text/html; charset=GBK"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<%
			response.setHeader("Pragma", "No-cache");
			response.setHeader("Cache-Control", "no-cache");
			response.setDateHeader("Expires", 0);
		%>
		<title>新建图库分类</title>

		<link rel="stylesheet" type="text/css" href="../../style/default/main.css" />

		<!--加载 js -->

	</head>



	<body>

		<form method="post" name='imgClassForm' id='imgClassForm'>
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
				<tr>

					<td height="22" class="head_title">
						<img src="../../core/style/default/images/title_y.gif" />
						<span class="STYLE1">新建图库分类</span>
					</td>

				</tr>

				<tr>
					<td>
						<table width="100%" cellspacing=1 cellpadding=0 align=center border="0" bgcolor="#FFFFFF">
							<tr>
								<td>
									<table width="100%" cellspacing=10 cellpadding=1 align=center border="0">

										<tr>
											<td class="title_td" width="12%">
												分类名称:
											</td>
											<td width="88%">
												<input type="text" size="55" id="imgClassName" name="imgClassName" class="f_input"></input>
											</td>
										</tr>

										<tr>
											<td class="title_td" width="12%">
												分类描叙:
											</td>
											<td width="88%">
												<textarea id="imgClassDesc" name="imgClassDesc" cols="53" rows="4" class="f_text"></textarea>
											</td>
										</tr>

									</table>

								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="feet" colspan="2" />
				</tr>
			</table>


			<br>
			<br>
			<center>
				<button type="button" id="save" onClick="submitImgClass();">
					<img src="../../core/style/default/images/add-act.png" alt="" />
					确认
				</button>
				&nbsp;&nbsp;&nbsp;
				<button type="button" onClick="javascript:window.close();">
					<img src="../../core/style/default/images/reset-act.png" alt="" />
					取消
				</button>
			</center>

			<input type="hidden" id="templetFileName" name="templetFileName" />


		</form>
	</body>

</html>

<script type="text/javascript">
<!--
function submitImgClass()
{  
   

	if(document.getElementById("imgClassName").value=='')
	{
		alert("分类名称不可为空!");
		return;
	}
   

	document.imgClassForm.action= '../../resources/addImgClass.cmd';
  
    document.imgClassForm.submit();



}
//-->
</script>
