function get_cw_properties_pane($entry, $type) { $designes = KalturaHelpers::getDesigns($type); $javascript = ' <style type="text/css"> #slctDesign { width: 121px; } #inpCustomWidth { width: 60px; } #inpTitle { width: 238px; } </style> <div id="divClipProps" style="display:none"> <div id="divClip"> </div> <div id="divUserSlected" style="margin-left: 416px;margin-top: -320px"> <p> <span style="font-weight:bold;">' . get_string("title", "kaltura") . '</span> <input id="inpTitle" title="Title:" type="text" value="' . $entry->title . '"/></p> <script type="text/javascript"> if (document.getElementById("inpTitle").value == "") { document.getElementById("inpTitle").value = get_field("id_name"); } </script> <div id="divDesign" style="width: 350px; margin-top: 40px"> <span style="font-weight:bold;">' . get_string("playerdesign", "kaltura") . '</span> <select id="slctDesign" name="slctDesign" onchange="change_entry_player();">'; foreach ($designes as $desKey => $desValue) { $javascript .= '<option value="' . $desKey . '"' . ($entry->design == $desKey ? 'selected' : '') . '>' . $desValue . '</option>'; } $javascript .= ' </select> </div> <div id="divDim" style="margin: 40px 0px 0px 0px; width: 350px"> <table><tr><td valign="top" style="font-weight:bold;">' . get_string("playerdimensions", "kaltura") . '</td><td valign="top"> <input id="dimNorm" ' . ($entry->dimensions == KalturaAspectRatioType::ASPECT_4_3 ? 'checked="checked"' : '') . ' name="grpDimension" type="radio" onclick="update_field(\'id_dimensions\',\'' . KalturaAspectRatioType::ASPECT_4_3 . '\', false, \'\');document.getElementById(\'lrgPlayer\').innerHTML=\'365\';document.getElementById(\'smlPlayer\').innerHTML=\'260\'" />' . get_string("normal", "kaltura") . ' <p><input id="dimWide" ' . ($entry->dimensions == KalturaAspectRatioType::ASPECT_16_9 ? 'checked="checked"' : '') . ' name="grpDimension" type="radio" onclick="update_field(\'id_dimensions\',\'' . KalturaAspectRatioType::ASPECT_16_9 . '\', false, \'\');document.getElementById(\'lrgPlayer\').innerHTML=\'290\';document.getElementById(\'smlPlayer\').innerHTML=\'211\'" />' . get_string("widescreen", "kaltura") . '</p></td></tr></table> </div> <div id="divSize" style="margin: 40px 0px 0px 0px; width: 350px"> <table><tr><td valign="top" style="font-weight:bold;">' . get_string("playersize", "kaltura") . '</td><td valign="top"> <input id="sizeLarge" ' . ($entry->size == KalturaPlayerSize::LARGE ? 'checked="checked"' : '') . ' name="grpSize" type="radio" onclick="update_field(\'id_size\',\'' . KalturaPlayerSize::LARGE . '\', false, \'\')" />' . get_string("largeplayer", "kaltura") . ' <p> <input id="sizeSmall" ' . ($entry->size == KalturaPlayerSize::SMALL ? 'checked="checked"' : '') . ' name="grpSize" type="radio" onclick="update_field(\'id_size\',\'' . KalturaPlayerSize::SMALL . '\', false, \'\')" />' . get_string("smallplayer", "kaltura") . '</p> <p> <input id="sizeCustom" ' . ($entry->size == KalturaPlayerSize::CUSTOM ? 'checked="checked"' : '') . ' name="grpSize" type="radio" onclick="update_field(\'id_size\',\'' . KalturaPlayerSize::CUSTOM . '\', false, \'\')" />' . get_string("customwidth", "kaltura") . ' <input id="inpCustomWidth" type="text" value="' . ($entry->size == KalturaPlayerSize::CUSTOM ? $entry->custom_width : '') . '" onfocus="document.getElementById(\'sizeCustom\').checked=true;update_field(\'id_size\',\'' . KalturaPlayerSize::CUSTOM . '\', false, \'\')"/></p></td></tr></table> </div> </div> <div id="divButtons" style="height:100px; margin-top: 20px; width:760px; text-align:center;"> <input id="btnInserResource" type="button" value="' . get_string("insertintopost", "kaltura") . '" onclick="insert_into_post();"/> <input id="btnCancelResource" type="button" value="' . get_string("cancelpost", "kaltura") . '" onclick="setTimeout(\'window.parent.kalturaCloseModalBox();\',0);"/> </div> </div>'; return $javascript; }