yuesu/aspxadmin/controls/Upcondown.ascx

(开头部分) 9KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Upcondown.ascx.cs" Inherits="Mvcb2b.aspxadmin.controls.Upcondown" %>
<%string videodomain = Fun.VideoDomain; %>
<script type="text/javascript">
    var videodomain = "<%=videodomain%>";
    function parentcfmdown(str, downid,extname) {
        //var imgstr = '<img src=&quot;' + str + '&quot; alt=&quot; &quot;  />'; //单引号 &apos; 双引号:&quot;
        var imgstr = '<a href="' + webd + str + '" target="_blank">下载文件</a>'; //单引号 &apos; 双引号:&quot;
        if (str.indexOf(".mp3") > -1 || str.indexOf(".ogg") > -1 || str.indexOf(".wav") > -1) {
            var str1 = "";
            if (videodomain != "")
                str1 = videodomain + str;
            else
                str1 = webd + str
            imgstr = '<audio height="32" controls="controls" preload="none" src="' + str1 + '"></audio>'; ;
        }
        if (str.indexOf(".mp4") > -1 || str.indexOf(".ogg") > -1 || str.indexOf(".webm") > -1) {
            var str2 = "";
            if (videodomain != "")
                str2 = videodomain + str;
            else
                str2 = webd + str
            imgstr = '<video height="360" controls="controls" preload="none" src="' + str2 + '"></video>';
        }
        upinfodownshow();
        try {
            InsertContent(imgstr); 
         }
        catch (Error) {
            alert("上传文件错误:" + Error.description);
        }
        finally { 
        }       
        //给downid_txt赋值
        var downid_txt = "#<%=downid_txt.ClientID %>";
        var downids = $(downid_txt).prop("value");
        if (downids == "" || downids == undefined) {
            downids = downid + ":" + str + "::"; ;
        }
        else
            downids += "," + downid + ":" + str + "::"; ;
        $(downid_txt).val(downids); //赋值完
        
        //以下显示信息
        var count = parseInt(document.getElementById("downcount").innerHTML);
        count++;
        document.getElementById("downcount").innerHTML = count;
        var inputstr = '<input type="text" class="down" value="下载文字说明" name="downname_' + downid + '" id="downname_' + downid + '" />';
        var updatestr = " <a href='javascript:void(0);' id='updatedownname_" + downid + "' style='display:none;' class='updatedown' onclick='updatedownname(" + downid + ");'>更新</a>";
        // document.getElementById("downinfo").innerHTML += '<li>图片编号: <span style="color:red">' + downid + '</span> <a href="#" onclick="InsertContent(\'' + imgstr + '\');">插入</a> <a href="#" onclick="delfun(' + downid + ');">删除</a></li>';

        var mp3str = "";
        if (str.indexOf(".mp3") > -1 || str.indexOf(".ogg") > -1 || str.indexOf(".wav") > -1) {
            mp3str = " <a href='javascript:void(0);' onclick='insertdownmp3(\"" + downid + "\",\"" + str + "\",\"\");'>插入音频</a>";
        }
        var mp4str = "";
        if (str.indexOf(".mp4") > -1 || str.indexOf(".ogg") > -1 || str.indexOf(".webm") > -1) {
            mp4str = " <a href='javascript:void(0);' onclick='insertdownmp4(\"" + downid + "\",\"" + str + "\",\"\");'>插入视频</a>";
        }

        $("#downinfo").append("<li>文件编号: <span style='color:red'>" + downid + "</span>  " + inputstr + updatestr + mp3str + mp4str + " <a href='javascript:void(0);' onclick='insertdown(\"" + downid + "\",\"" + str + "\",\"\");'>插入下载</a> <a href='javascript:void(0);' onclick='delfundown(" + downid + ",this);'>删除</a></li>");
后面还有 154 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。