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 echo panel_keywords('attrKeywords', $obj, array('labelname' => 'Keywords', 'model' => 'News', 'btnLabel' => 'Add keyword', 'size' => 70), 'getKeywords'); ?> <?php echo panel_separator('hr', array('class' => 'brake')); ?> <?php if (count($tags) > 0) { echo panel_tags($tags, $obj);
<?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')); } ?> <?php if ($obj) { echo panel_gallery($obj->getId(), array('labelname' => 'Images gallery', 'path' => 'galleries'));
echo panel_input('attrViennaClasses', $obj, array('labelname' => 'VIENNA classes', 'maxlength' => '512', 'class' => 'large'), 'getViennaClasses'); ?> <?php echo panel_input('attrNiceClasses', $obj, array('labelname' => 'NICE classes', 'maxlength' => '512', 'class' => 'large'), 'getNiceClasses'); ?> <?php echo panel_input('attrRightsOwner', $obj, array('labelname' => 'Rights owner', 'maxlength' => '255', 'class' => 'large'), 'getRightsOwner'); ?> <?php 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'), 'getImage'); ?> <?php echo panel_separator('hr', array('class' => 'brake')); ?> <?php
<?php foreach ($boxes as $i => $target) { echo panel_textarea('attrContent' . $i, $obj, array('labelname' => 'Content' . $i, 'model' => 'PageI18n', 'size' => '50x5', 'richtext' => 'true', 'class' => 'mceEditor', 'target' => $target), 'getContent'); }
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', 'maxlength' => 255, 'required' => 'true', 'class' => 'large'), 'getLabel'); ?> <?php echo panel_textarea('attrAddress', $obj, array('labelname' => 'Address', 'size' => '70x5'), 'getAddress'); ?> <?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