yuesu/aspxadmin/controls/CorpUpcon.ascx

(开头部分) 4KB

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

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CorpUpcon.ascx.cs" Inherits="Mvcb2b.aspxadmin.controls.CorpUpcon" %>
<script type="text/javascript">
    var myimgs = new Array(1);  //图片数组
    function parentcfm(str, picid) {
        //var imgstr = '<img src=&quot;' + str + '&quot; alt=&quot; &quot;  />'; //单引号 &apos; 双引号:&quot;
        var imgstr = '<img src="' + str + '" alt=""  />'; //单引号 &apos; 双引号:&quot;
        upinfoshow();
        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;
        else
            picids += "," + picid;
        $(picid_txt).val(picids); //赋值完
        
        //以下显示信息
        var count = parseInt(document.getElementById("piccount").innerHTML);
        count++;
        document.getElementById("piccount").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").innerHTML += "<li>图片编号: <span style='color:red'>" + picid + "</span>  <a href='#' onclick='delfun(" + picid + ");'>删除</a></li>";
        
        
    }
    function upinfoshow() { $("#Uppic").css("display", ""); }
    
    //以下为删除图片
    function delfun(picid) {
        if (confirm('确实要删除吗?')) {
            var count = parseInt(document.getElementById("piccount").innerHTML);
            count--;
            var picid_txt = "#<%=picid_txt.ClientID %>";
            var picids = $(picid_txt).prop("value");
            $.ajax({
                type: "POST",
                url: "jquery/CorpDelpic.aspx",
                dataType: "html",
                data: { "p": "" + picid + "", "ps": "" + picids + "" }, //p,ps传输的参数
                success: function(html) {
                    if (html != "0") {
                        $(picinfo).html(html);
                        document.getElementById("piccount").innerHTML = count;
                        reduceid(picid);
                    }
                }, error: function(html) { alert("error-$.ajax"); }
            });
        }
   }
   function reduceid(picid) {
           var picid_txt = "#<%=picid_txt.ClientID %>";
           var picids = $(picid_txt).prop("value");
后面还有 39 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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