Gazelle/sections/tools/managers/dnu_list.php

66 lines
1.7 KiB
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
if(!check_perms('admin_dnu')) { error(403); }
show_header('Manage do not upload list');
$DB->query("SELECT
d.ID,
d.Name,
d.Comment,
d.UserID,
d.Time
FROM do_not_upload as d
LEFT JOIN users_main AS um ON um.ID=d.UserID
ORDER BY d.Time DESC");
?>
2012-08-19 08:00:19 +00:00
<div class="header">
<h2>Do Not Uploads</h2>
</div>
2011-03-28 14:21:28 +00:00
<table>
<tr class="colhead">
<td>Name</td>
<td>Comment</td>
<td>Added</td>
<td>Submit</td>
</tr>
2012-03-28 08:00:20 +00:00
<? while(list($ID, $Name, $Comment, $UserID, $DNUTime) = $DB->next_record()){ ?>
2011-03-28 14:21:28 +00:00
<tr>
2012-09-15 08:00:25 +00:00
<form class="manage_form" class="dnu" action="tools.php" method="post">
2011-03-28 14:21:28 +00:00
<td>
<input type="hidden" name="action" value="dnu_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<input type="hidden" name="id" value="<?=$ID?>" />
<input type="text" name="name" value="<?=display_str($Name)?>" size="30" />
</td>
<td>
<input type="text" name="comment" value="<?=display_str($Comment)?>" size="60" />
</td>
<td>
2012-03-28 08:00:20 +00:00
<?=format_username($UserID, false, false, false)?><br />
2011-03-28 14:21:28 +00:00
<?=time_diff($DNUTime, 1)?></td>
<td>
<input type="submit" name="submit" value="Edit" />
<input type="submit" name="submit" value="Delete" />
</td>
</form>
</tr>
<? } ?>
2012-09-01 08:00:24 +00:00
<tr class="colhead">
<td colspan="4">Add Do Not Upload</td>
2011-03-28 14:21:28 +00:00
</tr>
<tr class="rowa">
2012-09-15 08:00:25 +00:00
<form class="add_form" name="dnu" action="tools.php" method="post">
2011-03-28 14:21:28 +00:00
<input type="hidden" name="action" value="dnu_alter" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<td>
<input type="text" name="name" size="30" />
</td>
<td colspan="2">
<input type="text" name="comment" size="60" />
</td>
<td>
<input type="submit" value="Create" />
</td>
</form>
</tr>
</table>
2012-09-15 08:00:25 +00:00
<? show_footer(); ?>