![]() |
Xataface 2.0
Xataface Application Framework
|
00001 <?php include 'install'.DIRECTORY_SEPARATOR.'install_header.inc.php';?> 00002 <h2><img src="images/preferences-system-windows.png"/> Create Application from Existing Database</h2> 00003 <p>This form allows you to create a Dataface user interface for an existing MySQL database.</p> 00004 00005 <form <?php echo $context['attributes'];?>> 00006 <?php echo $context['javascript'].$context['hidden'];?> 00007 00008 <div class="errors"> 00009 <?php if (count($context['errors']) > 0):?> 00010 <ul> 00011 <?php foreach ($context['errors'] as $err):?> 00012 <?php echo $err;?> 00013 <?php endforeach; ?> 00014 </ul> 00015 <?php endif;?> 00016 00017 00018 00019 <div id="step1"><h3>Step 1: Select database</h3> 00020 <p>Please select that database for which you wish to build a Xataface application.</p> 00021 00022 <div><?php echo $context['elements']['database_name']['html'];?></div> 00023 </div> 00024 00025 00026 <div id="step2" style="display:none"><h3>Step 2: Enter Database Connection Info</h3> 00027 00028 <p>Please enter the connection information that resulting Xataface application will 00029 use to connect to the database.</p> 00030 00031 <table> 00032 00033 <tr><td>MySQL Username</td><td><?php echo $context['sections']['db_info']['elements']['mysql_user']['html'];?></td></tr> 00034 00035 <tr><td>MySQL Password</td><td><?php echo $context['sections']['db_info']['elements']['mysql_password']['html'];?></td></tr> 00036 00037 </table> 00038 <input type="button" onclick="testdb(document.getElementById('db2app'));return false;" value="Test DB Connection" /><div id="db-test-results" ></div> 00039 00040 <div>If database connection info is correct, <input type="button" onclick="document.getElementById('step3').style.display='';return false;" value="proceed to next step" /></div> 00041 00042 </div> 00043 00044 00045 <div id="step3" style="display:none"><h3>Step 3: Select Installation Type</h3> 00046 00047 <p>You can either install the application directly on your web server (requires FTP 00048 connection information), or download the application as a tar archive, so that you 00049 can install it on your server manually.</p> 00050 00051 <p>Please select your preferred method of installation: 00052 00053 <?php echo $context['sections']['db_info']['elements']['install_type']['html'];?></p> 00054 00055 </div> 00056 00057 00058 <div id="step4" style="display:none"><h3>Step 4: FTP Connection Details</h3> 00059 00060 <p>In order to install the application on your web server, Xataface needs to know 00061 the FTP connection details to connect to the server. This is because Xataface 00062 will make an FTP connection to your web server and copy the application directly 00063 to a directory of your choosing.</p> 00064 00065 <fieldset> 00066 <legend>FTP Connection Info</legend> 00067 <table> 00068 <?php $f =& $context['sections']['ftp_info']['elements']; ?> 00069 <tr><td>Host</td><td><?php echo $f['ftp_host']['html'];?> Use SSL: <?php echo $f['ftp_ssl']['html'];?></td><td class="instructions">e.g. weblite.ca</td></tr> 00070 00071 <tr><td valign="top">Path</td><td><?php echo $f['ftp_path']['html'];?> 00072 <div class="instructions">This should be the parent directory of your application. Your application will be created in a directory of the same name as the database. E.g. If your database is named <em>my_db</em> and you enter path <em>/var/www</em> in this field, then this installer will create the directory <em>/var/www/my_db</em> for your application.</div> 00073 00074 </td><td valign="top" class="instructions">e.g. /var/www </td></tr> 00075 00076 <tr><td>Username</td><td><?php echo $f['ftp_username']['html'];?></td><td></td></tr> 00077 00078 <tr><td>Password</td><td><?php echo $f['ftp_password']['html'];?></td><td></td></tr> 00079 00080 </table> 00081 00082 <p><input type="button" onclick="testftp(document.getElementById('db2app')); return false;" value="Test FTP Connection" />Test FTP Connection</p> 00083 <div id="ftp-test-results"></div> 00084 <p>If FTP connection info is correct, <input type="button" onclick="document.getElementById('submitstep').style.display='';return false;" value="proceed to next step" /></p> 00085 </fieldset> 00086 </div> 00087 00088 <div id="submitstep" style="text-align:center; display:none"><?php echo $f['submit']['html'];?></div> 00089 00090 </form> 00091 00092 <?php include 'install'.DIRECTORY_SEPARATOR.'install_footer.inc.php';?>