本文整理匯總了PHP中FORM::submit方法的典型用法代碼示例。如果您正苦於以下問題:PHP FORM::submit方法的具體用法?PHP FORM::submit怎麽用?PHP FORM::submit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FORM
的用法示例。
在下文中一共展示了FORM::submit方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: 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;"> </label>
<?php
echo FORM::submit('submit', 'Восстановить', array('class' => 's_button'));
?>
</li>
</ul>
</div>
<?php
echo FORM::close();
示例2: array
?>
<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');
?>
</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',
{
filebrowserImageUploadUrl : '<?php
echo URL::base() . 'ajax/upload_image';
?>
',
removePlugins : 'maximize,resize',
toolbar : 'add_comment_toolbar'
});
</script>
示例3: __
}
?>
<li class="coupon_text" style="<?php
echo $coupon_form_style;
?>
">
<label class="lab"><?php
echo __('f_coupon_text');
?>
</label>
<?php
echo FORM::textarea('coupon_text', Arr::get($values, 'coupon_text'), array('class' => 's_tarea', 'style' => 'width: 400px; height: 100px;'));
?>
</li>
<li>
<label class="lab"> </label>
<?php
echo FORM::submit('submit', __('f_complete'), array('class' => 's_button'));
?>
<?php
echo FORM::submit('skip', __('f_skip'), array('class' => 's_skip'));
?>
</li>
</ul>
</div>
<?php
echo FORM::close();
?>
示例4: array
</div>
</div>
<div class="control-group">
<label class="control-label">Тип пользователя</label>
<div class="controls">
<?php
echo Form::select("user_type", array("disabled" => "Отключен", "user" => "Пользователь", "service" => "Автосервис"), Arr::get($values, 'user_type', "disabled"));
?>
<p class="help-block" style="color: red;"><?php
echo Arr::path($errors, 'user_type');
?>
</p>
</div>
</div>
<div class="form-actions">
<?php
echo FORM::submit(null, 'Сохранить', array('class' => 'btn btn-success btn-large'));
?>
</div>
</fieldset>
<?php
echo FORM::close();
?>
<script>
$('.datepicker').datepicker({format:'dd.mm.yyyy'});
</script>
示例5: DISTINCT
}
// Suche itself
$sql = "SELECT DISTINCT(e.id), title, filename, date, link FROM press_entries AS e " . $join . " " . $where;
$res = $SQL->select($sql);
}
// head
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n" . "<html>" . "\t<head>" . "\t\t<title>Suche Pressesystem</title>\n" . "\t\t<meta name=\"author\" content=\"Christoph Becker\" >" . "\t\t<meta name=\"keywords\" content=\"Pressesystem Suche Uni Rostock Fakultät für Informatik und Elektrotechnik\" >" . "\t\t<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\" >" . "\t\t<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" >" . "\t\t<style>" . "\t\t\t.presstitle{ font-family:Verdana,Geneva,sans;" . "\t\t\t\t\t\t font-size:14pt;" . "\t\t\t\t\t\t color:black; " . "\t\t\t}" . "\t\t\ttd {font-family:Verdana,Geneva,sans;" . "\t\t\t\t\t\tfont-size:10pt;" . "\t\t\t\t\t\tcolor:black;" . "\t\t\t\t\t\tmargin-top:10pt;" . "\t\t\t\t\t\t" . "\t\t\t}" . "\t\t\ttd.presssearchtitle {" . "\t\t\t\t\tfont-weight: bold;" . "\t\t\t}" . "\t\t\ta.presslink:hover {" . "\t\t\t\t\tcolor:red;\t" . "\t\t\t}" . "\t\t</style>" . "\t\t" . "\t</head>" . "\t<body link=\"#090851\" text=\"#000000\" bgcolor=\"#ffffff\">";
// content
if ($search_debug == true) {
echo "<pre>Sites_selected: ";
var_export($sites);
echo "\nSQL: {$sql} \n Results:\n";
var_export($res);
echo "\n<hr noshade=noshade />";
}
echo "<div class='presstitle'>Suche</div>" . "<form name=\"sform\" method=\"POST\" action =\"" . $abs_path . "\">" . "<table>" . "<tr><td colspan='2' class='presssearchtitle'>Volltextsuche</td><td> </td></tr>" . "<tr><td> </td><td colspan='2'>" . FORM::text("fulltext", $fulltext, "", 70) . "</td></tr>" . "<tr><td colspan='2' class='presssearchtitle'>Zeige alle Einträge</td><td> </td></tr>" . "<tr><td align='right'><table><tr><td>" . FORM::radio("range", "before", "", $range) . "vor</td>" . "<td rowspan='2'>" . FORM::text("date", $date, "", 10) . "</td></tr>" . "<tr><td>" . FORM::radio("range", "after", "", $range) . "nach </td></tr>" . "</table></td>" . "<td colspan='2'>" . "<b>oder</b> " . FORM::radio("range", "all", "", $range) . "egal, wann sie erstellt wurden</td>" . "<tr><td valign='top' class='presssearchtitle' colspan='2'>Suche auf bestimmte Institute beschränken</td><td> </td></tr>" . "\t<td> </td><td>" . FORM::select("sites[]", $PS->get_all(1), $sites, 6) . "</td></tr>" . "<tr><td> </td><td colspan='2'>" . FORM::submit("send", "suche!") . "</td></tr> " . "</table>" . "</form>" . "\t\t</div>";
// footer
echo "\t</body>" . "</html>";
// close debug
require "init.php";
//----
function set_date($d, $dateform = "german")
{
//$ret = $d;
//$dateform = "german"; // what do i suppose, which form i got
$buffer = $d;
// save for error_msg
$preset_year = strftime("%Y");
// with current year
$d = trim($d);
if (strlen($d) < 3) {
示例6: 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();
示例7: defined
<?php
defined('SYSPATH') or die('No direct script access.');
?>
<div class="clearfix">
<?php
echo FORM::open($url, array('class' => 'well form-search'));
?>
<?php
echo FORM::input('str', Arr::get($values, 'str'), array('class' => 'input-medium search-query', 'style' => 'width: 400px;')) . FORM::submit(NULL, 'Искать', array('class' => 'btn'));
?>
<?php
echo FORM::close();
?>
</div>
示例8: defined
<?php
defined('SYSPATH') or die('No direct script access.');
echo FORM::open(Request::current()->uri(), array('class' => 'form-horizontal'));
?>
<fieldset>
<legend><?php
echo $title;
?>
</legend>
<div class="control-group">
<label class="control-label">Текст</label>
<div class="controls">
<?php
echo FORM::textarea('text', $values['text'], array('id' => 'text'));
?>
</div>
</div>
<div class="form-actions">
<p class="help-block"><?php
echo Arr::get($errors, 'text');
?>
</p>
<?php
echo FORM::submit(NULL, 'Отправить', array('class' => 'btn btn-large btn-success'));
?>
</div>
</fieldset>
<?php
echo FORM::close();
示例9: array
echo FORM::textarea('about', Arr::get($values, 'about'), array('class' => 's_tarea', 'id' => 'about'));
?>
</td>
</tr>
<!-- work time -->
<tr>
<td>
<label class="label" for="hour_start"><?php
echo __('f_work_time');
?>
</label>
</td>
<td>
с <?php
echo FORM::input('hour_start', Arr::get($values, 'hour_start'), array('class' => 's_inp', 'style' => 'width: 20px;'));
?>
по <?php
echo FORM::input('hour_finish', Arr::get($values, 'hour_finish'), array('class' => 's_inp', 'style' => 'width: 20px;'));
?>
ч.
</td>
<td>
<?php
echo NError::show_error('hour_start', $errors) . NError::show_error('hour_finish', $errors);
?>
</td>
</tr>
</table>
<?php
echo FORM::submit('continue', __('f_continue'));
echo FORM::close();
示例10: __
?>
</td>
<td><?php
echo FORM::input('username');
?>
</td>
</tr>
<tr>
<td><?php
echo __('f_password');
?>
</td>
<td><?php
echo FORM::password('password');
?>
</td>
</tr>
<tr>
<td> </td>
<td><?php
echo FORM::submit(NULL, 'Войти');
?>
</td>
</tr>
</table>
<?php
echo FORM::close();
?>
</div>
</body>
</html>
示例11: __
<tr>
<td><?php
echo __('f_password');
?>
</td>
<td><?php
echo FORM::password('password', NULL, array('class' => 's_inp', 'id' => 'form_password', 'data-typetoggle' => '#reg_pass_view'));
echo Form::checkbox(NULL, NULL, FALSE, array('id' => 'reg_pass_view'));
?>
Показать пароль</td>
</tr>
<tr>
<td> </td>
<td><?php
echo HTML::anchor('forgot_password', 'Забыл пароль');
?>
</td>
</tr>
<tr>
<td> </td>
<td><?php
echo FORM::submit(NULL, __('butt_login'));
?>
</td>
</tr>
</table>
<?php
echo FORM::close();
?>
</div>
示例12: array
?>
</div>
</li>
<li>
<label class="lab">Текст отзыва</label>
<?php
echo FORM::textarea('text', Arr::get($values, 'text'), array('class' => 's_tarea'));
?>
<div class="form_error"><?php
echo Message::show_once_error($errors, 'text');
?>
</div>
</li>
<li>
<label class="lab"> </label>
<div style="margin-left: 170px;">
<?php
echo __('add_review_rule');
?>
</div>
</li>
<li>
<label class="lab"> </label>
<?php
echo FORM::submit(NULL, __('f_send'), array('class' => 's_button'));
?>
</li>
</ul>
</div>
<?php
echo FORM::close();
示例13: array
?>
</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',
{
filebrowserImageUploadUrl : '<?php
echo URL::base() . 'ajax/upload_image';
?>
',
removePlugins : 'maximize,resize',
toolbar : 'add_comment_toolbar'
});
</script>
示例14: defined
defined('SYSPATH') or die('No direct script access.');
echo FORM::open(Request::current()->url(), array('class' => 'form-horizontal'));
?>
<fieldset>
<legend><?php
echo $title;
?>
</legend>
<div class="control-group">
<label for="name" class="control-label">Название категории</label>
<div class="controls">
<?php
echo FORM::input('name', Arr::get($values, 'name'), array('class' => 'span5'));
?>
<span class="help-inline"><?php
echo Arr::get($errors, 'name');
?>
</span>
</div>
</div>
<div class="form-actions">
<?php
echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn btn-large btn-success'));
?>
<?php
echo FORM::submit('add_work', 'Сохранить и добавить услугу в категорию', array('class' => 'btn btn-large btn-primary'));
?>
</div>
</fieldset>
<?php
echo FORM::close();
示例15: strip_tags
<li>
<label class="lab"> </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"> </label>
<?php
echo FORM::submit('submit', __('f_continue'), array('class' => 's_button'));
?>
</li>
</ul>
</div>
<?php
echo FORM::close();
?>