mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
added support for template detection and selection
This commit is contained in:
parent
da015de66d
commit
26b8f506f9
@ -302,13 +302,6 @@
|
||||
$templates = $phpgw_setup->get_template_list();
|
||||
while (list ($key, $value) = each ($templates)){
|
||||
echo '<option value="'.$key.'" '.$selected[$key].'>'.$templates[$key]["title"].'</option>';
|
||||
// echo '<option value="'.$key.'">'.$templates[$key]["title"].'</option>';
|
||||
/*
|
||||
echo "key= ".$key."<br>";
|
||||
echo "value= ".$value."<br>";
|
||||
echo "selected[value]= ".$selected[$key]."<br>";
|
||||
echo "title= ".$templates[$key]["title"]."<br>";
|
||||
*/
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
@ -284,7 +284,7 @@
|
||||
while($entry=$d->read()) {
|
||||
if ($entry != "CVS" && $entry != "." && $entry != ".."){
|
||||
$list[$entry]["name"] = $entry;
|
||||
$f = $phpgw_info["server"]["server_root"]."/phpgwapi/templates/details.inc.php";
|
||||
$f = $phpgw_info["server"]["server_root"]."/phpgwapi/templates/".$entry."/details.inc.php";
|
||||
if (file_exists ($f)){
|
||||
include($f);
|
||||
$list[$entry]["title"] = "Use ".$phpgw_info["template"][$entry]["title"]."interface";
|
||||
|
Loading…
Reference in New Issue
Block a user