<!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=UTF-8">
            <title>{{$lang.admin_title}}</title>
            <script type="text/javascript" src="{{$js_path}}global.js"></script>
            <script type="text/javascript" src="{{$admin_js_path}}admin.js"></script>
            <link href="{{$style_path}}main.css" rel="stylesheet" type="text/css" />
            <script type="text/javascript">
                var setSelectOptions = function(fAllow) {
                    var oOpt = $('tab_sel').childNodes;
                    var iNum = oOpt.length;
                    for(var i = 0; i < iNum; i++) {
                        if(oOpt[i].tagName == 'OPTION') {
                            if (fAllow == true) {
                                oOpt[i].selected = "selected";
                            } else {
                                oOpt[i].selected = '';
                            }
                        }
                    }
                }
            </script>
    </head>
    <body>
        <div class="layout">
            <!-- 当前所在位置和相关链接 -->
            <div class="location_nav">
                <!-- 当前所在位置 -->
                <div class="location_link">
                    <ol id='breadcrumb'>
                        {{foreach from=$location_link item=link name=link}}
                        <li>{{$link}}{{if !$smarty.foreach.link.last}}&nbsp;&gt;&nbsp;{{/if}}</li>
                        {{/foreach}}
                    </ol>
                </div>
                <!-- 相关链接 -->
                <div class="location_other">
                    {{foreach from=$location_other item=other_link}}
                    {{$other_link}}&nbsp;
                    {{/foreach}}
                </div>
            </div>

            <!-- 添加目录标题行 -->
            <div class="title_bgcolor">
                <span>{{$lang.title_database_backup}}</span>
            </div>
            <!-- 添加目录表单 -->
            <div class="list">
                <a href="javascript:;" onclick="setSelectOptions(true);">{{$lang.select_all}}</a>
                /
                <a href="javascript:;" onclick="setSelectOptions(false);">{{$lang.select_notall}}</a>
                {{$lang.notice_backup_about}}
                <br />
                <form action="{{$current_page_url}}" method="post">
                <select id="tab_sel" name="table_select[]" size="6" multiple="multiple">
                    {{foreach from=$tabs item=tab}}
                    <option value="{{$tab}}" selected="selected">{{$tab}}</option>
                    {{/foreach}}
                </select>
                <span class='yesno_yes '>
                    <input type='radio' name='text_data_type' value='csv'   id="sub_can_post_yes" checked />
                    <label for='sub_can_post_yes' class="label_radio">{{$lang.label_db_sql}}</label>
                </span><span class='yesno_no '>
                    <input type='radio'  id="sub_can_post_no"  name='text_data_type' value='sql'/>
                    <label for='sub_can_post_no'>{{$lang.label_db_xml}}</label>
                </span><span class='yesno_yes '>
                    <input type='radio' name='text_data_type' value='doc'   id="sub_can_post_yes"/>
                    <label for='sub_can_post_yes' class="label_radio">{{$lang.label_db_doc}}</label>
                </span><span class='yesno_no '>
                    <input type='radio'  id="sub_can_post_no"  name='text_data_type' value='csv'/>
                    <label for='sub_can_post_no'>{{$lang.label_db_csv}}</label>
                </span>
                &nbsp;&nbsp;
                <input type="submit" class="button" name="sub_db_backup" value="{{$lang.sub_backup}}"/>
                </form>
            </div>
        </div>
    </body>
</html>