Location: PHPKode > projects > MembersGear > membersgear/templates/admin_db_restore.tpl
{$ADMIN_HEADER}
{literal}
  <script language="javascript" type="text/javascript"> 
         function FormValidate()
         {
                var error = '';
                var flag  = 1;
                var focus = '';
                
               var temp = document.getElementById('file');
               alert(temp); 
               return false;
         }
         
  </script>
{/literal}
<div id="content" class="setdiv">
  {*  <div id="contentdiv">
        <div class="leftdiv">
            <div class="righttop">
                <h2>
                    Welcome To SafelistProX 3.2.1 Control Panel</h2>
            </div>
            <div class="contant divborder">
                The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
                lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
                over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
                fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick
                brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
                The quick brown fox jumps over the lazy dog.
                <div class="link-set clear">
                    <a href="#">read more...</a></div>
            </div>
        </div>
        <div class="rightdiv">
            <div class="righttop">
                <h2>
                    Your Safelist Overview</h2>
            </div>
            <div class="contant divborder">
                The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the
                lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
                over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown
                fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick
                brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.
                The quick brown fox jumps over the lazy dog.
                <div class="link-set clear">
                    <a href="#">read more...</a></div>
            </div>
        </div>
    </div>  *}
    
    <div id="full-contentdiv">
        <div class="righttop">
            <h2 align="center">
                Restore Database
            </h2>
         </div>
         <div class="whole-page clear">
            <!-- Place your content here -->
            <div class="errormsg">
                  <span>
                           WARNING! ALL YOUR CURRENT MEMBER SITES TABLES AND RECORDS WILL BE REPLACED WITH THE CONTENTS OF THE BACKUP! 
                  </span>
            </div>
            {*
            <form action="restoreDB.php" method=post
                    enctype="multipart/form-data"
                    onsubmit="return confirm('It will replace all your exising database with backup. Do you really want to proceed?')">
                    <input type=file name=file id="file">
                    <input type=submit value=Restore onclick="">
            </form>
              *}
              <table border="0" width="890px">
                    <tr>
                            <td style="width:350px" align="center">
                                <span style="color:#E78518;font-weight:bold">File Name</span>
                            </td>
                            
                            <td  style="width:350px" align="center">
                                <span style="color:#E78518;font-weight:bold">Last Restored On</span>
                            </td>
                            
                            <td  style="width:350px" align="center">
                                <span style="color:#E78518;font-weight:bold">Created On</span>
                            </td>
                            
                            <td  style="width:290px" align="center">
                                 <span style="color:#E78518;font-weight:bold">Action</span>
                            </td>
                      </tr>
              {section name=data loop=$data}
                      <tr>
                            <td style="width:350px;">
                                <span style="color:#17559B">{$data[data].filename}</span>
                            </td>
                            
                            <td style="width:350px" align="center">
                                <span style="color:#17559B">{if $data[data].lastrestoredon eq 0}Never{else}{$data[data].lastrestoredon|date_format:"%d %B, %Y"}{/if}</span>
                            </td>
                            
                            <td style="width:350px" align="center">
                                <span style="color:#17559B">{$data[data].createdon|date_format:"%d %B, %Y"}</span>
                            </td>
                            
                            <td style="width:290px" align="center">
                               <a href="restoreDB.php?file={$data[data].filename}&id={$data[data].id}"> 
                                    <img alt="" align="absmiddle" src="{$ADMIN_IMAGE_DIR}/database.gif" width="16" height="16" title="Restored" onclick="return confirm('This action will replace all your exising data with this backup and cannot be undo. Do you really want to proceed?')"/>
                               </a>
                               
                               <a href="download_dbbackup.php?file={$data[data].filename}"> 
                                    <img alt="" align="absmiddle" src="{$ADMIN_IMAGE_DIR}/a_download.gif" title="Download"/>
                               </a>
                               
                            </td>
                      </tr>
              {sectionelse}
                    <tr>
                         <td colspan="4" align="center"><span style="color:#000;font-weight:bold">No Record Found</span></td>
                    </tr>
              {/section}
              </table>
         </div>
    </div>
    <div style="height:200px;">
    
    </div>
    
</div>

{$ADMIN_FOOTER}
Return current item: MembersGear