Files
MeDBia/videodb/templates/elegant/permissions.tpl
Malin f55c91276e feat: add videodb media index with Docker stack
- Add videodb PHP/MySQL media collection manager (Blu-ray, DVD, CD)
- Dockerfile: PHP 8.1 + Apache with GD/mysqli/exif extensions
- docker-compose.yml: app on port 6761 + MySQL 8.0 with health checks
- docker-entrypoint.sh: auto-generates config.inc.php from env vars,
  waits for MySQL, initializes DB schema idempotently
- init-db.php: CLI schema installer using app's own prefix_query() logic
- Persistent volumes for DB, cache, and cover images

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-11 09:49:52 +02:00

67 lines
1.7 KiB
Smarty

{*
Template for the permission management screen
$Id: permissions.tpl,v 1.4 2005/05/30 11:52:50 andig2 Exp $
*}
<!-- {$smarty.template} -->
{if $message}
<div id="actions">
<br/>
<div class="center">
{$message}
</div>
</div>
<!-- /actions -->
{else}
<div id="topspacer2"></div>
{/if}
<div id="content">
<div id="permissions">
<form action="permissions.php" method="post">
<table width="100%">
<tr>
<td colspan="3" class="left">
<h3>{$lang.permforuser} {html_options name=from_uid options=$owners selected=$from_uid onchange="submit()"}:</h3>
</td>
</tr>
<tr class="{cycle values="even,odd"}">
<th>{$lang.username}</th>
<th>{$lang.read}</th>
<th>{$lang.write}</th>
</tr>
{foreach item=perm from=$permlist}
<input type="hidden" name="newflag_{$perm.to_uid}" id="newflag_{$perm.to_uid}" value="{$perm.newentry}" />
<tr class="{cycle values="even,odd"}">
<td class="center">
{$perm.to_name}
</td>
<td class="center">
<input type="checkbox" name="readflag_{$perm.to_uid}" id="readflag_{$perm.to_uid}" value="1" {if $perm.read}checked="checked"{/if}/>
</td>
<td class="center">
<input type="checkbox" name="writeflag_{$perm.to_uid}" id="writeflag_{$perm.to_uid}" value="1" {if $perm.write}checked="checked"{/if}/>
</td>
</tr>
{/foreach}
</table>
<div id="permissionbuttons">
<input type="button" value="{$lang.back}" class="button" onclick="window.location.href='users.php';" accesskey="c" />
<input type="submit" name="save" value="{$lang.save}" class="button" accesskey="s" />
</div>
</form>
</div>
<!-- /permissions -->
</div>
<!-- /content -->