当前位置: 首页>>代码示例>>PHP>>正文


PHP Flight::link方法代码示例

本文整理汇总了PHP中Flight::link方法的典型用法代码示例。如果您正苦于以下问题:PHP Flight::link方法的具体用法?PHP Flight::link怎么用?PHP Flight::link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Flight的用法示例。


在下文中一共展示了Flight::link方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

<?php

isset($flash) ? Flight::util()->success($flash['word'], $flash['action']) : "";
?>
<form method="POST" action="<?php 
Flight::link('/player/' . $player->id . '/update');
?>
">
  <div class="row">
    <input type="hidden" value="<?php 
echo $player->id;
?>
" name="id">
  </div>
  <div class="row">
        <?php 
if (isset($error['surname']['type'])) {
    Flight::util()->error($error['surname']);
}
?>
    <div class="input-group">
      <span class="input-group-addon" id="surname">Nachname</span>
      <input type="text" name="surname" value="<?php 
echo $player->surname;
?>
" class="form-control" aria-describedby="surname" required>
    </div>
  </div>
  <div class="row">
        <?php 
if (isset($error['forename']['type'])) {
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:editPlayer.php

示例2:

<div class="row">
  <h1>Not loged in</h1>
  <a href="<?php 
Flight::link('/');
?>
">Login</a>
</div>
开发者ID:happyoniens,项目名称:Club,代码行数:7,代码来源:notLogedIn.php

示例3:

<div class="row">
  <div class="col-sm-2">Phone Home:</div>
  <div class="col-sm-8"><?php 
echo $player->phone_home;
?>
</div>
</div>
<div class="row">
  <div class="col-sm-2">Phone Mobile:</div>
  <div class="col-sm-8"><?php 
echo $player->phone_mobile;
?>
</div>
</div>
<div class="row">
  <a href="<?php 
Flight::link('/player/' . $player->id . '/update');
?>
"><button type="button" class="btn btn-success">Update</button></a>
  <?php 
if (Flight::auth()->currentUser->role == 20) {
    ?>
    <a href="<?php 
    Flight::link('/player/' . $player->id . '/delete');
    ?>
"><button type="button" class="btn btn-danger">Delete</button></a>
  <?php 
}
?>
</div>
开发者ID:happyoniens,项目名称:Club,代码行数:30,代码来源:player.php

示例4: isset

<form method="post" action="<?php 
Flight::link('/login');
?>
">
<div class="row">
  <?php 
echo isset($error_string) ? '<div class="alert alert-danger">Something went wrong.</div>' : '';
?>
  <div class="col-lg-5">
    <?php 
if (isset($error['email']['type'])) {
    Flight::util()->error($error['email']);
}
?>
    <div class="input-group">
      <span class="input-group-addon" id="email">Email</span>
      <input type="email" name="email" value="<?php 
echo isset(Flight::request()->data->email) ? Flight::request()->data->email : '';
?>
" class="form-control" aria-describedby="email">
    </div>
  </div>

  <div class="col-lg-5">
    <?php 
if (isset($error['password']['type'])) {
    Flight::util()->error($error['password']);
}
?>
    <div class="input-group">
      <span class="input-group-addon" id="password">password</span>
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:login.php

示例5:

<form method="POST" action="<?php 
Flight::link('/createEvent');
?>
">
  <div class="row">
  <input type="hidden" name="team" value="<?php 
echo $team_id;
?>
">
  <?php 
if (isset($error['title']['type'])) {
    Flight::util()->error($error['title']);
}
?>
  <div class="input-group">
    <span class="input-group-addon" id="title">Title</span>
    <input type="text" name="title" class="form-control" aria-describedby="title" required>
  </div>

  <?php 
if (isset($error['start']['type'])) {
    Flight::util()->error($error['start']);
}
?>
  <div class="input-group">
    <span class="input-group-addon" id="start">From</span>
    <input type="datetime-local" name="start" class="form-control" aria-describedby="from" required>
  </div>
  <?php 
if (isset($error['end']['type'])) {
    Flight::util()->error($error['end']);
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:newEvent.php

示例6: isset

<form method="POST" action="<?php 
Flight::link('/createAbsence/' . $team->id . '/' . (isset($event) ? $event->id : ''));
?>
">
  <div class="row">

  <div class="input-group">
    <span class="input-group-addon" id="start">From</span>
    <input type=<?php 
echo isset($event) ? "datetime" : "datetime-local";
?>
  <?php 
echo isset($event) ? 'readonly' : '';
?>
 name="start" value="<?php 
echo isset($event) ? $event->start : '';
?>
" class="form-control" aria-describedby="from" required>
  </div>
  <div class="input-group">
    <span class="input-group-addon" id="end">To</span>
    <input type=<?php 
echo isset($event) ? "datetime" : "datetime-local";
?>
 <?php 
echo isset($event) ? 'readonly' : '';
?>
 name="end" value="<?php 
echo isset($event) ? $event->end : '';
?>
" class="form-control" aria-describedby="to" required>
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:newAbsence.php

示例7:

">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>
开发者ID:happyoniens,项目名称:Club,代码行数:30,代码来源:layout.php

示例8:

    ?>
">asign</a> or <a href="<?php 
    Flight::link('/createPlayer');
    ?>
">create</a> one</h5>
    <?php 
}
?>
</div>
</div>
<div class="row">
  <a href="<?php 
Flight::link('/createEvent/' . $team->id);
?>
"><button type="submit" class="btn btn-success">Create Event</button></a>
  <a href="<?php 
Flight::link('/createAbsence/' . $team->id);
?>
"><button type="submit" class="btn btn-success">Create Absence</button></a>
  <?php 
if (Flight::auth()->currentUser->role == 20) {
    ?>
    <a href="<?php 
    Flight::link('/deleteTeam/' . $team->id);
    ?>
"><button type="submit" class="btn btn-danger">Delete Team</button></a>
  <?php 
}
?>
</div>
开发者ID:happyoniens,项目名称:Club,代码行数:30,代码来源:team.php

示例9:

<form action="<?php 
Flight::link('/create');
?>
" method="POST">
    <div class="input-group">
      <span class="input-group-addon" id="title">Title</span>
      <input type="text" class="form-control" name="title" placeholder="Title" aria-describedby="title">
    </div>
    <br>
    <textarea name="content" id="content"></textarea>

<script>
$('#content').summernote({
     height: 500
});
</script>

<input type="submit" class="btn btn-primary">
</form>
开发者ID:happyoniens,项目名称:Blog,代码行数:19,代码来源:postEditor.php

示例10: isset

<?php

isset($flash) ? Flight::util()->success($flash['word'], $flash['action']) : "";
?>
<form method="POST" action="<?php 
Flight::link('/editUser/');
?>
">
  <input type="hidden" value="<?php 
echo $user->id;
?>
" name="id">
  <input type="hidden" value="<?php 
echo $user->role;
?>
"  name="role">
  <div class="row">

  <?php 
if (isset($error['surname']['type'])) {
    Flight::util()->error($error['surname']);
}
?>
  <div class="input-group">
    <span class="input-group-addon" id="surname">Surname</span>
    <input type="text" value="<?php 
echo $user->surname;
?>
" name="surname" class="form-control" aria-describedby="surname" required>
  </div>
    <?php 
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:editUser.php

示例11:

<div class="row">
  <div class="blog-main">
      <div class="blog-post">
        <h1 class="blog-post-title"><?php 
echo $post->title;
?>
</h1>
        <p class="blog-post-meta"><time datetime="<?php 
echo $post->posted;
?>
"><?php 
echo $post->posted;
?>
</time> by <a href="<?php 
Flight::link('/author/' . $post->getAuthor()->id);
?>
"><?php 
echo $post->getAuthor()->fullName();
?>
</a></p>
        <?php 
echo $post->content;
?>
      </div>
  </div>
</div>
开发者ID:happyoniens,项目名称:Blog,代码行数:26,代码来源:post.php

示例12: isset

<?php

isset($flash) ? Flight::util()->success($flash['word'], $flash['action']) : "";
?>
<form method="POST" action="<?php 
Flight::link('/createUser');
?>
">
  <input type="hidden" value="player" name="type">
  <div class="row">

  <?php 
if (isset($error['surname']['type'])) {
    Flight::util()->error($error['surname']);
}
?>
  <div class="input-group">
    <span class="input-group-addon" id="surname">Surname</span>
    <input type="text" value="<?php 
echo isset($error['surname']) ? $error['surname']['value'] : '';
?>
" name="surname" class="form-control" aria-describedby="surname" required>
  </div>
    <?php 
if (isset($error['forename']['type'])) {
    Flight::util()->error($error['forename']);
}
?>
  <div class="input-group">
    <span class="input-group-addon" id="forename">Forename</span>
    <input type="text" value="<?php 
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:newUser.php

示例13: nl2br

		$("#cancelBio").click(function(){
			$("#bio").show();
			$("#bio-edit").hide();
			$("#tab2 button").toggle();
		});

		function nl2br (str, is_xhtml) {
		    var breakTag = (is_xhtml || typeof is_xhtml === 'undefined') ? '<br />' : '<br>';
		    return (str + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1'+ breakTag +'$2');
		}

		$("#savePassword").click(function(){

			$.ajax({
				url: "<?php 
Flight::link("/saveprofile");
?>
?password",
				method: 'POST',
				data: {
					passwordold: 	$("#passwordold").val(),
					passwordnew1:  $("#passwordnew1").val(),
					passwordnew2: 	$("#passwordnew2").val()
				}
			}).success(function(data){
				if(data.success == true){
					$("#passwordalert").text("Success").removeClass("alert-danger").addClass("alert-success").show();
					$("#passwordold").val('');
					$("#passwordnew1").val('');
					$("#passwordnew2").val('');
				}else{
开发者ID:happyoniens,项目名称:Blog,代码行数:31,代码来源:profile.php

示例14: foreach

    foreach ($players as $player) {
        ?>
      <tr></td><td><?php 
        echo $player->forename;
        ?>
</td><td><?php 
        echo $player->surname;
        ?>
</td><td><?php 
        echo Flight::teams()->getTeamNameWithId($player->team);
        ?>
</td><td><a href='<?php 
        Flight::link('/player/' . $player->id);
        ?>
'>View Details</a></tr>
      <?php 
    }
    ?>
    </table>
    <?php 
} else {
    ?>
      <h5>No Players in this Team <a href="<?php 
    Flight::link('/asignPlayer');
    ?>
">asign</a> or <a href="<?php 
    Flight::link('/createPlayer');
    ?>
">create</a> one</h5>
    <?php 
}
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:players.php

示例15: urlencode

    }
    ?>
    </table>
  <?php 
} else {
    ?>
    <h4>No Absences for this Event</h4>
  <?php 
}
?>
    <a href="<?php 
Flight::link('/createAbsence/' . $event->team . '/' . $event->id);
?>
"><button class="btn btn-success">Add new Absence</button></a>
    <a href="<?php 
Flight::link('/deleteEvent/' . $event->id);
?>
"><button class="btn btn-danger">Remove Event</button></a>
  <a target="_blank" href='mailto:<?php 
foreach ($team->getReadyPlayersInTimerange($players) as $player) {
    echo $player->email . ";";
}
?>
?subject=<?php 
echo urlencode($event->title);
?>
&body=<?php 
echo urlencode($event->text);
?>
 %0D%0A %0D%0AStart: <?php 
echo $event->start;
开发者ID:happyoniens,项目名称:Club,代码行数:31,代码来源:event.php


注:本文中的Flight::link方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。