- 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>
22 lines
608 B
Smarty
22 lines
608 B
Smarty
{assign var="chs" value=""}
|
|
{assign var="chl" value=""}
|
|
{foreach item=row from=$stats.count_genre}
|
|
{assign var="rowname" value=$row.name}
|
|
{assign var="rowcount" value=$row.count}
|
|
{assign var="rowid" value=$row.id}
|
|
|
|
{if $chs}{assign var="chs" value=$chs|cat:","}{/if}
|
|
{if $chl}{assign var="chl" value=$chl|cat:"|"}{/if}
|
|
|
|
{assign var="chs" value=$chs|cat:"$rowcount.0"}
|
|
{assign var="chl" value=$chl|cat:$rowname}
|
|
{/foreach}
|
|
CHS:{$chs}
|
|
CHL:{$chl}
|
|
http://chart.apis.google.com/chart?cht=p3&chd=s:hW&chs={$chs}&chl={$chl}
|
|
|
|
<img src="http://chart.apis.google.com/chart?cht=p3&chd=t:{$chs}&chl={$chl}" />
|
|
|
|
|
|
|