?> " /> <?php echo JHtml::_('form.token'); ?> <div class="form_buttons"> <input type="submit" name="submit" value="<?php echo JText::_('ATTACH_UPDATE'); ?> " /> <span class="right"> <input type="button" name="cancel" value="<?php echo JText::_('ATTACH_CANCEL'); ?> " onClick="window.parent.SqueezeBox.close();" /> </span> </div> </form> <?php // Generate the list of existing attachments if ($update == 'file' || $attachment->uri_type == 'file') { require_once JPATH_SITE . '/components/com_attachments/controllers/attachments.php'; $controller = new AttachmentsControllerAttachments(); $controller->display($parent_id, $attachment->parent_type, $attachment->parent_entity, 'ATTACH_EXISTING_ATTACHMENTS', false, false, true, $this->from); } echo '</div>'; if ($this->error) { echo $this->endHTML(); }