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


PHP Message::show_once_error方法代码示例

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


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

示例1: array

$search_options = array('all' => __('f_option_all'), 'services' => __('f_option_services'), 'news' => __('f_option_news'), 'stotks' => __('f_option_stocks'), 'vacancies' => __('f_option_vacancies'));
echo FORM::open('search');
?>
<div class="search_form">
    <?php 
echo FORM::input('str', Arr::get($values, 'str'));
?>
    <?php 
echo FORM::select('search_type', $search_options, Arr::get($values, 'search_type'));
?>
    <?php 
echo FORM::submit(NULL, 'Искать', array('class' => 'submit'));
?>
    <div class="tip">Запросы можно вводить через запятую, например Москва, Ауди, Тюнинг</div>
    <div><?php 
echo Message::show_once_error($errors, 'str');
?>
</div>
</div>
<?php 
echo FORM::close();
if ($view_results) {
    ?>
<p style="font-size: 20px; color: #8d8d8d; margin: 10px 10px 0;">Найдено автосервисов <?php 
    echo count($service->find_all());
    ?>
</p>
<div class="search_services_all">
    <ul>
    <?php 
    foreach ($service->find_all() as $s) {
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:search.php

示例2: __

                <?php 
}
?>
            </select>
            <div id="selected_works"></div>
        </li>
        <li>
            <label for="about" class="lab"><?php 
echo __('f_about_service');
?>
</label>
            <?php 
echo FORM::textarea('about', Arr::get($values, 'about'), array('class' => 's_tarea', 'id' => 'about', 'style' => 'width: 400px;'));
?>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'about');
?>
</div>
        </li>
        <li>
            <label for="work_times" class="lab"><?php 
echo __('f_work_time');
?>
</label>
            <?php 
echo FORM::input('work_times', Arr::get($values, 'work_times'), array('class' => 's_inp', 'id' => 'work_times'));
?>
        </li>
        <li>
            <label class="lab"><?php 
echo __('f_discount');
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:third.php

示例3: strip_tags

            </li>
            <li>
                <label class="lab">&nbsp;</label>
                <textarea rows="7" cols="75" readonly="readonly">
                    <?php 
echo strip_tags(DB::select('text')->from('content_site')->where('url', '=', 'ustav')->execute()->get('text'));
?>
                </textarea>
                <br />
                <div style="margin-left: 170px">
                    <?php 
echo FORM::checkbox('accept_rule', 1, FALSE) . __('f_accept_rule');
?>
                </div>
                <div class="form_error"><?php 
echo Message::show_once_error(Arr::get($errors, '_external', array()), 'accept_rule');
?>
</div>
            </li>
            <li>
                <label class="lab">&nbsp;</label>
                <?php 
echo FORM::submit('submit', __('f_continue'), array('class' => 's_button'));
?>
            </li>
        </ul>
    </div>
<?php 
echo FORM::close();
?>
开发者ID:Alexander711,项目名称:naav1,代码行数:30,代码来源:first.php

示例4: array

?>
                <br />
                <?php 
echo Form::checkbox(NULL, NULL, FALSE, array('id' => 'reg_pass_view'));
?>
Показать пароль
            </td>
            <td><?php 
echo Message::show_once_error($errors, 'password') . Message::show_once_error(Arr::get($errors, '_external', array()), 'password');
?>
</td>
        </tr>
        <tr>
            <td><?php 
echo __('f_email');
?>
</td>
            <td><?php 
echo FORM::input('email', Arr::get($values, 'email'));
?>
</td>
            <td><?php 
echo Message::show_once_error($errors, 'email');
?>
</td>
        </tr>
    </table>
</fieldset>
<?php 
echo FORM::submit(NULL, 'Сохранить');
echo FORM::close();
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:form.php

示例5: __

?>
</legend>
    <p><?php 
echo __('s_firm');
?>
</p>
    <?php 
echo FORM::select('service_id', $services, Arr::get($values, 'service_id'));
?>
</fieldset>
    <p>Заголовок</p>
    <?php 
echo FORM::input('title', Arr::get($values, 'title'), array('class' => 's_inp', 'style' => 'width: 350px;'));
?>
<div class="form_error"><?php 
echo Message::show_once_error($errors, 'text');
?>
</div>
<fieldset>
    <legend>Текст</legend>
    <?php 
echo FORM::textarea('text', Arr::get($values, 'text'));
?>
</fieldset>
<?php 
echo FORM::submit(NULL, 'Опубликовать', array('class' => 's_button'));
echo FORM::close();
?>
<script type="text/javascript">
CKEDITOR.replace('text',
{
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:form.php

示例6: defined

<?php

defined('SYSPATH') or die('No direct script access.');
echo FORM::open('activate_password?key=' . $key);
?>
<div class="st_form">
    <ul>
        <li>
            <label class="lab">Введите новый пароль</label>
            <?php 
echo Form::password('password', NULL, array('class' => 's_inp', 'id' => 'form_password', 'data-typetoggle' => '#reg_pass_view'));
?>
            <?php 
echo Form::checkbox(NULL, NULL, FALSE, array('id' => 'reg_pass_view'));
?>
<label for="reg_pass_view">Показать пароль</label>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'password');
?>
</div>
        </li>
        <li>
            <label class="lab">&nbsp;</label>
            <?php 
echo FORM::submit('submit', __('f_save'), array('class' => 's_button'));
?>
        </li>
    </ul>
</div>
<?php 
echo FORM::close();
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:activate_new_password.php

示例7: defined

<?php

defined('SYSPATH') or die('No direct script access.');
echo FORM::open('forgot_password');
?>
<div class="st_form">
    <ul>
        <li>
            <label class="lab" for="username_email" style="width: 195px;">Имя пользователя или пароль</label>
            <?php 
echo FORM::input('username_email', Arr::get($values, 'username_email'));
?>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'username_email');
?>
</div>
        </li>
        <li>
            <label class="lab" style="width: 195px;">&nbsp;</label>
            <?php 
echo FORM::submit('submit', 'Восстановить', array('class' => 's_button'));
?>
        </li>
    </ul>
</div>
<?php 
echo FORM::close();
开发者ID:Alexander711,项目名称:naav1,代码行数:27,代码来源:forgot.php

示例8: array

    </ul>
</div>
<?php 
echo FORM::open('cabinet/profile/edit_password');
?>
<div class="st_form">
    <ul>
        <li>
            <label class="lab">Новый пароль</label>
            <?php 
echo Form::password('password', NULL, array('class' => 's_inp', 'id' => 'form_password', 'data-typetoggle' => '#reg_pass_view'));
?>
            <?php 
echo Form::checkbox(NULL, NULL, FALSE, array('id' => 'reg_pass_view'));
?>
<label for="reg_pass_view">Показать пароль</label>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'password') . Message::show_once_error(Arr::get($errors, '_external', array()), 'password');
?>
</div>
        </li>
        <li>
            <label class="lab">&nbsp;</label>
            <?php 
echo FORM::submit('submit', __('f_save'), array('class' => 's_button'));
?>
        </li>
    </ul>
</div>
<?php 
echo FORM::close();
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:edit_password.php

示例9: __

</div>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'phone');
?>
</div>
        </li>
        <li>
            <label for="fax" class="lab"><?php 
echo __('f_fax');
?>
</label>
            <?php 
echo FORM::input('fax', Arr::get($values, 'fax'), array('class' => 's_inp', 'id' => 'fax'));
?>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'fax');
?>
</div>
        </li>
        <li>
            <label for="site" class="lab"><?php 
echo __('f_site');
?>
</label>
            <?php 
echo FORM::input('site', Arr::get($values, 'site'), array('class' => 's_inp', 'id' => 'site'));
?>
        </li>
        <li>
            <label class="lab">&nbsp;</label>
            <?php 
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:second.php


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