Example #1
0
function draw_page()
{
    ?>
	<div class="container">
	<?php 
    open_panel('teamlist', 'Race For Excellence', false);
    draw_team_panel();
    close_panel();
    open_panel('userlist', 'Points', false);
    draw_user_list();
    close_panel();
    ?>
	</div>
	<?php 
}
Example #2
0
function draw_page()
{
    ?>
	<div class="container">
		<?php 
    open_panel('quals', 'Quals');
    draw_user_list();
    close_panel();
    ?>
	</div>
<?
 } 

function draw_user_list() {
  $users = get_users("user");
  $total = get_qual_point_total();

  ?>
      <table class="userlist table table-condensed">
        <tr>
          <th>Last Name</th>
          <th>First Name</th>
          <th>Username</th>
          <th>Progress</th>
        </tr>
        <?php 
    while ($row = $users->fetch_array()) {
        $row['role'] = get_role($row['user_id']);
        $progress = get_progress($row['user_id']);
        echo '<tr class="userlist ';
        echo 'userlist-' . $row['role'];
        if ($row['inactive']) {
            echo ' userlist-inactive';
        }
        echo '" onclick="openProgress(' . $row['user_id'] . ')">';
        echo '<td>' . $row['lname'] . "</td>";
        echo '<td>' . $row['fname'] . "</td>";
        echo '<td>' . $row['username'] . "</td>";
        echo '<td>';
        draw_qual_progress_bar($progress, $total);
        echo '</td>';
        echo '</tr>';
    }
    ?>
      </table>
  <?php 
}
function draw_page()
{
    ?>

<div class="container">

  <?php 
    open_panel("userlist", "User List", false);
    ?>

  <div class="row">
    <div class="col-md-10">
      <?php 
    draw_user_list();
    ?>
    </div>
    <div class="col-md-2 side_box">
      <button class="btn btn-default btn-sm col-md-12" onClick="toggleinactive()">Show Inactives</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#adduser">Add User</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#bulkadd">Bulk Add</button>
    </div>
    <div class="col-md-2 side_box">
      <button class="btn btn-default btn-sm col-md-12" onClick="toggleinactive()">Show Inactives</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#adduser">Add User</button>
      <button class="btn btn-default btn-sm col-md-6" data-toggle="modal" data-target="#bulkadd">Bulk Add</button>
      
    </div>
  </div>
  <?php 
    close_panel();
    ?>


</div>
<?php 
    draw_adduser_form();
    draw_bulkadd_form();
}
Example #4
0
" maxlength="25" />
						<span class="input-group-btn">
							<button class="btn btn-default" type="submit" name="search" accesskey="s" /><span class="fa fa-fw fa-search"></span></button>
						</span>
					</div>
				</div>
			</form>
		</span>
	</div>
</div>
<div class="container">
	<div class="row pagination-row">
		<div class="col-xs-12">
			<?php 
echo $paging_links;
?>
		</div>
	</div>
	<div class="userlist row">
		<?php 
draw_user_list();
?>
	</div>
	<div class="row pagination-row">
		<div class="col-xs-12">
			<?php 
echo $paging_links;
?>
		</div>
	</div>