
<%@ 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" %> 
<%@page  import="miin.core.miinSysConfigValiday.entryDomain.dao.MiinSysConfigValidatyCat,miin.core.miinSysConfigValiday.domain.ArticleAdminDomain" %>
<%//创建系统变量域对象
ArticleAdminDomain entryDomain=new ArticleAdminDomain(request,response,out);%>

<!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="ShopProduct 添加实体类数据表单，path: 请情: www.guuraa.net " />

<title>添加系统变量</title>

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

 
        <%--  时间控件 --%>


<jsp:include page="/MyApp/Core/SysConfigValiday/admin/SystemManage/superUserHome/html_header.jsp"></jsp:include>

</head>
<body>
<body scroll="no">
	<div id="layout">
            <jsp:include page="/MyApp/Core/SysConfigValiday/admin/SystemManage/superUserHome/body_header.jsp"></jsp:include>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>

				<div class="accordion" fillSpace="sidebar">
					<div class="accordionHeader">
						<h2><span>Folder</span>变量管理</h2>
					</div>
				
		
					<jsp:include page="/MyApp/Core/SysConfigValiday/admin/SystemManage/superUserHome/MenuBar2.jsp"	></jsp:include>

				
				</div>

			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span>
                                                                    <span class="home_icon">添加系统变量</span></span>
                                                            </a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">添加系统变量</a></li>
                                      
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
													
							<div class="pageContent">
								<div class="pageFormContent" layoutH="56">
								
								   


                                                                    <script type="text/javascript" src="/guuraa.org/javascript/form.js" language="javascript"></script>
                                                                    <form name="ShopProductForm" id="ShopProductForm"  action="<%=request.getContextPath()%>/MyApp/Core/SysConfigValiday/admin/ArticleAdmin/controller.jsp?act=add" method="post"   >

                                                                    <div id="content">

                                                                        <input type="hidden" name="viewCount" value="0">
                                                                         <%--
                                                                        文档路径: contentfilePath,文档内容以文件方式保存到本地目录。文件路径保存于contentfilePath。
                                                                        --%>

                                                                        <dl>

        <dt>       类别:</dt>
		
		 <dd><input type="hidden" name="catid"　 value="<c:out value="${ShopProductCatAdmin.catid}"/>" >


							                                      <input type="text" name="catName"  value="<c:out value="${ShopProductCatAdmin.catName}"/>" size="30" maxlength="45">

</dd>


                                                                    <dl>
                                                                    <dt class="formElementLable">系统变量名称:</dt> <dd><input type="text" name="name" size="30"  maxlength="45"></dd>
                                                                    </dl>

                                 <dl>
                                                                    <dt class="formElementLable">系统变量值:</dt> <dd><input type="text" name="entryValue" size="60"  maxlength="255"></dd>
                                                                    </dl>



                        <dl>
                                                                    <dt class="formElementLable">类型:</dt> <dd><input type="text" name="type" size="30"  maxlength="45"></dd><dd>＊文本：text ，图片：image ， 数字: digital，链接：link </dd>
                                                                    </dl>
																	
																	
																	                        <dl>
                                                                    <dt class="formElementLable">字符长度:</dt> <dd><input type="text" name="charLength" size="30"  maxlength="15"></dd> <dd>*值大小，字符长度</dd>
        
                                                                    <dl>
                                                                    <input id="ShopProductFormSubmit" type="button" onClick="return formsubmit()"  value="提交"/> <input type="reset"  value="重设"/>
                                                                    </dl>

                                                                    </div></form>
                                                                            <script type="text/javascript" language="javascript" >
                                                                            //重设表单
                                                                            function resetForm(){
                                                                                    var formPage=document.forms["ShopProductForm"];	 formPage.reset();
                                                                             return false;
                                                                            }

                                                                            //提交表单，成功后提交表单
                                                                            function formsubmit(){
                                                                                    var form=document.forms["ShopProductForm"];
                                                                                    if(form==null){
                                                                                            alert("无法获取表单！");
                                                                                                    return false;
                                                                                    }
                                                                                    if(form!=null){
                                                                                    //表单验证
                                                                                     var formchekcReturn=formcheck();
                                                                                    if(formchekcReturn !=null && formchekcReturn==true){
                                                                                    form.submit();
                                                                             //将提交按钮设置为失效，防止重复提交
                                                                                    var formSubmit=document.getElementById("ShopProductFormSubmit");
                                                                                    formSubmit.disabled= true;
                                                                                    return true;
                                                                                             }else{
                                                                                    return false;
                                                                                    }
                                                                             }//end if

                                                                            }//end fun
                                                                            //表单验证
                                                                            function formcheck(){
                                                                                    var formPage=document.forms["ShopProductForm"];		if(formPage==null){
                                                                                            alert("未发现表单！");
                                                                                            isreturn =false;
                                                                                            return false;

                                                                                    }
                                                                                    var isreturn =true;

                                                                                    /*
                                                                                    //表单catid元素是否为空
                                                                                 var catid =formPage.catid;
                                                                                    var catidValue=trim(catid.value);
                                                                                            if(catidValue==null||catidValue==""){
                                                                                            alert("catid不能为空！");
                                                                                            catid.focus();
                                                                                            isreturn =false;
                                                                                            return false;
                                                                                    }	//end if
                                                                                    //表单viewCount元素是否为空
                                                                                 var viewCount =formPage.viewCount;
                                                                                    var viewCountValue=trim(viewCount.value);
                                                                                            if(viewCountValue==null||viewCountValue==""){
                                                                                            alert("点击不能为空！");
                                                                                            viewCount.focus();
                                                                                            isreturn =false;
                                                                                            return false;
                                                                                    }	//end if
                                                                                    */
                                                                                    //表单中文验证

                                                                                    //表单字符长度验证

                                                                                    //表单密码强度验证

                                                                                    //表单是否包含字符验证

                                                                                    //表单过长验证

                                                                                    //判断是否提交表单
                                                                                    //alert("return :"+isreturn);

                                                                                    if(isreturn ==false){

                                                                                    //	alert("return :"+isreturn);
                                                                                    return false;

                                                                                    }else{
                                                                                    isreturn=true;
                                                                                    //alert("return :"+isreturn);
                                                                                    return isreturn;
                                                                                    }
                                                                            }

                                                                            </script>
								</div>		
							
							</div>
							
					</div>
					
				</div>
			</div>
		</div>

	</div>

<jsp:include page="/MyApp/Core/pages/tags/footer.jsp"></jsp:include>


    
 

</body>
</html>

