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


PHP html::error_message方法代码示例

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


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

示例1:

 * @author	Indicia Team
 * @license	http://www.gnu.org/licenses/gpl.html GPL
 * @link 	http://code.google.com/p/indicia/
 */
echo $introduction;
?>

<form class="cmxform" name = "login" action="<?php 
echo url::site();
?>
login/login_by_email" method="post">
<fieldset>
<legend>Login details</legend>
<?php 
if (!empty($error_message)) {
    echo html::error_message($error_message);
}
?>
<ol>
<li>
  <label for="Email">Email</label>
  <input tabindex="1" type = "text" name = "Email" id = "Email" value="" class="narrow" />
</li>
<li>
  <label for="Password">Password</label>
  <input tabindex="2" type = "password" name = "Password" id = "Password" value="" class="narrow" />
</li>
<li>
  <label for="remember_me" >Remember me</label>
  <input tabindex="3" type="checkbox" id="remember_me" name="remember_me" class="default" />
</li>
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:login_by_email.php

示例2:

  <input tabindex="2" type = "text" name = "email_address" id = "email_address" value="<?php 
echo $person_model->email_address;
?>
" class="narrow" >
  <?php 
echo html::error_message($person_model->getError('email_address'));
?>
</li>
<li>
  <label for="password">Password</label>
  <input tabindex="3" type = "password" name = "password" id = "password" value="<?php 
echo $password;
?>
" class="narrow" >
  <?php 
echo html::error_message($user_model->getError('password'));
?>
</li>
<li>
  <label for="password2">Repeat Password</label>
  <input tabindex="4" type = "password" name = "password2" id = "password2" value="<?php 
echo $password2;
?>
" class="narrow" >
</li>
<?php 
if (is_numeric($user_model->core_role_id)) {
    ?>
<li>
  <label for="remember_me" >Remember me</label>
  <input tabindex="5" type="checkbox" id="remember_me" name="remember_me" class="default" />
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:new_password.php

示例3: isset

    class="narrow" id="valid_max_value" name="valid_max_value"
    value="<?php 
echo html::specialchars($model->valid_max_value);
?>
"
    <?php 
echo $enabled;
?>
 /> <?php 
echo html::error_message($model->getError('valid_max'));
?>
  </li>
  <li id="li_valid_date_in_past">
    <label class="narrow" for="valid_date_in_past">Date is in past</label><?php 
echo form::checkbox('valid_date_in_past', TRUE, isset($model->valid_date_in_past) and $model->valid_date_in_past == 't', 'class="vnarrow" ' . $enabled);
echo html::error_message($model->getError('valid_date_in_past'));
?>
  </li>
  <li id="li_valid_time"><label class="narrow" for="valid_integer">Time</label><?php 
echo form::checkbox('valid_time', TRUE, isset($model->valid_time) and $model->valid_time == 't', 'class="vnarrow" ' . $enabled);
?>
</li>
</ol>
</fieldset>
<?php 
// Output the view that lets this custom attribute associate with websites, surveys, checklists
// or whatever is appropriate for the attribute type.
$this->associationsView->other_data = $other_data;
$this->associationsView->model = $model;
echo $this->associationsView;
echo $metadata;
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:custom_attribute_edit.php

示例4: foreach

if ($parent_id != null && array_key_exists('parent_website_id', $values) && $values['parent_website_id'] !== null) {
    $website_id = $values['parent_website_id'];
} else {
    $website_id = html::initial_value($values, 'taxon_list:website_id');
    if ($this->auth->logged_in('CoreAdmin') || !$website_id && $id !== null) {
        // Core admin can select Warehouse as owner. Other users can only have this option in the list if the
        // list is already assigned to the warehouse in which case the list is read only.
        echo '<option value="">&lt;Warehouse&gt;</option>';
    }
    foreach ($other_data['websites'] as $website) {
        echo '  <option value="' . $website->id . '" ';
        if ($website->id == $website_id) {
            echo 'selected="selected" ';
        }
        echo '>' . $website->title . '</option>';
    }
}
?>
</select>
<?php 
echo html::error_message($model->getError('taxon_list:website_id'));
?>
</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'taxon_list:id') != null, $this->get_read_only($values));
?>
</form>
</div>
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:30,代码来源:taxon_list_edit.php

示例5: switch

        $name .= ':' . $attr['id'];
    }
    echo '<li><label for="">' . $attr['caption'] . "</label>\n";
    switch ($attr['data_type']) {
        case 'D':
            echo form::input($name, $attr['value'], 'class="date-picker"');
            break;
        case 'V':
            echo form::input($name, $attr['value'], 'class="vague-date-picker"');
            break;
        case 'L':
            echo form::dropdown($name, $values['terms_' . $attr['termlist_id']], $attr['raw_value']);
            break;
        case 'B':
            echo form::dropdown($name, array('' => '', '0' => 'false', '1' => 'true'), $attr['value']);
            break;
        default:
            echo form::input($name, $attr['value']);
    }
    echo '<br/>' . html::error_message($model->getError($name)) . '</li>';
}
?>
 </ol>
 </fieldset>
 
<?php 
echo html::form_buttons(html::initial_value($values, 'occurrence:id') != null, false, false);
?>
</form>

开发者ID:BirenRathod,项目名称:indicia-code,代码行数:29,代码来源:occurrence_edit.php

示例6: foreach

<input id="website_url" name="person:website_url" value="<?php 
echo html::initial_value($values, 'person:website_url');
?>
" />
<?php 
echo html::error_message($model->getError('person:website_url'));
?>
</li>
<li>
<label for="external_key">External key</label>
<input id="external_key" name="person:external_key" value="<?php 
echo html::initial_value($values, 'person:external_key');
?>
" />
<?php 
echo html::error_message($model->getError('person:external_key'));
?>
</li>
</ol>
</fieldset>
<?php 
if (array_key_exists('attributes', $values) && count($values['attributes']) > 0) {
    ?>
 <fieldset>
 <legend>Custom Attributes</legend>
 <ol>
 <?php 
    foreach ($values['attributes'] as $attr) {
        $name = 'psnAttr:' . $attr['person_attribute_id'];
        // if this is an existing attribute, tag it with the attribute value record id so we can re-save it
        if ($attr['id']) {
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:person_edit.php

示例7:

?>
" />
<legend>Taxon Group details</legend>
<ol>
<li>
<label for="title">Title</label>
<input id="title" name="taxon_group:title" value="<?php 
echo html::initial_value($values, 'taxon_group:title');
?>
" />
<?php 
echo html::error_message($model->getError('taxon_group:title'));
?>
</li>
<li>
<label for="title">External key</label>
<input id="title" name="taxon_group:external_key" value="<?php 
echo html::initial_value($values, 'taxon_group:external_key');
?>
" />
<?php 
echo html::error_message($model->getError('taxon_group:external_key'));
?>
</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'taxon_group:id') != null);
?>
</form>
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:30,代码来源:taxon_group_edit.php

示例8: foreach

}
?>
 >
  <option value=''>&lt;Warehouse&gt;</option>
<?php 
if (!is_null($this->auth_filter)) {
    $websites = ORM::factory('website')->in('id', $this->auth_filter['values'])->orderby('title', 'asc')->find_all();
} else {
    $websites = ORM::factory('website')->orderby('title', 'asc')->find_all();
}
foreach ($websites as $website) {
    echo '	<option value="' . $website->id . '" ';
    if ($website->id == $website_id) {
        echo 'selected="selected" ';
    }
    echo '>' . $website->title . '</option>';
}
?>
</select>
<?php 
echo html::error_message($model->getError('termlist:website_id'));
?>
</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'termlist:id') != null && html::initial_value($values, 'termlist:id') != '', false, false);
echo html::error_message($model->getError('deleted'));
?>
</form>
</div>
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:termlist_edit.php

示例9:

<input id="taxonomic_sort_order" name="taxa_taxon_list:taxonomic_sort_order" class="narrow" value="<?php 
echo html::initial_value($values, 'taxa_taxon_list:taxonomic_sort_order');
?>
" />
<?php 
echo html::error_message($model->getError('taxa_taxon_list:taxonomic_sort_order'));
?>
</li>
<li>
<label for="search_code">Search Code:</label>
<input id="search_code" name="taxon:search_code" class="narrow" value="<?php 
echo html::initial_value($values, 'taxon:search_code');
?>
"/>
<?php 
echo html::error_message($model->getError('taxon:search_code'));
?>
</li>
<li>
<label for="allow_data_entry">Allow Data Entry:</label>
<?php 
echo form::checkbox(array('id' => 'allow_data_entry', 'name' => 'taxa_taxon_list:allow_data_entry'), TRUE, array_key_exists('taxa_taxon_list:allow_data_entry', $values) and $values['taxa_taxon_list:allow_data_entry'] == 't');
?>
</li>
</ol>
</fieldset>
<fieldset>
 <legend>Taxon Attributes</legend>
 <ol>
 <?php 
foreach ($values['attributes'] as $attr) {
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:taxa_taxon_list_edit.php

示例10: array

" />
<?php 
echo html::error_message($model->getError('taxon_relation_type:reverse_term'));
?>
</li>
<li>
<label for="relation_code">Relation Code</label>
<select id="data_type" name="taxon_relation_type:relation_code">
		<option value=''>&lt;Please Select&gt;</option>
		<?php 
$optionlist = array('0' => 'Mutually Exclusive', '1' => 'At Least Partial Overlap', '3' => 'Same or part of', '7' => 'The same as');
foreach ($optionlist as $key => $option) {
    echo '	<option value="' . $key . '" ';
    if ($key == html::initial_value($values, 'taxon_relation_type:relation_code')) {
        echo 'selected="selected" ';
    }
    echo '>' . $option . '</option>';
}
?>
	</select> <?php 
echo html::error_message($model->getError('taxon_relation_type:relation_code'));
?>
	</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'taxon_relation_type:id') != null);
?>
</form>

开发者ID:BirenRathod,项目名称:indicia-code,代码行数:29,代码来源:taxon_relation_type_edit.php

示例11: foreach

        if ($core_role->id == $model->core_role_id) {
            echo 'selected="selected" ';
        }
        echo '>' . $core_role->title . '</option>';
    }
    ?>
</select>
<?php 
    echo html::error_message($model->getError('core_role_id'));
    ?>
</li>
<?php 
}
if (isset($password_field) and $password_field != '') {
    echo $password_field;
    echo html::error_message($model->getError('user:password'));
}
?>
</ol>
</fieldset>
<fieldset>
<legend>Website Roles</legend>
<ol>
<?php 
foreach ($model->users_websites as $website) {
    echo '<li><label class="wide" for="' . $website['name'] . '">' . $website['title'] . '</label>';
    echo '  <select class="narrow" id="' . $website['name'] . '" name="' . $website['name'] . '">';
    echo '	<option>None</option>';
    $site_roles = ORM::factory('site_role')->orderby('title', 'asc')->find_all();
    foreach ($site_roles as $site_role) {
        echo '	<option value="' . $site_role->id . '" ';
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:31,代码来源:user_edit.php

示例12:

<form class="cmxform" action="<?php 
echo url::site() . 'title/save';
?>
" method="post">
<?php 
echo $metadata;
?>
<fieldset>
<legend>Title details</legend>
<input type="hidden" name="title:id" value="<?php 
echo html::initial_value($values, 'title:id');
?>
" />
<ol>
<li>
<label for="title">Title</label>
<input class="narrow" id="title" name="title:title" value="<?php 
echo html::initial_value($values, 'title:title');
?>
" />
<?php 
echo html::error_message($model->getError('title:title'));
?>
</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'title:id') != null);
?>
</form>
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:30,代码来源:title_edit.php

示例13:

<li>
<label for="password2">Retype Password</label>
<input type="password" id="password2" name="password2" value="<?php 
echo html::initial_value($values, 'password2');
?>
" />
<?php 
echo html::error_message($model->getError('website:password2'));
?>
</li>
<li>
<input type="hidden" name="website:verification_checks_enabled" value="f" />
<label for="verification_checks_enabled">Enable auto-verification checks:</label>
<?php 
$checked = html::initial_value($values, 'website:verification_checks_enabled') === 't' ? 'checked="checked"' : '';
?>
<input type="checkbox" id="verification_checks_enabled" name="website:verification_checks_enabled" <?php 
echo $checked;
?>
/>
<?php 
echo html::error_message($model->getError('website:verification_checks_enabled'));
?>
</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'website:id') != null);
?>
</form>
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:30,代码来源:website_edit.php

示例14: password_fields

 protected function password_fields($password = '', $password2 = '')
 {
     return '<li><label for="password">Password</label><input id="password" name="password" value="' . html::specialchars($password) . '" />' . html::error_message($this->model->getError('password')) . '</li><li><label for="password">Repeat Password</label><input id="password2" name="password2" value="' . html::specialchars($password2) . '" /></li>';
 }
开发者ID:BirenRathod,项目名称:indicia-code,代码行数:4,代码来源:user.php

示例15:

<input type="hidden" name="language:id" value="<?php 
echo html::initial_value($values, 'language:id');
?>
" />
<label for="iso">ISO language code</label>
<input id="iso" name="language:iso" class="narrow" value="<?php 
echo html::initial_value($values, 'language:iso');
?>
"/>
<?php 
echo html::error_message($model->getError('language:iso'));
?>
</li>
<li>
<label for="language">Language</label>
<input id="language" name="language:language" value="<?php 
echo html::initial_value($values, 'language:language');
?>
" />
<?php 
echo html::error_message($model->getError('language:language'));
?>
</li>
</ol>
</fieldset>
<?php 
echo html::form_buttons(html::initial_value($values, 'language:id') != null);
?>
</form>

开发者ID:BirenRathod,项目名称:indicia-code,代码行数:29,代码来源:language_edit.php


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