?
Path : /home/admin/public_html/old/happy2/administrator/components/com_media/views/images/tmpl/ |
Current File : /home/admin/public_html/old/happy2/administrator/components/com_media/views/images/tmpl/default.php |
<?php /** * @package Joomla.Administrator * @subpackage com_media * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; $user = JFactory::getUser(); ?> <script type='text/javascript'> var image_base_path = '<?php $params = JComponentHelper::getParams('com_media'); echo $params->get('image_path', 'images');?>/'; </script> <form action="index.php?option=com_media&asset=<?php echo JRequest::getCmd('asset');?>&author=<?php echo JRequest::getCmd('author');?>" id="imageForm" method="post" enctype="multipart/form-data"> <div id="messages" style="display: none;"> <span id="message"></span><?php echo JHtml::_('image', 'media/dots.gif', '...', array('width' =>22, 'height' => 12), true)?> </div> <fieldset> <div class="fltlft"> <label for="folder"><?php echo JText::_('COM_MEDIA_DIRECTORY') ?></label> <?php echo $this->folderList; ?> <button type="button" id="upbutton" title="<?php echo JText::_('COM_MEDIA_DIRECTORY_UP') ?>"><?php echo JText::_('COM_MEDIA_UP') ?></button> </div> <div class="fltrt"> <button type="button" onclick="<?php if ($this->state->get('field.id')):?>window.parent.jInsertFieldValue(document.id('f_url').value,'<?php echo $this->state->get('field.id');?>');<?php else:?>ImageManager.onok();<?php endif;?>window.parent.SqueezeBox.close();"><?php echo JText::_('COM_MEDIA_INSERT') ?></button> <button type="button" onclick="window.parent.SqueezeBox.close();"><?php echo JText::_('JCANCEL') ?></button> </div> </fieldset> <iframe id="imageframe" name="imageframe" src="index.php?option=com_media&view=imagesList&tmpl=component&folder=<?php echo $this->state->folder?>&asset=<?php echo JRequest::getCmd('asset');?>&author=<?php echo JRequest::getCmd('author');?>"></iframe> <fieldset> <table class="properties"> <tr> <td><label for="f_url"><?php echo JText::_('COM_MEDIA_IMAGE_URL') ?></label></td> <td><input type="text" id="f_url" value="" /></td> <?php if (!$this->state->get('field.id')):?> <td><label for="f_align"><?php echo JText::_('COM_MEDIA_ALIGN') ?></label></td> <td> <select size="1" id="f_align" > <option value="" selected="selected"><?php echo JText::_('COM_MEDIA_NOT_SET') ?></option> <option value="left"><?php echo JText::_('JGLOBAL_LEFT') ?></option> <option value="right"><?php echo JText::_('JGLOBAL_RIGHT') ?></option> </select> </td> <td> <?php echo JText::_('COM_MEDIA_ALIGN_DESC');?> </td> <?php endif;?> </tr> <?php if (!$this->state->get('field.id')):?> <tr> <td><label for="f_alt"><?php echo JText::_('COM_MEDIA_IMAGE_DESCRIPTION') ?></label></td> <td><input type="text" id="f_alt" value="" /></td> </tr> <tr> <td><label for="f_title"><?php echo JText::_('COM_MEDIA_TITLE') ?></label></td> <td><input type="text" id="f_title" value="" /></td> <td><label for="f_caption"><?php echo JText::_('COM_MEDIA_CAPTION') ?></label></td> <td> <select size="1" id="f_caption" > <option value="" selected="selected" ><?php echo JText::_('JNO') ?></option> <option value="1"><?php echo JText::_('JYES') ?></option> </select> </td> <td> <?php echo JText::_('COM_MEDIA_CAPTION_DESC');?> </td> </tr> <?php endif;?> </table> <input type="hidden" id="dirPath" name="dirPath" /> <input type="hidden" id="f_file" name="f_file" /> <input type="hidden" id="tmpl" name="component" /> </fieldset> </form> <?php if ($user->authorise('core.create', 'com_media')): ?> <form action="<?php echo JURI::base(); ?>index.php?option=com_media&task=file.upload&tmpl=component&<?php echo $this->session->getName().'='.$this->session->getId(); ?>&<?php echo JSession::getFormToken();?>=1&asset=<?php echo JRequest::getCmd('asset');?>&author=<?php echo JRequest::getCmd('author');?>&view=images" id="uploadForm" name="uploadForm" method="post" enctype="multipart/form-data"> <fieldset id="uploadform"> <legend><?php echo $this->config->get('upload_maxsize')=='0' ? JText::_('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : JText::sprintf('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?></legend> <fieldset id="upload-noflash" class="actions"> <label for="upload-file" class="hidelabeltxt"><?php echo JText::_('COM_MEDIA_UPLOAD_FILE'); ?></label> <input type="file" id="upload-file" name="Filedata[]" multiple /> <label for="upload-submit" class="hidelabeltxt"><?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?></label> <input type="submit" id="upload-submit" value="<?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?>"/> </fieldset> <input type="hidden" name="return-url" value="<?php echo base64_encode('index.php?option=com_media&view=images&tmpl=component&fieldid='.JRequest::getCmd('fieldid', '').'&e_name='.JRequest::getCmd('e_name').'&asset='.JRequest::getCmd('asset').'&author='.JRequest::getCmd('author')); ?>" /> </fieldset> </form> <?php endif; ?>