Esempio n. 1
0
    <div class="content">
      <!-- make sure theyre in a group -->
      <?php 
if ($group == 0) {
    echo "<h2>You're not in a group yet!</h2>";
} else {
    $myGroup = getGroup($db, $group);
    ?>

      <h1><?php 
    echo getGroupName($group, $db);
    ?>
</h1>
      <h2 class="subtitle">
      <?php 
    echo getGroupDescription($group, $db) . "<br>" . getGroupType($group, $db) . "<br>" . sizeof($myGroup);
    ?>
 members</h2>
      <br>
      <?php 
    if ($groupLeader == 1) {
        ?>
<a class="button" href="?page=editGroup">Edit Group Details</a><?php 
    }
    ?>

      <?php 
    renderGroupList($db, $group, $groupLeader);
    ?>

      <?php 
Esempio n. 2
0
      <!-- make sure theyre in a group -->
      <?php 
if ($group == 0) {
    echo "<h2>You're not in a group yet!</h2>";
} else {
    $myGroup = getGroup($db, $group);
    ?>
      <form name="updateGroup" action="?page=group&amp;action=editGroup" method="POST">
        <label for="name">Group Name</label>
          <input type="text" name="name" value="<?php 
    echo getGroupName($group, $db);
    ?>
">
        <label for="description">Description</label>
          <input type="text" name="description" value="<?php 
    echo getGroupDescription($group, $db);
    ?>
">
        <label for="type">Preferred Project Type</label>
          <select name="type" id="type">
            <option value="Web Development" <?php 
    if (getGroupType($group, $db) == 'Web Development') {
        echo "selected";
    }
    ?>
 >Web Development</option>
            <option value="Programming" <?php 
    if (getGroupType($group, $db) == 'Programming') {
        echo "selected";
    }
    ?>