Обновить query.cfm
This commit is contained in:
parent
9c9c3b1f58
commit
1e7bba6b0c
51
query.cfm
51
query.cfm
@ -11,40 +11,53 @@
|
|||||||
--nubes-grey: #F8F9FA;
|
--nubes-grey: #F8F9FA;
|
||||||
--nubes-border: #E5E7EB;
|
--nubes-border: #E5E7EB;
|
||||||
}
|
}
|
||||||
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background: var(--nubes-grey); color: var(--nubes-dark); }
|
body { font-family: 'Segoe UI', Tahoma, sans-serif; margin: 0; padding: 0; background: var(--nubes-grey); color: var(--nubes-dark); }
|
||||||
.header-bg { background: #fff; border-bottom: 1px solid var(--nubes-border); padding: 15px 0; margin-bottom: 40px; }
|
|
||||||
|
/* Фиксированная шапка */
|
||||||
|
.header-bg {
|
||||||
|
position: sticky; top: 0; z-index: 1000;
|
||||||
|
background: #fff; border-bottom: 1px solid var(--nubes-border);
|
||||||
|
padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
|
||||||
|
}
|
||||||
.container { max-width: 1000px; margin: auto; padding: 0 20px; }
|
.container { max-width: 1000px; margin: auto; padding: 0 20px; }
|
||||||
.header-content { display: flex; align-items: center; justify-content: space-between; }
|
.header-content { display: flex; align-items: center; justify-content: space-between; }
|
||||||
.logo { height: 40px; }
|
.logo { height: 40px; }
|
||||||
|
|
||||||
|
.main-content { padding: 40px 0; }
|
||||||
.card { background: #fff; padding: 32px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
|
.card { background: #fff; padding: 32px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
|
||||||
h1 { font-size: 24px; font-weight: 600; margin-top: 0; color: var(--nubes-dark); }
|
|
||||||
|
|
||||||
/* Стили кнопок nubes.ru */
|
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-flex; align-items: center; justify-content: center;
|
display: inline-flex; align-items: center; justify-content: center;
|
||||||
cursor: pointer; padding: 12px 24px; border: none; border-radius: 8px;
|
cursor: pointer; padding: 12px 24px; border: none; border-radius: 8px;
|
||||||
font-weight: 600; font-size: 14px; transition: all 0.2s; text-decoration: none;
|
font-weight: 600; font-size: 14px; transition: all 0.2s;
|
||||||
}
|
}
|
||||||
.btn-primary { background: var(--nubes-blue); color: #fff; }
|
.btn-primary { background: var(--nubes-blue); color: #fff; }
|
||||||
.btn-primary:hover { background: #004ED9; transform: translateY(-1px); }
|
.btn-primary:hover { background: #004ED9; }
|
||||||
|
|
||||||
.btn-action { padding: 8px; background: transparent; border: 1px solid var(--nubes-border); border-radius: 6px; }
|
/* Крупные иконки действий */
|
||||||
.btn-action:hover { background: #f0f2f5; }
|
.btn-action {
|
||||||
|
padding: 10px; background: #fff; border: 1px solid var(--nubes-border);
|
||||||
|
border-radius: 8px; font-size: 22px; line-height: 1; transition: all 0.2s;
|
||||||
|
cursor: pointer; min-width: 44px;
|
||||||
|
}
|
||||||
|
.btn-action:hover { background: var(--nubes-grey); border-color: var(--nubes-blue); }
|
||||||
|
|
||||||
.input-group { display: flex; gap: 12px; margin-bottom: 32px; }
|
.input-group { display: flex; gap: 12px; margin-bottom: 32px; }
|
||||||
input[type="text"] {
|
input[type="text"] {
|
||||||
flex-grow: 1; padding: 12px 16px; border: 1px solid var(--nubes-border);
|
flex-grow: 1; padding: 12px 16px; border: 1px solid var(--nubes-border);
|
||||||
border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s;
|
border-radius: 8px; font-size: 14px;
|
||||||
}
|
}
|
||||||
input[type="text"]:focus { border-color: var(--nubes-blue); }
|
|
||||||
|
|
||||||
|
/* Полосатая таблица */
|
||||||
table { width: 100%; border-collapse: collapse; }
|
table { width: 100%; border-collapse: collapse; }
|
||||||
th { text-align: left; padding: 16px; font-size: 12px; text-transform: uppercase; color: #6B7280; border-bottom: 1px solid var(--nubes-border); }
|
th { text-align: left; padding: 16px; font-size: 12px; text-transform: uppercase; color: #6B7280; }
|
||||||
td { padding: 16px; border-bottom: 1px solid var(--nubes-border); }
|
td { padding: 16px; border-bottom: 1px solid var(--nubes-border); }
|
||||||
|
|
||||||
|
tbody tr:nth-child(even) { background-color: #FAFBFC; } /* Полоски через одну */
|
||||||
|
tbody tr:hover { background-color: #F3F4F6; } /* Подсветка при наведении */
|
||||||
|
|
||||||
.id-cell { font-family: monospace; color: #9CA3AF; width: 50px; }
|
.id-cell { font-family: monospace; color: #9CA3AF; width: 50px; }
|
||||||
.actions-cell { display: flex; gap: 8px; width: 100px; }
|
.actions-cell { display: flex; gap: 10px; width: 120px; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -56,17 +69,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container main-content">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h1>Управление записями</h1>
|
|
||||||
|
|
||||||
<form method="post" class="input-group">
|
<form method="post" class="input-group">
|
||||||
<input type="hidden" name="crud_action" value="insert">
|
<input type="hidden" name="crud_action" value="insert">
|
||||||
<input type="text" name="txt_content" placeholder="Введите текст сообщения..." required>
|
<input type="text" name="txt_content" placeholder="Новое сообщение..." required>
|
||||||
<button type="submit" class="btn btn-primary">Добавить запись</button>
|
<button type="submit" class="btn btn-primary">Добавить</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<cfquery name="qGet" datasource="#request.DS#">SELECT * FROM nubes_test_table ORDER BY id DESC LIMIT 10</cfquery>
|
<cfquery name="qGet" datasource="#request.DS#">SELECT * FROM nubes_test_table ORDER BY id DESC LIMIT 20</cfquery>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -80,12 +91,12 @@
|
|||||||
<form method="post" id="upd_#id#" style="margin:0">
|
<form method="post" id="upd_#id#" style="margin:0">
|
||||||
<input type="hidden" name="crud_action" value="update">
|
<input type="hidden" name="crud_action" value="update">
|
||||||
<input type="hidden" name="id" value="#id#">
|
<input type="hidden" name="id" value="#id#">
|
||||||
<input type="text" name="txt_content" value="#HTMLEditFormat(test_data)#" style="width:100%; border:none; padding:4px;">
|
<input type="text" name="txt_content" value="#HTMLEditFormat(test_data)#" style="width:100%; border:none; background:transparent; padding:4px;">
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
<td class="actions-cell">
|
<td class="actions-cell">
|
||||||
<button type="submit" form="upd_#id#" class="btn-action" title="Сохранить">💾</button>
|
<button type="submit" form="upd_#id#" class="btn-action" title="Сохранить">💾</button>
|
||||||
<form method="post" style="margin:0" onsubmit="return confirm('Удалить запись?')">
|
<form method="post" style="margin:0" onsubmit="return confirm('Удалить?')">
|
||||||
<input type="hidden" name="crud_action" value="delete">
|
<input type="hidden" name="crud_action" value="delete">
|
||||||
<input type="hidden" name="id" value="#id#">
|
<input type="hidden" name="id" value="#id#">
|
||||||
<button type="submit" class="btn-action" title="Удалить">🗑</button>
|
<button type="submit" class="btn-action" title="Удалить">🗑</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user