Added select boxs for the version numbers on the apps that have them avaiable. Milosch, what do you think ?

This commit is contained in:
jengo 2001-08-08 08:41:28 +00:00
parent 961757eec8
commit cb9c5a0d46
2 changed files with 20 additions and 2 deletions

View File

@ -223,7 +223,25 @@
@reset ($setup_info);
while (list ($key, $value) = each ($setup_info))
{
if($value['name'])
unset($test);
if (file_exists(PHPGW_SERVER_ROOT . '/' . $value['name'] . '/setup/tables_update.inc.php'))
{
include(PHPGW_SERVER_ROOT . '/' . $value['name'] . '/setup/tables_update.inc.php');
}
if (is_array($test))
{
reset($test);
}
$s = '<option value="">&nbsp;</option>';
while (is_array($test) && list(,$versionnumber) = each($test))
{
$s .= '<option value="' . $versionnumber . '">' . $versionnumber . '</option>';
}
$setup_tpl->set_var('select_version',$s);
if ($value['name'])
{
if ($i)
{

View File

@ -28,7 +28,7 @@
<td><a href="schematoy.php?detail={appname}"><img src="templates/default/images/{instimg}" alt="{instalt}" border="0"></a></td>
<td>{appinfo}&nbsp;</td>
<td>{apptitle}&nbsp;</td>
<td align="center"><input name="version[{appname}]"></td>
<td align="center"><select name="version[{appname}]">{select_version}</select></td>
<td bgcolor="CCFFCC" align="center">{install}</td>
</tr>
<!-- END apps -->