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


PHP echoErrorMessages函数代码示例

本文整理汇总了PHP中echoErrorMessages函数的典型用法代码示例。如果您正苦于以下问题:PHP echoErrorMessages函数的具体用法?PHP echoErrorMessages怎么用?PHP echoErrorMessages使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: echoErrorMessages

  <div class="rollover"><a href="contact-us.php">CONTACT US</a></div>
  <div class="rollover"></div>
  </div>
<!-- #EndLibraryItem --></p>
<p><a href="https://www.facebook.com/pages/Friends-of-Piute-Ponds/171112009611901" target="_blank"><img src="images/FacebookIcon.jpg" alt="Facebook Page" width="45" height="44"></a></p>
<!-- #EndLibraryItem --></div>
<div id="apDiv1">

  <p align="left" class="style4">Register New User</p>
  <p align="left" class="style9">Please provide your email address, First name, and last name</p>
  <p align="left" class="style9">
		<form method='POST' action='php/register_action.php'>
		<table>
     <tr>
		         <td class="errorMessage" colspan="2"><?php 
echoErrorMessages("register");
?>
</td>
		      </tr>
		<tr>
		<td class="style9">Email:</td>
		<td><input type='text' name='email'></td>
		</tr>
		<tr>
		<td class="style9">First Name:</td>
		<td><input type='text' name='first_name'></td>
		</tr>
		<tr>
		<td class="style9">Last Name:</td>
		<td><input type='text' name='last_name'></td>
		</tr>
开发者ID:coyotetracks,项目名称:PiutePonds,代码行数:31,代码来源:register.php

示例2: getCurrentUserInfo

<link href="PiuteMasterCSS.css" rel="stylesheet" type="text/css" />
<div id="apDiv2"><img src="images/Piute_Background_Image.jpg" width="720" height="778" alt="PiutePonds-Background_Image" /></div>
<div id="login"><span class="style9" id="heading1">
  <?php 
if (showLoginBanner()) {
    $userInfo = getCurrentUserInfo();
    if (isset($userInfo)) {
        displayWelcomeBack($userInfo);
    } else {
        ?>
		<form method='POST' action='../php/login_action.php'>
		   <table>
		      <tr>
		         <td class="errorMessage" colspan="5"><?php 
        echoErrorMessages("login");
        ?>
</td>
		      </tr>
		      <tr>
		         <td>email:</td>
		         <td><input type='text' name='email'></td>
		         <td>password:</td>
		         <td><input type='password' name='password'></td>
		         <td><input type='submit' value='Login'/></td>
		      </tr>
		      <tr>
		         <td></td>
		         <td>
		            <a href='../register.php'><font size=-1>Register</font></a>		         
</td>
开发者ID:coyotetracks,项目名称:PiutePonds,代码行数:30,代码来源:district-14.php

示例3: getFormElement

function getFormElement($variable, $value, $type, $horiz_pos, $variable_index) {

   $value=trim(preg_replace("/\"/","",stripslashes($value))); //strip slashes, trim, and get rid of quotes    

  $box_size=strlen($value);
  if($box_size > 40) {
   $box_size=40;     //size of text box
  }

  switch ($type) {
  case "integer":
    
    return "<input type=\"text\" class=\"color\" name=\"assignment_info[$horiz_pos][$variable_index][value]\" value=\"$value\" size=\"$box_size\" onChange=\"isNumber(this)\">";
    break;

  case "boolean":


    if($value=="true") {  
    return "
        <input  type=\"radio\" checked name=\"assignment_info[$horiz_pos][$variable_index][value]\" value=\"true\">On
        <input type=\"radio\" name=\"assignment_info[$horiz_pos][$variable_index][value]\" value=\"false\">Off";
    } else {
    return "
        <input  type=\"radio\"  name=\"assignment_info[$horiz_pos][$variable_index][value]\" value=\"true\">On
        <input type=\"radio\" checked name=\"assignment_info[$horiz_pos][$variable_index][value]\" value=\"false\">Off";
    }

    break;

  case "string":

    return "
          <input type=\"text\" class=\"color\" name=\"assignment_info[$horiz_pos][$variable_index][value]\" value=\"$value\" size=\"$box_size\">";
    break;
  default:
    echoErrorMessages("Error: No Form Found for This Variable $variable- Check Syntax in User Configuration File. Only String, Integers, and
    Booleans are supported.");
    return false;

  }


}
开发者ID:nmeierpolys,项目名称:DoIt,代码行数:44,代码来源:phpcron_admin.php


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