<?php 
	session_start(); 
	require_once('inc/conn.php');
	require_once('inc/constant.php');
	require_once('inc/ls_syscode.php');
	require_once('inc/check.php');
	$ls_msg="添加产品大类操作";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link href="css/admin.css" rel="stylesheet" type="text/css">
		<script language="JavaScript" src="js/ls.js"></script>
		<title>添加产品大类</title>
	</head>

	<body>

<table width="96%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6396d6">
			<tr>
				<td height="18" background="images/admin_bg.gif"><div align="center"><font color="#ffffff"><strong>增加产品类别 
</strong></font></div>
				</td>
			</tr>
			<tr>
				<td height="213" valign="top" bgcolor="#dee7ff"><br>
				<form name="addcate" enctype="multipart/form-data" method="post" action="save.php" onSubmit="return Checkaddcate()">
					<input type="hidden" value="insert" name="ls">
					<table border="0" width="90%" align="center">
						<tr>
							<td>提示：<font color="#FF0000"><?php echo $ls_msg; ?></font></td>
							<td align="right"><img src="images/shao.gif">&nbsp;<a href="cate.php"><u>返回</u></a></td>
						</tr>
					</table>
					<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
					 
					  <tr bgcolor="#B9DAFF"> 
						<td height="28" colspan="2"></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						
			<td style="padding-left:50px;" width="30%">类：</td>
						<td><input type="text" name="cateName" ></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >Title（网站标题）：</td>
						<td><input type="text" name="cateTitle" style="width:300px;"></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >Keywords（网站关键字）：</td>
						<td><input type="text" name="cateKeywords" style="width:300px;"></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >Description（网站描述）：</td>
						<td><input type="text" name="cateDescription" style="width:300px;"></td>
					  </tr>					  
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >简介：</td>
						<td><textarea name="cateBrief" style="width:300px; height:50px;" ></textarea></td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:5px;" colspan="2">
							<img src="images/picture.gif" width="780" height="80" border="1" name="pic">
						</td>
					  </tr>
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >Banner（主体图）：</td>
						<td>
							宽度<input type="text" value="780" name="width" style="width:50px;" onBlur="document.pic.width=document.addcate.width.value;"> px
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							高度<input type="text" value="80" name="height" style="width:50px;" onBlur="document.pic.height=document.addcate.height.value;"> px
						</td>
					  </tr>
					  
					  <tr bgcolor="#f4f4f4"> 
						<td style="padding-left:50px;" >Banner（主体图）：</td>
						<td><input type="file" name="catePagePic" style="width:300px;" onBlur="document.pic.src=addcate.catePagePic.value;"></td>
					  </tr>
					   
					  <tr bgcolor="#B9DAFF"> 
						<td height="25" colspan="2" align="center"><input type="submit" value="添加大类"></td>
					  </tr>
					  
					 </table>					
					</form>
					<br>
				</td>
			</tr>
		</table>
	</body>
</html>

