
<%@page import="java.util.Map"%>
<%@page import="java.util.HashMap"%>
<%@ 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="miinshop.entryDomain.dao.ShopProductCat,miinshop.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/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>

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

<script type="text/javascript"  src="/DateTimeCalendar/DateTimeCalendar.js" language="javascript">
</script> 

</head>

<body>

<div class="title_box"><h1>修改产品</h1></div>

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

    <input type=hidden name="aid" value="<c:out value="${ShopProduct.aid}"></c:out>" > 

   <p>
<span class="formElementLable"> catid:</span>
<input type=text name="catid" size="30" maxlength="45"value="<c:out value="${ShopProduct.catid}"></c:out>" > 

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

<span class="formElementLable">发布人ＩＤ:</span>
<input type=text name="inputUserId" size="30" maxlength="45"value="<c:out value="${ShopProduct.inputUserId}"></c:out>" > 

<span class="formElementLable">发布人:</span>

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

</p>


 <p>
<span class="formElementLable"> 产品标题:</span>
<input type=text name="title" value="<c:out value="${ShopProduct.title}"></c:out>"  size="30" maxlength="45"> 
</p>

<p><label for="editor1">产品内容:</label>
    
    <%-- 
<textarea cols="80" id="contentEditor" name="contentEditor" rows="10">
    <c:if test="${contentEditor!=null}">
<c:out value="${contentEditor}"></c:out>
    </c:if>

</textarea>



	CKEditorConfig settings = new CKEditorConfig();
	settings.addConfigValue("width","500");
       // <ckeditor:replace replace="contentEditor" basePath="/GuuRaaJspCMS/ckeditor/" config="<%=settings %>" />

--%>
 

<% 
    String text_doc=(String)request.getAttribute("contentEditor");
	Map<String, String> attr = new HashMap<String, String>();
	attr.put("rows", "8");
	attr.put("cols", "50");
%>


<ckeditor:editor textareaAttributes="<%=attr %>" basePath="/ckeditor/" editor="contentEditor" value="<%= text_doc %>" />
</p>



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

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

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

<p>
<span class="formElementLable">产品模板路径:</span>
<input type=text name="templetePath" size="30" maxlength="45" value="<c:out value="${ShopProduct.templetePath}"></c:out>" > 
</p>

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

<p>
<span class="formElementLable">作者:</span>
<input type=text name="authorName" size="30" maxlength="45"value="<c:out value="${ShopProduct.authorName}"></c:out>" > 
</p>

<p>
<span class="formElementLable">标签:</span>
<input type=text name="tagsName" size="30" maxlength="45"value="<c:out value="${ShopProduct.tagsName}"></c:out>" > 
</p>

<p>
<span class="formElementLable">点击:</span>
<input type=text name="viewCount" size="30" maxlength="45"value="<c:out value="${ShopProduct.viewCount}"></c:out>" > 
</p>

<p>
<span class="formElementLable">是否审核:</span>
    <input type=checkbox name="bcheck" value="<c:out value="${ShopProduct.bcheck}"></c:out>" > 
</p>

<p>
<span class="formElementLable">是否通过:</span>
        <input type=checkbox name="bpassed" value="<c:out value="${ShopProduct.bpassed}"></c:out>" > 
</p>

<p>
<span class="formElementLable">是否首页推荐:</span>
            <input type=checkbox name="bcmdIndex" value="<c:out value="${ShopProduct.bcmdIndex}"></c:out>" > 
</p>

<p>
<span class="formElementLable">是否分类推荐:</span>
               
 <input type=checkbox name="bcmsCat" value="<c:out value="${ShopProduct.bcmsCat}"></c:out>" > 
</p>

<p>
<span class="formElementLable">发布时间:</span>
<input type=text name="addTime" size="30" maxlength="45"value="<c:out value="${ShopProduct.addTime}"></c:out>" > *由系统指定
</p>

<p>
<span class="formElementLable">更新时间:</span>
<input type=text name="updateTime" size="30" maxlength="45" value="<c:out value="${ShopProduct.updateTime}"></c:out>" > *由系统指定
</p>



<p>
<input type=submit  value="提交"/>
<input type=reset  value="重设"/>
</p>

</div>

</form>
</body>
</html>
