yuesu/aspxadmin/controls/AllUpcon.ascx

(开头部分) 4KB

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

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AllUpcon.ascx.cs" Inherits="Mvcb2b.aspxadmin.controls.AllUpcon" %>
<script type="text/javascript">
    var editorpath = "<%=Webd%>editors/"
    //action="' + editorpath + 'uploadinc/Up.aspx?w=<%=Width%>&upid=<%=Upid %>&tablename=<%=Tablename %>
    function parentcfm<%=Upid %>(str, picid,extname) {
        //var imgstr = '<img src=&quot;' + str + '&quot; alt=&quot; &quot;  />'; //单引号 &apos; 双引号:&quot;
        var imgstr = '<img src="' + str + '" alt=""  />'; //单引号 &apos; 双引号:&quot;
        upinfoshow<%=Upid %>();
        try {
            InsertContent(imgstr); 
         }
        catch (Error) {
            alert("插入图片错误:" + Error.description);
        }
        finally { 
        }       
        //给picid_txt赋值
        var picid_txt = "#<%=picid_txt.ClientID %>";
        var picids = $(picid_txt).prop("value");
       if (picids == "" || picids == undefined) {
            picids = picid + ":" + str + ":"; ;
        }
        else
            picids += "," + picid + ":" + str + ":"; ;
        $(picid_txt).val(picids); //赋值完
        
        //以下显示信息
        var count = parseInt(document.getElementById("piccount<%=Upid %>").innerHTML);
        count++;
        document.getElementById("piccount<%=Upid %>").innerHTML = count;
       // document.getElementById("picinfo").innerHTML += '<li>图片编号: <span style="color:red">' + picid + '</span> <a href="#" onclick="InsertContent(\'' + imgstr + '\');">插入</a> <a href="#" onclick="delfun(' + picid + ');">删除</a></li>';
        document.getElementById("picinfo<%=Upid %>").innerHTML += "<li>图片编号: <span style='color:red'>" + picid + "</span>  <a href='javascript:void(0);' onclick='delfun<%=Upid %>(" + picid + ",this);'>删除</a></li>";
        
        
    }
    function upinfoshow<%=Upid %>() { $("#Uppic<%=Upid %>").css("display", ""); }
    
    //以下为删除图片
    function delfun<%=Upid %>(picid,obj) {
        if (confirm('确实要删除吗?')) {
            var count = parseInt(document.getElementById("piccount<%=Upid %>").innerHTML);
            count--;
            var picid_txt = "#<%=picid_txt.ClientID %>";
            var picids = $(picid_txt).prop("value");
            $.ajax({
                type: "POST",
                url: "jquery/delpic.aspx",
                dataType: "html",
                data: { "p": "" + picid + "", "ps": "" + picids + "","tablename": "<%=Tablename %>","upid": "<%=Upid%>"  }, //p,ps传输的参数
                success: function(html) {
                    if (html != "0") {
                        alert("删除成功!");
                        $(obj).parent().remove();
                        document.getElementById("piccount<%=Upid %>").innerHTML = count;
                        reduceid<%=Upid %>(picid);
                    }
                }, error: function(html) { alert("没有权限!"+html); }
            });
        }
   }
后面还有 43 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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