C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\webcalendar\groups.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    <a name="tabgroups"></a>
    <div id="tabscontent_groups">
        <?php
            
echo "<a title=\"" 
                
translate("Add New Group") . "\" href=\"group_edit.php\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" 
                
translate("Add New Group") . "</a><br />\n";
        
?>
            <?php
             $count 
0;
                
$lastrow 0;
                
$res dbi_query "SELECT cal_group_id, cal_name FROM webcal_group ORDER BY cal_name" );
                if ( 
$res ) {
                    while ( 
$row dbi_fetch_row $res ) ) {
                      if ( 
$count == ) {
                          echo 
"<ul>\n";
                        }
                    echo 
"<li><a title=\"" 
                        
$row[1] . "\" href=\"group_edit.php?id=" $row[0] . "\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" 
                        
$row[1] . "</a></li>\n";
                        
$count++;
                        
$lastrow $row[0];
                    }
                    if ( 
$count ) { echo "</ul>\n"; }
                 
dbi_free_result $res );
                }

            echo 
"<iframe src=\"group_edit.php?id=" $lastrow "\" name=\"grpiframe\" id=\"grpiframe\" style=\"width:90%;border-width:0px; height:325px;\"></iframe>";
        
?>
</div>