Example #1
0
        $isRoleMember = isUserARoleMember($oneUser, $oneRole);
        if ($isRoleMember) {
            $cellClass = ' class="is_member"';
        } else {
            $cellClass = '';
        }
        ?>
      <td<?php 
        echo $oneHunt->getHuntCount();
        ?>
 width=100px>
         <?php 
        echo booleanYesNo($isRoleMember);
        ?>
         <?php 
        if (isRoleMember('admin')) {
            ?>
         	      <form method='POST' name="switch_role_form" action='../php/toggle_role_action.php'>
         	         <input type='hidden' name='user_id' value=<?php 
            echo $oneUser->getId();
            ?>
 >
         	         <input type='hidden' name='role_name' value='<?php 
            echo $oneRole;
            ?>
'>
         	         <input type='hidden' name='is_member' value='<?php 
            echo $isRoleMember;
            ?>
'>
         	         <input type='submit' value='Switch'>
Example #2
0
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <form id="form5" name="form5" method="post" action="">
    <input type="submit" name="Edit Hunt" id="Submit" value="Save Updated Hunt" />
  </form>
  <p>&nbsp;</p>
  <p align="left" class="style9">
    <?php 
if (isRoleMember('hunter')) {
    ?>
  </p>
  
  <h1 align="left" class="style9">To see the duck blind list, please click here:</h1>
  <p align="left" class="style9"><a href="PDFs/DUCK_BLINDS_2010.pdf">Duck Blind List</a></p>
  <?php 
} else {
    ?>
  <h1 align="left" class="style9">To see the duck blind list you must first be registered as a hunter.</h1>
   <?php 
}
?>
  
  
  <p>&nbsp;</p>
  <p class="style9">If you have a favorite bird to highlight here, contact <a href="mailto:help@PiutePonds.org">help@PiutePonds.org</a>. </p>
</div>
<div id="FullWide">
  <p align="center">&nbsp;</p>
  <p align="center" class="style9">&nbsp;</p>
  <p class="style9">&nbsp;</p>
  <p class="style9" style="margin-bottom: 0">&nbsp;</p>
  <p align="center" class="style4">&nbsp;</p>
  <blockquote>&nbsp;</blockquote>
  <p class="style4">&nbsp;</p>
  <p class="style4" style="margin-bottom: 0">&nbsp;</p>
  <p class="style9">&nbsp;</p>
  <p class="style9">&nbsp;</p>
</div>
<div id="adminButton">
   <?php 
if (isRoleMember('admin')) {
    ?>
   <a href="php/admin_home.php"><img src="images/admin.jpg" /></a>
   <?php 
} else {
    if (isRoleMember('super user')) {
        ?>
   <a href="php/admin_home.php"><img src="images/superuser.jpg" /></a>
   <?php 
    }
}
?>
</div>

Example #4
0
</div>
<div id="apDiv1">
  <p class="style4">Edwards AFB</p>
  <p class="style3">The Piute Ponds Management Plan is available for review by <a href="/PDFs/Piute Ponds Complex Management Plan INRMP AFD-141126-093-2.pdf" target="_blank">clicking here</a>. Be patient, this PDF file is almost 4 mb, so it may take a few seconds to open.</p>
  <p class="style3"><strong>Volunteer projects for 2015 –  contact Wanda Deal at <a href="mailto:volunteer@piuteponds.org">volunteer@piuteponds.org</a></strong></p>
  <p class="style3">&nbsp;</p>
<blockquote>
  <p class="style3">&nbsp;</p>
</blockquote>
  <p align="center" class="style4"><img src="images/Cottonwood-creek-Jan18-2010.jpg" alt="Cottonwood Creek January 18,2010 stream guages" width="230" height="321" border="2" /></p>
  <p align="center" class="style4"><img src="images/CottonwoodCreekWaterflow1-20-10-wih-title2.jpg" alt="Cottonwood Creek Water Flow Test Januaary 20,2010" width="288" height="230" border="2" align="middle" /></p>
  <p align="left" class="style9">Edwards begins surface water flow study to determine waterflow input from the three major watersheds flowing into Rosamond Dry Lake. The three main watersheds are Amargosa Creek, Cottonwood Creek and Littlerock Creek. This study captured the first major storm event in many years. </p>
  <p align="center" class="style9"><img src="images/Cottonwood-creek-flow72dpi.jpg" alt="Aquacalc used to calculate velocity of Cottonwood Creek" width="307" height="245" border="2" /></p>
  <p align="left" class="style9">&nbsp;</p>

  <?php 
if (isRoleMember('ponddev')) {
    ?>
  <p align="left" class="style9"><a href="Development-Effort.php">Piute Ponds Development Effort</a></p>
  <?php 
} else {
    ?>
   <?php 
}
?>

  <p class="style4">&nbsp;</p>
  <p class="style9">&nbsp;</p>
  <p class="style9">&nbsp;</p>
</div>
Example #5
0
function redirectIfNotInRole($roleName, $redirectPage)
{
    $isRoleMember = isRoleMember($roleName);
    if (!$isRoleMember) {
        //addError('login','You are not allowed ');
        header('Location: ' . $redirectPage);
    }
}
Example #6
0
<?php

/*
 * Created on Aug 19, 2010
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
include_once '../php/piute_includes.php';
session_start();
redirectIfNotInRole('super user', '../not-allowed.php');
$isSuperUser = isRoleMember('super user');
$isBagChecker = isRoleMember('bag_checker');
// var_dump($isSuperUser);
// var_dump($isBagChecker);
// exit;
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>Piute Ponds Admin Home</title>
<link href="AdminCSS.css" rel="stylesheet" type="text/css"></link>
</head>
<body>
<a href="../">Piute Ponds Home Page</a>
<h1>Admin Home</h1>
This is the admin home page.

<table border="1">
  <?php 
if ($isSuperUser) {