本文整理匯總了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">