コード例 #1
0
ファイル: update.php プロジェクト: phiphi1992/alongaydep
echo translate('Cập nhập album');
?>
			</h1>
		</div><!--/.page-header-->
		<div class="row-fluid">
			<div class="span12">
				<!--PAGE CONTENT BEGINS-->
				<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'post-form', 'enableClientValidation' => true, 'focus' => array($model, 'title'), 'htmlOptions' => array('class' => 'form-horizontal', 'enctype' => 'multipart/form-data')));
?>
					
					<div class="control-group">
						<div class="controls">
							<img style="max-width: 500px; max-height:200px;" src="<?php 
if (!empty($model)) {
    echo getImageFullSize($model->image);
}
?>
"/>
						</div>
					</div>
					
					<div class="control-group">
						<?php 
echo $form->labelEx($model, 'image', array('class' => 'control-label'));
?>
						<div class="controls">
							<?php 
echo $form->fileField($model, 'image', array('id' => 'id-input-file-1', 'class' => 'span12'));
?>
							<?php 
コード例 #2
0
ファイル: index.php プロジェクト: phiphi1992/alongaydep
				<?php 
echo translate('Cài đặt');
?>
			</h1>
		</div><!--/.page-header-->
		<div class="row-fluid">
			<div class="span12">
				<!--PAGE CONTENT BEGINS-->
				<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'system-form', 'enableClientValidation' => true, 'focus' => array($model, 'title'), 'htmlOptions' => array('class' => 'form-horizontal', 'enctype' => 'multipart/form-data')));
?>
					<div class="control-group">
						<div class="controls">
							<img style="max-width: 500px; max-height:200px;" src="<?php 
if (!empty($model)) {
    echo getImageFullSize($model->logo);
}
?>
"/>
						</div>
					</div>
					<div class="control-group">
						<?php 
echo $form->labelEx($model, 'logo', array('class' => 'control-label'));
?>
						<div class="controls">
							<?php 
echo $form->fileField($model, 'logo', array('id' => 'id-input-file-1', 'class' => 'span12'));
?>
							<?php 
echo $form->error($model, 'logo');