aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/labels/googlevideos.php
blob: 1d422323273c1fc173ff3ca52e8e97ba0f873347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

/**
 * Elgg User Profile Video Plugin
 * This plugin allows users to browse youtube videos
 *
 * @package ElggProfile
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
 * @author Prateek Choudhary <synapticfield@gmail.com>
 * @copyright Prateek Choudhary
 */

$body = '<p><label>'.elgg_echo("videolist:title_search_tube").'<br />';
//$body .= elgg_view("input/text",array('internalname' => 'title_search','value' => '', 'id' => 'title_search'));
$body .= "<div style='width:100%;'>";
$body .= "<div style='float:left;width:19%;'>";
$body .= "<a href=\"http://video.google.com\"><img src='".$vars['url']."mod/videolist/graphics/logo_videos.png' width='120'/></a>";
$body .= "</div>";
$body .= "<div style='float:left;width:45%;'>";
$body .= "<input type=\"text\" name=\"title_search\" value=\"\" id=\"title_search\" size=\"30\"/> &nbsp;&nbsp;";
if($error['no-search'] == 0) {
	$body .= '<div class="videolist_error">'.$error_msg['no-search'].'</div>';
}
$body .= "</div>";
//$body .= "<div>";
//$body .= '<input type="submit" value="Submit" class="submit_button" name="submit" onclick="sendSearchRequest(1);"/>';
$body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('videolist:searchTubeVideos:vimeo')));
//$body .= "</div>";
$body .= "</div>";
$body .= '</label></p>';
$body .=  '<div id="searchcontrol">Loading...</div>';
print $body;