/**
  * alter user info
  */
 public static function userAlterDeal()
 {
     $requestUserInfo = FLight::request()->query->getData();
     if (ifNoEmptyData($requestUserInfo)) {
         $result = UserService::alterUserInfo($requestUserInfo);
         if ($result && 300 == $result['errorn']) {
             returnJson(true, null, throwInfo($result['errorn']));
         } else {
             returnJson(false, null, throwInfo($result['errorn']));
         }
     } else {
         returnJson(false, null, throwInfo(404));
     }
 }
Exemple #2
0
">Edit Profile</a></li>
            <li role="separator" class="divider"></li>
           <li><a href="<?php 
    Flight::link('/logout/');
    ?>
">Logout</a></li>
         </ul>
      </li>
     </ul>
   <?php 
}
?>
  </div>
  </nav>
  <div class="container">
  <?php 
echo $body_content;
?>
 </div>
<script src="<?php 
Flight::link('/public/lib/jquery/jquery-2.1.4.min.js');
?>
"></script>
 <script src="<?php 
FLight::link('/public/lib/bootstrap/js/bootstrap.min.js');
?>
"></script>
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
</body>
</html>
Exemple #3
0
      <tr><th>Reason</th><th>Name</th><th width="20px">Delete</th></tr>
      <?php 
    foreach ($absences as $absence) {
        ?>
        <?php 
        $players[] = $absence->player;
        ?>
        <tr><td><?php 
        echo $absence->getIcon();
        ?>
</td><td><?php 
        $player = Flight::players()->getPlayerWithId($absence->player);
        echo $player->forename . " " . $player->surname;
        ?>
</td><td style="text-align:center"><a href="<?php 
        FLight::link('/deleteAbsence/' . $absence->id);
        ?>
"><i class="fa fa-trash-o"></i></a></td></tr>
      <?php 
    }
    ?>
    </table>
  <?php 
} else {
    ?>
    <h4>No Absences for this Event</h4>
  <?php 
}
?>
    <a href="<?php 
Flight::link('/createAbsence/' . $event->team . '/' . $event->id);
Exemple #4
0
 private function layout()
 {
     FLight::view()->set('title', Config::get('page_title'));
     FLight::set('auth_by_third_part', Config::get('auth.use_third_part'));
     Flight::render(DEV ? 'layout' : 'layout-dist');
 }