Location: PHPKode > projects > Uchome and Discuz > admin/tpl/backup.htm
<!--{template admin/tpl/header}-->

<div class="mainarea">
<div class="maininner">
<!--{if $showform == 0}-->

	<form method="post" action="admincp.php?ac=backup&op=export" enctype="multipart/form-data">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
	
		<div class="title">
			<h3>Êý¾Ý±¸·Ý</h3>
		</div>
		
		<table cellspacing="0" cellpadding="0" class="formtable">
			<tr>
				<th colspan="2"><input type="radio" name="type" value="uchomes" checked onclick="$('showtables').style.display='none'">UCenter Home È«²¿Êý¾Ý</th>
			</tr>
			<tr>
				<th><input type="radio" name="type" value="custom" onclick="$('showtables').style.display=''">×Ô¶¨Ò屸·Ý</th>
				<td>¸ù¾ÝÐèÒª×ÔÐÐÑ¡ÔñÐèÒª±¸·ÝµÄÊý¾Ý±í</td>
			</tr>
			<tr>
				<td colspan="2" align="right"><input type="checkbox"  onclick="$('advanceoption').style.display=$('advanceoption').style.display == 'none' ? '' : 'none'; this.value = this.value == 1 ? 0 : 1; this.checked = this.value == 1 ? false : true" value="1">¸ü¶àÑ¡Ïî</td>
			</tr>
		</table>
		
		<div id="showtables" style="display:none">
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><td><input type="checkbox" name="chkall" onclick="checkAll(this.form, 'customtables')" checked>È«Ñ¡ <strong>UCenter Home±í</strong></td>
		</table>
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
		<!--{loop $uchome_tablelist $key $value}-->
		<!--{if $key%4 == 0}--></tr><tr><!--{/if}-->
		<td><input type="checkbox" name="customtables[]" value="$value[Name]" checked>$value[Name]</td>
		<!--{/loop}-->
		</tr>
		</table>
		</div>
		
		<div id="advanceoption" style="display:none">
		
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
		<th>±¸·Ý·½Ê½</th>
		</tr>
		<tr>
		<td><input type="radio" name="method" value="shell" $shelldisabled onclick="if($dbversion < '4.1'){if(this.form.sqlcompat[2].checked==true) this.form.sqlcompat[0].checked=true; this.form.sqlcompat[2].disabled=true; this.form.sizelimit.disabled=true;} else {this.form.sqlcharset[0].checked=true; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=true;}}">ϵͳ MySQL Dump (Shell) ±¸·Ý</td>
		</tr>
		<tr>
		<td><input type="radio" name="method" value="multivol" checked onclick="this.form.sqlcompat[2].disabled=false; this.form.sizelimit.disabled=false; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=false;}">UCenter Home ·Ö¾í±¸·Ý: Îļþ³¤¶ÈÏÞÖÆ <input type="text" size="5" value="2048" name="sizelimit"> kb</td>
		</tr>
		</table>
	
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
		<th colspan="2">±¸·ÝÑ¡Ïî</th>
		</tr>
			<tr>
				<th>ʹÓÃÀ©Õ¹²åÈë</th>
				<td><input type="radio" value="1" name="extendins" checked>ÊÇ <input type="radio" value="0" name="extendins" checked>·ñ</td>
			</tr>
			<tr>
				<th>½¨±íÓï¾ä¸ñʽ</th>
				<td><input type="radio" value="" name="sqlcompat" checked>ĬÈÏ(MySQL$dbversion) <input type="radio" value="MYSQL40" name="sqlcompat">MySQL 3.23/4.0.x  <input type="radio" value="MYSQL41" name="sqlcompat">MySQL 4.1.x/5.x </td>
			</tr>
			<tr>
				<th>Ç¿ÖÆ×Ö·û¼¯</th>
				<td>
				<input class="radio" type="radio" name="sqlcharset" value="" checked>ĬÈÏ($_SC['dbcharset'])&nbsp;
				<!--{if $_SC['dbcharset']}-->
				<input class="radio" type="radio" name="sqlcharset" value="$_SC[dbcharset]">$_SC['dbcharset']&nbsp;
				<!--{/if}-->
				<!--{if $dbversion > '4.1' && $_SC['dbcharset'] != 'utf8'}-->
				<input class="radio" type="radio" name="sqlcharset" value="utf8">utf-8</option>
				<!--{/if}-->
				</td>
			</tr>
			<tr>
				<th>Ê®Áù½øÖÆ·½Ê½</th>
				<td><input type="radio" value="1" name="usehex" checked>ÊÇ <input type="radio" value="0" name="usehex" checked>·ñ</td>
			</tr>
			<tr $zipdisplay>
				<th>ѹËõ±¸·ÝÎļþ</th>
				<td><input type="radio" value="1" name="usezip">¶à·Ö¾íѹËõ³ÉÒ»¸öÎļþ <input type="radio" value="2" name="usezip">ÿ¸ö·Ö¾íѹËõ³Éµ¥¶ÀÎļþ <input type="radio" value="0" name="usezip" checked>²»Ñ¹Ëõ</td>
			</tr>
			<tr>
				<th>±¸·ÝÎļþÃû</th>
				<td><input type="text" size="40" value="$filename" name="filename">.sql</td>
			</tr>
		</table>
		</div>
	</div>

	<div class="footactions">
		<input type="hidden" name="setup" value="1">
		<input type="submit" value="Ìá ½»" class="submit">
	</div>
	
	</form>
	
	<br />

	<form method="post" action="admincp.php?ac=backup" name="thevalueform">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
	
		<div class="title">
			<h3>Êý¾Ý»Ö¸´</h3>
		</div>
			
		<table cellspacing="0" cellpadding="0" class="formtable">
			<tr><td>·þÎñÆ÷±¸·ÝÎļþÃû: ./data/<input type="text" name="datafile" value="$backupdir/" size="50"></td></tr>
		</table>
	</div>
	<div class="footactions">
		<input type="submit" name="importsubmit" value="Ìá½»" class="submit">
	</div>
	
	</form>
		
	<br />

	<form method="post" action="admincp.php?ac=backup" name="thevalueform">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">
	
		<div class="title">
			<h3>Êý¾Ý±¸·Ý¼Ç¼</h3>
		</div>
		
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
		<th width="4%">&nbsp;</th>
		<th>ÎļþÃû</th>
		<th width="15%">°æ±¾</th>
		<th width="15%">ÀàÐÍ</th>
		<th width="10%">²Ù×÷</th>
		</tr>
		<!--{loop $exportlog $key $value}-->
		<tr>
		<td>
		<input type="checkbox" name="delexport[]" value="$value['filename']">
		</td>
		<td>
		<a href="./data/$value['filename']"><!--{eval echo basename($value['filename'])}--></a> ($value[size])<br />$value[dateline] 
		<!--{if $value['method'] == 'multivol' && $value['type'] != 'zip'}-->
		¶à¾í
		<!--{elseif $value['method'] == 'multivol'}-->
		SHELL
		<!--{else}-->
		ѹËõ
		<!--{/if}-->
		<!--{if !empty($value['volume'])}-->
		($value['volume'])
		<!--{/if}-->
		</td>
		<td>$value[version]</td>
		<td><!--{if $value['type'] == 'custom'}-->×Ô¶¨Ò屸·Ý<!--{else}-->È«²¿±¸·Ý<!--{/if}--></td>
		<td>
		<!--{if $value['type'] == 'zip'}-->
		<a href="admincp.php?ac=backup&op=import&do=zip&datafile=$value[filename]">[½âѹ]
		<!--{else}-->
			<!--{if $value['version'] != $x_ver}-->
			<a href="admincp.php?ac=backup&op=import&do=import&datafile=$value[filename]"  onclick="return confirm('È·¶¨µ¼Èë?');">[µ¼Èë]</a>
			<!--{else}-->
			<a href="admincp.php?ac=backup&op=import&do=import&datafile=$value[filename]">[µ¼Èë]</a>
			<!--{/if}-->
		<!--{/if}-->
		</td>
		</tr>
		<!--{/loop}-->
		</table>
	</div>

	<div class="footactions">
		<input type="checkbox" name="chkall" onclick="checkAll(this.form, 'delexport')">È«Ñ¡
		<input type="submit" name="delexportsubmit" value="ÅúÁ¿É¾³ý" class="submit">
	</div>

	</form>
	
<!--{elseif $showform == 1}-->

	<form method="get" action="admincp.php" name="thevalueform">
	<div class="bdrcontent">
		<div class="title">
			<h3>µ¼ÈëÈ·ÈÏ</h3>
		</div>
		
		<p>
		<!--{eval echo basename($datafile)}--><br />
		µ¼Èë°æ±¾:$identify[1]<br />
		µ¼ÈëÀàÐÍ:<!--{if $identify[2] == 'custom'}-->×Ô¶¨Ò屸·Ý<!--{else}-->È«²¿±¸·Ý<!--{/if}--><br />
		·½Ê½:<!--{if $identify[3] == 'multivol'}-->¶à¾í<!--{else}-->Shell<!--{/if}--><br />
		<br />È·¶¨µ¼ÈëÂð?
		</p>
	</div>
	
	<div class="footactions">
		<input type="hidden" name="ac"  value="backup">
		<input type="hidden" name="op" value="import">
		<input type="hidden" name="do" value="zip">
		<input type="hidden" name="datafile" value="$datafile">
		<input type="hidden" name="confirm" value="yes">
		<input type="submit" name="confirmed" value="¼ÌÐø" class="submit">
		<input type="button" value="·µ»Ø" onClick="location.href='admincp.php?ac=backup'">
	</div>
	</form>

<!--{elseif $showform == 2}-->

	<form method="get" action="admincp.php" name="thevalueform">
	<div class="bdrcontent">
		<div class="title">
			<h3>×Ô¶¯µ¼ÈëÈ·ÈÏ</h3>
		</div>
		
		<p>ËùÓз־íÎļþ½âѹËõÍê±Ï£¬ÄúÐèÒª×Ô¶¯µ¼È뱸·ÝÂ𣿵¼Èëºó½âѹËõµÄÎļþ½«»á±»É¾³ý¡£</p>

	</div>
	
	<div class="footactions">
		<input type="hidden" name="ac"  value="backup">
		<input type="hidden" name="op" value="import">
		<input type="hidden" name="do" value="import">
		<input type="hidden" name="datafile" value="$datafile_vol1">
		<input type="hidden" name="delunzip" value="yes">
		<input type="submit" name="confirmed" value="¼ÌÐø" class="submit">
		<input type="button" value="·µ»Ø" onClick="location.href='admincp.php?ac=backup'">
	</div>
	</form>

<!--{elseif $showform == 3}-->

	<form method="get" action="admincp.php" name="thevalueform">
	<div class="bdrcontent">
		<div class="title">
			<h3>¼ÌÐø½âѹȷÈÏ</h3>
		</div>
		
		<p>$info<br />±¸·ÝÎļþ½âѹËõÍê±Ï£¬ÄúÐèÒª×Ô¶¯½âѹËõÆäËûµÄ·Ö¾íÎļþÂð£¿</p>
	</div>
	
	<div class="footactions">
		<input type="hidden" name="ac"  value="backup">
		<input type="hidden" name="op" value="import">
		<input type="hidden" name="do" value="zip">
		<input type="hidden" name="multivol" value="1">
		<input type="hidden" name="datafile_vol1" value="$datafile">
		<input type="hidden" name="confirm" value="yes">
		<input type="submit" name="confirmed" value="¼ÌÐø" class="submit">
		<input type="button" value="·µ»Ø" onClick="location.href='admincp.php?ac=backup'" class="submit">
	</div>
	</form>

<!--{elseif $showform == 4}-->

	<form method="get" action="admincp.php" name="thevalueform">
	<div class="bdrcontent">
		<div class="title">
			<h3>×Ô¶¯µ¼È뱸·ÝÈ·ÈÏ</h3>
		</div>
		
		<p>
		<!--{eval echo basename($datafile)}--><br />
		µ¼Èë°æ±¾:$identify[1]<br />
		µ¼ÈëÀàÐÍ:<!--{if $identify[2] == 'custom'}-->×Ô¶¨Ò屸·Ý<!--{else}-->È«²¿±¸·Ý<!--{/if}--><br />
		·½Ê½:<!--{if $identify[3] == 'multivol'}-->¶à¾í<!--{else}-->Shell<!--{/if}--><br />
		<br />±¸·ÝÎļþ½âѹËõÍê±Ï£¬ÄúÐèÒª×Ô¶¯µ¼È뱸·ÝÂ𣿵¼Èëºó½âѹËõµÄÎļþ½«»á±»É¾³ý
		</p>
	</div>
	
	<div class="footactions">
		<input type="hidden" name="ac"  value="backup">
		<input type="hidden" name="op" value="import">
		<input type="hidden" name="do" value="import">
		<input type="hidden" name="datafile" value="$backupdir/$importfile">
		<input type="hidden" name="delunzip" value="yes">
		<input type="submit" name="confirmed" value="¼ÌÐø" class="submit">
		<input type="button" value="·µ»Ø" onClick="location.href='admincp.php?ac=backup'" class="submit">
	</div>
	</form>
<!--{elseif $showform == 5}-->

	<form method="get" action="admincp.php" name="thevalueform">
	<div class="bdrcontent">
		<div class="title">
			<h3>×Ô¶¯µ¼È뱸·ÝÈ·ÈÏ</h3>
		</div>
		
		<p>·Ö¾íÊý¾Ý³É¹¦µ¼ÈëÊý¾Ý¿â£¬ÄúÐèÒª×Ô¶¯µ¼Èë±¾´ÎÆäËûµÄ±¸·ÝÂð£¿</p>
	</div>
	
	<div class="footactions">
		<input type="hidden" name="ac"  value="backup">
		<input type="hidden" name="op" value="import">
		<input type="hidden" name="do" value="import">
		<input type="hidden" name="datafile" value="$datafile_next">
		<input type="hidden" name="autoimport" value="yes">
		<!--{if isset($_GET['unzip'])}-->
		<input type="hidden" name="delunzip" value="yes">
		<!--{/if}-->
		<input type="submit" name="confirmed" value="¼ÌÐø" class="submit">
		<input type="button" value="·µ»Ø" onClick="location.href='admincp.php?ac=backup'" class="submit">
	</div>
	</form>

<!--{/if}-->
</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->
Return current item: Uchome and Discuz