some redesign

This commit is contained in:
themohooks 2024-07-20 23:04:27 +03:00
parent ae98a78f99
commit db50e737ab
2 changed files with 23 additions and 30 deletions

View file

@ -4,14 +4,14 @@ use \App\Models\User;
?> ?>
<table class="table" style="margin-top: 15px;"> <table class="table" style="margin-top: 15px;">
<thead> <thead>
<tr class="sticky"> <tr>
<th class="c">ID</th> <th scope="col">ID</th>
<th class="c"></th> <th scope="col"></th>
<th class="c">Никнейм</th> <th scope="col">Никнейм</th>
<th class="c">Почта</th> <th scope="col">Почта</th>
<th class="c">Прямая загрузка</th> <th scope="col">Прямая загрузка</th>
<th class="c">Ссылка</th> <th scope="col">Ссылка</th>
<th class="c"></th> <th scope="col"></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -25,13 +25,13 @@ use \App\Models\User;
$prem = 'Нет'; $prem = 'Нет';
} }
echo '<tr> echo '<tr>
<th class="n">'.$u['id'].'</th> <th>'.$u['id'].'</th>
<td class="cs"><img src="'.$u['photourl'].'" width="35"></td> <td><img src="'.$u['photourl'].'" width="35"></td>
<td class="cs">'.$u['username'].'</td> <td>'.$u['username'].'</td>
<td class="cs">'.$u['email'].'</td> <td>'.$u['email'].'</td>
<td class="cs">'.$prem.'</td> <td>'.$prem.'</td>
<td class="cs"><a href="https://'.$_SERVER['SERVER_NAME'].'/author/'.$u['id'].'">https://'.$_SERVER['SERVER_NAME'].'/author/'.$u['id'].'</a></td> <td><a href="https://'.$_SERVER['SERVER_NAME'].'/author/'.$u['id'].'">https://'.$_SERVER['SERVER_NAME'].'/author/'.$u['id'].'</a></td>
<td class="cs"><div class="cmt-submit"><a href="/admin?type=UserEdit&user_id='.$u['id'].'">Редактировать</a></div></td> <td><div class="cmt-submit"><a href="/admin?type=UserEdit&user_id='.$u['id'].'">Редактировать</a></div></td>
</tr>'; </tr>';
} }
?> ?>

View file

@ -48,13 +48,12 @@ use \App\Models\User;
<div class="p20 s8" style="float:left; padding:1px 5px 2px; margin-right:15px">Удалено</div> <div class="p20 s8" style="float:left; padding:1px 5px 2px; margin-right:15px">Удалено</div>
</div><br clear="all"><br> </div><br clear="all"><br>
<div class="p20w" style="display:block"> <div class="p20w" style="display:block">
<table> <table class="table">
<tbody> <tbody>
<tr> <tr>
<th width="100">Изображение</th> <th width="100">Изображение</th>
<th width="90%">Информация</th> <th width="50%">Информация</th>
<th>Действия</th> <th>Действия</th>
<th class="c nw">Покинуло очередь</th>
</tr> </tr>
<?php <?php
@ -69,13 +68,13 @@ use \App\Models\User;
} }
$author = new User($p['user_id']); $author = new User($p['user_id']);
echo ' <tr class="'.$color.'"> echo ' <tr class="'.$color.'">
<td class="pb-photo pb_photo"> <td>
<a href="/photo/'.$p['id'].'/" target="_blank" class="prw"> <a href="/photo/'.$p['id'].'/" target="_blank" class="prw">
<img src="'.$p['photourl'].'" class="f"> <img src="'.$p['photourl'].'" class="f">
</a> </a>
</td> </td>
<td class="d"> <td>
<p><span style="word-spacing:-1px"><b>'.htmlspecialchars($p['place']).'</b></span></p> <p><span style="word-spacing:-1px"><b>'.htmlspecialchars($p['place']).'</b></span></p>
<p class="sm"><b>'.Date::zmdate($p['posted_at']).'</b><br>Автор: <a href="/author/'.$p['user_id'].'/">'.htmlspecialchars($author->i('username')).'</a></p> <p class="sm"><b>'.Date::zmdate($p['posted_at']).'</b><br>Автор: <a href="/author/'.$p['user_id'].'/">'.htmlspecialchars($author->i('username')).'</a></p>
@ -83,19 +82,15 @@ use \App\Models\User;
<td class="c"> <td class="c">
'; ';
if ($p['moderated'] === 0) { if ($p['moderated'] === 0) {
echo ' <div class="cmt-submit"><a href="/api/admin/images/setvisibility?id='.$p['id'].'&mod=1" id="sbmt">Принять</a></div><div style="font-size: 11px;"><a href="/api/admin/images/setvisibility?id='.$p['id'].'&mod=2" style="background-color:red !important; margin-top: 15px;" type="submit" id="sbmt">Отклонить</a></div>'; echo '<a href="/api/admin/images/setvisibility?id='.$p['id'].'&mod=1" class="btn btn-primary">Принять</a>
<a href="/api/admin/images/setvisibility?id='.$p['id'].'&mod=2" class="btn btn-danger">Отклонить</a>';
} }
echo ' echo '
</td>'; </td>';
if ($p['endmoderation'] === -1) { if ($p['endmoderation'] === -1) {
$endm = 'На модерации'; $endm = 'На модерации';
} else {
$endm = Date::zmdate($p['endmoderation']).'<div style="margin-top:15px">Оценка<br><b>И+ К+</b></div>';
} }
echo ' echo '
<td class="cs">'.$endm.'
</td>
</tr>'; </tr>';
} }
?> ?>
@ -107,6 +102,4 @@ use \App\Models\User;
</td> </td>
</tr> </tr>
<tr>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/Footer.php'); ?>
</tr>