找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3330|回复: 0

openwrt flashops.htm页面上信息请教。

[复制链接]
发表于 2015-3-11 13:01 | 显示全部楼层 |阅读模式
<%#
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

$Id$

-%>

<%+header%>

<h2><a id="content" name="content"><%:Flash operations%></a></h2>

<ul class="cbi-tabmenu">
        <li class="cbi-tab"><a href="#"><%:Actions%></a></li>
        <li class="cbi-tab-disabled"><a href="<%=REQUEST_URI%>/backupfiles"><%:Configuration%></a></li>
</ul>

<fieldset class="cbi-section">

        <fieldset class="cbi-section">
                <legend><%:Backup / Restore%></legend>
                <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
                        <div class="cbi-section-descr"><%:Click "Generate archive" to download a tar archive of the current configuration files. To reset the firmware to its initial state, click "erform reset" (only possible with squashfs images).%></div>
                        <div class="cbi-section-node">
                                <div class="cbi-value<% if not reset_avail then %> cbi-value-last<% end %>">
                                        <label class="cbi-value-title" for="image"><%ownload backup%>:</label>
                                        <div class="cbi-value-field">
                                                <input class="cbi-button cbi-button-apply" type="submit" name="backup" value="<%:Generate archive%>" />
                                        </div>
                                </div>
                                <% if reset_avail then %>
                                <div class="cbi-value cbi-value-last">
                                        <label class="cbi-value-title"><%:Reset to defaults%>:</label>
                                        <div class="cbi-value-field">
                                                <input class="cbi-button cbi-button-reset" type="submit" name="reset" value="<%:Perform reset%>" />
                                        </div>
                                </div>
                                <% end %>
                        </div>
                        <br />
                        <div class="cbi-section-descr"><%:To restore configuration files, you can upload a previously generated backup archive here.%></div>
                        <div class="cbi-section-node">
                                <div class="cbi-value cbi-value-last">
                                        <label class="cbi-value-title" for="archive"><%:Restore backup%>:</label>
                                        <div class="cbi-value-field">
                                                <input type="file" name="archive" id="archive" />
                                                <input type="submit" class="cbi-button cbi-input-apply" name="restore" value="<%:Upload archive...%>" />
                                        </div>
                                </div>
                        </div>
                </form>
        </fieldset>

        <br />

        <fieldset class="cbi-section">
                <legend><%:Flash new firmware image%></legend>
                <% if upgrade_avail then %>
                        <form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
                                <div class="cbi-section-descr"><%:Upload a sysupgrade-compatible image here to replace the running firmware. Check "Keep settings" to retain the current configuration (requires an OpenWrt compatible firmware image).%></div>
                                <div class="cbi-section-node">
                                        <div class="cbi-value">
                                                <label class="cbi-value-title" for="keep"><%:Keep settings%>:</label>
                                                <div class="cbi-value-field">
                                                        <input type="checkbox" name="keep" id="keep" checked="checked" />
                                                </div>
                                        </div>
                                        <div class="cbi-value cbi-value-last<% if image_invalid then %> cbi-value-error<% end %>">
                                                <label class="cbi-value-title" for="image"><%:Image%>:</label>
                                                <div class="cbi-value-field">
                                                        <input type="file" name="image" id="image" />
                                                        <input type="submit" class="cbi-button cbi-input-apply" value="<%:Flash image...%>" />
                                                </div>
                                        </div>
                                </div>
                                <% if image_invalid then %>
                                        <div class="cbi-section-error"><%:The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform. %></div>
                                <% end %>
                        </form>
                <% else %>
                        <div class="cbi-section-descr"><%:Sorry, there is no sysupgrade support present; a new firmware image must be flashed manually. Please refer to the OpenWrt wiki for device specific install instructions.%></div>
                <% end %>
        </fieldset>

</fieldset>

<%+footer%>

大侠们,红色笔记标注的按钮,在点击以后,是如何调用后台程序处理的呢?谢谢啦。


只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-9-23 20:20

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表