Beispiel #1
0
<?php

defined('_JEXEC') or die('Restricted access');
echo '<div id="phocagallery-upload">';
echo '<div style="font-size:1px;height:1px;margin:0px;padding:0px;">&nbsp;</div>';
echo '<form action="' . $this->tmpl['su_url'] . '" id="uploadFormU" method="post" enctype="multipart/form-data">';
if ($this->tmpl['ftp']) {
    echo PhocaGalleryFileUpload::renderFTPaccess();
}
echo '<fieldset class="actions">' . ' <legend>';
echo JText::_('COM_PHOCAGALLERY_UPLOAD_FILE') . ' [ ' . JText::_('COM_PHOCAGALLERY_MAX_SIZE') . ':&nbsp;' . $this->tmpl['uploadmaxsizeread'] . ',' . ' ' . JText::_('COM_PHOCAGALLERY_MAX_RESOLUTION') . ':&nbsp;' . $this->tmpl['uploadmaxreswidth'] . ' x ' . $this->tmpl['uploadmaxresheight'] . ' px ]';
echo ' </legend>';
echo $this->tmpl['su_output'] . '</fieldset>';
echo '</form>';
echo PhocaGalleryFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocagallerym', 'tab=' . $this->tmpl['currenttab']['upload']);
echo '</div>';
Beispiel #2
0
    ?>
<div>
		<?php 
    for ($i = 0, $n = count($this->folders); $i < $n; $i++) {
        $this->setFolder($i);
        echo $this->loadTemplate('folder');
    }
    ?>

</div>
<?php 
} else {
    ?>
<div>
	<center style="clear:both;font-size:large;font-weight:bold;color:#b3b3b3;font-family: Helvetica, sans-serif;">
		<?php 
    echo JText::_('COM_PHOCAGALLERY_THERE_IS_NO_FOLDER');
    ?>
	</center>
</div>

<?php 
}
echo '<div style="clear:both"></div>';
echo PhocaGalleryFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $currentFolder, 'phocagalleryf', 'field=' . $this->field);
?>




Beispiel #3
0
    }
    $label = JHtml::_('image', 'media/com_phocagallery/images/administrator/icon-16-folder.png', '') . '&nbsp;' . JText::_('COM_PHOCAGALLERY_CREATE_FOLDER');
    echo '<li><a href="#createfolder" data-toggle="tab">' . $label . '</a></li>';
    echo '</ul>';
    echo '<div class="tab-content">' . "\n";
    echo '<div class="tab-pane" id="upload">' . "\n";
    echo $this->loadTemplate('upload');
    echo '</div>' . "\n";
    echo '<div class="tab-pane" id="multipleupload">' . "\n";
    echo $this->loadTemplate('multipleupload');
    echo '</div>' . "\n";
    echo '<div class="tab-pane" id="javaupload">' . "\n";
    echo $this->loadTemplate('javaupload');
    echo '</div>' . "\n";
    echo '<div class="tab-pane" id="createfolder">' . "\n";
    echo PhocaGalleryFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocagalleryi', 'tab=createfolder&amp;field=' . $this->field);
    echo '</div>' . "\n";
    echo '</div>' . "\n";
}
?>



<?php 
/*
if ($this->tmpl['displaytabs'] > 0) {
	echo '<div id="phocagallery-pane">';
	//$pane =& JPane::getInstance('Tabs', array('startOffset'=> $this->tmpl['tab']));
	echo JHtml::_('tabs.start', 'config-tabs-com_phocagallery-i', array('useCookie'=>1, 'startOffset'=> $this->tmpl['tab']));
	//echo $pane->startPane( 'pane' );
<?php

defined('_JEXEC') or die('Restricted access');
echo '<div id="phocagallery-javaupload">';
echo '<div style="font-size:1px;height:1px;margin:0px;padding:0px;">&nbsp;</div>';
echo '<form action="' . JURI::base() . 'index.php?option=com_phocagallery" >';
if ($this->tmpl['ftp']) {
    echo PhocaGalleryFileUpload::renderFTPaccess();
}
echo '<fieldset class="actions">' . ' <legend>';
echo JText::_('COM_PHOCAGALLERY_UPLOAD_FILE') . ' [ ' . JText::_('COM_PHOCAGALLERY_MAX_SIZE') . ':&nbsp;' . $this->tmpl['uploadmaxsizeread'] . ',' . ' ' . JText::_('COM_PHOCAGALLERY_MAX_RESOLUTION') . ':&nbsp;' . $this->tmpl['uploadmaxreswidth'] . ' x ' . $this->tmpl['uploadmaxresheight'] . ' px ]';
echo ' </legend>';
echo $this->tmpl['ju_output'] . '</fieldset>';
echo '</form>';
echo PhocaGalleryFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocagalleryi', 'tab=' . $this->tmpl['currenttab']['javaupload'] . '&amp;field=' . $this->field);
echo '</div>';
Beispiel #5
0
    if ($this->tmpl['enablejava'] >= 0) {
        $label = JHtml::_('image', 'media/com_phocagallery/images/administrator/icon-16-upload-java.png', '') . '&nbsp;' . JText::_('COM_PHOCAGALLERY_JAVA_UPLOAD');
        echo '<li><a href="#javaupload" data-toggle="tab">' . $label . '</a></li>';
    }
    $label = JHtml::_('image', 'media/com_phocagallery/images/administrator/icon-16-folder.png', '') . '&nbsp;' . JText::_('COM_PHOCAGALLERY_CREATE_FOLDER');
    echo '<li><a href="#createfolder" data-toggle="tab">' . $label . '</a></li>';
    echo '</ul>';
    echo '<div class="tab-content">' . "\n";
    echo '<div class="tab-pane" id="upload">' . "\n";
    echo $this->loadTemplate('upload');
    echo '</div>' . "\n";
    echo '<div class="tab-pane" id="multipleupload">' . "\n";
    echo $this->loadTemplate('multipleupload');
    echo '</div>' . "\n";
    echo '<div class="tab-pane" id="javaupload">' . "\n";
    echo $this->loadTemplate('javaupload');
    echo '</div>' . "\n";
    echo '<div class="tab-pane" id="createfolder">' . "\n";
    echo PhocaGalleryFileUpload::renderCreateFolder($this->session->getName(), $this->session->getId(), $this->currentFolder, 'phocagallerym', 'tab=createfolder');
    echo '</div>' . "\n";
    echo '</div>' . "\n";
}
if ($this->tmpl['tab'] != '') {
    $jsCt = 'a[href=#' . $this->tmpl['tab'] . ']';
} else {
    $jsCt = 'a:first';
}
echo '<script type="text/javascript">';
echo '   jQuery(\'#configTabs ' . $jsCt . '\').tab(\'show\');';
// Select first tab
echo '</script>';