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


PHP FORM::open方法代码示例

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


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

示例1: _e

        ?>
"><?php 
        echo _e('Go Featured!');
        ?>
</a>
						<?php 
    }
    ?>
					</div>
			<?php 
}
?>

			<div class="col-md-12">
			<?php 
echo FORM::open(Route::url('oc-panel', array('controller' => 'myads', 'action' => 'update', 'id' => $ad->id_ad)), array('class' => 'form-horizontal edit_ad_form', 'enctype' => 'multipart/form-data'));
?>
				<fieldset class="pad_10 ">
					
					<!-- START TITLE -->
					<div class="form-group">
						<div class="col-xs-12">
							<?php 
echo FORM::label('title', _e('Title'), array('class' => '', 'for' => 'title'));
?>
							<?php 
echo FORM::input('title', $ad->title, array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => 'title', 'required'));
?>
						</div>
					</div>
					<!-- END TITLE -->
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:edit_ad.php

示例2: defined

<?php

defined('SYSPATH') or die('No direct script access.');
?>
<div class="page-header">
	<h1><?php 
echo __('Publish new advertisement');
?>
</h1>
</div>
<div class="well">
	<?php 
echo FORM::open(Route::url('post_new', array('controller' => 'new', 'action' => 'index')), array('class' => 'form-horizontal post_new', 'id' => 'publish-new', 'enctype' => 'multipart/form-data'));
?>
		<fieldset>
			<div class="form-group">
				<div class="col-md-8">
					<?php 
echo FORM::label('title', __('Title'), array('for' => 'title'));
?>
					<?php 
echo FORM::input('title', Request::current()->post('title'), array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => 'title', 'required'));
?>
				</div>
			</div>
			
			<!-- category select -->
			<div class="form-group">
				<div class="col-md-12">
					<?php 
echo FORM::label('category', __('Category'), array('for' => 'category'));
开发者ID:akram,项目名称:openclassifieds2-jetski,代码行数:31,代码来源:new.php

示例3: defined

defined('SYSPATH') or die('No direct script access.');
?>

<div class="row">
    <div class="col-md-8">
        <div class="panel panel-default">
            <div class="panel-heading" id="page-edit-profile">
                <h3 class="panel-title"><?php 
echo __('Edit Profile');
?>
</h3>
            </div>
            <div class="panel-body">
                <?php 
echo FORM::open(Route::url('oc-panel', array('controller' => 'profile', 'action' => 'edit')), array('class' => 'form-horizontal', 'enctype' => 'multipart/form-data'));
?>
                    <div class="form-group">
                        <?php 
echo FORM::label('name', __('Name'), array('class' => 'col-md-4 control-label', 'for' => 'name'));
?>
                        <div class="col-md-8">
                            <?php 
echo FORM::input('name', $user->name, array('class' => 'form-control', 'id' => 'name', 'required', 'placeholder' => __('Name')));
?>
                        </div>
                    </div>
                    <div class="form-group">
                        <?php 
echo FORM::label('email', __('Email'), array('class' => 'col-md-4 control-label', 'for' => 'email'));
?>
开发者ID:Ryanker,项目名称:open-eshop,代码行数:30,代码来源:edit.php

示例4: defined

<?php

defined('SYSPATH') or die('No direct script access.');
echo View::factory('backend/navigation/user_edit')->set('current_url', Request::current()->url())->set('user_id', $user_id)->render();
echo FORM::open(Request::current()->uri() . Request::current()->query('edit'), array('autocomplete' => 'off', 'class' => 'form-horizontal'));
?>
<fieldset>
	<legend><?php 
echo $title;
?>
</legend>
	<div class="control-group">
		<label class="control-label">Имя пользователя</label>

		<div class="controls">
			<?php 
echo FORM::input('username', Arr::get($values, 'username'));
?>
			<p class="help-block" style="color: red;"><?php 
echo Arr::get($errors, 'username');
?>
</p>
		</div>

	</div>
	<div class="control-group">
		<label class="control-label">Email</label>

		<div class="controls">
			<?php 
echo FORM::input('email', Arr::get($values, 'email'));
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:info.php

示例5: defined

<?php

defined('SYSPATH') or die('No direct script access.');
echo FORM::open('search', array('method' => 'get', 'class' => 'search-form'));
?>

    <?php 
echo FORM::input('str', Arr::get($values, 'str'));
?>
    <?php 
echo FORM::hidden('search_type', Arr::get($values, 'search_type'));
?>
    <button name="submit" class="submit">Искать  <span class="search-preloader"><img src="/assets/img/search_button_preloader.gif" alt="Искать" /></span></button>

    <div class="tip">Запросы можно вводить через запятую, например Москва, Ауди, Тюнинг</div>
    <div class="form-errors">
        <?php 
foreach ($errors as $error) {
    echo '<div class="error">' . $error . '</div>';
}
?>
    </div>

    <div class="result">
        <?php 
echo $result;
?>
    </div>
<?php 
echo FORM::close();
开发者ID:Alexander711,项目名称:naav1,代码行数:30,代码来源:form.php

示例6: defined

defined('SYSPATH') or die('No direct script access.');
?>

<?if ($widget->text_title!=''):?>
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
echo $widget->text_title;
?>
</h3>
    </div>
<?endif?>

<div class="panel-body">
    <?php 
echo FORM::open(Route::url('search'), array('class' => 'form-horizontal', 'method' => 'GET', 'action' => '', 'enctype' => 'multipart/form-data'));
?>
        <!-- if categories on show selector of categories -->
        <div class="form-group">
            <div class="col-xs-12">  
                <?php 
echo FORM::label('advertisement', __('Advertisement Title'), array('class' => '', 'for' => 'title'));
?>
                <input type="text" id="title" name="title" class="form-control" value="" placeholder="<?php 
echo __('Search');
?>
">
            </div>
        </div>
        
        <?if($widget->advanced != FALSE):?>
开发者ID:nick-catanchin-ie,项目名称:openclassifieds2,代码行数:30,代码来源:widget_search.php

示例7: __

echo Theme::get('sidebar_position') == 'left' ? 'pull-right' : 'pull-left';
?>
">
				<div class="page-header">
					<h3><?php 
echo __('Contact Us');
?>
</h3>
				</div>
				
				<?php 
echo Form::errors();
?>

				<?php 
echo FORM::open(Route::url('contact'), array('class' => '', 'enctype' => 'multipart/form-data'));
?>
				<fieldset class="pad_10">
			
				<?php 
if (!Auth::instance()->logged_in()) {
    ?>
				<!-- NOT LOGGED IN SO GET NAME AND EMAIL -->
					<dl class="form-group">
						<dt><?php 
    echo FORM::label('name', __('Name'), array('class' => 'control-label', 'for' => 'name'));
    ?>
</dt>
						<dd><?php 
    echo FORM::input('name', Core::request('name'), array('placeholder' => __('Name'), 'class' => 'form-control', 'id' => 'name', 'required'));
    ?>
开发者ID:ThomWensink,项目名称:openclassifieds2,代码行数:31,代码来源:contact.php

示例8: defined

<?php

defined('SYSPATH') or die('No direct script access.');
echo Form::errors();
?>
<div class="well recomentadion clearfix">
    <h1><?php 
echo _e('Search');
?>
</h1>
    <?php 
echo FORM::open(Route::url('search'), array('class' => 'form-inline', 'method' => 'GET', 'action' => ''));
?>
        <fieldset>
         
                <div class="form-group">
                <?php 
echo FORM::label('advertisement', _e('Advertisement Title'), array('class' => '', 'for' => 'advertisement'));
?>
                <div class="control mr-30">
                    <input type="text" id="title" name="title" class="form-control" value="<?php 
echo core::get('title');
?>
" placeholder="<?php 
echo __('Title');
?>
">
                </div>
                </div>

                <?php 
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:advanced_search.php

示例9: curl_setopt

    if (isset($_POST['mobile_phone']) and strlen($_POST['mobile_phone']) > 0) {
        if ($curl = curl_init()) {
            curl_setopt($curl, CURLOPT_URL, 'http://w.qiwi.ru/setInetBill.do?from=9492&to=' . $mobile_phone . '&summ=' . $total_cost . '&com=' . $course_name . '&lifetime=96');
            curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
            $out = curl_exec($curl);
            //echo $out;
            echo $total_cost;
            curl_close($curl);
        }
    }
}
if (isset($fields['mobile_phone'])) {
    echo $fields['mobile_phone'];
}
defined('SYSPATH') or die('No direct script access.');
echo FORM::open();
function get_message_to_alert()
{
    $result['str'] = 'Привет Мир!';
    echo json_encode($result);
    return true;
}
?>

<?php 
if (isset($_POST['mobile_phone'])) {
    $mobile_phone = $_POST['mobile_phone'];
    $total_cost = 1000;
    echo 'Отправка тестового счета на номер: ' . $mobile_phone;
    if ($curl = curl_init()) {
        curl_setopt($curl, CURLOPT_URL, 'http://w.qiwi.ru/setInetBill.do?from=9492&to=' . $mobile_phone . '&summ=' . $total_cost . '&com=тестовый счет&lifetime=96');
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:test.php

示例10: defined

<?php

defined('SYSPATH') or die('No direct script access.');
?>
<h1 style="margin-bottom: 20px">Заполнение заявки на размещение рекламы</h1>
<?php 
echo FORM::open('cabinet/adv');
?>
<fieldset>
    <legend>Заголовок заявки</legend>
    <?php 
echo FORM::input('title', Arr::get($values, 'title'), array('class' => 's_inp', 'style' => 'width: 400px'));
?>
    <div class="form_error"><?php 
echo Message::show_once_error($errors, 'title');
?>
</div>
</fieldset>
<fieldset>
    <legend>Компания</legend>
    <?php 
echo FORM::select('service_id', $services, Arr::get($values, 'service_id'));
?>
    <div class="form_error"><?php 
echo Message::show_once_error($errors, 'service_id');
?>
</div>
</fieldset>
<div class="form_error"><?php 
echo Message::show_once_error($errors, 'text');
?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:create_blank.php

示例11: defined

<?php

defined('SYSPATH') or die('No direct script access.');
?>
    <?php 
echo $reg_steps;
echo FORM::open('registration');
?>
    <div class="st_form">
        <ul>
            <li>
                <label class="lab" for="username"><?php 
echo __('f_username');
?>
</label>
                <?php 
echo Form::input('username', Arr::get($values, 'username'), array('class' => 's_inp', 'id' => 'username'));
?>
                <div class="form_error"><?php 
echo Message::show_once_error($errors, 'username');
?>
</div>
            </li>
            <li>
                <label class="lab"><?php 
echo __('f_password');
?>
</label>
                <?php 
echo Form::password('password', NULL, array('class' => 's_inp', 'id' => 'form_password', 'data-typetoggle' => '#reg_pass_view'));
?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:first.php

示例12: array

<?php 
if ($widget->text_title != '') {
    ?>
    <div class="panel-heading">
        <h3 class="panel-title"><?php 
    echo $widget->text_title;
    ?>
</h3>
    </div>
<?php 
}
?>

<div class="panel-body">
    <?php 
echo FORM::open(Route::url('profiles'), array('class' => 'form-horizontal', 'method' => 'GET', 'action' => ''));
?>
        <!-- if categories on show selector of categories -->
        <div class="form-group">
            <div class="col-xs-12">  
                <?php 
echo FORM::label('search', __('Search'), array('class' => '', 'for' => 'search'));
?>
                <input type="text" id="search" name="search" class="form-control" value="" placeholder="<?php 
echo __('Search');
?>
">
            </div>
        </div>
        
        <?php 
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:31,代码来源:widget_usersearch.php

示例13: open

 public static function open($action = NULL, array $attributes = NULL, array $values = array(), array $errors = array())
 {
     self::$_values = $values;
     self::$_errors = $errors;
     return FORM::open($action, $attributes);
 }
开发者ID:Alexander711,项目名称:naav1,代码行数:6,代码来源:tbform.php

示例14: _e

</button>
						<?php 
}
?>
						<div id="contact-modal" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										 <a class="close" data-dismiss="modal" aria-hidden="true">&times;</a>
										<h3><?php 
echo _e('Contact');
?>
</h3>
									</div>
									<?php 
echo FORM::open(Route::url('default', array('controller' => 'contact', 'action' => 'userprofile_contact', 'id' => $user->id_user)), array('class' => 'clean_form', 'enctype' => 'multipart/form-data'));
?>
									<div class="modal-body">
										<?php 
echo Form::errors();
?>
											<fieldset>
												<?php 
if (!Auth::instance()->get_user()) {
    ?>
													<dl class="form-group">
														<dt><?php 
    echo FORM::label('name', _e('Name'), array('class' => 'control-label', 'for' => 'name'));
    ?>
</dt>
														<dd><?php 
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:profile.php

示例15: __

?>
: <a href="https://cdn.rawgit.com/open-classifieds/openclassifieds2/master/install/samples/import/categories.csv"><?php 
echo __('download example');
?>
.</a><br>
                    <?php 
echo __('Locations');
?>
: <a href="https://cdn.rawgit.com/open-classifieds/openclassifieds2/master/install/samples/import/locations.csv"><?php 
echo __('download example');
?>
.</a>
                </p>
                <hr>
                <?php 
echo FORM::open(Route::url('oc-panel', array('controller' => 'tools', 'action' => 'import_tool')), array('class' => '', 'enctype' => 'multipart/form-data'));
?>
                    <div class="form-group">
                        <label for=""> <?php 
echo __('import Categories');
?>
</label>
                        <input type="file" name="csv_file_categories" id="csv_file_categories" class="form-control"/>
                    </div>
                    <div class="form-group">
                        <label for=""><?php 
echo __('import Locations');
?>
</label>
                        <input type="file" name="csv_file_locations" id="csv_file_locations" class="form-control"/>
                    </div>
开发者ID:johnulist,项目名称:openclassifieds2,代码行数:31,代码来源:import_tool.php


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