Exemple #1
0
<?php 
}
?>
	

		<div class="row-fluid" style="margin-top: 10px">
			<div class="span<?php 
echo isset($sidebars) ? '9' : '12';
?>
">
<?php 
if (isset($errors) and !empty($errors)) {
    echo '<div class="alert alert-error block-message error" data-alert="alert">' . PHP_EOL;
    echo '<a class="close" data-dismiss="alert" href="#">&times;</a>' . PHP_EOL;
    echo '<p><strong>' . __('alert_error_head') . '</strong></p>' . PHP_EOL;
    echo Petro::render_errors($errors) . PHP_EOL;
    echo '</div>' . PHP_EOL;
} else {
    $errors = array();
}
echo $content;
?>
			</div>
<?php 
if (isset($sidebars)) {
    ?>
		
			<div class="span3">
				<?php 
    echo isset($sidebars) ? $sidebars : '';
    ?>
Exemple #2
0
echo Petro_Form::input('belt_thick', Input::post('belt_thick', isset($docmk) ? $docmk->belt_thick : ''), array('id' => 'form1_belt_thick', 'class' => 'span2'), __('belt_thick'), $errors);
echo Petro_Form::input('belt_top_thick', Input::post('belt_top_thick', isset($docmk) ? $docmk->belt_top_thick : ''), array('id' => 'form1_belt_top_thick', 'class' => 'span2'), __('belt_top_thick'), $errors);
echo Petro_Form::input('belt_bot_thick', Input::post('belt_bot_thick', isset($docmk) ? $docmk->belt_bot_thick : ''), array('id' => 'form1_belt_bot_thick', 'class' => 'span2'), __('belt_bot_thick'), $errors);
?>
				</div>
			</div><!--/row-->
			<div class="row-fluid">
				<div class="span12">
					<div class="control-group form-inline<?php 
echo isset($errors['belt_length']) ? ' error' : '';
?>
">
						<label class="control-label">
							<?php 
echo __('belt_length');
echo Petro::render_errors($errors, 'belt_length');
?>
						</label>
						<div class="controls">
							<?php 
echo Form::input('belt_length', Input::post('belt_length', isset($docmk) ? $docmk->belt_length : ''), array('id' => 'form1_belt_length', 'class' => 'span2' . (isset($errors['belt_length']) ? ' error' : '')));
?>
							<?php 
$belt_lunit = Petro_Lookup::get_array('belt.l.unit');
echo Form::select('belt_length_unit', Input::post('belt_length_unit', isset($docmk) ? $docmk->belt_length_unit : ''), $belt_lunit, array('id' => 'form1_belt_length_unit', 'class' => 'span2'));
?>
							<label style="width:150px;text-align:right" for="belt_end"><?php 
echo __('belt_end');
?>
&nbsp;</label>
							<?php 
Exemple #3
0
$docinfo = DocInfo::get_next('MK');
$attr = array('id' => 'form1_mk_no', 'autofocus' => 'autofocus');
if ($this_method != 'create') {
    $attr['disabled'] = 'disabled';
}
echo Form::hidden('last_docno', $docinfo['last'], array('id' => 'form1_last_docno'));
?>
					<div class="control-group<?php 
echo isset($errors['mk_no']) ? ' error' : '';
?>
">
						<label class="control-label" for="mk_no"><?php 
echo __('mk_no');
?>
 <span class="badge badge-error" title="this is requried">:</span><?php 
echo Petro::render_errors($errors, 'mk_no');
?>
</label>
						<div class="controls">
							<?php 
echo Form::input('mk_no', Input::post('mk_no', isset($docmk) ? $docmk->mk_no : $docinfo['next']), $attr);
?>
							<?php 
if ($this_method == 'create') {
    ?>
								<button class="btn" id="btn_next_docno" name="get_next_docno"><i class="icon-refresh"></i></button>
							<?php 
}
?>
						</div>
					</div>