帝国CMS多集播映地址作用如下:

帝国CMS多集播映地址办法

翻开:帝国后台--体系--数据表和体系模型--办理数据表,找到你要修正的数据表,点 办理字段

翻开如下图:找到onlinepath 字段:点修正

替换代码到如下图的当地:(代码文章底部供给)

<script>
functiondooadd()
{vari;
varstr="";
varoldi=0;
varj=0;
oldi=parseInt(document.add.oeditnum.value);
for(i=1;i<=document.add.odownnum.value;i++)
{
j=i+oldi;
str=str+"<tr><tdwidth=7%><palign=center>"+j+"</p></td><tdwidth=19%><palign=left><inputname=odownname[]type=textvalue=第"+j+"集size=17></p></td><tdwidth=40%><inputname=odownpath[]type=textsize=36id=odownpath"+j+"ondblclick=SpOpenChFile(0,'odownpath"+j+"')><selectname=othedownqz[]><optionvalue=''>--地址前缀--</option><?=$newdownqz?></select></td><tdwidth=21%><palign=center><selectname=odownuser[]id=select><optionvalue=0>游客</option><?=$ygroup?></select></p></td><tdwidth=13%><palign=center><inputname=ofen[]type=textvalue=0size=6></p></td></tr>";
}
document.getElementById("addonline").innerHTML="<tablewidth='100%'border=0cellspacing=1cellpadding=3>"+str+"</table>";
}
</script>
<tablewidth="100%"border="0"cellspacing="0"cellpadding="0">
<tr>
<tdheight="25">观看地址前缀&nbsp;:
<inputname="onlineurl_qz"type="text"size="32"><selectname="changeonlineurl_qz"onchange="document.add.onlineurl_qz.value=document.add.changeonlineurl_qz.value">
<optionvalue=""selected>挑选前缀</option>
<?=$downurlqz?>
</select>
</td>
</tr>
<tr>
<tdheight="25">挑选/上传附件:
<inputname="changeonline_url"id="changeonline_url"type="text"size="32"><inputtype="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');">&nbsp;
<inputtype="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><tablewidth="100%"border="0"cellpadding="3"cellspacing="1"bgcolor="#DBEAF5">
<tr>
<tdwidth="7%"><palign="center">编号</p></td>
<tdwidth="19%"><palign="left">观看称号</p></td>
<tdwidth="40%">观看地址<fontcolor="#666666">(双击挑选)</font></td>
<tdwidth="21%"><palign="center">权限</p></td>
<tdwidth="13%"><palign="center">点数</p></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<?php
if($ecmsfirstpost==1)
{
?>
<tablewidth='100%'border=0cellspacing=1cellpadding=3>
<?php
$oeditnum=3;
for($opathi=1;$opathi<=$oeditnum;$opathi++)
{
?>
<tr>
<tdwidth='7%'><palign=center><?=$opathi?></p></td>
<tdwidth='19%'><palign=left>
<inputname=odownname[]type=textvalue='第<?=$opathi?>集'size=17>
</p></td>
<tdwidth='40%'>
<inputname=odownpath[]type=textid='odownpath<?=$opathi?>'size=36ondblclick="SpOpenChFile(0,'odownpath<?=$opathi?>');">
<selectname=othedownqz[]><optionvalue=''>--地址前缀--</option><?=$newdownqz?></select>
</td>
<tdwidth='21%'><palign=center>
<selectname=odownuser[]id=select>
<optionvalue=0>游客</option>
<?=$ygroup?>
</select>
</p></td>
<tdwidth='13%'><palign=center>
<inputname=ofen[]type=textid=ofen[]value=0size=6>
</p></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><tdwidth='7%'><palign=center>".$j."</p></td><tdwidth='19%'><palign=left><inputname=odownname[]type=textvalue='".$od_field[0]."'size=17></p></td><tdwidth='40%'><inputname=odownpath[]type=textvalue='".ehtmlspecialchars(stripSlashes($od_field[1]))."'size=36id=odownpath".$j."ondblclick="SpOpenChFile(0,'odownpath".$j."');"><selectname=othedownqz[]><optionvalue=''>--地址前缀--</option>".$tnewdownqz."</select><inputtype=hiddenname=opathid[]value=".$j."><inputtype=checkboxname=odelpathid[]value=".$j.">删</td><tdwidth='21%'><palign=center><selectname=odownuser[]id=select><optionvalue=0>游客</option>".$tgroup."</select></p></td><tdwidth='13%'><palign=center><inputname=ofen[]type=textvalue='".$od_field[3]."'size=6></p></td></tr>";
}
$oeditnum=$j;
$onlinemoviepath="<tablewidth='100%'border=0cellspacing=1cellpadding=3>".$onlinemoviepath."</table>";
}
echo$onlinemoviepath;
}
?>
</td>
</tr>
<tr>
<tdheight="25">在线地址扩展数量:<inputname="oeditnum"type="hidden"id="oeditnum"value="<?=$oeditnum?>">
<inputname="odownnum"type="text"id="odownnum"value="1"size="6"><inputtype="button"name="Submit5"value="输出地址"onclick="javascript:dooadd();"></td>
</tr>
<tr>
<tdid=addonline></td>
</tr>
</table>


声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!

原文地址:帝国CMS二次开发多集播放地址方法发布于2022-06-15 07:43:54

相关推荐