<?php use_helper('Validation') ?>
<?php use_stylesheet('/sf/sf_admin/css/main') ?>
<?php use_helper('I18N');?>
<div id="sf_admin_container" style="width:70%">
<div id="sf_admin_content">
    <h1><?php echo __("Backup") ?></h1>
    <?php if ($sf_flash->has('notice')): ?>
    <div class="save-ok">
    <h2><?php echo __($sf_flash->get('notice')) ?></h2>
    </div>
    <?php endif;?>
    <h1><?php echo __("Restore") ?></h1>
    <?php echo form_tag('system/restore', 'multipart=true')?><!--start form--> 
        <fieldset>
            
            <div class="form-row-system">
                <label for="backup-data" class="required"><?php echo __("Backup data")?></label> 
                <div class="content">
                    <?php
                        if(is_dir("backup/resources")){
                            if($handle = opendir("backup/resources")) {
                                while(false != ($file = readdir($handle))) {
                                    if ($file != "." && $file != "..") {
                                        echo radiobutton_tag("data",$file);
                                        echo "&nbsp ".$file."<br>";
                                    }//if
                                }//while
                            }//if
                        }//if
                    ?>
                    <br>
                    <br>
                    <div style="text-align:center">
                        <input type="submit" value="<?php echo __("Start")?>" />
                        <input onclick="window.history.back()" type="button" value="<?php echo __("Cancel")?>" />
                   </div> 
               </div>
            </div>
      
        </fieldset>
    </form>
</div>
</div>

