mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +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();
|
$templates = $phpgw_setup->get_template_list();
|
||||||
while (list ($key, $value) = each ($templates)){
|
while (list ($key, $value) = each ($templates)){
|
||||||
echo '<option value="'.$key.'" '.$selected[$key].'>'.$templates[$key]["title"].'</option>';
|
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>
|
</select>
|
||||||
|
@ -284,7 +284,7 @@
|
|||||||
while($entry=$d->read()) {
|
while($entry=$d->read()) {
|
||||||
if ($entry != "CVS" && $entry != "." && $entry != ".."){
|
if ($entry != "CVS" && $entry != "." && $entry != ".."){
|
||||||
$list[$entry]["name"] = $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)){
|
if (file_exists ($f)){
|
||||||
include($f);
|
include($f);
|
||||||
$list[$entry]["title"] = "Use ".$phpgw_info["template"][$entry]["title"]."interface";
|
$list[$entry]["title"] = "Use ".$phpgw_info["template"][$entry]["title"]."interface";
|
||||||
|
Loading…
Reference in New Issue
Block a user