Admin/system/Product/edit.aspx
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ Page Title="" Language="C#" MasterPageFile="~/!/MasterPage.master" AutoEventWireup="true" CodeFile="edit.aspx.cs" Inherits="Product_edit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<script type="text/javascript">
var id = uap.request('$'), form, fileupload, carouselgrid, attrgrid, t = uap.request('t');
uap('uap-grid', '/!/inputform.css', 'kindeditor-min', 'swfupload', '/!/uploadFile.js', function () {
form = uap.form();
fileupload = $$("#fileupload1");
attrgrid = $$('#attrgrid');
carouselgrid = $$('#carouselgrid');
detail = KindEditor.create(
'#detail'
, {
uploadJson: '/com/upfile.ashx?isk=1&type=/images/product/detail'
, fileManagerJson: '?.ashx'
, allowPreviewEmoticons: false
, allowImageUpload: true
});
specifiy = KindEditor.create(
'#specifiy'
, {
uploadJson: '/com/upfile.ashx?isk=1&type=/images/product/specifiy'
, fileManagerJson: '?.ashx'
, allowPreviewEmoticons: false
, allowImageUpload: true
});
reload();
});
function reload() {
if (id != 0) {
uap.action('Get', { id: id }, function (s) {
var o = s.toJSON();
if (!o) return uap.alert('读取数据出错');
form.setData(o);
$$('imgname').setText(o.imgname);
specifiy.html(o.specifiy);
detail.html(o.details);
});
attrgrid.load({ 'productid': id });
carouselgrid.load({ 'productid': id });
if (t == 1) {
uap.asLabel(form, true);
$('#save').hide();
}
}
if (window.location.hostname.indexOf("localhost") > -1 && id == 0) {
form.setData({
code: '0001',
name: '华为10',
cost: 1000,
sale: 999,
isactive: 1,
isnew: 1,
ishot: 1,
typeid: 5,
});
}
}
后面还有 204 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。