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); echo panel_separator('hr', array('class' => 'brake')); } ?> <?php if ($obj) { echo panel_gallery($obj->getId(), array('labelname' => 'Images gallery', 'width' => '600', 'thumb_width' => '80', 'path' => 'news')); } ?> <?php echo panel_save_button(array('div' => 'buttons', 'class' => 'submit', 'value' => 'Save changes')); ?> <?php echo panel_modal_images();
<?php //echo panel_select('attrCulture', $obj, Lists::getListitemsForSelect('culture'), array('labelname' => 'Culture' , 'model' => 'PageI18n', 'unique' => 'true', 'required' => 'true', 'class' => 'medium'), 'getCulture'); ?> </div> <?php if ($obj) { echo panel_gallery($obj->getId(), array('labelname' => 'Images gallery', 'width' => '600', 'thumb_width' => '120', 'path' => 'upload')); } ?> <?php echo panel_separator('hr', array('class' => 'brake')); ?> <?php if (count($tags) > 0 && $sf_user->getSubscriber()->getType() == "admin") { echo panel_tags($tags, $obj, $sf_params->get('id')); echo panel_separator('hr', array('class' => 'brake')); } ?> <?php echo panel_save_button(array('div' => 'buttons', 'class' => 'submit', 'value' => 'Save changes')); ?> <?php echo panel_modal_images(); ?> </fieldset> </form> <div class='clear'></div> <script type="text/javascript"> $(function() {