Project

General

Profile

« Previous | Next » 

Revision 1043

Added by Matthias almost 15 years ago

Codechanges to get rid of the empty display(style) declaration "style='display: ;'", and to avoid to generate (hidden) elements if the user isn't alowed to edit one.

View differences:

access.htt
1 1
<!-- BEGIN main_block -->
2 2
<h2>{ACCESS}</h2>
3 3
<table cellpadding="0" cellspacing="0" border="0" width="99%" align="center">
4
  <tr>
5
    <td align="center" valign="top">
6
      <table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_USERS};">
7
        <tr>
8
          <td class="graphic" align="center" valign="top" rowspan="2"> <a href="{ADMIN_URL}/users/index.php"> <img src="{THEME_URL}/icons/users.png" alt="{USERS}" /> </a> </td>
9
          <td class="description" valign="top"> <a href="{ADMIN_URL}/users/index.php"><div class="title">{USERS}</div></a>
10
		  {USERS_OVERVIEW}
11
		  </td>
12
        </tr>
13
      </table>
14
      <table cellpadding="0" cellspacing="0" border="0" class="section" style="display: {DISPLAY_GROUPS};">
15
        <tr>
16
          <td class="graphic" align="center" valign="top" rowspan="2"> <a href="{ADMIN_URL}/groups/index.php"> <img src="{THEME_URL}/icons/groups.png" alt="{GROUPS}" /> </a> </td>
17
          <td class="description" valign="top"> <a href="{ADMIN_URL}/groups/index.php"><div class="title">{GROUPS}</div></a>
18
		  {GROUPS_OVERVIEW}
19
		  </td>
20
        </tr>
21
      </table>
22
    </td>
23
  </tr>
4
	<tr>
5
		<td align="center" valign="top">
6
			<!-- BEGIN users_block -->	
7
			<table cellpadding="0" cellspacing="0" border="0" class="section" {DISPLAY_USERS} >
8
				<tr>
9
					<td class="graphic" align="center" valign="top" rowspan="2"> <a href="{ADMIN_URL}/users/index.php"> <img src="{THEME_URL}/icons/users.png" alt="{USERS}" /> </a> </td>
10
					<td class="description" valign="top"> <a href="{ADMIN_URL}/users/index.php"><div class="title">{USERS}</div></a>
11
			{USERS_OVERVIEW}
12
			</td>
13
				</tr>
14
			</table>	
15
			<!-- END users_block -->
16
			<!-- BEGIN groups_block -->		
17
			<table cellpadding="0" cellspacing="0" border="0" class="section" {DISPLAY_GROUPS} >
18
				<tr>
19
					<td class="graphic" align="center" valign="top" rowspan="2"> <a href="{ADMIN_URL}/groups/index.php"> <img src="{THEME_URL}/icons/groups.png" alt="{GROUPS}" /> </a> </td>
20
					<td class="description" valign="top"> <a href="{ADMIN_URL}/groups/index.php"><div class="title">{GROUPS}</div></a>
21
			{GROUPS_OVERVIEW}
22
			</td>
23
				</tr>
24
			</table>
25
			<!-- END groups_block -->
26
		</td>
27
	</tr>
24 28
</table>
25 29
<!-- END main_block -->

Also available in: Unified diff