File: views.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 (28 lines) | stat: -rw-r--r-- 609 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
25
26
27
28
<?php
include_once 'includes/init.php';

if ( ! $is_admin )
  $user = $login;

print_header();
?>

<h2><?php etranslate("Views")?></h2>
<a title="<?php etranslate("Admin") ?>" class="nav" href="adminhome.php">&laquo;&nbsp;<?php etranslate("Admin") ?></a><br /><br />
<ul>
<?php
for ( $i = 0; $i < count ( $views ); $i++ ) {
  echo "<li><a href=\"views_edit.php?id=" . $views[$i]["cal_view_id"] .
    "\">" . $views[$i]["cal_name"] . "</a></li>";
}
?>
</ul>
<br /><br />
<?php
  echo "<a href=\"views_edit.php\">" . translate("Add New View") .
    "</a><br />\n";
?>

<?php print_trailer(); ?>
</body>
</html>