<!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=gb2312" />
<title>一键更新</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/jquery.min.js" type="text/javascript"></script>	
<script type="text/javascript" src="js/admin.jquery.configuration.js"></script>

<script language="javascript" src="js/global.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script type="text/javascript" src="js/calendar/calendar.js"></script>
<script language='javascript'>
function SelUp(){
   var ob1 = document.getElementById("uptype1");
   var ob2 = document.getElementById("uptype2");
   var ob3 = document.getElementById("uptype3");
   if(ob1.checked){
      document.getElementById("seltime").style.display = "";
	  document.getElementById("selid").style.display = "none";
   }else if(ob2.checked){
      document.getElementById("seltime").style.display = "none";
	  document.getElementById("selid").style.display = "";
   }else{
      document.getElementById("seltime").style.display = "none";
	  document.getElementById("selid").style.display = "none";
   }
}
</script>
</head>
<body>
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<?php include(DEDEADMIN.'/templets/menu.htm'); ?>
<script language="javascript">
$("#makehtml").addClass("current");$("#makehtml_all").addClass("current");</script>				

	<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>一键更新</h3>
					
					<ul class="content-box-tabs">

					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
<div class="tab-content  default-tab" id="tab1">				
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
  <input type="hidden" name="action" value="make" />

    <tr>
      <td width="30%" height="30"  bgcolor="#FFFFFF">&nbsp;&nbsp;更新选项：</td>
      <td valign="top" bgcolor="#FFFFFF">
	   <input name="uptype" id="uptype1" type="radio" class="np" value="time" onClick="SelUp()" checked="checked" />
	   指定时间的所有更新
	   <input name="uptype" id="uptype2" type="radio" class="np" onClick="SelUp()" value="id" />
	   指定ID文档的所有更新
	   <input name="uptype" id="uptype3" type="radio" class="np" onClick="SelUp()" value="mkall" />
	   更新所有
	   </td>
    </tr>
    <tr id='seltime'>
      <td height="20"  bgcolor="#FFFFFF">&nbsp;&nbsp;起始时间：</td>
      <td height="20"  bgcolor="#FFFFFF">
      	<input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time()); ?>" style="width:200px" />
                            <script language="javascript" type="text/javascript">
					Calendar.setup({
						inputField     :    "starttime",
						ifFormat       :    "%Y-%m-%d",
						showsTime      :    false,
						timeFormat     :    "24"
					});
				 </script>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF" id="selid" style="display:none;">
      <td height="20">&nbsp;&nbsp;起始ID：</td>
      <td height="20">
      	<input name="startid" type="text" id="startid" value="0" size="4" />
      </td>
    </tr>
	<tr>
      <td height="31" colspan="2" bgcolor="#ffffff" align="center" style="padding-top:6px">
      <input class="button" name="Submit" type="submit" value="开始更新" />
      
      </td>
    </tr>
  </form>
  <tr bgcolor="#F9FCEF">
    <td height="20" colspan="2">
    <table width="100%">
     <tr>
      <td width="74%">进行状态： </td>
       <td width="26%" align="right">
		    <script language='javascript'>
            	function ResizeDiv(obj,ty)
            	{
            		if(ty=="+") document.all[obj].style.pixelHeight += 50;
            		else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
            	}
            	</script>
            [<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>]          </td>
        </tr>
      </table>
     </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td colspan="2" id="mtd">
	  <div id='mdv' style='width:100%;height:350px;'>
      <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="350px"></iframe>
   </div>
   <script language="JavaScript">
	  document.all.mdv.style.pixelHeight = screen.height - 360;
	  </script>
   </td>
  </tr>
</table>
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
           <?php include(DEDEADMIN.'/templets/footer.htm'); ?>
			
		</div> <!-- End #main-content -->	
	</div>
</body>
</html>