home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
administrator
/
settings
/
modules.inc
< prev
Wrap
Text File
|
2004-03-08
|
2KB
|
87 lines
<?php
/*
Copyright Intermesh 2003
Author: Merijn Schering <mschering@intermesh.nl>
Version: 1.0 Release date: 08 July 2003
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
*/
$selected_modules = array();
$selected_count = 0;
echo '<br />';
if (isset($feedback))
{
echo $feedback;
}
echo $admin_modules_text.'<br /><br /><table border="0" cellpadding="4" cellspacing="0">';
$column_count = 0;
$columns=3;
$module_count = count($modules);
while($module = array_shift($modules))
{
if ($column_count == 0)
{
echo '<tr>';
$column_count++;
}
if ($module['name'] != 'CVS')
{
$lang_var = isset($lang_modules[$module['name']]) ? $lang_modules[$module['name']] : $module['name'];
if ($GO_MODULES->is_registered_module($module['path']))
{
$display = "<a href=\"javascript:popup('module_permissions.php?module_id=".urlencode($module['name'])."','450','450')\" class=\"normal\">".$lang_var."</a>";
$selected_count++;
$check = 'checked';
}else
{
$display = $lang_var;
$check = '';
}
echo '<td><table border="0" cellpadding="0" cellspacing="0"><tr><td><input type="checkbox" name="selected_modules[]" value="'.$module['path'].'" '.$check.' /></td><td>'.$display.'</td></tr></table></td>';
}else
{
$column_count--;
}
if($column_count==$columns)
{
$column_count=0;
echo '</tr>';
}else
{
$column_count++;
}
}
if ($column_count != 0)
{
for ($i=$column_count;$i<=$columns;$i++)
{
echo '<td> </td>';
}
echo '</tr>';
}
echo '<tr><td colspan="3"><i>'.$selected_count.' / '.$module_count.' '.$admin_modules.'</i></td></tr>';
echo '</table>';
$button = new button($cmdOk, "javascript:_save('save_modules', 'true')");
echo ' ';
$button = new button($cmdApply, "javascript:_save('save_modules', 'false')");
echo ' ';
$button = new button($cmdClose, "javascript:document.location='".$return_to ."'");
?>
<script type="text/javascript">
function _save(task, close)
{
document.forms[0].task.value = task;
document.forms[0].close.value = close;
document.forms[0].submit();
}
</script>