本文整理汇总了PHP中Prefs::getPrintDefault方法的典型用法代码示例。如果您正苦于以下问题:PHP Prefs::getPrintDefault方法的具体用法?PHP Prefs::getPrintDefault怎么用?PHP Prefs::getPrintDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Prefs
的用法示例。
在下文中一共展示了Prefs::getPrintDefault方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<a class="btn btn-info btn-sm" id="print_barcodes"><i class="fa fa-print"></i> Print Selected Barcodes</a>
<div id="print-modal" class="modal fade large" tabindex="-1" role="dialog" aria-labelledby="myPrintModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h5 id="myPrintModalLabel">Print Selected Codes</span></h5>
</div>
<div class="modal-body" style="overflow:auto;" >
<h6>Print options</h6>
<?php
$d = Prefs::getPrintDefault('rack');
?>
<div style="border-bottom:thin solid #ccc;" class="row form-vertical clearfix">
<div class="col-md-2">
{{ Former::text('label_columns','Number of columns')->value($d->col)->id('label_columns')->class('form-control input-sm') }}
{{ Former::text('label_res','Resolution')->value($d->res)->id('label_res')->class('form-control input-sm') }}
</div>
<div class="col-md-2">
{{ Former::text('label_cell_height','Label height')->value($d->cell_height)->id('label_cell_height')->class('form-control input-sm') }}
{{ Former::text('label_cell_width','Label width')->value($d->cell_width )->id('label_cell_width')->class('form-control input-sm') }}
</div>
<div class="col-md-2">
{{ Former::text('label_margin_right','Label margin right')->value( $d->margin_right )->id('label_margin_right')->class('form-control input-sm') }}
{{ Former::text('label_margin_bottom','Label margin bottom')->value( $d->margin_bottom )->id('label_margin_bottom')->class('form-control input-sm') }}
</div>
<div class="col-md-2">
{{ Former::text('label_offset_right','Page left offset')->value('40')->id('label_offset_right')->class('form-control input-sm') }}
{{ Former::text('label_offset_bottom','Page top offset')->value('20')->id('label_offset_bottom')->class('form-control input-sm') }}
</div>
<div class="col-md-2">
示例2:
{{ Form::submit('Generate',array('name'=>'submit','class'=>'btn btn-primary input-sm pull-right'))}}
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
</div>
{{ Former::close()}}
</div>
<div id="print-modal" class="modal fade large" tabindex="-1" role="dialog" aria-labelledby="myPrintModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h5 id="myPrintModalLabel">Print Selected Codes</span></h5>
</div>
<div class="modal-body" style="overflow:auto;" >
<h6>Print options</h6>
<?php
$d = Prefs::getPrintDefault('asset');
?>
<div style="border-bottom:thin solid #ccc;" class="row form-vertical clearfix">
<div class="col-md-2">
{{ Former::text('label_columns','Number of columns')->value($d->col)->id('label_columns')->class('form-control input-sm') }}
{{ Former::text('label_res','Resolution')->value($d->res)->id('label_res')->class('form-control input-sm') }}
</div>
<div class="col-md-2">
{{ Former::text('label_cell_height','Label height')->value($d->cell_height)->id('label_cell_height')->class('form-control input-sm') }}
{{ Former::text('label_cell_width','Label width')->value($d->cell_width )->id('label_cell_width')->class('form-control input-sm') }}
</div>
<div class="col-md-2">
{{ Former::text('label_margin_right','Label margin right')->value( $d->margin_right )->id('label_margin_right')->class('form-control input-sm') }}
{{ Former::text('label_margin_bottom','Label margin bottom')->value( $d->margin_bottom )->id('label_margin_bottom')->class('form-control input-sm') }}
</div>
<div class="col-md-2">