File: groups.php

package info (click to toggle)
webcalendar 0.9.45-4sarge7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,888 kB
  • ctags: 4,775
  • sloc: php: 16,990; sql: 1,272; perl: 777; sh: 120; makefile: 45
file content (24 lines) | stat: -rw-r--r-- 878 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
	<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";
		?>
		<ul>
			<?php
				$res = dbi_query ( "SELECT cal_group_id, cal_name FROM webcal_group ORDER BY cal_name" );
				if ( $res ) {
					while ( $row = dbi_fetch_row ( $res ) ) {
					echo "<li><a title=\"" . 
						$row[1] . "\" href=\"group_edit.php?id=" . $row[0] . "\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" . 
						$row[1] . "</a></li>\n";
					}
					dbi_free_result ( $res );
				}
			?>
		</ul>
		<?php 
			echo "<iframe src=\"group_edit.php?id=" . $row[0] . "\" name=\"grpiframe\" id=\"grpiframe\" style=\"width:90%;border-width:0px; height:325px;\"></iframe>";
		?>
</div>