| Server IP : 180.180.241.3 / Your IP : 216.73.216.80 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/administrator/components/com_youtubegallery/views/videolist/tmpl/ |
Upload File : |
<?php
/**
* YoutubeGallery
* @version 3.8.3
* @author DesignCompass corp< <support@joomlaboat.com>
* @link http://www.joomlaboat.com
* @GNU General Public License
**/
// No direct access to this file
defined('_JEXEC') or die('Restricted Access');
// load tooltip behavior
JHtml::_('behavior.tooltip');
$document = JFactory::getDocument();
$document->addCustomTag('<script src="http://code.jquery.com/jquery-1.10.2.js"></script>');
?>
<p style="text-align:left;">Upgrade to <a href="http://joomlaboat.com/youtube-gallery#pro-version" target="_blank">PRO version</a> to get more features</p>
<script>
function getAnswerValue(p,s)
{
var ps="*"+p+"_start*="
var pe="*"+p+"_end*"
var i1=s.indexOf(ps);
if(i1==-1)
return "";
var i2=s.indexOf(pe,i1+ps.length);
if(i2==-1)
return "";
return s.substring(i1+ps.length,i2);
}
function YGgetURlContent(theUrl,videoid,itemid)
{
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function()
{
if (xmlHttp.readyState == 4)
{
//alert(xhr.responseText);
YGpostURlContent(videoid,xmlHttp.responseText,itemid);
}
}
<?php
if (isset($_SERVER["HTTPS"]) and $_SERVER["HTTPS"] == "on")
{
echo '
theUrl=theUrl.replace("http://","https://");
';
}
?>
xmlHttp.open( "GET", theUrl, true );
xmlHttp.send( null );
//return xmlHttp.responseText;
}
function YGpostURlContent(videoid,ygvdata,itemid)
{
var url = "index.php";
$.post( url, { option: "com_youtubegallery", controller: "updatedata", tmpl: "component", videoid: videoid, ygvdata: ygvdata })
.done(function( data ) {
//alert( "Data Loaded: " + data );
UpdateFormData(data,itemid)
});
}
function UpdateVideoData(link,videoid,itemid)
{
var progressImage='<img src="../components/com_youtubegallery/images/progress_circle.gif" style="border:none !important;" />';
document.getElementById("video_"+itemid+"_status").innerHTML=progressImage;
YGgetURlContent(link,videoid,itemid);
}
function UpdateFormData(answer,itemid)
{
//alert(answer);
var video_title=getAnswerValue("title",answer);
var video_description=getAnswerValue("description",answer);
var video_lastupdate=getAnswerValue("lastupdate",answer);
document.getElementById("video_"+itemid+"_title").innerHTML=video_title;
document.getElementById("video_"+itemid+"_description").innerHTML=video_description;
document.getElementById("video_"+itemid+"_lastupdate").innerHTML=video_lastupdate;
if(video_lastupdate!="")
document.getElementById("video_"+itemid+"_status").innerHTML='<span style="color:green;">Ok</span>';
else
document.getElementById("video_"+itemid+"_status").innerHTML='<span style="color:red;font-weight:bold;">No data</span>';
}
</script>
<form action="<?php echo JRoute::_('index.php?option=com_youtubegallery&view=videolist'); ?>" method="post" name="adminForm" id="youtubegallery-form">
<h3>Items on this page: <?php echo count($this->items); ?></h3>
<?php
if(count($this->items)==0)
echo '<p><b>No videos found. Try to "Refresh" the gallery, or add videos. </b><br/>To refresh go to previous page, check the "checkbox" next to this gallery and click "Refresh" button in toolbar.</p>';
?>
<table>
<tr>
<td align="left" width="100%">
<?php echo JText::_( 'Filter' ); ?>:
<input type="text" name="search" id="search" value="<?php echo $this->lists['search'];?>" class="text_area" onchange="document.adminForm.submit();" />
<button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button>
<button onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button>
<a href="http://joomlaboat.com/contact-us" target="_blank" style="font-weight: bold;margin-left:20px;">Help (Contact Tech-Support)</a>
</td>
</tr>
</table>
<table class="adminlist">
<thead><?php echo $this->loadTemplate('head');?></thead>
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
<tbody><?php echo $this->loadTemplate('body');?></tbody>
</table>
<div>
<input type="hidden" id="task" name="task" value="" />
<input type="hidden" name="controller" value="videolist" />
<input type="hidden" name="listid" value="<?php echo JRequest::getInt( 'listid'); ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
<p>
If status of the video is "-", it means that it's not checked yet.<br/>Go to front-end and find this video in your gallery, as soon as you see it's thumbnail, it's data will be written here.
</p>
</form>