示例#1
0
	<?php 
echo backend_hidden('id', $obj, '', 'getId');
?>
	<?php 
echo backend_hidden('parent', $sf_request->getParameter('parent'));
?>
	<?php 
if ($obj) {
    echo 'ID: ' . $obj->getId();
}
?>
	<?php 
echo backend_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'ProductI18n', 'maxlength' => '255', 'required' => 'true', 'onfocus' => ' validateEditForm();'), 'getLabel');
?>
	<?php 
echo backend_media('attrImage', $obj, array('labelname' => 'Main picture', 'model' => 'ProductI18n', 'allowed' => 'images'), 'getImage');
?>
	<?php 
echo backend_input('attrShortDescription', $obj, array('labelname' => 'Short description', 'model' => 'ProductI18n', 'maxlength' => '100'), 'getShortDescription');
?>
	<?php 
echo backend_textarea('attrDescription', $obj, array('labelname' => 'Description', 'model' => 'ProductI18n', 'size' => '50', 'richtext' => 'true', 'rows' => '10'), 'getDescription');
?>
	<?php 
echo backend_input('attrPrice', $obj, array('labelname' => 'Price', 'model' => 'ProductI18n'), 'getPrice');
?>
	<?php 
echo backend_select('attrCurrency', $obj, Lists::getListitemsForSelect('currency'), array('labelname' => 'Currency', 'model' => 'ProductI18n', 'unique' => 'true', 'required' => 'true', 'onchange' => ' validateEditForm();'), 'getCurrency');
?>
	<?php 
echo backend_select('attrCulture', $obj, Lists::getListitemsForSelect('culture'), array('labelname' => 'Culture', 'model' => 'ProductI18n', 'unique' => 'true', 'required' => 'true', 'onchange' => ' validateEditForm();'), 'getCulture');
示例#2
0
		<?php 
echo backend_tags($tags, $obj);
?>
	</div>

	<div id='tab2' name='tabAdmin' style='display: none'>
		<?php 
echo backend_hidden('attrBackend', $obj, array('labelname' => 'Backend', 'model' => 'User'), 'getBackend');
?>
		<?php 
echo backend_select('attrType', $obj, Lists::getListitemsForSelect('usertype'), array('labelname' => 'Type', 'model' => 'User'), 'getType');
?>
	</div>

	<div id='tab3' name='tabUser' style='display: none'>
		<?php 
echo backend_date('attrBirthDate', $obj, array('labelname' => 'BirthDate', 'model' => 'User'), 'getBirthDate');
?>
		<?php 
echo backend_select('attrEducation', $obj, Lists::getListitemsForSelect('educations'), array('labelname' => 'Education', 'model' => 'User'), 'getEducation');
?>
		<?php 
echo backend_media('attrCv', $obj, array('labelname' => 'Cv', 'model' => 'User'), 'getCv');
?>
		</div>

	<div id='line'></div>
	<input id='btnSubmit' type='submit' class='save_btndisabled' value='' disabled/>
</form>
</div>
<script type="text/javascript">setTimeout(function(){$('#backendMsg').fadeOut(1000)},2000);</script>
示例#3
0
		<?php 
echo backend_hidden('parent', $sf_request->getParameter('parent'));
?>
		<?php 
if ($obj) {
    echo 'ID: ' . $obj->getId();
}
?>
		<?php 
echo backend_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'NewsI18n', 'maxlength' => '255', 'required' => 'true', 'onfocus' => ' validateEditForm();'), 'getLabel');
?>
		<?php 
echo backend_input('attrShortDescription', $obj, array('labelname' => 'Short description', 'model' => 'NewsI18n', 'maxlength' => '255'), 'getShortDescription');
?>
		<?php 
echo backend_media('attrImage', $obj, array('labelname' => 'Main image', 'model' => 'NewsI18n', 'allowed' => 'images'), 'getImage');
?>
		<?php 
echo backend_date('attrStartDate', $obj, array('labelname' => 'Start date', 'model' => 'NewsI18n'), 'getStartDate');
?>
		<?php 
echo backend_date('attrEndDate', $obj, array('labelname' => 'End date', 'model' => 'NewsI18n'), 'getEndDate');
?>
		<?php 
echo backend_select('attrCulture', $obj, Lists::getListitemsForSelect('culture'), array('labelname' => 'Culture', 'model' => 'NewsI18n', 'unique' => 'true', 'required' => 'true', 'onchange' => ' validateEditForm();'), 'getCulture');
?>
		<?php 
if ($obj) {
    echo backend_gallery($obj->getId(), array('width' => '600', 'thumb_width' => '100', 'path' => 'upload'));
}
?>