<?php
extract(tex('texFile')->fopPars(), EXTR_OVERWRITE);
/*
$html = file_get_contents('http://api.tudou.com/v3/gw?method=item.search&appKey=myKey&format=json&kw='.$key.'&pageNo=1&pageSize=20&channelId='.$type.'&inDays=7&media=v&sort=s');
echo $html;
*/
tex('texFile')->fopHead('media',lang('plus.fop_mdtitle'));
?>
<form name="media" id="media" method="post" action="">
<table width="80%" border="1" align="center" class="tbdata">
<tr>
<td width="20%" align="center"><?php lang('plus.fop_mdtype',0); ?>: </td>
<td><select name="type" id="type" onChange="mediaChange()">
<?php echo basElm::setOption(vopMedia::cfgTypes(),''); ?>
</select></td>
</tr>
<tr id="r_url" style="display:none">
<td align="center"><?php lang('plus.fop_mdadd',0); ?>: </td>
<td><input type="text" name="url" id="url" class="w360"></td>
</tr>
<tr id="r_map" style="display:none">
<td align="center"><?php lang('plus.fop_piont',0); ?>: </td>
<td>
<input id='map' name='map' type='text' value='' class='txt w300' maxlength='36' />
<span class='fldicon fmap' onClick="mapPick('<?php echo $_cbase['sys_map']; ?>','map',620,460);"> </span>
</td>
</tr>
<tr id="r_ext">
<td align="center"><span id="ext_flag"><?php lang('plus.fop_expar',0); ?></span>: </td>
<td>
<input id='ext' name='ext' type='text' value='' class='txt w360' maxlength='36' />
</td>
</tr>
<tr>
<td align="center"><?php lang('plus.fop_size',0); ?>: </td>
<td><input name="pw" type="text" class="w50" id="pw">
x
<input type="text" class="w50" name="ph" id="ph">
<?php lang('plus.fop_defsize',0); ?>(480x360)px</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="button" name="button" id="button" value="<?php lang('plus.fop_btnok',0); ?>" onClick="mediaInsert()">
<input type="reset" name="button2" id="button2" value="<?php lang('plus.fop_cancel',0); ?>"></td>
</tr>
<tr>
<td colspan="2"><?php lang('plus.fop_note',0); ?>:
</tr>
</table>
</form>
<script>
var fidForPick = '<?php echo $fid; ?>';
var otype = jsElm.jeID('type');
</script>
</body>
</html>