|
From: Benjamin C. <bc...@us...> - 2004-05-02 17:07:16
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20289/templates/default Modified Files: Tag: htmltemplates install.html Log Message: Cleaning up Index: install.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/install.html,v retrieving revision 1.9.6.1 retrieving revision 1.9.6.2 diff -u -r1.9.6.1 -r1.9.6.2 --- install.html 30 Aug 2003 22:00:34 -0000 1.9.6.1 +++ install.html 2 May 2004 17:07:08 -0000 1.9.6.2 @@ -1,21 +1,25 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trasitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>phpBugTracker Installation</title> - <link rel="StyleSheet" href="styles/default.css" type="text/css"> - <script language="JavaScript"> + <link rel="StyleSheet" href="styles/default.css" type="text/css" /> + <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" /> + <script language="JavaScript" type="text/javascript"> + <!-- function testDB(frm) { window.open('install.php?op=dbtest&db_type=' + frm.db_type.options[frm.db_type.selectedIndex].value + '&db_host=' + frm.db_host.value + '&db_database=' + frm.db_database.value + '&db_user=' + frm.db_user.value + '&db_pass=' + frm.db_pass.value, 'iwin', 'dependent=yes,width=450,height=300,scrollbars=1'); } + // --> </script> </head> <body bgcolor="#ffffff" link="#006699" vlink="#006699" alink="#006699"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> - <td width="200" valign="top"><br><img src="logo.jpg"></td> + <td width="200" valign="top"><br /><img src="logo.jpg" alt="phpBugTracker Logo" /></td> <td valign="top" align="center"> <div class="banner"><?php echo translate("phpBugTracker Installation"); ?></div> <?php if (!empty($error)) echo "<div class=\"error\">$error</div>"; ?> @@ -25,36 +29,36 @@ </tr> <tr> <td width="150">Type:</td> - <td><select name="db_type"><?php build_select($db_type) ?></select></td> + <td><select name="db_type"><?php db_type_options($db_type) ?></select></td> </tr> <tr> <td width="150">Host:</td> - <td><input type="text" name="db_host" value="<?php echo !empty($db_host) ? $db_host : 'localhost'; ?>"></td> + <td><input type="text" name="db_host" value="<?php echo !empty($db_host) ? $db_host : 'localhost'; ?>" /></td> </tr> <tr> <td width="150"> <?php echo translate("Database Name"); ?>: </td> - <td valign="top"><input type="text" name="db_database" value="<?php echo !empty($db_database) ? $db_database : 'bug_tracker'; ?>"></td> + <td valign="top"><input type="text" name="db_database" value="<?php echo !empty($db_database) ? $db_database : 'bug_tracker'; ?>" /></td> </tr> <tr> <td colspan="2" align="center"><b>(<?php echo translate("This database must already exist"); ?>)</b></td> </tr> <tr> <td width="150"><?php echo translate("User"); ?>:</td> - <td><input type="text" name="db_user" value="<?php echo !empty($db_user) ? $db_user : 'root'; ?>"></td> + <td><input type="text" name="db_user" value="<?php echo !empty($db_user) ? $db_user : 'root'; ?>" /></td> </tr> <tr> <td width="150"><?php echo translate("Password"); ?>:</td> - <td><input type="password" name="db_pass" value="<?php echo $db_pass; ?>"></td> + <td><input type="password" name="db_pass" value="<?php echo $db_pass; ?>" /></td> </tr> <tr> <td width="150"><?php echo translate("Table Prefix"); ?>:</td> - <td><input type="text" name="tbl_prefix" value="<?php echo !empty($tbl_prefix) ? $tbl_prefix : 'phpbt_'; ?>"></td> + <td><input type="text" name="tbl_prefix" value="<?php echo !empty($tbl_prefix) ? $tbl_prefix : 'phpbt_'; ?>" /></td> </tr> <tr> <td colspan="2" align="center"> - <input type="button" value="<?php echo translate("Test Database Connection"); ?>" onClick="testDB(this.form)"> + <input type="button" value="<?php echo translate("Test Database Connection"); ?>" onclick="testDB(this.form)" /> </td> </tr> <tr> @@ -63,47 +67,47 @@ <tr> <td width="150"> <?php echo translate("phpBT Email"); ?>: - <br> + <br /> (<?php echo translate("The email address used for sending bug updates, etc."); ?>) </td> - <td valign="top"><input type="text" name="phpbt_email" value="<?php echo !empty($phpbt_email) ? $phpbt_email : $default_email; ?>"></td> + <td valign="top"><input type="text" name="phpbt_email" value="<?php echo !empty($phpbt_email) ? $phpbt_email : $default_email; ?>" /></td> </tr> <tr> <td width="150"> <?php echo translate("Admin Login"); ?>: - <br> + <br /> (<?php echo translate("Must be a valid email address"); ?>) </td> - <td valign="top"><input type="text" name="admin_login" value="<?php echo $admin_login; ?>"></td> + <td valign="top"><input type="text" name="admin_login" value="<?php echo $admin_login; ?>" /></td> </tr> <tr> <td width="150"><?php echo translate("Admin Password"); ?>:</td> - <td><input type="password" name="admin_pass" value=""></td> + <td><input type="password" name="admin_pass" value="" /></td> </tr> <tr> <td width="150"><?php echo translate("Confirm Password"); ?>:</td> - <td><input type="password" name="admin_pass2" value=""></td> + <td><input type="password" name="admin_pass2" value="" /></td> </tr> <tr> <td width="150"><?php echo translate("Encrypt Passwords in DB"); ?>:</td> <td> - <input type="radio" name="encrypt_pass" value="1"> Yes - <input type="radio" name="encrypt_pass" value="0" checked> No + <input type="radio" name="encrypt_pass" value="1" /> Yes + <input type="radio" name="encrypt_pass" value="0" checked="checked" /> No </td> </tr> <tr> <td colspan="2" align="center"> - <hr size="1" width="220"> + <hr size="1" width="220" /> <?php if (@is_writeable('config.php')) { ?> <?php echo translate('When you submit the form, the database tables will be created and config.php will be saved to disk. You will then be able to login and use the bug tracker.'); ?> - <input type="hidden" name="op" value="save_config_file"> + <input type="hidden" name="op" value="save_config_file" /> <?php } else { ?> <?php echo translate('Since config.php is not writeable by this script, when you submit this form you will be prompted to save config.php. Copy this file to the location of the bug tracker, and then you will be able to <a href="index.php">login to the bug tracker</a>. From the home page you can go to the Admin Tools and customize your installation via the Configuration link. Once you have completed the configuration, you will be ready to add a project and start reporting bugs!'); ?> - <input type="hidden" name="op" value="dump_config_file"> + <input type="hidden" name="op" value="dump_config_file" /> <?php } ?> - <br> - <br> - <input type="submit" value="<?php echo translate("Save Options"); ?>"> + <br /> + <br /> + <input type="submit" value="<?php echo translate("Save Options"); ?>" /> </td> </tr> </table> |