port setup to idots template set

This commit is contained in:
Pim Snel 2003-10-09 23:08:04 +00:00
parent 854b740bf1
commit 72299b948a
10 changed files with 93 additions and 82 deletions

View File

@ -35,7 +35,7 @@
if (!function_exists('version_compare'))//version_compare() is only available in PHP4.1+ if (!function_exists('version_compare'))//version_compare() is only available in PHP4.1+
{ {
echo 'phpGroupWare now requires PHP 4.1 or greater.<br>'; echo 'eGroupWare now requires PHP 4.1 or greater.<br>';
echo 'Please contact your System Administrator'; echo 'Please contact your System Administrator';
exit; exit;
} }

View File

@ -142,6 +142,7 @@
check_form_values(); check_form_values();
$header_template = CreateObject('setup.Template','../'); $header_template = CreateObject('setup.Template','../');
$GLOBALS['phpgw_setup']->html->show_header('Generated header.inc.php', False, 'header'); $GLOBALS['phpgw_setup']->html->show_header('Generated header.inc.php', False, 'header');
echo '<table width="90%"><tr><td>';
echo '<br>' . lang('Save this text as contents of your header.inc.php') . '<br><hr>'; echo '<br>' . lang('Save this text as contents of your header.inc.php') . '<br><hr>';
$newheader = $GLOBALS['phpgw_setup']->html->generate_header(); $newheader = $GLOBALS['phpgw_setup']->html->generate_header();
echo '<pre>'; echo '<pre>';
@ -152,7 +153,8 @@
echo '<input type="hidden" name="FormLogout" value="header">'; echo '<input type="hidden" name="FormLogout" value="header">';
echo '<input type="submit" name="junk" value="'.lang('Continue').'">'; echo '<input type="submit" name="junk" value="'.lang('Continue').'">';
echo '</form>'; echo '</form>';
echo '</body></html>'; echo '</td></tr></table>';
$GLOBALS['phpgw_setup']->html->show_footer();
break; break;
case 'write': case 'write':
check_form_values(); check_form_values();
@ -182,7 +184,7 @@
break; break;
default: default:
$GLOBALS['phpgw_setup']->html->show_header($GLOBALS['phpgw_info']['setup']['HeaderFormMSG'], False, 'header'); $GLOBALS['phpgw_setup']->html->show_header($GLOBALS['phpgw_info']['setup']['HeaderFormMSG'], False, 'header');
$detected = ''; $detected = '';
if (!get_var('ConfigLang',array('POST','COOKIE'))) if (!get_var('ConfigLang',array('POST','COOKIE')))
@ -190,7 +192,7 @@
$detected .= '<br><form action="manageheader.php" method="Post">Please Select your language '.lang_select(True,'en')."</form>\n"; $detected .= '<br><form action="manageheader.php" method="Post">Please Select your language '.lang_select(True,'en')."</form>\n";
} }
$detected .= '<table border="0" width="100%" cellspacing="0" cellpadding="0" style="{ border: 1px solid #000000; }">' . "\n"; $detected .= '<table border="0" width="100%" cellspacing="0" cellpadding="0">' . "\n";
$detected .= '<tr><td colspan="2"><p>' . $GLOBALS['phpgw_info']['setup']['PageMSG'] . '<br />&nbsp;</p></td></tr>'; $detected .= '<tr><td colspan="2"><p>' . $GLOBALS['phpgw_info']['setup']['PageMSG'] . '<br />&nbsp;</p></td></tr>';
$manual = '<a href="../doc/en_US/html/admin/" target="manual">'.lang('phpGroupWare Administration Manual').'</a>'; $manual = '<a href="../doc/en_US/html/admin/" target="manual">'.lang('phpGroupWare Administration Manual').'</a>';
@ -540,7 +542,11 @@
$setup_tpl->set_var('lang_finaldescr',lang('After retrieving the file, put it into place as the header.inc.php. Then, click "continue".')); $setup_tpl->set_var('lang_finaldescr',lang('After retrieving the file, put it into place as the header.inc.php. Then, click "continue".'));
$setup_tpl->set_var('lang_continue',lang('Continue')); $setup_tpl->set_var('lang_continue',lang('Continue'));
$setup_tpl->pfp('out','manageheader'); $setup_tpl->pfp('out','manageheader');
$GLOBALS['phpgw_setup']->html->show_footer();
break; // ending the switch default break; // ending the switch default
} }
?> ?>

View File

@ -26,7 +26,7 @@ function check_all(which)
<td align="center">{description}</td> <td align="center">{description}</td>
</tr> </tr>
</table> </table>
<table width="70%" cellspacing="0" cellpadding="2" style="{ border: 1px solid #000000; }"> <table width="90%" cellspacing="0" cellpadding="2">
<!-- END header --> <!-- END header -->
<!-- BEGIN app_header --> <!-- BEGIN app_header -->

View File

@ -3,7 +3,7 @@
<!-- BEGIN header --> <!-- BEGIN header -->
<form method="POST" action="{action_url}"> <form method="POST" action="{action_url}">
<table align="center" cellspacing="0" style="{border: 1px solid #FFFFFF;}"> <table align="center" cellspacing="0" border="5" width="90%" >
<tr class="th"> <tr class="th">
<td colspan="2">&nbsp;{title}</td> <td colspan="2">&nbsp;{title}</td>
</tr> </tr>

View File

@ -1,5 +1,5 @@
<!-- begin config_pre_script.tpl --> <!-- begin config_pre_script.tpl -->
<form method="POST" action="config.php"> <form method="POST" action="config.php">
<table border="0" align="center" cellspacing="0" width="100%" style="{border: 1px solid #000000;}"> <table border="0" align="center" cellspacing="0" width="90%" ">
<!-- end config_pre_script.tpl --> <!-- end config_pre_script.tpl -->

View File

@ -1,34 +1,29 @@
<!-- begin login_main.tpl --> <!-- begin login_main.tpl -->
<p>&nbsp;</p> <!--<p>To enter the setup please login with the setup-password.</p>-->
<table align="center" cellspacing="0" cellpadding="2" style="border: 1px solid #486591;"> <!--<table align="center" cellspacing="0" cellpadding="5" style="border: 1px solid rgb(72, 101, 145);" width="430">-->
<table align="center" cellspacing="0" cellpadding="5" style="border: 0px solid rgb(72, 101, 145);" width="450">
{V_login_stage_header} {V_login_stage_header}
<tr class="row_on" >
<td colspan="2">&nbsp;</strong></td>
</tr>
<tr class="th"> <tr class="th">
<td colspan="2">&nbsp;<b>Header Admin Login</b></td> <td bgcolor="#cccccc" colspan="2">&nbsp;<strong>Header Admin Login</strong></td>
</tr> </tr>
<tr class="row_on"> <tr class="row_on">
<td colspan="2" class="msg" align="center">{HeaderLoginMSG}</td> <td colspan="2" class="msg" align="center">{HeaderLoginMSG}</td>
</tr> </tr>
<form action="manageheader.php" method="POST" name="admin"> <tr class="row_on">
<tr class="row_on"> <td>
<td> <form action="manageheader.php" method="post" name="admin">
Password: Header Password:
</td> <input type="password" name="FormPW" value="">
<td> {lang_select}
<input type="password" name="FormPW" value=""> <input type="submit" name="Submit" value="Login">
</td> <input type="hidden" name="HeaderLogin" value="Login">
</tr> </form>
<tr class="row_on"> </td>
<td colspan="2"> </tr>
{lang_select}
<input type="submit" name="Submit" value="Login">
<input type="hidden" name="HeaderLogin" value="Login">
</td>
</tr>
</form>
</tbody>
</table> </table>
<!-- end login_main.tpl --> <!-- end login_main.tpl -->

View File

@ -1,47 +1,47 @@
<!-- begin login_stage_header.tpl --> <!-- begin login_stage_header.tpl -->
<tbody>
<tr class="th"> <tr class="th">
<td colspan="2"> <td colspan="2" bgcolor="#cccccc">
&nbsp;<b>Setup/Config Admin Login</b> &nbsp;<strong>Setup/Config Admin Login</strong>
</td> </td>
</tr> </tr>
<tr class="row_on"> <tr class="row_on">
<td colspan="2" class="msg" align="center">{ConfigLoginMSG}</td> <td colspan="2" class="msg" align="center">{ConfigLoginMSG}</td>
</tr> </tr>
<tr class="row_on"> <tr class="row_on">
<td colspan="2"> <td colspan="2">
<form action="index.php" method="POST" name="config"> <form action="index.php" method="post" name="config">
<!-- BEGIN B_multi_domain --> <!-- BEGIN B_multi_domain -->
<table> <table>
<tr> <tr>
<td> <td>
Domain: Domain:
</td> </td>
<td> <td>
<select name="FormDomain">{domains}</select> <select name="FormDomain">{domains}</select>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
Password: Password:
</td> </td>
<td> <td>
<input type="password" name="FormPW" value=""> <input type="password" name="FormPW" value="">
</td> </td>
</tr> </tr>
</table> </table>
<!-- END B_multi_domain --> <!-- END B_multi_domain -->
Config Password:
<!-- &nbsp; stupid seperator --> <!-- &nbsp; stupid seperator -->
<!-- BEGIN B_single_domain --> <!-- BEGIN B_single_domain -->
<input type="password" name="FormPW" value=""> <input type="password" name="FormPW" value="">
<input type="hidden" name="FormDomain" value="{default_domain_zero}"> <input type="hidden" name="FormDomain" value="{default_domain_zero}">
<!-- END B_single_domain --> <!-- END B_single_domain -->
{lang_select} {lang_select}
<input type="hidden" name="ConfigLogin" value="Login">
<input type="submit" name="submit" value="Login">
</form>
</td>
</tr>
<!-- end login_stage_header.tpl -->
<input type="hidden" name="ConfigLogin" value="Login">
<input type="submit" name="submit" value="Login">
</form>
</td>
</tr>
<!-- end login_stage_header.tpl -->

View File

@ -1,6 +1,11 @@
<!-- BEGIN manageheader --> <!-- BEGIN manageheader -->
<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">
<tbody><tr><td>
{detected} {detected}
<tr class="th">
<tr class="th">
<th colspan="2">{lang_settings}</th> <th colspan="2">{lang_settings}</th>
</tr> </tr>
<form action="manageheader.php" method="post"> <form action="manageheader.php" method="post">
@ -116,3 +121,8 @@
<td>{lang_passforconfig}</td> <td>{lang_passforconfig}</td>
</tr> </tr>
<!-- END domain --> <!-- END domain -->
</td></tr>
</tbody>
</table>

View File

@ -1,15 +1,15 @@
<!-- BEGIN setup_demo --> <!-- BEGIN setup_demo -->
<table border="1" width="100%" cellspacing="0" cellpadding="2"> <table border="0" width="90%" cellspacing="0" cellpadding="2">
<tr> <tr>
<td>{description}</td> <td>{description} <br/><br/> </td>
</tr> </tr>
<tr> <tr>
<td align="left" bgcolor="#486591"><font color="#fefefe">{detailadmin}</td> <td align="left" bgcolor="#cccccc">{detailadmin}</td>
</tr> </tr>
<tr> <tr>
<td> <td>
<form method="POST" action="{action_url}"> <form method="POST" action="{action_url}">
<table border="0"> <table border="0">
<tr> <tr>
<td>{adminusername}</td> <td>{adminusername}</td>
<td><input type="text" name="username"></td> <td><input type="text" name="username"></td>

View File

@ -1,6 +1,6 @@
<!-- begin setup_main.tpl --> <!-- begin setup_main.tpl -->
<!-- begin the db section --> <!-- begin the db section -->
<table border="0" width="100%" cellspacing="0" cellpadding="2" style="{ border: 1px solid #000000; }"> <table border="0" width="90%" cellspacing="0" cellpadding="2">
<tr class="th"> <tr class="th">
<td align="left" colspan="2">{db_step_text}</td> <td align="left" colspan="2">{db_step_text}</td>
</tr> </tr>