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


PHP url::gotolink方法代码示例

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


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

示例1: profil

 /**
  **profile
  **/
 public function profil()
 {
     self::checksession();
     $User = $this->loadModel('user_model');
     if (!empty($_POST)) {
         $_SESSION["user"]["UserFirstName"] = $_POST["UserFirstName"];
         $_SESSION["user"]["UserLastName"] = $_POST["UserLastName"];
         $_SESSION["user"]["UserBirthDate"] = $_POST["UserBirthDate"];
         $_SESSION["user"]["UserAdress"] = $_POST["UserAdress"];
         $_SESSION["user"]["UserAdressN"] = $_POST["UserAdressN"];
         $_SESSION["user"]["UserAdressB"] = $_POST["UserAdressB"];
         $_SESSION["user"]["UserAdressC"] = $_POST["UserAdressC"];
         $_SESSION["user"]["UserAdressL"] = $_POST["UserAdressL"];
         $_SESSION["user"]["UserPhone"] = $_POST["UserPhone"];
         $_SESSION["user"]["UserPassword"] = $_POST["UserPassword"];
         $_SESSION["user"]["Titre"] = $_POST["Titre"];
         $User->update($_POST, $_SESSION["user"]["UserId"]);
         url::redirect(url::gotolink("./login"));
     }
     $data["User"] = $User->show($_SESSION["user"]["UserId"]);
     $data['title'] = 'Profil';
     $this->view->rendertemplate('user_header', $data);
     $this->view->render('user/profil', $data);
     $this->view->rendertemplate('user_footer', $data);
 }
开发者ID:Ezma,项目名称:Temporary,代码行数:28,代码来源:user.php

示例2:

                     style="width:220px; margin:auto;">
                    <a href="<?php 
echo url::gotolink("./user/tours");
?>
"><input class="btn-green" type="button" value="M'inscrire au tournoi"/></a>
                    </div>
                </form>
				<br/>
				<p>Chaque année de généreux particuliers et club de tennis ont la générosité de prêter leurs terrains pour l'organisation du tournoi. Sans eux, le tournoi ne pourrait avoir lieu. Si vous désirez nous prêter votre terrain, c'est très simple: il suffit de cliquer sur l'onglet "Mes Terrains" à gauche de votre écran, ou sur le lien ci-dessous.</p>
				
                
                <form class="form form--login" method="post">
                     <div class="form__field orange animated wow bounceIn" data-wow-offset="0" data-wow-delay="1s" 
                     style="width:220px; margin:auto;">
                    <a href="<?php 
echo url::gotolink("./user/courts");
?>
"><input class="btn-orange" type="button" value="Pr&ecirc;ter mon terrain"/></a>
                    </div>
                </form>
				</div>
                
	
<!--main content end-->
        
        <footer>
            <a href="#one" class="button style2 down">More</a>
        </footer>
        </div>
    </div>
</section>
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:user_index.php

示例3:

        ?>
                                	<div class="form__field" style="color:white;">
										En attente d'un joueur
									</div>
							 <?php 
    }
    ?>
                            
                            </td>
                            <!--<td>
			<?php 
    if (strlen($result["User2"]) == 0 && $_SESSION["user"]["UserId"] != $result["User1"]) {
        ?>
			<div class="btn-group">								
				<a class="btn btn-primary" href="<?php 
        echo url::gotolink("./user/tours/") . $data["Tourid"] . "/" . $result["TeamId"];
        ?>
"><i class="icon_plus_alt2"></i></a>
			</div>
			<?php 
    }
    ?>
			</td> -->
			</tr>
						<?php 
}
?>
					</tbody>
				</table>
			</div>
		</div>
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:teams.php

示例4:

                  <li class="<?php 
echo $data['active'] == 2 ? "active" : "";
?>
">
                      <a class="" href="<?php 
echo url::gotolink("./user/courts");
?>
">
                          <i class="icon_house_alt"></i>
                          <span>Mes terrains</span>
                      </a>
                  </li>
                  <li class="<?php 
echo $data['active'] == 3 ? "active" : "";
?>
">
                      <a class="" href="<?php 
echo url::gotolink("./user/tours");
?>
">
                          <i class="icon_house_alt"></i>
                          <span>Je participe</span>
                      </a>
                  </li>
          
                  
              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->
开发者ID:nihalesaba,项目名称:Tournois,代码行数:31,代码来源:user_header.php

示例5: createkickoff

 public function createkickoff($tourid)
 {
     self::checksession();
     $Tour = $this->loadModel('tour_model');
     $Kickoff = $this->loadModel('kickoff_model');
     $data["active"] = 3;
     $data["Tour"] = $Tour->show($tourid);
     $data['title'] = 'Création d\'un kick-off';
     $data["kickoff"] = $Kickoff->selectByTournament($tourid);
     if (isset($_POST['anul'])) {
         # Publish-button was clicked
         url::redirect(url::gotolink("./staff/tours") . '/kickoff/' . $tourid);
     } elseif (isset($_POST['gene'])) {
         # Save-button was clicked
         $Kickoff->deleteByTournament($tourid);
         function is_player($round, $row, $team)
         {
             return $row == pow(2, $round - 1) + 1 + pow(2, $round) * ($team - 1);
         }
         $num_teams = $_POST["KickoffSize"];
         $total_rounds = floor(log($num_teams, 2)) + 1;
         $max_rows = $num_teams * 2;
         $team_array = array();
         $unpaired_array = array();
         $score_array = array();
         for ($round = 1; $round <= $total_rounds; $round++) {
             $team_array[$round] = 1;
             $unpaired_array[$round] = False;
             $score_array[$round] = False;
         }
         for ($row = 1; $row <= $max_rows; $row++) {
             for ($round = 1; $round <= $total_rounds; $round++) {
                 $score_size = pow(2, $round) - 1;
                 if (is_player($round, $row, $team_array[$round])) {
                     $unpaired_array[$round] = !$unpaired_array[$round];
                     $team_array[$round]++;
                     $score_array[$round] = False;
                 } else {
                     if ($unpaired_array[$round] && $round != $total_rounds) {
                         if (!$score_array[$round]) {
                             $dat["Tournament"] = $tourid;
                             $dat["Round"] = $round - 1;
                             $dat["CaseNumber"] = $row;
                             //$row = $row + $score_size - 1;
                             $Kickoff->insert($dat);
                             $score_array[$round] = !$score_array[$round];
                         }
                     }
                 }
             }
         }
         url::redirect(url::gotolink("./staff/tours") . '/kickoff/' . $tourid);
     }
     $this->view->rendertemplate('staff_header', $data);
     $this->view->render('staff/createkickoff', $data);
     $this->view->rendertemplate('staff_footer', $data);
 }
开发者ID:Ezma,项目名称:Temporary,代码行数:57,代码来源:staff.php

示例6:

                <li class="has-subnav">
                    <a href="<?php 
echo url::gotolink("./admin/profil");
?>
">
                       <i class="fa fa-cog fa-2x"></i>
                        <span class="nav-text">
                            Mon profil
                        </span>
                    </a>
                    
            </ul>

            <ul class="logout">
                <li>
                   <a href="<?php 
echo url::gotolink("logout");
?>
">
                         <i class="fa fa-power-off fa-2x"></i>
                        <span class="nav-text">
                           Se deconnecter
                        </span>
                    </a>
                </li>  
            </ul>
        </nav>
          </div>
      </aside>
      <!--sidebar end-->
开发者ID:Ezma,项目名称:Temporary,代码行数:30,代码来源:admin_header.php

示例7: foreach

    ?>
</td>
							<td><?php 
    echo $team["Group"];
    ?>
</td>
							
                            <td>
								<ul id="menu-accordeon">
									<li><a>Ajouter à</a>
      								<ul>
											<?php 
    foreach ($groups as $group) {
        ?>
													<li><a href="<?php 
        echo url::gotolink("./staff/tours/group/addteams/") . $group["Tournament"] . "/" . $group["GroupId"] . "/" . $team["TeamId"];
        ?>
"><?php 
        echo $group["GroupId"];
        ?>
</a></li>
                     				<?php 
    }
    ?>
										</ul>
									</li>
								</ul>
							</td>
						</tr>
						<?php 
}
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:group.php

示例8:

							<td><?php 
    echo $result["TournamentType"];
    ?>
</td>
							<td>
								<div class="btn-group">
									<a class="btn btn-primary" href="<?php 
    echo url::gotolink("./staff/tours") . '/show/' . $result["TournamentId"];
    ?>
"><i class="icon_plus_alt2"></i></a>
									<a class="btn btn-success" href="<?php 
    echo url::gotolink("./staff/tours") . '/edit/' . $result["TournamentId"];
    ?>
"><i class="icon_check_alt2"></i></a>
									<a class="btn btn-danger" href="<?php 
    echo url::gotolink("./staff/tours") . '/delete/' . $result["TournamentId"];
    ?>
"><i class="icon_close_alt2"></i></a>
								</div>
							</td>
						</tr>
						<?php 
}
?>
					</tbody>
				</table>
			</div>
		</div>
	</section>
</section>
<!--main content end-->
开发者ID:nihalesaba,项目名称:Tournois,代码行数:31,代码来源:tours.php

示例9: unset

}
unset($_SESSION["alert"]);
?>
        <a href="<?php 
echo url::gotolink("./staff/tours/kickoff/create/") . $tour["TournamentId"];
?>
">
        
        <form class="form form--login" method="post">
                     <div class="form__field orange" style="width:220px;">
		<!--
		Lien pour creer un nouveau kick off
		choisir la taille
		-->
                <a href="<?php 
echo url::gotolink("./staff/tours/kickoff/create/") . $tour["TournamentId"];
?>
"><input class="btn-green" type="button" value="Modifier la taille"/></a>
                    </div>
        </form>
        
        </div>
        <br>
        <div class="col-xs-12">
        <div id="myContainer" class="container"> </div>
        </div>
      </div>
    </div>
  </section> <!-- End Wrapper -->
  <div class="col-xs-3">
    <div class="table-responsive">
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:kickoff.php

示例10:

            <section class="intro">
            	<div class="explain2">
                
                <h1>Editer le terrain</h1>
                
                <? 
					$dates = $data["dates"];
					$data=$data["Court"][0];
					?>
                
                <p></p>
                
                <form class="form form--login" method="post">
                     <div class="form__field orange" style="width:220px;">
			<!-- supprimer le terrain -->
                    <a href="<? echo  url::gotolink("./staff/courts").'/delete/'.$data["CourtId"];?>"><input class="btn-orange" type="button" value="Supprimer le terrain"/></a>
                    </div>
                </form>
                
                
                </div>
            	<div class="site__container2">
					<div class="grid__container">
				
					<? form::beginform();?>
					
					 <div class="form__field">
						 Proprièté
                    </div>
                    
                    <div class="form__field">
开发者ID:Ezma,项目名称:Tournois,代码行数:31,代码来源:courtedit.php

示例11:

"> 
                                    	<input class="btn" type="button" value="<?php 
    echo $result["TournamentCategory"];
    ?>
"/>
                                    </a>
								</div>
							</td>
<!-- creer un kick off pour une certaine categorie de tournoi -->
							<td>
								<div class="btn-group">
									<a title="Créer le kickoff des <?php 
    echo $result["TournamentCategory"];
    ?>
" class="btn btn-primary" href="<?php 
    echo url::gotolink("./staff/tours") . '/kickoff/' . $result["TournamentId"];
    ?>
"><i class="icon_plus_alt2"></i></a>
								</div>
							</td>
						</tr>
						<?php 
}
?>
					</tbody>
				</table>	
			</div>
		</div>
	</section>
</section>
<!--main content end-->
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:tours.php

示例12:

            	<div class="explain2">
                
                <h1>Editer le terrain lol</h1>
                
                <?php 
$dates = $data["dates"];
$data = $data["Court"][0];
?>
                
                <p></p>
                
                <form class="form form--login" method="post">
                     <div class="form__field orange" style="width:220px;">
			<!-- supprimer le terrain -->
                    <a href="<?php 
echo url::gotolink("./staff/courts") . '/delete/' . $data["CourtId"];
?>
"><input class="btn-orange" type="button" value="Supprimer le terrain"/></a>
                    </div>
                </form>
                
                
                </div>
            	<div class="site__container2">
					<div class="grid__container">
				
					<?php 
form::beginform();
?>
					
					 <div class="form__field">
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:courtedit.php

示例13: checksession

 public function checksession()
 {
     if (isset($_SESSION["connect"]) && isset($_SESSION['user']["RoleId"])) {
         if (Session::get('connect') == false && $_SESSION['user']["RoleId"] == 2) {
             url::redirect(url::gotolink("./login"));
         }
     } else {
         url::redirect(url::gotolink("./login"));
     }
 }
开发者ID:nihalesaba,项目名称:Tournois,代码行数:10,代码来源:user.php

示例14:

        echo url::gotolink("./staff/tours/court") . '/addMorningTour/' . $result["CourtId"] . '/' . $data["TourId"];
        ?>
"><i class="icon_plus_alt2"></i></a>
												</div>
												<?php 
    }
    ?>
											</td>
											<td>
												<?php 
    if ($result[$data["Date"] . A] == 0) {
        ?>
												<div class="btn-group">
<!--ajouter au tournoi de l'apres midi-->
													<a class="btn btn-primary" href="<?php 
        echo url::gotolink("./staff/tours/court") . '/addAfternoonTour/' . $result["CourtId"] . '/' . $data["TourId"];
        ?>
"><i class="icon_plus_alt2"></i></a>
												</div>
												<?php 
    }
    ?>
											</td>
										</tr>
										<?php 
}
?>
									</tbody>
								</table>
						</tr>
					</table>
开发者ID:Ezma,项目名称:Temporary,代码行数:31,代码来源:tournamentcourt.php

示例15:

                    <a href="<?echo url::gotolink("./admin/staffs");?>">
                        <i class="fa fa-list fa-2x"></i>
                        <span class="nav-text">
                            Gestion staff
                        </span>
                    </a>
                <li class="has-subnav">
                    <a href="<?echo url::gotolink("./admin/profil");?>">
                       <i class="fa fa-cog fa-2x"></i>
                        <span class="nav-text">
                            Mon profil
                        </span>
                    </a>
                    
            </ul>

            <ul class="logout">
                <li>
                   <a href="<?echo url::gotolink("logout");?>">
                         <i class="fa fa-power-off fa-2x"></i>
                        <span class="nav-text">
                           Se deconnecter
                        </span>
                    </a>
                </li>  
            </ul>
        </nav>
          </div>
      </aside>
      <!--sidebar end-->
开发者ID:Ezma,项目名称:Tournois,代码行数:30,代码来源:admin_header.php


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