WebCalendar PHP Cross Reference Groupware Applications

Source: /groups.php - 43 lines - 1121 bytes - Text - Print

   1  <?php
   2  /* $Id: groups.php,v 1.28 2007/08/02 12:57:51 umcesrjones Exp $ */
   3  defined ( '_ISVALID' ) or die ( 'You cannot access this file directly!' );
   4  
   5  $count = $lastrow = 0;
   6  $newGroupStr = translate ( 'Add New Group' );
   7  $targetStr = 'target="grpiframe" onclick="showFrame( \'grpiframe\' );">';
   8  
   9  ob_start ();
  10  
  11  echo '
  12      <a name="tabgroups"></a>
  13      <div id="tabscontent_groups">
  14        <a title="' . $newGroupStr . '" href="group_edit.php"' . $targetStr
  15   . $newGroupStr . '</a><br />';
  16  
  17  $res = dbi_execute ( 'SELECT cal_group_id, cal_name FROM webcal_group
  18    ORDER BY cal_name' );
  19  if ( $res ) {
  20    while ( $row = dbi_fetch_row ( $res ) ) {
  21      echo ( $count == 0 ? '
  22        <ul>' : '' ) . '
  23          <li><a title="' . $row[1] . '" href="group_edit.php?id=' . $row[0] . '"'
  24       . $targetStr . $row[1] . '</a></li>';
  25      $count++;
  26      $lastrow = $row[0];
  27    }
  28    if ( $count > 0 )
  29      echo '
  30        </ul>';
  31  
  32    dbi_free_result ( $res );
  33  }
  34  
  35  echo '
  36        <iframe src="group_edit.php?id=' . $lastrow
  37   . '" name="grpiframe" id="grpiframe" style="width: 90%; border: 0; '
  38   . 'height: 325px;"></iframe>
  39      </div>';
  40  
  41  ob_end_flush ();
  42  
  43  ?>

title

Description

title

Description

title

Description

title

title

Body