190ca51c1b
将状态判断条件从1改为2以匹配业务需求 更新SQL语句中的flag1字段为vip_saomiao字段 同时修改查询语句中的相应字段
79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="E3_ycsys.aspx.cs" Inherits="E3_ycsys" %>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<title>E3_ycsys</title>
|
|
<style>
|
|
body {
|
|
font-family: 'Microsoft YaHei', sans-serif;
|
|
background-color: #f5f5f5;
|
|
margin: 0;
|
|
padding: 20px;
|
|
}
|
|
.header {
|
|
background-color: #1890ff;
|
|
color: white;
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.feature-card {
|
|
background: white;
|
|
border-radius: 4px;
|
|
padding: 15px;
|
|
margin-bottom: 15px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.toggle-btn {
|
|
padding: 6px 18px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
border: none;
|
|
color: white;
|
|
}
|
|
.enable { background-color: #52c41a; }
|
|
.disable { background-color: #f5222d; }
|
|
/* 这里可能不需要额外的 <style> 标签,因为上方已经有一个 <style> 标签开始了样式定义,故移除多余的 <style> 标签 */
|
|
body {
|
|
font-size: 16px; /* 基础字体大小 */
|
|
}
|
|
.header h2 {
|
|
font-size: 24px; /* 标题字体大小 */
|
|
}
|
|
.feature-card {
|
|
font-size: 30px; /* 卡片内容字体大小 */
|
|
}
|
|
.feature-name {
|
|
font-size: 25px; /* 客户名称字体大小 */
|
|
font-weight: bold;
|
|
}
|
|
.toggle-btn {
|
|
font-size: 30px; /* 按钮字体大小 */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<h2>E3_ycsys</h2>
|
|
</div>
|
|
|
|
<asp:Repeater ID="FeaturesRepeater" runat="server">
|
|
<ItemTemplate>
|
|
<div class="feature-card">
|
|
<div>
|
|
<div style="font-weight: bold;"><%# Eval("khdm") %></div>
|
|
<div style="color: #666;"><%# Eval("khmc") %></div>
|
|
</div>
|
|
|
|
<%# (int)Eval("status") == 2 ?
|
|
"<a href='E3_ycsys.aspx?action=disable&id=" + Eval("khdm") + "' class='toggle-btn disable'>close</a>" :
|
|
"<a href='E3_ycsys.aspx?action=enable&id=" + Eval("khdm") + "' class='toggle-btn enable'>open</a>" %>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:Repeater>
|
|
</body>
|
|
</html> |