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


PHP Input::previous方法代码示例

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


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

示例1:

echo Input::previous('site_description', 'A description of the site your new Dino CMS will power.');
?>
</textarea>
		                </div>
					</div>
	            </div>
	            
				<div class="form-group">
					<div class="row">
		                <label class="col-xs-4 control-label" style="padding-top:4px">Site Path</label>
		                <div class="col-xs-8">
							<div class="input-icon">
                            	<i class="fa fa-folder-open font-blue"></i>
								<input type="text" class="form-control" id="site_path" name="site_path"
								value="<?php 
echo Input::previous('site_path', $site_path);
?>
">
                            </div>
		                </div>
					</div>
	            </div>
	            
	            <?php 
if (count($themes) > 1) {
    ?>
	            
	            	<div class="form-group">
						<div class="row">
			                <label class="col-xs-4 control-label" style="padding-top:4px">Theme</label>
			                <div class="col-xs-8">
开发者ID:robmilnes,项目名称:Dino-CMS,代码行数:31,代码来源:metadata.php

示例2: __

?>
</em>
			</p>

			<p class="hide attributes_height">
				<label for="label-attributes_size_height"><?php 
echo __('extend.attributes_size_height');
?>
:</label>

				<?php 
$value = isset($field->attributes->size->height) ? $field->attributes->size->height : '';
?>

				<?php 
echo Form::text('attributes[size][height]', Input::previous('attributes.size.height', $value), array('id' => 'label-attributes_size_height'));
?>

				<em><?php 
echo __('extend.attributes_size_height_explain');
?>
</em>
			</p>
		</fieldset>

		<aside class="buttons">

			<?php 
echo Form::button(__('global.update'), array('class' => 'btn', 'type' => 'submit'));
?>
开发者ID:anchorcms,项目名称:anchor-cms,代码行数:30,代码来源:edit.php

示例3: __

				<?php 
echo Form::text('key', Input::previous('key'));
?>
				<em><?php 
echo __('extend.name_explain');
?>
</em>
			</p>

			<p>
				<label><?php 
echo __('extend.value');
?>
:</label>
				<?php 
echo Form::textarea('value', Input::previous('value'), array('cols' => 20));
?>
				<em><?php 
echo __('extend.value_explain');
?>
</em>
			</p>
		</fieldset>

		<aside class="buttons">
			<?php 
echo Form::button(__('global.save'), array('class' => 'btn', 'type' => 'submit'));
?>
		</aside>
	</form>
</section>
开发者ID:gautamkrishnar,项目名称:Anchor-CMS-openshift-quickstart,代码行数:31,代码来源:add.php

示例4: foreach

				<input id="prefix" name="prefix" value="<?php 
echo Input::previous('prefix', 'anchor_');
?>
">

				<i>Database table name prefix.</i>
			</p>

			<p>
				<label for="collation">Collation</label>
				<select id="collation" class="chosen-select" name="collation">
					<?php 
foreach ($collations as $code => $collation) {
    ?>
					<?php 
    $selected = $code == Input::previous('collation', 'utf8_unicode_ci') ? ' selected' : '';
    ?>
					<option value="<?php 
    echo $code;
    ?>
" <?php 
    echo $selected;
    ?>
>
						<?php 
    echo $code;
    ?>
					</option>
					<?php 
}
?>
开发者ID:biggtfish,项目名称:anchor-cms,代码行数:31,代码来源:database.php

示例5: array

				<?php 
echo Form::text('key', Input::previous('key', $variable->user_key), array('id' => 'label-name'));
?>
				<em><?php 
echo __('extend.name_explain');
?>
</em>
			</p>

			<p>
				<label for="label-value"><?php 
echo __('extend.value');
?>
:</label>
				<?php 
echo Form::textarea('value', Input::previous('value', $variable->value), array('cols' => 20, 'id' => 'label-value'));
?>
				<em><?php 
echo __('extend.value_explain');
?>
</em>
				<summary><?php 
echo __('extend.value_code_snipet', $variable->user_key);
?>
</summary>
			</p>
		</fieldset>

		<aside class="buttons">
			<?php 
echo Form::button(__('global.update'), array('class' => 'btn', 'type' => 'submit'));
开发者ID:biggtfish,项目名称:anchor-cms,代码行数:31,代码来源:edit.php

示例6: __

                    <?php 
echo Form::select('status', $statuses, Input::previous('status', $article->status));
?>
                    <em><?php 
echo __('posts.status_explain');
?>
</em>
                </p>

                <p>
                    <label for="category"><?php 
echo __('posts.category');
?>
:</label>
                    <?php 
echo Form::select('category', $categories, Input::previous('category', $article->category));
?>
                    <em><?php 
echo __('posts.category_explain');
?>
</em>
                </p>

                <!--<p>
                    <label><?php 
/*echo __('posts.allow_comments'); */
?>
:</label>
                    <?php 
/*echo Form::checkbox('comments', 1, Input::previous('comments', $article->comments) == 1); */
?>
开发者ID:Rictus,项目名称:CMS_Prod,代码行数:31,代码来源:edit.php

示例7: __

:</label>
                    <?php 
echo Form::select('status', $statuses, Input::previous('status'));
?>
                    <em><?php 
echo __('posts.status_explain');
?>
</em>
                </p>
                <p>
                    <label><?php 
echo __('posts.category');
?>
:</label>
                    <?php 
echo Form::select('category', $categories, Input::previous('category'));
?>
                    <em><?php 
echo __('posts.category_explain');
?>
</em>
                </p>

                <!-- <p>
                    <label><?php 
/*echo __('posts.allow_comments'); */
?>
:</label>
                    <?php 
/*echo Form::checkbox('comments', 1, Input::previous('comments', 0) == 1); */
?>
开发者ID:Rictus,项目名称:CMS_Prod,代码行数:31,代码来源:add.php

示例8: __

:</label>
				<?php 
echo Form::textarea('css', Input::previous('css'));
?>
				<em><?php 
echo __('posts.custom_css_explain');
?>
</em>
			</p>
			<p>
				<label for="js"><?php 
echo __('posts.custom_js', 'Custom JS');
?>
:</label>
				<?php 
echo Form::textarea('js', Input::previous('js'));
?>
				<em><?php 
echo __('posts.custom_js_explain');
?>
</em>
			</p>
			<?php 
foreach ($fields as $field) {
    ?>
			<p>
				<label for="extend_<?php 
    echo $field->key;
    ?>
"><?php 
    echo $field->label;
开发者ID:gautamkrishnar,项目名称:Anchor-CMS-openshift-quickstart,代码行数:31,代码来源:add.php

示例9: __

?>
</em>
			</p>

			<p class="hide attributes_height">
				<label for="attributes_size_height"><?php 
echo __('extend.attributes_size_height');
?>
:</label>

				<?php 
$value = isset($field->attributes->size->height) ? $field->attributes->size->height : '';
?>
				<input id="attributes_size_height" name="attributes[size][height]"
					value="<?php 
echo Input::previous('attributes.size.height', $value);
?>
">

				<em><?php 
echo __('extend.attributes_size_height_explain');
?>
</em>
			</p>
		</fieldset>

		<aside class="buttons">
			<button class="btn" type="submit"><?php 
echo __('global.update');
?>
</button>
开发者ID:gautamkrishnar,项目名称:Anchor-CMS-openshift-quickstart,代码行数:31,代码来源:edit.php

示例10: addTargetLanguageSelect

?>
</em>
                </p>
                <?php 
echo "<p><label for='extend_" . $externallink->key . "'>" . $externallink->label . "</label>" . Extend::html($externallink) . "</p>";
?>
                <?php 
echo addTargetLanguageSelect($targetLanguage);
?>
                <p>
                    <label for="status"><?php 
echo __('posts.status');
?>
:</label>
                    <?php 
echo Form::select('status', $statuses, Input::previous('status', $book->status));
?>
                    <em><?php 
echo __('posts.status_explain');
?>
</em>
                </p>


                <aside class="buttons">
                    <?php 
echo Form::button(__('global.save'), array('type' => 'submit', 'class' => 'btn'));
?>

                    <?php 
echo Html::link('admin/publications/deleteBook/' . $book->id, __('global.delete'), array('class' => 'btn delete red'));
开发者ID:Rictus,项目名称:CMS_Prod,代码行数:31,代码来源:editBook.php

示例11: uri_to

			<p>
				<label for="email">Email address</label>
				<i>Needed if you can’t log in.</i>

				<input tabindex="2" id="email" type="email" name="email" value="<?php 
echo Input::previous('email');
?>
">
			</p>

			<p>
				<label>Password</label>
				<i>Make sure to <a href="http://bash.org/?244321" target="_blank">pick a secure password</a>.</i>
				<input tabindex="3" name="password" type="password" value="<?php 
echo Input::previous('password');
?>
">
			</p>
		</fieldset>

		<section class="options">
			<a href="<?php 
echo uri_to('metadata');
?>
" class="btn quiet">&laquo; Back</a>
			<button type="submit" class="btn">Complete</button>
		</section>
	</form>
</section>
开发者ID:anchorcms,项目名称:anchor-cms,代码行数:29,代码来源:account.php

示例12: array

				<?php 
echo Form::textarea('text', Input::previous('text', $comment->text), array('id' => 'label-text'));
?>
				<em><?php 
echo __('comments.text_explain');
?>
</em>
			</p>

			<p>
				<label for="label-status"><?php 
echo __('comments.status', 'Status');
?>
:</label>
				<?php 
echo Form::select('status', $statuses, Input::previous('status', $comment->status), array('id' => 'label-status'));
?>
				<em><?php 
echo __('comments.status_explain');
?>
</em>
			</p>
		</fieldset>

		<aside class="buttons">
			<?php 
echo Form::button(__('global.save'), array('type' => 'submit', 'class' => 'btn'));
?>

			<?php 
echo Html::link('admin/comments', __('global.cancel'), array('class' => 'btn cancel blue'));
开发者ID:moje-s,项目名称:anchor-cms,代码行数:31,代码来源:edit.php

示例13: __

	<form method="post" action="<?php 
echo Uri::to('admin/amnesia');
?>
">
		<input name="token" type="hidden" value="<?php 
echo $token;
?>
">

		<fieldset>
			<p><label for="email"><?php 
echo __('users.email');
?>
:</label>
			<?php 
echo Form::email('email', Input::previous('email'), array('id' => 'email', 'autocapitalize' => 'off', 'autofocus' => 'true', 'placeholder' => __('users.email')));
?>
</p>

			<p class="buttons">
			    <a href="<?php 
echo Uri::to('admin/login');
?>
"><?php 
echo __('users.remembered');
?>
</a>
    			<button type="submit"><?php 
echo __('global.reset');
?>
</button>
开发者ID:gautamkrishnar,项目名称:Anchor-CMS-openshift-quickstart,代码行数:31,代码来源:amnesia.php

示例14: array

:</label>
				<?php 
echo Form::textarea('css', Input::previous('css'), array('id' => 'label-css'));
?>
				<em><?php 
echo __('posts.custom_css_explain');
?>
</em>
			</p>
			<p>
				<label for="label-js"><?php 
echo __('posts.custom_js', 'Custom JS');
?>
:</label>
				<?php 
echo Form::textarea('js', Input::previous('js'), array('id' => 'label-js'));
?>
				<em><?php 
echo __('posts.custom_js_explain');
?>
</em>
			</p>
			<?php 
foreach ($fields as $field) {
    ?>
			<p>
				<label for="extend_<?php 
    echo $field->key;
    ?>
"><?php 
    echo $field->label;
开发者ID:moje-s,项目名称:anchor-cms,代码行数:31,代码来源:add.php

示例15: __

				<?php 
echo Form::text('value', Input::previous('value', $pagetype->value));
?>
				<em><?php 
echo __('extend.name_explain');
?>
</em>
			</p>

			<p>
				<label><?php 
echo __('pages.slug');
?>
:</label>
				<?php 
echo Form::text('key', Input::previous('key', $pagetype->key));
?>
				<em><?php 
echo __('pages.slug_explain');
?>
</em>
			</p>
		</fieldset>

		<aside class="buttons">
			<?php 
echo Form::button(__('global.update'), array('class' => 'btn', 'type' => 'submit'));
?>
			<?php 
if ($pagetype->key != 'all') {
    ?>
开发者ID:biggtfish,项目名称:anchor-cms,代码行数:31,代码来源:edit.php


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