Exemplo n.º 1
0
echo $model['thumb'];
?>
" maxlength="128">
					<input type='button' class='form-control' style="display: inline-block;width:60px;" value='浏览...' /> 
					<input type="file" name="Content[thumb]" class="file" onchange="document.getElementById('content-thumb').value=getFilePath(this);" /> 
				</div>
				
	
				<div class="help-block"></div>
			</div>
		</div>

		<div class="col-md-3 form-horizontal" >
	
			<?php 
echo $form->field($model, 'status')->dropDownList(Content::getStatusItems());
?>
			<?php 
echo $form->field($model, 'visibility')->dropDownList(Content::getVisibilityItems());
?>
			
			<?php 
echo $form->field($model, 'password')->passwordInput(['maxlength' => 64]);
?>
		
		    <?php 
echo $form->field($model, 'allow_comment')->checkbox([], false);
?>
		    
		    <?php 
echo $form->field($model, 'is_sticky')->checkbox([], false);