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

<!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="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="Content-Type" content="text/html; charset=gbk" />

		<title></title>
		<link href="../style/blue/css/main.css" type="text/css" rel="stylesheet" />
		<link href="../style/blue/css/reset-min.css" rel="stylesheet" type="text/css" />

		<script type="text/javascript" src="../common/js/jquery-1.7.gzjs"></script>
		<script language="javascript" type="text/javascript" src="../javascript/commonUtil_src.js"></script>
		<script>
			
			if("true"==="${param.fromFlow}")
         	{         
      			var api = frameElement.api, W = api.opener; 
		          
             	api.close();     
            	W.window.location.reload();
            	W.window.parent.frames["treeFrame"].location.reload(); 
        	 }
        	 
        	 var ref_flag=/^[.\w]{1,25}$/; 
         
	        
	         $(function()
			 {
			   
	 			validate('name',0,ref_flag,'格式为字母,数字,下划线');	
	 				
			 })
			
			
		</script>
	</head>
	<body>
	
	<form id="createForm" name="createForm" method="post">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="left" valign="top">
					<!--main start-->
				

				
						<table width="100%" border="0" cellpadding="0" cellspacing="0" class="form-table">
							
							<tr>
								<td width="31%" class="input-title">
									<strong>目标名称</strong>
								</td>
								<td class="td-input">
									<input type="text" size="30" id="name" name="name" class="form-input"></input>
								</td>
							</tr>
							<tr>
								<td class="input-title">
									<strong>建立类型</strong>
								</td>
								<td class="td-input">
									<input type="radio" name="type" class="form-radio" value="file" checked />
									文件
									<input type="radio" name="type" class="form-radio" value="folder" />
									文件夹
								</td>
							</tr>

						</table>
						<!-- hidden -->
							<input type="hidden" id="entry" name="entry" value="${param.entry}" />
					
					</form>
					<div style="height:15px"></div>
					<div class="breadnavTab"  >
						<table width="100%" border="0" cellspacing="0" cellpadding="0" >
							<tr class="btnbg100">
								<td width="68%" class="input-title">

								</td>
								<td class="td-input">
									<a  href="javascript:createFileOrFolder();"  class="btnwithico"><img src="../style/icons/tick.png" width="16" height="16" id="submitTagClassFormImg"/><b>确定&nbsp;</b> </a>
									<a href="javascript:close();"  class="btnwithico" onclick=""><img src="../style/icon/close.png" width="16" height="16"/><b>取消&nbsp;</b> </a>
								</td>
								 
							</tr>
						</table>
					</div>
				</td>
			</tr>
	
	
	
	
	
	</body>
</html>

<script type="text/javascript">

function createFileOrFolder()
{
	var hasError = false;
	//系统信息字段验证
    var currError = submitValidate('name',0,ref_flag,'格式为字母,数字,下划线');	
        
        if(currError)
        {
        	hasError = true;
        }
        
   
    
    
    			
    if(hasError)
    {
    	$("#submitFormBut").removeAttr("disabled"); 
	    $("#submitFormImg").removeAttr("disabled"); 
	    
	    return;

	}
	
	var form = document.getElementById('createForm');
	form.action = '<cms:BasePath/>templet/createSiteFile.cmd';
	form.submit();
}


function close()
{
	var api = frameElement.api, W = api.opener; 	          
    api.close();      
}
				
									
</script>

