119 lines
5.4 KiB
Plaintext
119 lines
5.4 KiB
Plaintext
<%@ Page CodeBehind="insertimage0.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Mtxfw.VipSite.insertimage0" %>
|
|
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" >
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>²åÈëͼƬ</TITLE>
|
|
<style type="text/css">*{ margin:0;padding:0;}</style>
|
|
<link rel="stylesheet" type="text/css" href="/css/cjadd.css">
|
|
<script src="/Scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
|
|
<script src="/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
|
|
<script src="/artDialog/iframeTools.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
function showbox(d) {
|
|
$(".imagebox h3 a").removeClass("visited");
|
|
$(".imagebox h3 a#a" + d).addClass("visited");
|
|
$(".insertbox").hide();
|
|
$(".insertbox#insertbox" + d).show();
|
|
if (d == 2) {
|
|
|
|
$("#showimage2").html("<li id='showLoaderpic'><img src='/images/ajaxLoader.gif' /></li>");
|
|
var pics = "";
|
|
$.post("/artDialog/net/imageManager.ashx", { action: "get" }, function (data) {
|
|
if (data != "") {
|
|
|
|
var datas = data.split("ue_separate_ue");
|
|
for (var i = 0; i < datas.length; i++) {
|
|
if (datas[i] != "") {
|
|
pics += "<li onclick='selectimage(\"image" + i + "\")' id='image" + i + "' pic='" + datas[i].replace("Files/Image/", "") + "'><img src='/GetFiles.ashx?image=" + datas[i].replace("Files/Image/", "") + "&itsize=100x100&itmode=cut' width='100' /><em></em></li>";
|
|
}
|
|
}
|
|
|
|
$("#showimage2").html(pics);
|
|
} else {
|
|
alert("»ñÈ¡´íÎó");
|
|
$("#showimage2").html("");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
function selectimage(id) {
|
|
$("#"+id).toggleClass("selected");
|
|
}
|
|
function qydelete(id) {
|
|
var pics = $("#showimage" + id + " li.selected");
|
|
var delpics = "";
|
|
if (pics.length > 0) {
|
|
for (var i = 0; i < pics.length; i++) {
|
|
delpics += $(pics[i]).attr("pic") + ",";
|
|
}
|
|
$.post("/artDialog/net/imageManager.ashx", { action: "del", delpics: escape(delpics) }, function (data) {
|
|
|
|
if (data == "true") {
|
|
|
|
var pics = $("#showimage" + id + " li.selected");
|
|
for (var i = 0; i < pics.length; i++) {
|
|
$(pics[i]).hide();
|
|
}
|
|
|
|
|
|
} else {
|
|
alert("ɾ³ýʧ°Ü");
|
|
}
|
|
});
|
|
} else {
|
|
alert("Äú»¹Ã»ÓÐÑ¡ÔñͼƬ");
|
|
}
|
|
}
|
|
function qx() {
|
|
art.dialog.close();
|
|
}
|
|
function qyinsert(d) {
|
|
var pics = $("#showimage" + d + " li.selected");
|
|
var delpics = "";
|
|
if (pics.length > 0) {
|
|
|
|
var d = $(window.parent.document);
|
|
<%if (t == 0)
|
|
{%>
|
|
if (pics.length == 1) {
|
|
d.find("#addimagebox_box<%=id %> #hiddenphoto").val($(pics[0]).attr("pic"));
|
|
var strPhoto = d.find("#addimagebox_box<%=id %> #hiddenphoto").val();
|
|
d.find("#addimagebox_box<%=id %> .uploadimage img").attr("src", (strPhoto.indexOf("http")!=-1?strPhoto:"/GetFiles.ashx?image=" + strPhoto + "&itsize=100x100&itmode=cut"));
|
|
pics.removeClass("selected");
|
|
art.dialog.close();
|
|
} else {
|
|
alert("Ö»ÄÜÑ¡Ôñ1ÕÅͼƬ");
|
|
}
|
|
<%}
|
|
else
|
|
{%>
|
|
var html = "";
|
|
for (var i = 0; i < pics.length; i++) {
|
|
html += "<img src=\"" + ($(pics[i]).attr("pic").indexOf("http")!=-1?$(pics[i]).attr("pic"):$(pics[i]).attr("pic")) + "\" />";
|
|
}
|
|
window.parent.insertHtml(html);
|
|
art.dialog.close();
|
|
<%}%>
|
|
} else {
|
|
alert("Äú»¹Ã»ÓÐÑ¡ÔñͼƬ");
|
|
}
|
|
}
|
|
</script>
|
|
</HEAD>
|
|
<BODY>
|
|
<div class="imagebox"><h3><a href="javascript:void()" id="a1" class="visited" onclick="showbox(1)">±¾µØÉÏ´«</a><!--<a href="javascript:void()" id="a2" onclick="showbox(2)">ÔÚÏß¹ÜÀí</a>--></h3>
|
|
<div id="insertbox1" class="insertbox">
|
|
|
|
<div class="insertbody"><input name="IFUpload2" id="IFUpload2" type="hidden" value="0" /><input name="UploadNum" id="UploadNum" type="hidden" value="0" /><iframe marginwidth="0" framespacing="0" marginheight="0" frameborder="0" name="uploadframe2" id="uploadframe2"
|
|
src='Photo_upload2.aspx' scrolling="no" width="578" height="50" ></iframe></div>
|
|
<div class="insertedbox"><ul class="showimage" id="showimage1"></ul></div>
|
|
<div class="insertbutton"><input id="qydelete1" type="button" value="ɾ³ý" onclick="qydelete(1)" class="btnccc" /><input id="qx1" type="button" value="È¡Ïû" onclick="qx()" class="btnccc" /><input id="qyinsert1" type="button" value="²åÈëͼƬ" onclick="qyinsert(1)" /></div>
|
|
</div>
|
|
<div id="insertbox2" class="insertbox" style=" display:none;">
|
|
<div class="showbox"><ul class="showimage" id="showimage2"></ul></div>
|
|
<div class="insertbutton"><input id="qydelete2" type="button" value="ɾ³ý" onclick="qydelete(2)" class="btnccc" /><input id="qx2" type="button" value="È¡Ïû" onclick="qx()" class="btnccc" /><input id="qyinsert2" type="button" value="²åÈëͼƬ" onclick="qyinsert(2)" /></div>
|
|
</div>
|
|
</div>
|
|
</BODY>
|
|
</HTML>
|