帝国CMS多集播放地址效果如下:
帝国CMS多集播放地址方法
打开:帝国后台--系统--数据表和系统模型--管理数据表,找到你要修改的数据表,点 管理字段
打开如下图:找到 onlinepath 字段:点修改
替换代码到如下图的地方:(代码文章底部提供)
<script> function dooadd() {var i; var str=""; var oldi=0; var j=0; oldi=parseInt(document.add.oeditnum.value); for(i=1;i<=document.add.odownnum.value;i++) { j=i+oldi; str=str+"<tr><td width=7%> <div align=center>"+j+"</div></td><td width=19%><div align=left><input name=odownname[] type=text value=第"+j+"集 size=17></div></td><td width=40%><input name=odownpath[] type=text size=36 id=odownpath"+j+" ondblclick=SpOpenChFile(0,'odownpath"+j+"')><select name=othedownqz[]><option value=''>--地址前缀--</option><?=$newdownqz?></select></td><td width=21%><div align=center><select name=odownuser[] id=select><option value=0>游客</option><?=$ygroup?></select></div></td><td width=13%><div align=center><input name=ofen[] type=text value=0 size=6></div></td></tr>"; } document.getElementById("addonline").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>"; } </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="25">观看地址前缀 : <input name="onlineurl_qz" type="text" size="32"> <select name="changeonlineurl_qz" onchange="document.add.onlineurl_qz.value=document.add.changeonlineurl_qz.value"> <option value="" selected>选择前缀</option> <?=$downurlqz?> </select> </td> </tr> <tr> <td height="25">选择/上传附件: <input name="changeonline_url" id="changeonline_url" type="text" size="32"> <input type="button" name="Submit" value="选择" onclick="window.open('ecmseditor/FileMain.php?type=0&classid=<?=$classid?>&infoid=<?=$id?>&filepass=<?=$filepass?>&sinfo=1&doing=1&field=changeonline_url<?=$ecms_hashur[ehref]?>','','width=700,height=550,scrollbars=yes');"> <input type="button" name="Submit" value="复制" onclick="document.getElementById('changeonline_url').focus();document.getElementById('changeonline_url').select();clipboardData.setData('text',document.getElementById('changeonline_url').value);"></td> </tr> <tr> <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5"> <tr> <td width="7%"> <div align="center">编号</div></td> <td width="19%"><div align="left">观看名称</div></td> <td width="40%">观看地址 <font color="#666666">(双击选择)</font></td> <td width="21%"> <div align="center">权限</div></td> <td width="13%"> <div align="center">点数</div></td> </tr> </table></td> </tr> <tr> <td> <?php if($ecmsfirstpost==1) { ?> <table width='100%' border=0 cellspacing=1 cellpadding=3> <?php $oeditnum=3; for($opathi=1;$opathi<=$oeditnum;$opathi++) { ?> <tr> <td width='7%'> <div align=center><?=$opathi?></div></td> <td width='19%'> <div align=left> <input name=odownname[] type=text value='第<?=$opathi?>集' size=17> </div></td> <td width='40%'> <input name=odownpath[] type=text id='odownpath<?=$opathi?>' size=36 ondblclick="SpOpenChFile(0,'odownpath<?=$opathi?>');"> <select name=othedownqz[]><option value=''>--地址前缀--</option><?=$newdownqz?></select> </td> <td width='21%'><div align=center> <select name=odownuser[] id=select> <option value=0>游客</option> <?=$ygroup?> </select> </div></td> <td width='13%'> <div align=center> <input name=ofen[] type=text id=ofen[] value=0 size=6> </div></td> </tr> <?php } ?> </table> <?php } else { $oeditnum=0; $onlinemoviepath=""; if($r[onlinepath]) { $j=0; $od_record=explode("rn",$r[onlinepath]); for($i=0;$i<count($od_record);$i++) { $j=$i+1; $od_field=explode("::::::",$od_record[$i]); //权限 $tgroup=str_replace(" value=".$od_field[2].">"," value=".$od_field[2]." selected>",$ygroup); //地址前缀 $tnewdownqz=str_replace(" value='".$od_field[4]."'>"," value='".$od_field[4]."' selected>",$newdownqz); $onlinemoviepath.="<tr><td width='7%'><div align=center>".$j."</div></td><td width='19%'><div align=left><input name=odownname[] type=text value='".$od_field[0]."' size=17></div></td><td width='40%'><input name=odownpath[] type=text value='".ehtmlspecialchars(stripSlashes($od_field[1]))."' size=36 id=odownpath".$j." ondblclick="SpOpenChFile(0,'odownpath".$j."');"><select name=othedownqz[]><option value=''>--地址前缀--</option>".$tnewdownqz."</select><input type=hidden name=opathid[] value=".$j."><input type=checkbox name=odelpathid[] value=".$j.">删</td><td width='21%'><div align=center><select name=odownuser[] id=select><option value=0>游客</option>".$tgroup."</select></div></td><td width='13%'><div align=center><input name=ofen[] type=text value='".$od_field[3]."' size=6></div></td></tr>"; } $oeditnum=$j; $onlinemoviepath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$onlinemoviepath."</table>"; } echo $onlinemoviepath; } ?> </td> </tr> <tr> <td height="25">在线地址扩展数量: <input name="oeditnum" type="hidden" id="oeditnum" value="<?=$oeditnum?>"> <input name="odownnum" type="text" id="odownnum" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dooadd();"></td> </tr> <tr> <td id=addonline></td> </tr> </table>