mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Moving to templated style for admin/config settings
This commit is contained in:
parent
e6d04696b0
commit
145959da71
@ -1,45 +0,0 @@
|
||||
<!-- BEGIN addressbook/inc/config.inc.php -->
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td colspan="2"> <b><?php echo lang('Addressbook/Contact settings');?></b></font></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('Contact application');?>:</td>
|
||||
<?php if (!$current_config["contact_application"]) { $current_config["contact_application"] = "addressbook"; } ?>
|
||||
<td><input name="newsettings[contact_application]" value="<?php echo $current_config["contact_application"]; ?>"></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('Select from list instead of text entry for country');?>:</td>
|
||||
<td><input type="checkbox" name="newsettings[countrylist]" value="True"<?php echo ($current_config["countrylist"]?" checked":""); ?>></td>
|
||||
</tr>
|
||||
<?php $selected[$current_config["contact_repository"]] = " selected"; ?>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('Select where you want to store/retrieve contacts');?>.</td>
|
||||
<td>
|
||||
<select name="newsettings[contact_repository]">
|
||||
<option value="sql"<?php echo $selected["sql"]; ?>>SQL</option>
|
||||
<option value="ldap"<?php echo $selected["ldap"]; ?>>LDAP</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('LDAP host for contacts');?>:</td>
|
||||
<?php if (!$current_config["ldap_contact_host"]) { $current_config["ldap_contact_host"] = $current_config["ldap_host"]; } ?>
|
||||
<td><input name="newsettings[ldap_contact_host]" value="<?php echo $current_config["ldap_contact_host"]; ?>"></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('LDAP context for contacts');?>:</td>
|
||||
<td><input name="newsettings[ldap_contact_context]" value="<?php echo $current_config["ldap_contact_context"]; ?>" size="40"></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('LDAP root dn for contacts');?>:</td>
|
||||
<?php if (!$current_config["ldap_contact_dn"]) { $current_config["ldap_contact_dn"] = $current_config["ldap_root_dn"]; } ?>
|
||||
<td><input name="newsettings[ldap_contact_dn]" value="<?php echo $current_config["ldap_contact_dn"]; ?>"></td>
|
||||
</tr>
|
||||
<tr bgcolor="<?php nextcolor();?>">
|
||||
<td><?php echo lang('LDAP root pw for contacts');?>:</td>
|
||||
<?php if (!$current_config["ldap_contact_pw"]) { $current_config["ldap_contact_pw"] = $current_config["ldap_root_pw"]; } ?>
|
||||
<td><input name="newsettings[ldap_contact_pw]" type="password" value="<?php echo $current_config["ldap_contact_pw"]; ?>"></td>
|
||||
</tr>
|
63
addressbook/templates/default/config.tpl
Normal file
63
addressbook/templates/default/config.tpl
Normal file
@ -0,0 +1,63 @@
|
||||
<!-- BEGIN header -->
|
||||
<form method="POST" action="{action_url}">
|
||||
<table border="0" align="center">
|
||||
<tr bgcolor="{th_bg}">
|
||||
<td colspan="2"><font color="{th_text}"> <b>{title}</b></font></td>
|
||||
</tr>
|
||||
<!-- END header -->
|
||||
<!-- BEGIN body -->
|
||||
<tr bgcolor="{row_on}">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_off}">
|
||||
<td colspan="2"> <b>{lang_Addressbook}/{lang_Contact_Settings}</b></font></td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_on}">
|
||||
<td>{lang_Contact_application}:</td>
|
||||
<td><input name="newsettings[contact_application]" value="{value_contact_application}"></td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_off}">
|
||||
<td>{lang_Select_from_list_instead_of_text_entry_for_country}:</td>
|
||||
<td><input type="checkbox" name="newsettings[countrylist]" value="True" {checked_countrylist}></td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_on}">
|
||||
<td>{lang_Select_where_you_want_to_store}/{lang_retrieve_contacts}.</td>
|
||||
<td>
|
||||
<select name="newsettings[contact_repository]">
|
||||
<option value="sql" {selected_contact_repository_sql}>SQL</option>
|
||||
<option value="ldap" {selected_contact_repository_ldap}>LDAP</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_off}">
|
||||
<td>{lang_LDAP_host_for_contacts}:</td>
|
||||
<td><input name="newsettings[ldap_contact_host]" value="{value_ldap_contact_host}"></td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_on}">
|
||||
<td>{lang_LDAP_context_for_contacts}:</td>
|
||||
<td><input name="newsettings[ldap_contact_context]" value="{value_ldap_contact_context}" size="40"></td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_off}">
|
||||
<td>{lang_LDAP_root_dn_for_contacts}:</td>
|
||||
<td><input name="newsettings[ldap_contact_dn]" value="{value_ldap_contact_dn}"></td>
|
||||
</tr>
|
||||
<tr bgcolor="{row_on}">
|
||||
<td>{lang_LDAP_root_pw_for_contacts}:</td>
|
||||
<td><input name="newsettings[ldap_contact_pw]" type="password" value=""></td>
|
||||
</tr>
|
||||
<!-- END body -->
|
||||
<!-- BEGIN footer -->
|
||||
<tr bgcolor="{th_bg}">
|
||||
<td colspan="2">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<input type="submit" name="submit" value="Submit">
|
||||
<input type="submit" name="cancel" value="Cancel">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!-- END footer -->
|
Loading…
Reference in New Issue
Block a user