Project

General

Profile

« Previous | Next » 

Revision c6fb839b

Added by Colin Fleming over 12 years ago

Tidy up "pkg_mgr_installed.php" XHTML

Add closehead variable and move scripts into HEAD and manually close
HEAD
Add missing close FONT tag
Close BR tags
Deprecate ampersand in ANCHOR tags
Change target in ANCHOR tags to "_blank"
Add ALT statement and close IMG tags

View differences:

usr/local/www/pkg_mgr_installed.php
76 76
	}
77 77
	$currentvers = get_pkg_info($tocheck, array('version', 'xmlver', 'pkginfolink','descr'));
78 78
}
79

  
79
$closehead = false;
80 80
$pgtitle = array(gettext("System"),gettext("Package Manager"));
81 81
include("head.inc");
82 82

  
......
86 86
<script type="text/javascript" src="javascript/domTT/behaviour.js"></script>
87 87
<script type="text/javascript" src="javascript/domTT/fadomatic.js"></script>
88 88
<script type="text/javascript" language="javascript" src="/javascript/row_helper_dynamic.js"></script>
89
</head>
90

  
89 91
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
90 92
	<?php include("fbegin.inc"); ?>
91
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
93
	<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="packages installed">
92 94
		<tr>
93 95
			<td>
94 96
				<?php
......
106 108
		<tr>
107 109
			<td>
108 110
				<div id="mainarea">
109
					<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
111
					<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
110 112
						<tr>
111 113
							<td width="12%" class="listhdrr"><?=gettext("Name"); ?></td>
112 114
							<td width="16%" class="listhdrr"><?=gettext("Category"); ?></td>
113 115
							<td width="15%" class="listhdrr"><?=gettext("Version"); ?></td>
114 116
							<td width="53%" class="listhdr"><?=gettext("Description"); ?></td>
115
							<td width="40" >&nbsp</td>
117
							<td width="40">&nbsp;</td>
116 118
						</tr>
117 119
						<?php
118 120
							if(is_array($config['installedpackages']['package'])):
......
141 143
											if ($g['disablepackagehistory'])
142 144
												$pkgver  = "<a>".gettext("Available") .": ". $latest_package . "<br/>";
143 145
											else
144
												$pkgver  = "<a target='_new' href='$changeloglink'>".gettext("Available") .": ". $latest_package . "<br/>";
146
												$pkgver  = "<a target='_blank' href='$changeloglink'>".gettext("Available") .": ". $latest_package . "<br/>";
145 147
											$pkgver .= gettext("Installed") .": ". $pkg['version']. "</a>";
146 148
										}
147 149
										// we're running an older version of the package
148 150
										if(strcmp($pkg['version'], $latest_package) < 0) {
149 151
											$tdclass = "listbg";
150 152
											if ($g['disablepackagehistory'])
151
												$pkgver  = "<a><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>";
153
												$pkgver  = "<a><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "</font><br/>";
152 154
											else
153
												$pkgver  = "<a target='_new' href='$changeloglink'><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>";
154
											$pkgver .= gettext("Installed") .": ". $pkg['version']."</a>";
155
												$pkgver  = "<a target='_blank' href='$changeloglink'><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>";
156
											$pkgver .= gettext("Installed") .": ". $pkg['version']."</font></a>";
155 157
										}
156 158
										// we're running the current version
157 159
										if(!strcmp($pkg['version'], $latest_package)) {
......
159 161
											if ($g['disablepackagehistory'])
160 162
												$pkgver = "<a>{$pkg['version']}</a>";
161 163
											else
162
												$pkgver = "<a target='_new' href='$changeloglink'>{$pkg['version']}</a>";
164
												$pkgver = "<a target='_blank' href='$changeloglink'>{$pkg['version']}</a>";
163 165
										}
164 166
									} else {
165 167
										// unknown available package version
......
169 171
											if ($g['disablepackagehistory'])
170 172
												$pkgver = "<a>{$pkg['version']}</a>";
171 173
											else
172
												$pkgver = "<a target='_new' href='$changeloglink'>{$pkg['version']}</a>";
174
												$pkgver = "<a target='_blank' href='$changeloglink'>{$pkg['version']}</a>";
173 175
											}
174 176
									}
175 177
									/* Check package info link */
......
199 201
							<td class="listbg" style="overflow:hidden; text-align:justify;" <?=domTT_title(gettext("Click package info for more details about ".ucfirst($pkg['name'])." package."))?>>
200 202
									<?=$currentvers[$pkg['name']]['descr'];?>
201 203
							<?php if (! $g['disablepackageinfo']): ?>
202
							<br><br>
203
							<a target='_new' href='<?=$pkginfolink?>' style='align:center;color:#ffffff; filter:Glow(color=#ff0000, strength=12);'><?=$pkginfo?></a>
204
							<br/><br/>
205
							<a target='_blank' href='<?=$pkginfolink?>' style='align:center;color:#ffffff; filter:Glow(color=#ff0000, strength=12);'><?=$pkginfo?></a>
204 206
							<?php endif; ?>
205 207
							</td>
206
							<td valign="middle" class="list" nowrap>
207
								<a onclick="return confirm('<?=gettext("Do you really want to remove {$pkg['name']} package?"); ?>')" href="pkg_mgr_install.php?mode=delete&pkg=<?= $pkg['name']; ?>">
208
									<img <?=domTT_title(gettext("Remove ".ucfirst($pkg['name'])." package."))?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0">
208
							<td valign="middle" class="list nowrap">
209
								<a onclick="return confirm('<?=gettext("Do you really want to remove {$pkg['name']} package?"); ?>')" href="pkg_mgr_install.php?mode=delete&amp;pkg=<?= $pkg['name']; ?>">
210
									<img <?=domTT_title(gettext("Remove ".ucfirst($pkg['name'])." package."))?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" />
209 211
								</a>
210
								<br>
211
								<a href="pkg_mgr_install.php?mode=reinstallpkg&pkg=<?= $pkg['name']; ?>">
212
									<img <?=domTT_title(gettext("Reinstall ".ucfirst($pkg['name'])." package."));?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_pkg.gif" width="17" height="17" border="0">
212
								<br/>
213
								<a href="pkg_mgr_install.php?mode=reinstallpkg&amp;pkg=<?= $pkg['name']; ?>">
214
									<img <?=domTT_title(gettext("Reinstall ".ucfirst($pkg['name'])." package."));?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_pkg.gif" width="17" height="17" border="0" alt="reinstall" />
213 215
								</a>
214
								<a href="pkg_mgr_install.php?mode=reinstallxml&pkg=<?= $pkg['name']; ?>">
215
									<img <?=domTT_title(gettext("Reinstall ".ucfirst($pkg['name'])."'s GUI components."));?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_xml.gif" width="17" height="17" border="0">
216
								<a href="pkg_mgr_install.php?mode=reinstallxml&amp;pkg=<?= $pkg['name']; ?>">
217
									<img <?=domTT_title(gettext("Reinstall ".ucfirst($pkg['name'])."'s GUI components."));?> src="./themes/<?= $g['theme']; ?>/images/icons/icon_reinstall_xml.gif" width="17" height="17" border="0" alt="reinstall" />
216 218
								</a>
217 219
							</td>
218 220
						</tr>

Also available in: Unified diff