Commit 21c6c664 authored by nagendra016's avatar nagendra016

Upgrade to Kaltura v3 api

parent ed6e546b
......@@ -2567,6 +2567,8 @@ lib/userprefs/index.php -text
lib/userprefs/scrambleEmail.php -text
lib/userprefs/userprefslib.php -text
lib/userslib.php -text
lib/videogals/KalturaClientBase_v3.php -text
lib/videogals/KalturaClient_v3.php -text
lib/videogals/kaltura_client.php -text
lib/videogals/kaltura_client_base.php -text
lib/videogals/videogallib.php -text
......@@ -3862,6 +3864,7 @@ templates/tiki-information.tpl -text
templates/tiki-install.tpl -text
templates/tiki-integrator.tpl -text
templates/tiki-interactive_trans.tpl -text
templates/tiki-kaltura_upload.tpl -text
templates/tiki-kaltura_video.tpl -text
templates/tiki-lastchanges.tpl -text
templates/tiki-likepages.tpl -text
......@@ -3875,7 +3878,12 @@ templates/tiki-list_faqs.tpl -text
templates/tiki-list_file_gallery.tpl -text
templates/tiki-list_gallery.tpl -text
templates/tiki-list_integrator_repositories.tpl -text
templates/tiki-list_kaltura_browse_entries.tpl -text
templates/tiki-list_kaltura_entries.tpl -text
templates/tiki-list_kaltura_entries_actions.tpl -text
templates/tiki-list_kaltura_entries_add_info.tpl -text
templates/tiki-list_kaltura_media_entries.tpl -text
templates/tiki-list_kaltura_mix_entries.tpl -text
templates/tiki-list_object_permissions.tpl -text
templates/tiki-list_posts.tpl -text
templates/tiki-list_quizzes.tpl -text
......@@ -4269,6 +4277,7 @@ tests/upgrade_categperm.php -text
/tiki-interactive_trans.php -text
/tiki-jscalendar.php -text
/tiki-jsplugin.php -text
/tiki-kaltura_upload.php -text
/tiki-kaltura_video.php -text
/tiki-lastchanges.php -text
/tiki-layout_options.php -text
......
......@@ -1416,7 +1416,7 @@ INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `s
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42,'o','Workspaces','tiki-admin.php?page=workspaces',1270,'feature_workspaces','tiki_p_admin','',0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 's', 'Kaltura', 'tiki-list_kaltura_entries.php', 950, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_list_videos', '', 0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 'o', 'List Entries', 'tiki-list_kaltura_entries.php', 952, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_list_videos', '', 0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_video.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_upload.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
......
......@@ -1416,7 +1416,7 @@ INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `s
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42,'o','Workspaces','tiki-admin.php?page=workspaces',1270,'feature_workspaces','tiki_p_admin','',0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 's', 'Kaltura', 'tiki-list_kaltura_entries.php', 950, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_list_videos', '', 0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 'o', 'List Entries', 'tiki-list_kaltura_entries.php', 952, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_list_videos', '', 0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_video.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
INSERT INTO `tiki_menu_options` (`menuId`, `type`, `name`, `url`, `position`, `section`, `perm`, `groupname`, `userlevel`) VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_upload.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
......
......@@ -1759,7 +1759,7 @@ INSERT INTO "tiki_menu_options" ("menuId","type","name","url","position","sectio
INSERT INTO "tiki_menu_options" ("menuId","type","name","url","position","section","perm","groupname","userlevel") VALUES (42, 'o', 'List Entries', 'tiki-list_kaltura_entries.php', 952, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_list_videos', '', 0);
INSERT INTO "tiki_menu_options" ("menuId","type","name","url","position","section","perm","groupname","userlevel") VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_video.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
INSERT INTO "tiki_menu_options" ("menuId","type","name","url","position","section","perm","groupname","userlevel") VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_upload.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
......
......@@ -1767,7 +1767,7 @@ INSERT INTO "," ("menuId","type","name","url","position","section","perm","group
INSERT INTO "," ("menuId","type","name","url","position","section","perm","groupname","userlevel") VALUES (42, 'o', 'List Entries', 'tiki-list_kaltura_entries.php', 952, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_list_videos', '', 0);
INSERT INTO "," ("menuId","type","name","url","position","section","perm","groupname","userlevel") VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_video.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
INSERT INTO "," ("menuId","type","name","url","position","section","perm","groupname","userlevel") VALUES (42, 'o', 'Upload Media', 'tiki-kaltura_upload.php', 954, 'feature_kaltura', 'tiki_p_admin | tiki_p_admin_kaltura | tiki_p_upload_videos', '', 0);
......
This diff is collapsed.
This diff is collapsed.
......@@ -11,7 +11,8 @@ $subp_id = (int)$prefs['partnerId']*100;
$admin_secret = $prefs['adminSecret'];
$service_url = "http://www.kaltura.com";
require_once ( "kaltura_client.php");
//require_once ( "kaltura_client.php");
require_once ( "KalturaClient_v3.php");
$mediaType = array("Any","Video","Image","Text","HTML","Audio","Video Remix","SHOW_XML","","Bubbles","XML","Document");
......
{title}{tr}Upload to Kaltura{/tr}{/title}
<div class="navbar">
{if $tiki_p_remix_videos eq 'y' or $tiki_p_admin_video_galleries eq 'y' or $tiki_p_admin eq 'y'}
{button _text="{tr}List Entries{/tr}" href="tiki-list_kaltura_entries2.php" }
{/if}
{if $mode ne '' and $mode ne 'new_entries'}
{if $mode ne 'edit' and ($tiki_p_edit_videos eq 'y' or $tiki_p_admin_video_galleries eq 'y' or $tiki_p_admin eq 'y')}
{button _text="{tr}Change Details{/tr}" href="tiki-kaltura_video2.php?videoId=$videoId&action=edit" }
{/if}
{if $mode ne 'remix' and ($tiki_p_remix_videos eq 'y' or $tiki_p_admin_video_galleries eq 'y' or $tiki_p_admin eq 'y')}
{button _text="{tr}Remix{/tr}" href="tiki-kaltura_video2.php?videoId=$videoId&action=remix" }
{/if}
{if $mode eq 'remix' and $editor eq 'kse'}
{button _text="{tr}Advance Editor{/tr}" href="tiki-kaltura_video2.php?videoId=$videoId&action=remix&editor=kae" }
{/if}
{if $mode eq 'remix' and $editor eq 'kae'}
{button _text="{tr}Simple Editor{/tr}" href="tiki-kaltura_video2.php?videoId=$videoId&action=remix&editor=kse" }
{/if}
{/if}
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<br>
{if $count > 0}
{remarksbox type="info" title="{tr}Upload Successful{/tr}" }{tr}You can successfully added {$count} new entry/entries{/tr}{/remarksbox}
{/if}
<br>
<div id="kcwFlashObject"></div>
<script type="text/javascript">
{literal}
var params = {
allowScriptAccess: "always",
allowNetworking: "all",
wmode: "opaque"
};
function afterAddEntry (entries) {
var tmp='';
for( var i = 0; i < entries.length; i++)
{
tmp += '<input type="hidden" name="entryId[]" value="'+entries[i].entryId+'"/>';
}
document.getElementById('new_entries').innerHTML = tmp;
document.kcw.submit();
}
{/literal}
var flashVars = {$cwflashVars};
swfobject.embedSWF("http://www.kaltura.com/kcw/ui_conf_id/1000741", "kcwFlashObject", "680", "360", "9.0.0", "expressInstall.swf", flashVars, params);
</script>
<form name='kcw' id='kcw' action='tiki-kaltura_upload.php' method='post' enctype='multipart/form-data' style='margin:0px; padding:0px'>
<input type="hidden" name="kcw" value="true"/>
<div id="new_entries">
</div>
</form>
\ No newline at end of file
{title help="Kaltura" admpage="kaltura"}
{if $mode eq 'edit'}{tr}Change Details:{/tr}{$videoInfo.name}
{if $mode eq 'edit'}{tr}Change Details:{/tr}{$videoInfo->name}
{elseif $mode eq 'remix' || $mode eq 'dupl'}{tr}Remix{/tr}
{elseif $mode eq 'view'}{tr}View:{/tr}{$videoInfo.name}
{else}{tr}Upload File{/tr}{/if}{/title}
{elseif $mode eq 'view'}{tr}View:{/tr}{$videoInfo->name}
{else}{/if}{/title}
{if $editor eq ''}
{assign var=editor value=$prefs.default_kaltura_editor}
{/if}
<div class="navbar">
{if $tiki_p_remix_videos eq 'y' or $tiki_p_admin_video_galleries eq 'y' or $tiki_p_admin eq 'y'}
{button _text="{tr}List Entries{/tr}" href="tiki-list_kaltura_entries.php" }
{/if}
{if $mode ne '' and $mode ne 'new_entries'}
{if $mode ne ''}
{if $mode ne 'edit' and ($tiki_p_edit_videos eq 'y' or $tiki_p_admin_video_galleries eq 'y' or $tiki_p_admin eq 'y')}
{button _text="{tr}Change Details{/tr}" href="tiki-kaltura_video.php?videoId=$videoId&action=edit" }
{if $entryType eq "media"}
{button _text="{tr}Change Details{/tr}" href="tiki-kaltura_video.php?mediaId=$videoId&action=edit" }
{else}
{button _text="{tr}Change Details{/tr}" href="tiki-kaltura_video.php?mixId=$videoId&action=edit" }
{/if}
{/if}
{if $mode ne 'remix' and ($tiki_p_remix_videos eq 'y' or $tiki_p_admin_video_galleries eq 'y' or $tiki_p_admin eq 'y')}
{button _text="{tr}Remix{/tr}" href="tiki-kaltura_video.php?videoId=$videoId&action=remix" }
{if $entryType eq "media"}
{button _text="{tr}Remix{/tr}" href="tiki-kaltura_video.php?mediaId=$videoId&action=remix" }
{else}
{button _text="{tr}Remix{/tr}" href="tiki-kaltura_video.php?mixId=$videoId&action=remix" }
{/if}
{/if}
{if $mode eq 'remix' and $editor eq 'kse'}
{button _text="{tr}Advance Editor{/tr}" href="tiki-kaltura_video.php?videoId=$videoId&action=remix&editor=kae" }
{button _text="{tr}Advance Editor{/tr}" href="tiki-kaltura_video.php?mixId=$videoId&action=remix&editor=kae" }
{/if}
{if $mode eq 'remix' and $editor eq 'kae'}
{button _text="{tr}Simple Editor{/tr}" href="tiki-kaltura_video.php?videoId=$videoId&action=remix&editor=kse" }
{button _text="{tr}Simple Editor{/tr}" href="tiki-kaltura_video.php?mixId=$videoId&action=remix&editor=kse" }
{/if}
{/if}
</div>
<hr class="clear"/>
{capture name=upload_file assign=edit_info}
<div class="fgal_file">
<div class="fgal_file_c2">
<table width="100%">
<tr>
<td width="50%">
<object name="kaltura_player" id="kaltura_player" type="application/x-shockwave-flash" height="365" width="400" data="http://www.kaltura.com/index.php/kwidget/wid/{$prefs.kdpWidget}/uiconf_id/{$prefs.kdpUIConf}/entry_id/{$videoInfo.id}">
<td width="50%" align="center">
<object name="kaltura_player" id="kaltura_player" type="application/x-shockwave-flash" height="365" width="700" data="http://www.kaltura.com/index.php/kwidget/wid/{$prefs.kdpWidget}/uiconf_id/{$prefs.kdpUIConf}/entry_id/{$videoInfo->id}">
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="http://www.kaltura.com/index.php/kwidget/wid/{$prefs.kdpWidget}/uiconf_id/{$prefs.kdpUIConf}/entry_id/{$videoInfo.id}"/>
<param name="flashVars" value="entry_id={$videoInfo.id}"/>
<param name="movie" value="http://www.kaltura.com/index.php/kwidget/wid/{$prefs.kdpWidget}/uiconf_id/{$prefs.kdpUIConf}/entry_id/{$videoInfo->id}"/>
<param name="flashVars" value="entry_id={$videoInfo->id}"/>
<param name="wmode" value="opaque"/>
</object>
</td>
<td>
<table width="100%">
</tr>
</table>
<table width="100%" class="normal">
<tr>
<td>{tr}Video Title:{/tr}</td>
<td>
<td class="even">{tr}Video Title{/tr}</td>
<td class="even">
{if $mode eq 'edit'}
<input style="width:100%" type="text" name="name" {if $videoInfo.name}value="{$videoInfo.name}"{/if} size="40" />
<input style="width:100%" type="text" name="name" {if $videoInfo->name}value="{$videoInfo->name}"{/if} size="40" />
{else}
{$videoInfo.name}
{$videoInfo->name}
{/if}
</td>
</tr>
<tr>
<td>{tr}Description:{/tr}</td>
<td>
<td class="odd">{tr}Description{/tr}</td>
<td class="odd">
{if $mode eq 'edit'}
<textarea style="width:100%" rows="2" cols="40" name="description">{if $videoInfo.description}{$videoInfo.description}{/if}</textarea>
<textarea style="width:100%" rows="2" cols="40" name="description">{if $videoInfo->description}{$videoInfo->description}{/if}</textarea>
{else}
{$videoInfo.description}
{$videoInfo->description}
{/if}
</td>
</tr>
<tr>
<td>{tr}Tags:{/tr}</td>
<td>
<td class="even">{tr}Tags{/tr}</td>
<td class="even">
{if $mode eq 'edit'}
<input style="width:100%" type="text" name="tags" {if $videoInfo.tags}value="{$videoInfo.tags}"{/if} size="40" />
<input style="width:100%" type="text" name="tags" {if $videoInfo->tags}value="{$videoInfo->tags}"{/if} size="40" />
{else}
{$videoInfo.tags}
{$videoInfo->tags}
{/if}
</td>
</tr>
{if $mode eq 'view'}
<td>{tr}Duration:{/tr}</td>
<td>
{$videoInfo.duration}'s
</td>
<tr>
<td class="odd">{tr}Duration{/tr}</td>
<td class="odd">{$videoInfo->duration}s</td>
</tr>
<td>{tr}Views:{/tr}</td>
<td>
{$videoInfo.views}
</td>
<tr>
<td class="even">{tr}Views{/tr}</td>
<td class="even">{$videoInfo->views}</td>
</tr>
<td>{tr}Plays:{/tr}</td>
<td>
{$videoInfo.plays}
</td>
<tr>
<td class="odd">{tr}Plays{/tr}</td>
<td class="odd">{$videoInfo->plays}</td>
</tr>
{/if}
<input type="hidden" name="videoId" value="{$videoInfo.id}"/>
</table>
</td>
</tr>
</table>
</div>
</div>
{/capture}
{capture name=upload_file assign=new_entries}
<div class="fgal_file">
<div class="fgal_file_c2">
{section name=idx loop=$entries}
<table width="100%">
<tr><td width="50%"><img src="{$entries[idx].thumbnailUrl}"></img></td><td>
<table width="100%">
<tr>
<td>{tr}Video Title:{/tr}</td>
<td>
{$entries[idx].name}
</td>
</tr>
<tr>
<td>{tr}Description:{/tr}</td>
<td>
{$entries[idx].description}
</td>
</tr>
<tr>
<td>{tr}Tags:{/tr}</td>
<td>
{$entries[idx].tags}
</td>
</tr>
<tr>
</table>
</td></tr>
{/section}
<br>
</table>
<input type="hidden" name="{$entryType}Id" value="{$videoInfo->id}"/>
</table>
</div>
</div>
{/capture}
{capture name=upload_video assign=kcw}
<object id="kaltura_contribution_wizard" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all" height="360" width="680" data="http://www.kaltura.com/kcw/ui_conf_id/{$prefs.kcwUIConf}">
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="movie" value="http://www.kaltura.com/kcw/ui_conf_id/{$prefs.kcwUIConf}"/>
<param name="flashVars" value="{$cwflashVars}" />
</object>
{/capture}
{capture name=remix_video assign=edit_remix}
<object name="kaltura_player" id="kaltura_player" type="application/x-shockwave-flash" data="http://www.kaltura.com/{if $editor eq 'kae'}kae/ui_conf_id/{$prefs.kaeUIConf}" height="672" width="825" {else}kse/ui_conf_id/{$prefs.kseUIConf}" height="546" width="890"{/if}>
<param name="allowScriptAccess" value="always" />
......@@ -162,6 +120,7 @@
<div id="form">
<form action='tiki-kaltura_video.php' enctype='multipart/form-data' method='post' style='margin:0px; padding:0px'>
{$edit_info}
<input type="hidden" name="action" value="edit">
<input name="update" type="submit" value="{tr}Save{/tr}"/>
</form>
</div>
......@@ -173,36 +132,13 @@
<div>
{$edit_remix}
</div>
{elseif $mode eq 'new_entries'}
<div id="new_entries">
{$new_entries}
</div>
{else}
<div>
{$kcw}
<form name='kcw' id='kcw' action='tiki-kaltura_video.php' method='post' enctype='multipart/form-data' method='post' style='margin:0px; padding:0px'>
<input type="hidden" name="kcw" value="true"/>
<div id="kcw_entries">
</div>
</form>
</div>
{/if}
</div>
<script type="text/javascript">
{literal}
function afterAddEntry (entries) {
var tmp='';
for( var i = 0; i < entries.length; i++)
{
tmp += '<input type="hidden" name="entryId[]" value="'+entries[i].entryId+'"/>';
}
document.getElementById('kcw_entries').innerHTML = tmp;
document.kcw.submit();
}
function CloseClick(isModified) {
window.location="./tiki-list_kaltura_entries.php";
......@@ -216,6 +152,6 @@
window.location="./tiki-list_kaltura_entries.php";
}
{/literal}
</script>
</script>
<script src="http://cdn.jquerytools.org/1.0.2/jquery.tools.min.js"></script>
<script src="http://static.flowplayer.org/js/jquery.mousewheel.js"></script>
<link rel="stylesheet" type="text/css" href="http://static.flowplayer.org/tools/css/scrollable-horizontal.css" />
<link rel="stylesheet" type="text/css" href="http://static.flowplayer.org/tools/css/scrollable-buttons.css" />
{literal}
<style>
/* remove margins from the image */
.items img {
margin:0;
}
/* make A tags our floating scrollable items */
.items a {
display:block;
float:left;
margin:20px 15px;
}
</style>
<script language="javascript">
function loadMedia(entryId) {
$('#mykdp').get(0).insertMedia("entry-",entryId,'true');
}
</script>
<script>
// execute your scripts when the DOM is ready. this is a good habit
$(function() {
// initialize scrollable
$("div.scrollable").scrollable().find("a");
});
</script>
{/literal}
<br>
<br>
{if $entryType eq "mix"}
{button _text="{tr}Media Entries{/tr}" href="tiki-list_kaltura_entries.php?list=media" }
{button _text="{tr}List Entries{/tr}" href="tiki-list_kaltura_entries.php?list=mix" }
{else}
{button _text="{tr}Mix Entries{/tr}" href="tiki-list_kaltura_entries.php?list=mix" }
{button _text="{tr}List Entries{/tr}" href="tiki-list_kaltura_entries.php?list=media" }
{/if}
<br><br>
<table>
<tr><td>
<object name="mykdp" id="mykdp" type="application/x-shockwave-flash" height="365" width="685" data="http://www.kaltura.com/index.php/kwidget/wid/{$prefs.kdpWidget}/uiconf_id/{$prefs.kdpUIConf}/entry_id/{$videoInfo->id}">
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="http://www.kaltura.com/index.php/kwidget/wid/{$prefs.kdpWidget}/uiconf_id/1000106/entry_id/{$klist[0]->id}"/>
<param name="flashVars" value="entry_id={$klist[0]->id}"/>
<param name="wmode" value="opaque"/>
</object>
</td></tr>
<tr><td>
<div align="center">
<div class="navi"></div>
<a class="prev"></a>
<div class="scrollable">
<div class="items">
{foreach from=$klist key=key item=item}
<a href="#" onClick = "loadMedia('{$item->id}');" >
<img class="athumb" src={$item->thumbnailUrl} alt="{$item->description}" height="80" width="120"/>
</a>
{/foreach}
</div>
</div>
<a class="next"></a>
</div>
</div>
</td></tr>
</table>
{title}{tr}Kaltura Entries:{/tr}&nbsp;{$name}{/title}
{title}{if $entryType eq "mix"}{tr}Kaltura Remix Entries:{/tr}{else}{tr}Kaltura Media Entries:{/tr}{/if}{/title}
{capture name=other_sorts}{strip}
{capture name=other_sorts}{strip}
<div class='opaque'>
<div class='box-title'><b>{tr}Other Sorts{/tr}</b></div>
<div class='box-data'>
<a href="tiki-list_kaltura_entries.php?offset={$offset}&amp;sort_mode={if $sort_mode eq '-views'}asc_views{else}desc_views{/if}">{tr}Loads{/tr}</a></th>
<a href="tiki-list_kaltura_entries.php?list={$entryType}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq '-views'}asc_views{else}desc_views{/if}">{tr}Loads{/tr}</a></th>
<br />
<a href="tiki-list_kaltura_entries.php?offset={$offset}&amp;sort_mode={if $sort_mode eq '-plays'}asc_plays{else}desc_plays{/if}">{tr}Plays{/tr}</a></th>
<a href="tiki-list_kaltura_entries.php?list={$entryType}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq '-plays'}asc_plays{else}desc_plays{/if}">{tr}Plays{/tr}</a></th>
</div>
</div>
{/strip}{/capture}
<form method="post" action="{$smarty.server.PHP_SELF}" class="findtable">
{/strip}{/capture}
<form method="post" action="{$smarty.server.PHP_SELF}" class="findtable">
<label class="findtitle">
{tr}Find{/tr}
<input type="text" name="find" value="{$find|escape}" />
{tr}Find{/tr}
<input type="text" name="find" value="{$find|escape}" />
</label>
<label class="findsubmit">
<input type="submit" name="search" value="{tr}Go{/tr}" />
</label>
</form>
<br/>
<form action='tiki-kaltura_video.php' method='post'>
<input type="hidden" id="action" name="action" value="" />
<input type="submit" name="remix" value="{tr}Create Remix{/tr}" onClick="document.getElementById('action').value='remix';"/>
<input type="submit" name="delete" value="{tr}Delete{/tr}" onClick="document.getElementById('action').value='delete';"/>
<br><br>
<form action='tiki-list_kaltura_entries.php' method='post'>
<table class="normal">
</form>
{if $cant > 0}
<tr>
<th>&nbsp;</th>
<th>&nbsp;</th>
<th width="150"><a href="tiki-list_kaltura_entries.php?offset={$offset}&amp;sort_mode={if $sort_mode eq '-name'}asc_name{else}desc_name{/if}">{tr}Name{/tr}</a></th>
<th width="100"><a href="tiki-list_kaltura_entries.php?offset={$offset}&amp;sort_mode={if $sort_mode eq '-media_type'}asc_media_type{else}desc_media_type{/if}">{tr}Media Type{/tr}</a></th>
<th width="100"><a href="tiki-list_kaltura_entries.php?offset={$offset}&amp;sort_mode={if $sort_mode eq '-created_at'}asc_created_at{else}desc_created_at{/if}">{tr}Created{/tr}</a></th>
<th><a>{tr}Tags{/tr}</a></th>
<th width="100"><a href="tiki-list_kaltura_entries.php?offset={$offset}&amp;sort_mode={if $sort_mode eq '-modified_at'}asc_modified{else}desc_modified_at{/if}">{tr}Modified{/tr}</a></th>
<th><a>{tr}Version{/tr}</a></th>
<th><a href='#'{popup trigger="onClick" sticky=1 mouseoff=1 fullhtml="1" text=$smarty.capture.other_sorts|escape:"javascript"|escape:"html"} title='{tr}Other Sorts{/tr}'>{icon _id='timeline_marker' alt='{tr}Other Sorts{/tr}' title=''}</a></th>
</tr>
{foreach from=$entries key=key item=item}
<tr {if ($key % 2)}class="odd"{else}class="even"{/if}>
{capture name=actions}{strip}
<div class='opaque'>
<div class='box-title'><b>{tr}Actions{/tr}</b></div>
<div class='box-data'>
{if $tiki_p_view_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="tiki-kaltura_video.php?videoId={$item.id}"><div class ="iconmenu" ><img src="pics/icons/application_form_magnify.png" class="icon" />View</div></a>
{/if}
{if $tiki_p_edit_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="tiki-kaltura_video.php?videoId={$item.id}&action=edit"><div class ="iconmenu" ><img src="pics/icons/page_edit.png" class="icon"/>Change Details</div></a>
{/if}
{if $tiki_p_remix_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="tiki-kaltura_video.php?videoId={$item.id}&action=remix"><div class ="iconmenu" ><img src="pics/icons/layers.png" class="icon"/>Remix Video</div></a>
{if $item.mediaType == 6}
<a href="tiki-kaltura_video.php?videoId={$item.id}&action=dupl"><div class ="iconmenu" ><img src="pics/icons/layers.png" class="icon"/>Duplicate</div></a>
{/if}
{/if}
{if $tiki_p_download_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="{if $item.downloadUrl ne ''}{$item.downloadUrl}">{else}tiki-kaltura_video.php?videoId={$item.id}&action=download">{/if}<div class ="iconmenu" ><img src="pics/icons/disk.png" class="icon"/>Download</div></a>
{/if}
{if $tiki_p_delete_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="tiki-kaltura_video.php?videoId={$item.id}&action=delete"><div class ="iconmenu" ><img src="pics/icons/cross.png" class="icon"/>Delete</div></a>
{/if}
</div>
</div>
</div>
{/strip}{/capture}
<td><input type="checkbox" name="videoId[]" value="{$item.id}" /></td>
<td><a href="#" {popup trigger="onclick" sticky=1 fullhtml="1" text=$smarty.capture.actions|escape:"javascript"|escape:"html"}>
<img class="athumb" src={$item.thumbnailUrl} alt="{$item.description}" height="80" width="120"/></a></td>
<td><a href={$item.downloadUrl}>{$item.name}</a></td>
<td>{$item.mediaTypeAsString}</td>
<td>{$item.created}<br/><br/>Created By: {$item.puserId}</td>
<td height="100">{$item.tags}</td>
<td>{$item.modified}<br/><br/>
Modified By: {$item.modifiedBy}</td>
<td>{$item.version}</td>
{capture name=add_info}{strip}
<div class='opaque'>
<div class='box-title'><b>{tr}Additional Info{/tr}</b></div>
<div class='box-data'>
<br/>
{if $item.description eq ''}
{assign var=propval value="No Description"}
{else}
{assign var=propval value=$item.description}
{/if}
<b>Description</b>: {$propval}<br />
{if $item.duration eq ''}
{assign var=propval value=0}
{else}
{assign var=propval value=$item.duration}
{/if}
<b>Duration</b>: {$propval}s<br />
{if $item.views eq ''}
{assign var=propval value=0}
{else}
{assign var=propval value=$item.views}
{/if}
<b>Views</b>: {$propval}<br />
{if $item.plays eq ''}
{assign var=propval value=0}
{else}
{assign var=propval value=$item.plays}
{/if}
<b>Plays</b>: {$propval}<br />
{if $entryType eq "mix"}
</div>
</div>
{/strip}{/capture}
<td><a href="#" {popup trigger="onmouseover" fullhtml="1" text=$smarty.capture.add_info|escape:"javascript"|escape:"html" left=true}>{icon _id='information' class='' title=''}</a></td>
</tr>
{/foreach}
{if $view ne "browse"}
<form action='tiki-list_kaltura_entries.php?list=mix' method="post">
{button _text="{tr}Media Entries{/tr}" href="tiki-list_kaltura_entries.php?list=media" }
{button _text="{tr}Browse Entries{/tr}" href="tiki-list_kaltura_entries.php?list=mix&view=browse" }
<input type="submit" name="action" value="Delete"/>
<br><br>
{include file=tiki-list_kaltura_mix_entries.tpl}
</form>
{else}
<tr><td class="odd">{tr}No results to display{/tr}</td></tr>
{include file="tiki-list_kaltura_browse_entries.tpl"}
{/if}
</table>
<br />
{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links}
{else}
{if $view ne "browse"}
<form action="tiki-list_kaltura_entries.php?list=media" method="post" class="normal">
{button _text="{tr}Mix Entries{/tr}" href="tiki-list_kaltura_entries.php?list=mix" }
{button _text="{tr}Browse Entries{/tr}" href="tiki-list_kaltura_entries.php?list=media&view=browse" }
<input type="submit" name="action" value="Create Remix"/>
<input type="submit" name="action" value="Delete"/>
<br><br>
{include file=tiki-list_kaltura_media_entries.tpl}
</form>
{else}
{include file="tiki-list_kaltura_browse_entries.tpl"}
{/if}
{/if}
{if $view ne 'browse'}
{pagination_links cant=$cant step=$maxRecords offset=$offset}{/pagination_links}
{/if}
{capture name=actions}{strip}
<div class='opaque'>
<div class='box-title'><b>{tr}Actions{/tr}</b>
</div>
<div class='box-data'>
{if $tiki_p_view_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="tiki-kaltura_video.php?{$entryType}Id={$item->id}"><div class ="iconmenu" ><img src="pics/icons/application_form_magnify.png" class="icon" />View</div></a>
{/if}
{if $tiki_p_edit_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}
<a href="tiki-kaltura_video.php?{$entryType}Id={$item->id}&action=edit"><div class ="iconmenu" ><img src="pics/icons/page_edit.png" class="icon"/>Change Details</div></a>
{/if}
{if $tiki_p_remix_kaltura_entry eq 'y' or $tiki_p_admin_kaltura eq 'y' or $tiki_p_admin}