예제 #1
0
    echo panel_hidden('http_ref', $_SERVER["HTTP_REFERER"] ? $_SERVER["HTTP_REFERER"] : $sf_request->getParameter('http_ref'));
}
?>
	<?php 
echo panel_hidden('id', $obj, '', 'getId');
?>
	<?php 
echo panel_hidden('parent', $sf_request->getParameter('parent'));
?>
	<fieldset class='drop-shadow'>

	<?php 
echo panel_input('attrLabel', $obj, array('labelname' => 'Title', 'model' => 'Gallery', 'maxlength' => 255, 'required' => 'true', 'class' => 'large'), 'getLabel');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Main picture', 'model' => 'Gallery', 'allowed' => 'images', 'height' => 120), 'getImage');
?>
	<?php 
echo panel_textarea('attrDescription', $obj, array('labelname' => 'Description', 'model' => 'Gallery', 'size' => '50x5', 'richtext' => 'true', 'class' => 'mceEditor'), 'getDescription');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
}
?>
예제 #2
0
	<?php 
echo panel_hidden('id', $obj, '', 'getId');
?>
	<?php 
echo panel_hidden('parent', $sf_request->getParameter('parent'));
?>
	<fieldset class='drop-shadow'>

	<?php 
echo panel_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'News', 'maxlength' => 255, 'required' => 'true', 'class' => 'large'), 'getLabel');
?>
	<?php 
echo panel_input('attrShortDescription', $obj, array('labelname' => 'Short description', 'model' => 'News', 'maxlength' => 255, 'class' => 'large'), 'getShortDescription');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Main picture', 'model' => 'News', 'allowed' => 'images'), 'getImage');
?>
	<?php 
echo panel_date('attrStartDate', $obj, array('labelname' => 'Date', 'model' => 'News', 'withtime' => true), 'getStartDate');
?>
	<?php 
//echo panel_date('attrEndDate', $obj, array('labelname' => 'End date' , 'model' => 'News'), 'getEndDate');
?>
	<?php 
echo panel_textarea('attrContent', $obj, array('labelname' => 'Content', 'model' => 'News', 'size' => '50x10', 'richtext' => 'true', 'rows' => 10, 'class' => 'mceEditor'), 'getContent');
?>
	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>

	<?php 
예제 #3
0
			|&nbsp;&nbsp;&nbsp;<b>Size: </b><?php 
    echo round(filesize($obj->getServerAbsoluteUrl()) / 1024) . " Kb";
    ?>
		</span>
	</div>
<?php 
}
?>
	<?php 
echo panel_input('attrLabel', $obj, array('labelname' => 'Label', 'maxlength' => 255, 'required' => 'true', 'class' => 'large'), 'getLabel');
?>
	<?php 
echo panel_input('attrDescription', $obj, array('labelname' => 'Description', 'maxlength' => 255, 'class' => 'large'), 'getDescription');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Picture', 'allowed' => 'images', 'showOnly' => 1), 'getId');
?>
	<div class="field">
		<label style="float:left;">Upload file<a title="Upload file" href="javascript: void(0);"></a></label>
		<?php 
echo input_file_tag('attrFilename', '', array('size' => 50));
?>
	</div>
	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
}
예제 #4
0
    echo panel_hidden('http_ref', $_SERVER["HTTP_REFERER"] ? $_SERVER["HTTP_REFERER"] : $sf_request->getParameter('http_ref'));
}
?>
	<?php 
echo panel_hidden('id', $obj, '', 'getId');
?>
	<?php 
echo panel_hidden('parent', $sf_request->getParameter('parent'));
?>
	<fieldset class="drop-shadow">

	<?php 
echo panel_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'Category', 'maxlength' => '255', 'required' => 'true', 'class' => 'large'), 'getLabel');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Image', 'model' => 'Category', 'allowed' => 'images'), 'getImage');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
}
?>
	<?php 
echo panel_save_button(array('div' => 'buttons', 'class' => 'submit', 'value' => 'Save changes'));
?>
	<?php 
예제 #5
0
function panel_media($name, $input = null, $options = array(), $methode = null)
{
    return panel_image($name, $input, $options, $methode);
}
예제 #6
0
    echo panel_hidden('http_ref', $_SERVER["HTTP_REFERER"] ? $_SERVER["HTTP_REFERER"] : $sf_request->getParameter('http_ref'));
}
?>
	<?php 
echo panel_hidden('id', $obj, '', 'getId');
?>
	<?php 
echo panel_hidden('parent', $sf_request->getParameter('parent'));
?>
	<fieldset class='drop-shadow'>

	<?php 
echo panel_input('attrLabel', $obj, array('labelname' => 'Label', 'model' => 'Slide', 'maxlength' => 255, 'required' => 'true', 'class' => 'large'), 'getLabel');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Picture', 'model' => 'Slide', 'allowed' => 'images'), 'getImage');
?>
	<?php 
echo panel_textarea('attrDescription', $obj, array('labelname' => 'Description', 'model' => 'Slide', 'size' => '50x5', 'richtext' => 'true', 'class' => 'mceEditor'), 'getDescription');
?>
	<?php 
echo panel_input('attrLink', $obj, array('labelname' => 'Link to page', 'maxlength' => 255, 'class' => 'large'), 'getLink');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
예제 #7
0
echo panel_textarea('attrRightsOwnerAddress', $obj, array('labelname' => 'Rights owner address', 'size' => '70x5', 'rows' => '10'), 'getRightsOwnerAddress');
?>
	<?php 
echo panel_input('attrRightsRepresentative', $obj, array('labelname' => 'Rights representative', 'maxlength' => '255', 'class' => 'large'), 'getRightsRepresentative');
?>
	<?php 
echo panel_textarea('attrRightsRepresentativeAddress', $obj, array('labelname' => 'Rights representative address', 'size' => '70x5', 'rows' => '10'), 'getRightsRepresentativeAddress');
?>
	<?php 
echo panel_input('attrOfficeOfOrigin', $obj, array('labelname' => 'Office of origin', 'maxlength' => '10', 'class' => 'short'), 'getOfficeOfOrigin');
?>
	<?php 
echo panel_input('attrDesignatedContractingParty', $obj, array('labelname' => 'Designated contracting party', 'maxlength' => '512', 'class' => 'large'), 'getDesignatedContractingParty');
?>
	<?php 
echo panel_image('attrImage', $obj, array('labelname' => 'Image', 'allowed' => 'images', 'thumb_width' => 105), 'getImage');
?>

	<?php 
echo panel_separator('hr', array('class' => 'brake'));
?>
	<?php 
if (count($tags) > 0) {
    echo panel_tags($tags, $obj);
    echo panel_separator('hr', array('class' => 'brake'));
}
?>
	<?php 
echo panel_save_button(array('div' => 'buttons', 'class' => 'submit', 'value' => 'Save changes'));
?>
	<?php