mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 08:59:26 +08:00
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<%+cbi/valueheader%>
|
|
<div style="text-align: center; margin:0 auto; display:block; white-space: nowrap;">
|
|
<label class="cbi-value" style="display:inline-block; width: 100%;" for="ulfiles"><%:Upload File Type%> <%:(Click to select)%>
|
|
<select name="file_type" style="width:auto">
|
|
<option value="config" selected="selected"><%:Config File%> (.yaml)</option>
|
|
<option value="proxy-provider"><%:Proxy Provider File%></option>
|
|
<option value="rule-provider"><%:Rule Provider File%></option>
|
|
<option value="clash_meta">[Meta] <%:Core File%> (.tar.gz)</option>
|
|
<option value="backup-file"><%:Backup File%> (.tar.gz)</option>
|
|
</select>
|
|
<input class="cbi-input-file" style="width: 30%" type="file" id="ulfile" name="ulfile" />
|
|
<input type="submit" class="btn cbi-button cbi-input-reload" name="upload" value="<%:Upload%>" />
|
|
<input type="submit" class="btn cbi-button cbi-button-reset" value="<%:Backup%>" onclick="return backup_all_file(this)"/>
|
|
</div>
|
|
<%+cbi/valuefooter%>
|
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
|
|
function backup_all_file(btn)
|
|
{
|
|
btn.value = '<%:Backup%>';
|
|
btn.disabled = true;
|
|
window.location.href='<%="backup"%>';
|
|
btn.disabled = false;
|
|
return false;
|
|
};
|
|
|
|
//]]></script> |