added support for template detection and selection

This commit is contained in:
seek3r 2001-01-05 22:39:07 +00:00
parent da015de66d
commit 26b8f506f9
2 changed files with 1 additions and 8 deletions

View File

@ -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>

View File

@ -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";