
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%-- jstl1.2--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%@page import="com.ckeditor.CKEditorConfig"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>

<%@ page isELIgnored="false" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="ShopProductCat 添加实体类数据表单，path: 请情: www.guuraa.net " />

<title>Update</title>
<!--
 * @author http://www.guuraa.org
* tel:020-28983330 mobile:15975485229
 * email:wujavei@126.com  QQ:274390981
 * @see /entryJsp/ShopProductCatFromAdd.jsp
　/gcms/admin/entryJsp/ShopProductCatFormAdd.jsp
 -->
<link href="/gscms/Style/admin.css" type="text/css" rel="stylesheet">
<%--  时间控件 --%>

<script type="text/javascript"  src="/DateTimeCalendar/DateTimeCalendar.js" language="javascript">
</script> 
<script src="/guuraaApp/javascript/guuraa.js" type="text/javascript" language="javascript" charset="UTF-8" ></script>



   <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/miinshop/admin/style/jquery-easyui-1.3.2/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/miinshop/admin/style/jquery-easyui-1.3.2/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/MyApp/miinshop/admin/style/jquery-easyui-1.3.2/demo/demo.css">
	<script type="text/javascript" src="<%=request.getContextPath()%>/MyApp/miinshop/admin/style/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/MyApp/miinshop/admin/style/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>

</head>
<body>
<html:errors/>

<div class="title_box"><h1></h1></div>

<div id="p" class="easyui-panel" title="添加产品类别" style="width:700px;height:350px;padding:3px;">

<script type="text/javascript" src="/guuraa.org/javascript/form.js" language="javascript"></script>

<form name="ShopProductCatForm" id="ShopProductCatForm"  action="<%=request.getContextPath()%>/MyApp/miinshop/admin/ArticleCatAdmin/controller.jsp?act=update" method="post"   >

    
    <div id="content">
    <c:if test="${CmsArticleCat!=null}">
        
        <input type="text" name="catid" value="<c:out value="${CmsArticleCat.catid}"></c:out>">
   
<p>
<span class="formElementLable">分类名称:</span>
<input type=text name="catName" size="30"  maxlength="45" value="<c:out value="${CmsArticleCat.catName}"></c:out>"/>
</p>

<br/>


<p>
<span class="formElementLable">网页标题:</span>
<input type=text name="htmlTitle" size="30"  maxlength="45" value="${CmsArticleCat.htmlTitle}"/>
</p>



<p>
<span class="formElementLable">网页关键字:</span>
<input type=text name="htmlKeyWord" size="30"  maxlength="45" value="<c:out value="${CmsArticleCat.htmlKeyWord}"></c:out>" />
</p>



<p>
<span class="formElementLable">网页描述:</span>
<input type=text name="htmlDescription" size="30"  maxlength="45"  value="<c:out value="${CmsArticleCat.htmlDescription}"></c:out>" />
</p>



<p>
<span class="formElementLable">网页模板:</span>
<input type=text name="templetePath" size="30"  maxlength="45"  value="<c:out value="${CmsArticleCat.templetePath}"></c:out>" />
</p>



<p>
<span class="formElementLable">是否自定义模板:</span>
<Input type="checkbox" name="buseSelfTemplete" checked="checked"   value="<c:out value="${CmsArticleCat.buseSelfTemplete}"></c:out>" />
</p>


<p>
<input id="ShopProductCatFormSubmit" type="button" onClick="return formsubmit()"  value="提交"/> <input type="reset"  value="重设"/>
</p>
 </c:if>
</div></html:form>
	<script type="text/javascript" language="javascript" >
	//重设表单
	function resetForm(){
		var formPage=document.forms["ShopProductCatForm"];	 formPage.reset();
	 return false;
	}
	
	//提交表单，成功后提交表单
	function formsubmit(){
		var form=document.forms["ShopProductCatForm"];
		if(form==null){
			alert("无法获取表单！");
			 	return false;
		}
		if(form!=null){
		//表单验证
		 var formchekcReturn=formcheck();
	 	if(formchekcReturn !=null && formchekcReturn==true){
		form.submit();
	 //将提交按钮设置为失效，防止重复提交
		var formSubmit=document.getElementById("ShopProductCatFormSubmit");
	 	formSubmit.disabled= true;
	 	return true;
			 }else{
	 	return false;
		}
	 }//end if
	
	}//end fun
	//表单验证
	function formcheck(){
		var formPage=document.forms["ShopProductCatForm"];		if(formPage==null){
			alert("未发现表单！");
			isreturn =false;
			return false;
			
		}
		var isreturn =true;
		
		//表单中文验证
		
		//表单字符长度验证
		
		//表单密码强度验证
		
		//表单是否包含字符验证
		
		//表单过长验证
		
		//判断是否提交表单
		//alert("return :"+isreturn);
		
		if(isreturn ==false){
		
		//	alert("return :"+isreturn);
		return false;
		
		}else{
		isreturn=true;
		//alert("return :"+isreturn);
		return isreturn;
		}
	}
	
	</script>
</div>

</body>
</html>

