Login   Register  
PHP Classes
elePHPant
Icontem

File: phpinstaller/tpl/installation_ui.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Federico  >  PHP Installer  >  phpinstaller/tpl/installation_ui.html  >  Download  
File: phpinstaller/tpl/installation_ui.html
Role: Auxiliary script
Content type: text/plain
Description: installer ui
Class: PHP Installer
Create PHP application install scripts
Author: By
Last change:
Date: 4 years ago
Size: 3,072 bytes
 

Contents

Class file image Download
<body>
    <!-- created with PHP Installer -->
    <div id="title">{$title}</div>
    <div id="description">{$description}</div>
    
    <div id="doc">
        <b>Php Installer Documentation</b><br/>
        Edit all settings to install the package
        <ul>
            <li>Info: number and size of files and directories. If present, name of file that will be executed at the end of installation.</li>
            <li>Choose Install Directory: where the package will be installed</li>
            <li>Overwrite Files? Check if you want to overwrite the present file. Disabled by default.</li>
            <li>Install Database? Check and insert the account and database info if you want install the database</li>
            <li>Confirm Installation. Check to procede with the installation.</li>
        </ul>
    </div>
    <div id="layout">
    <form action="" method="POST">
        <div class="title">Installation</div>
        <div>
            <b>Info</b>:<br/>
            {$nfile} files and {$ndir} directories: {$size}<br/>
            Compressed size: {$compressed_size}<br/>
            <?php
                
if( $execute )
                    echo 
"<b>After the installation will be executed the file: $execute</b>";
            
?>
        </div>
        <div><span>Choose install directory</span><input type="text" name="dir" value=""></div>
        <div><input type="checkbox" name="overwrite" id="overwrite"> <label for="overwrite">Overwrite files?</label></div>
        <div>
            <label for="db"><input type="checkbox" id="db" name="db" onchange="document.getElementById('db_fieldset').style.display=!this.checked?'none':'block';"> Install database? </label>
            <fieldset id="db_fieldset" style="display:none;">
                <div><span>Database hostname</span><input type="text" name="db_hostname" value=""></div>
                <div><span>Database Username</span><input type="text" name="db_username" value=""></div>
                <div><span>Database Password</span><input type="text" name="db_password" value=""></div>
                <div><span>Database Name</span><input type="text" name="db_database" value="<?php echo $db['database']; ?>"></div>
                <div><a href="?dump=1" target="_blank">Click here to download the database for manual installing.</a></div>
            </fieldset>
        </div>
        <div><input type="checkbox" name="install" id="install"> <label for="install">Confirm installation.</label></div>
        <div><button>INSTALLATION</button></div>
    </form>
    </div>

    <table cellspacing="0" cellpadding="5" id="list">
        <thead>
            <th>Filename</td>
            <th>Size</td>
            <th>Permission</td>
        </thead>
        <?php
            
foreach( $file as $filename => $value )
                echo 
"<tr><td>$filename</td><td>".(byte($value['size']))."</td><td align=\"center\">{$value['perms']}</td></tr>";
        
?>
    </table>
    
    <br/>
    Database in the package
    <?php if( isset($db) ){ ?>
    <table cellspacing="0" cellpadding="5" id="list">
        <thead>
            <th>Table</td>
            <th>Rows</td>
        </thead>
        <?php
            
foreach( $db['table_list'] as $table => $n )
                echo 
"<tr><td>$table</td><td>{$n}</td></tr>";
        
?>
    </table>
    <?php ?>
    <div id="copyright">Created with Php Installer project by <a href="http://www.raincms.com/">www.raincms.com</a><br/>{$author}</div>
</body>