示例#1
0
<?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();
示例#2
0
?>
    <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
0
}
?>
        <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">&nbsp;</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
0
		</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
0
    }
    // 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>&nbsp;</td></tr>" . "<tr><td>&nbsp;</td><td colspan='2'>" . FORM::text("fulltext", $fulltext, "", 70) . "</td></tr>" . "<tr><td colspan='2' class='presssearchtitle'>Zeige alle Einträge</td><td>&nbsp;</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>&nbsp;</td></tr>" . "\t<td>&nbsp;</td><td>" . FORM::select("sites[]", $PS->get_all(1), $sites, 6) . "</td></tr>" . "<tr><td>&nbsp;</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
0
?>
                <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
0
<?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
0
<?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
0
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
0
?>
</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>&nbsp;</td>
            <td><?php 
echo FORM::submit(NULL, 'Войти');
?>
</td>
        </tr>
    </table>
    <?php 
echo FORM::close();
?>
    </div>
</body>
</html>
示例#11
0
echo FORM::input('title', Arr::get($values, 'title'), array('class' => 'span6'));
?>
            <p class="help-block"><?php 
echo Arr::get($errors, 'title');
?>
</p>
        </div>
    </div>
    <div <?php 
echo HTML::attributes($attr['text']);
?>
>
        <label class="control-label">Текст</label>
        <div class="controls">
            <p class="help-block"><?php 
echo Arr::get($errors, 'text');
?>
</p>
            <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text'));
?>
        </div>
    </div>
    <div class="form-actions">
        <?php 
echo FORM::submit(NULL, 'Отправить', array('class' => 'btn btn-large btn-primary'));
?>
    </div>
</fieldset>
<?php 
echo FORM::close();
示例#12
0
        <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>&nbsp;</td>
            <td><?php 
echo HTML::anchor('forgot_password', 'Забыл пароль');
?>
</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><?php 
echo FORM::submit(NULL, __('butt_login'));
?>
</td>
        </tr>
    </table>
<?php 
echo FORM::close();
?>
</div>
示例#13
0
?>
</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">&nbsp;</label>
            <div style="margin-left: 170px;">
                <?php 
echo __('add_review_rule');
?>
            </div>
        </li>
        <li>
            <label class="lab">&nbsp;</label>
            <?php 
echo FORM::submit(NULL, __('f_send'), array('class' => 's_button'));
?>
        </li>
    </ul>
</div>
<?php 
echo FORM::close();
示例#14
0
?>
</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>
示例#15
0
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();
示例#16
0
            <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();
?>

示例#17
0
echo FORM::open();
?>
<h1>Активация аккаунта</h1>

<strong>На ваш емейл были отправлены инструкции по активации аккаунта. Пожалуйста, следуйсте им.</strong>
<br>
<br>

<h4>Повторно выслать инструкции по активации аккаунта</h4>
<div class="st_form">
    <ul>
        <li>
            <label class="lab">Введите ваш емейл</label>
            <?php 
echo Form::input('email', Arr::get($values, 'email', ""), array('class' => 's_inp', 'id' => 'email'));
?>
            <div class="form_error"><?php 
echo Message::show_once_error($errors, 'email');
?>
</div>
        </li>
        <li>
            <label class="lab">&nbsp;</label>
            <?php 
echo FORM::submit('submit', "Отправить", array('class' => 's_button'));
?>
        </li>
    </ul>
</div>
<?php 
echo FORM::close();
示例#18
0
<?php

defined('SYSPATH') or die('No direct script access.');
echo FORM::open($url);
?>
<p style="margin: 10px 0;"><?php 
echo $text;
?>
"?</p>
<?php 
echo FORM::submit('submit', 'Удалить', array('class' => 'btn danger')) . ' ' . FORM::submit('cancel', 'Отмена', array('class' => 'btn'));
echo FORM::close();
?>

示例#19
0
                <?php 
echo HTML::anchor('/', HTML::image('assets/img/logo.png', array('alt' => 'На главную', 'title' => 'На главную', 'class' => 'logo_img')));
?>
            </div>
            <div class="sub_menu">
                <div class="sub-menu-form">
                    <ul>
                        <li>
                            <?php 
echo FORM::open('search', array('method' => 'get'));
?>
                            <?php 
echo FORM::input('str', NULL, array('placeholder' => 'поисковый запрос', 'class' => 'search_input')) . FORM::hidden('search_type', 'all');
?>
                            <?php 
echo FORM::submit(NULL, 'Найти', array('class' => 'search_submit'));
?>
                            <?php 
echo FORM::close();
?>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="menu">
                <ul>
                    <li><?php 
echo HTML::anchor('participants', 'УЧАСТНИКИ', array('class' => 'menu-auto-filter'));
?>
</li>
                    <li><?php 
示例#20
0
    <div class="clearfix">
        <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text'));
?>
        <?php 
if (Arr::get($errors, 'text', NULL)) {
    ?>
            <p class="help-block"><?php 
    echo $errors['text'];
    ?>
</p>
        <?php 
}
?>
    </div>

</fieldset>
<?php 
echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn btn-large btn-success'));
echo FORM::close();
?>

<script>
	function checkByValue(value){
		$("#services").multiselect("widget").find(":checkbox[value='"+value+"']").each(function(){
		    this.click();
		});
	}


</script>
示例#21
0
    echo FORM::radio('payment_system', $id, $checked);
    ?>
</td>
				<td>
					<?php 
    echo $p['payment_name'];
    ?>
					<br>
					<small class="muted"><?php 
    echo $p['tips'];
    ?>
</small>
				</td>
				<td><?php 
    echo $p['description'];
    ?>
</td>
			</tr>
			<?php 
}
?>

</table>


<?php 
echo FORM::submit(null, 'Создать платеж', array('class' => 's_button'));
echo FORM::close();
?>

示例#22
0
$review->reset(FALSE);
$stock->reset(FALSE);
$vacancy->reset(FALSE);
*/
$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>
示例#23
0
<?php

defined('SYSPATH') or die('No direct script access.');
echo FORM::open($url);
?>
<p style="margin: 10px 0;"><?php 
echo $text;
?>
"?</p>
<?php 
echo FORM::submit('submit', 'Удалить', array('class' => 'delete')) . ' ' . FORM::submit('cancel', 'Отмена', array('class' => 's_button'));
echo FORM::close();
示例#24
0
echo FORM::input('full_name', Arr::get($values, 'full_name'), array('class' => 'span5'));
?>
            <span class="help-inline"><?php 
echo Arr::get($errors, 'full_name');
?>
</span>
            <p class="help-block">напр. юго западный административный округ</p>
        </div>
    </div>
    <div class="control-group">
        <label for="name" class="control-label">Аббревиатура</label>
        <div class="controls">
            <?php 
echo FORM::input('abbreviation', Arr::get($values, 'abbreviation'), array('class' => 'span5'));
?>
            <span class="help-inline"><?php 
echo Arr::get($errors, 'abbreviation');
?>
</span>
            <p class="help-block">напр. ЮЗАО</p>
        </div>
    </div>
    <div class="form-actions">
        <?php 
echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn btn-large btn-success'));
?>
        <?php 
echo FORM::submit('edit_content', 'Сохранить и перейти к редактированию страницы', array('class' => 'btn btn-large btn-primary'));
?>
    </div>
</fieldset>
示例#25
0
    ?>
            <option value="<?php 
    echo $service->id;
    ?>
" <?php 
    echo $selected;
    ?>
><?php 
    echo $service->name;
    ?>
</option>
        <?php 
}
?>
    </select>
    <div id="selected_services"></div>
    <p>Заголовок</p>
    <?php 
echo FORM::input('title', Arr::get($values, 'title'));
?>
</fieldset>

<fieldset>
    <legend>Текст уведомления</legend>
    <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text'));
?>
</fieldset>
<?php 
echo FORM::submit(NULL, 'Сохранить', array('class' => 'submit'));
echo FORM::close();
示例#26
0
<?php

defined('SYSPATH') or die('No direct script access.');
$from_url = !isset($from_url) ? '#' : $from_url;
echo FORM::open(Request::current()->url());
?>
<div class="alert alert-block alert-error fade in">
    <?php 
echo HTML::anchor($from_url, '&times;', array('class' => 'close'));
?>
    <h4 class="alert-heading"><?php 
echo @$title;
?>
</h4>
    <p><?php 
echo $text;
?>
</p>
    <p>
        <?php 
echo FORM::submit('submit', 'Удалить', array('class' => 'btn btn-danger small')) . ' ' . FORM::submit('cancel', 'Отмена', array('class' => 'btn small'));
?>
    </p>
</div>
<?php 
echo FORM::close();
?>

示例#27
0
$remove = "";
$detailSection = new Element();
$detailSection->attributes->class = "slider-details";
$select = new Element();
$select->content = FORM::label('photo' . $index, 'Select Photo: <small>(' . Model_DLSliderPhoto::WIDTH . 'x' . Model_DLSliderPhoto::HEIGHT . ')</small>');
$select->content .= FORM::file("photo", array("id" => 'photo' . $index));
$select->attributes->class = "upload-image";
$title = new Element();
$title->content = FORM::label('title' . $index, 'Title for this photo:');
$title->content .= FORM::input('title', $photo->title, array("id" => "title" . $index));
$teaser = new Element();
$teaser->content = FORM::label('teaser' . $index, 'Description:');
$teaser->content .= FORM::input('teaser', $photo->teaser, array("id" => 'teaser' . $index));
$linkText = new Element();
$linkText->content = FORM::label('linktext' . $index, 'Link text:');
$linkText->content .= FORM::input('linktext', $photo->link_text, array("id" => 'linktext' . $index));
$link = new Element();
$link->content = FORM::label('link' . $index, 'Link:');
$link->content .= FORM::input("link", $photo->link, array("id" => 'link' . $index));
$library = new Element();
$library->content = new Element("label", Form::checkbox("save", "yes", $photo->isSaved) . " Store in Library");
$currentImage = new Element();
$currentImage->attributes->class = "preview_image";
if (!empty($photo)) {
    $currentImage->content .= HTML::image($photo->imagePath());
    $remove = HTML::anchor("admin/dlslider/removeimage/{$photo->id}/{$slider->id}", "remove", array("class" => "remove"));
}
$detailSection->content = $select . $title . $teaser . $linkText . $link . $library . FORM::submit('submit', 'Submit', array('class' => 'submit dl-button-' . $even_odd)) . $remove;
echo $detailSection;
echo $currentImage;
echo FORM::close();