if (!isset($_GET["firstedit"]) || $_GET["firstedit"] != "true") { ?> <div class="backDiv"> <a href="<?php echo KalturaHelpers::generateTabUrl(array('tab' => 'kaltura_browse')); ?> "><img src="<?php echo KalturaHelpers::getPluginUrl(); ?> /images/back.gif" alt="Back"/></a> </div> <?php } ?> <form method="post" class="kaltura-form" action="<?php echo KalturaHelpers::generateTabUrl(array("tab" => "kaltura_upload", "kaction" => "sendtoeditor", "firstedit" => "true", "entryIds" => $this->nextEntryIds)); ?> "> <table class="form-table"> <tr> <td valign="top" width="240"> <div class="kaltura-loader"></div> <div id="divKalturaPlayer"></div> <script type="text/javascript"> function updateRatio() { var ratio = jQuery("input[name=playerRatio]:checked").val(); if (ratio == "16:9") { jQuery("#playerWidthLarge").next().text("Large (400x290)"); jQuery("#playerWidthMedium").next().text("Small (260x211)"); }
function sendToEditor(entryIds, ignoreStatus) { if (!entryIds) { entryIds = getSelectedIds(); } if (entryIds.length == 0) { alert('<?php _e('Please select at least one item'); ?> '); return; } var url = "<?php echo KalturaHelpers::generateTabUrl(array("tab" => "kaltura_upload", "kaction" => "sendtoeditor", "firstedit" => "true")); ?> "; var entryIdsParams = '&entryIds[]='; entryIdsParams += entryIds.join('&entryIds[]='); url += entryIdsParams; window.location.href = url; } function refreshButtonsState() { if (jQuery('ul li input[type=checkbox]:checked').size() == 0) { jQuery('.options a').attr('disabled', true); } else { jQuery('.options a').removeAttr('disabled');
<?php } ?> <?php $page_links = paginate_links(array('base' => add_query_arg('paged', '%#%'), 'format' => '', 'total' => $this->totalPages, 'current' => $this->page)); if ($page_links) { echo "<div class=\"kaltura-pager\">{$page_links}</div>"; } ?> <ul id="kaltura-browse"> <?php foreach ($this->result->objects as $mediaEntry) { ?> <li> <?php $sendToEditorUrl = KalturaHelpers::generateTabUrl(array("tab" => "kaltura_browse", "kaction" => "sendtoeditor", "entryIds" => array($mediaEntry->id))); ?> <div id="entryId_<?php echo $mediaEntry->id; ?> " class="showName" title="<?php _e('Click to edit'); ?> "> <?php echo $mediaEntry->name; ?> <br /> </div> <div class="thumb">