예제 #1
0
function canViewFunds()
{
    return isUser() || isSuper() || isTrans() || isAdmin();
}
예제 #2
0
파일: home.php 프로젝트: gogolB/pinkies2
          </div>
        </div>
    <?php 
}
?>

    <!-- Review Pinkies -->
    <?php 
if (isUser() || isTrans() || isSuper() || isAdmin()) {
    ?>
      <div class="container">
        <div class="well">
          <H3>Review Pinkies</H3>
          <!-- Everyone but a user can have a pinkie submitted to them. -->
          <?php 
    if (isTrans() || isSuper() || isAdmin()) {
        ?>
            <H4><u>Pinkies Submitted To You</u></H4>
            <div class="table-responsive">
              <table class="table table-bordered table-hover table-condensed">
                <thead>
                  <tr>
                    <th>Pinkie Title</th>
                    <th>Submitted By</th>
                    <th>Timestamp</th>
                    <th>Total</th>
                    <th>Options</th>
                  </tr>
                </thead>
                <tbody>
                  <?php 
예제 #3
0
            echo $_pinkie->i_PinkieID;
            ?>
)"><span class="glyphicon glyphicon-indent-right"></span> Reject this Pinkie</button>
                <?php 
        } elseif (isAdmin()) {
            ?>
                  <button type="button" class="btn btn-success" onclick="onApprove(<?php 
            echo $_pinkie->i_PinkieID;
            ?>
)"><span class="glyphicon glyphicon-indent-left"></span> Dispatch this Pinkie</button>
                  <button type="button" class="btn btn-danger" onclick="onReject(<?php 
            echo $_pinkie->i_PinkieID;
            ?>
)"><span class="glyphicon glyphicon-indent-right"></span> Reject this Pinkie</button>
                <?php 
        } elseif (isTrans()) {
            ?>
                  <button type="button" class="btn btn-success" onclick="onDone(<?php 
            echo $_pinkie->i_PinkieID;
            ?>
)"><span class="glyphicon glyphicon-ok-sign"></span> Done</button>
                <?php 
        }
        ?>
                <button type="button" class="btn btn-danger" onclick="onCancel(<?php 
        echo $_pinkie->i_PinkieID;
        ?>
)"><span class="glyphicon glyphicon-remove-sign"></span> Cancel this pinkie</button>
              <?php 
    } else {
        ?>
예제 #4
0
    <?php 
if (isSuper()) {
    ?>
      <script type="text/javascript" src="./js/supervisorPinkieReview.js"></script>
    <?php 
}
?>
    <?php 
if (isAdmin()) {
    ?>
      <script type="text/javascript" src="./js/adminPinkieReview.js"></script>
    <?php 
}
?>
    <?php 
if (isTrans()) {
    ?>
      <script type="text/javascript" src="./js/transPinkieReview.js"></script>
    <?php 
}
?>
  </HEAD>
  <BODY>

    <div class="jumbotron text-center" style="margin-top:-20px;">
      <H1>ePinkies 2</H1>
      <h2>University of California at Riverside</h2>
      <h3>Department of Electrical and Computer Engineering</h3>
    </div>

    <!-- Header Container -->