1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 09:49:30 +02:00

Fix some list headers, remove innodb engines from sql update process and add themes preview images

This commit is contained in:
Afterster 2014-03-18 07:42:43 +01:00
parent 9abed639d8
commit 1804b17730
9 changed files with 118 additions and 110 deletions

View file

@ -1668,7 +1668,7 @@ class Update
"`date` int(11) unsigned NOT NULL DEFAULT '0'," .
"PRIMARY KEY (`id`)," .
"UNIQUE KEY `unique_userflag` (`user`,`object_type`,`object_id`)," .
"KEY `object_id` (`object_id`))";
"KEY `object_id` (`object_id`)) ENGINE = MYISAM";
return Dba::write($sql);
}
@ -1949,7 +1949,7 @@ class Update
"`date` int(11) unsigned NOT NULL DEFAULT '0'," .
"`accepted` tinyint(1) NOT NULL DEFAULT '0'," .
"PRIMARY KEY (`id`)," .
"UNIQUE KEY `unique_wanted` (`user`, `artist`,`mbid`))";
"UNIQUE KEY `unique_wanted` (`user`, `artist`,`mbid`)) ENGINE = MYISAM";
return Dba::write($sql);
}
@ -1971,7 +1971,7 @@ class Update
"`disk` int(11) NULL," .
"`track` int(11) NULL," .
"`file` varchar(255) CHARACTER SET utf8 NULL," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
return Dba::write($sql);
}
@ -2118,7 +2118,7 @@ class Update
"`lastvisit_date` int(11) unsigned NOT NULL DEFAULT '0'," .
"`public_url` varchar(255) CHARACTER SET utf8 NULL," .
"`description` varchar(255) CHARACTER SET utf8 NULL," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
Dba::write($sql);
$sql = "INSERT INTO `preference` (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
@ -2206,7 +2206,7 @@ class Update
"`stream_type` varchar(8) CHARACTER SET utf8 NOT NULL DEFAULT 'mp3'," .
"`bitrate` int(11) unsigned NOT NULL DEFAULT '128'," .
"`pid` int(11) unsigned NOT NULL DEFAULT '0'," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
return Dba::write($sql);
}
@ -2227,7 +2227,7 @@ class Update
"`started` tinyint(1) unsigned NOT NULL DEFAULT '0'," .
"`listeners` int(11) unsigned NOT NULL DEFAULT '0'," .
"`key` varchar(32) CHARACTER SET utf8 NULL," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
Dba::write($sql);
$sql = "CREATE TABLE `player_control` (" .
@ -2238,7 +2238,7 @@ class Update
"`object_type` varchar(32) NOT NULL," .
"`object_id` int(11) unsigned NOT NULL," .
"`send_date` int(11) unsigned NOT NULL DEFAULT '0'," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
return Dba::write($sql);
}
@ -2278,7 +2278,7 @@ class Update
"`object_type` varchar(32) NOT NULL," .
"`object_id` int(11) unsigned NOT NULL," .
"`last_update` int(11) unsigned NOT NULL DEFAULT '0'," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
Dba::write($sql);
$sql = "CREATE TABLE `recommendation_item` (" .
@ -2288,7 +2288,7 @@ class Update
"`name` varchar(256) NULL," .
"`rel` varchar(256) NULL," .
"`mbid` varchar(1369) NULL," .
"PRIMARY KEY (`id`))";
"PRIMARY KEY (`id`)) ENGINE = MYISAM";
Dba::write($sql);
return true;

View file

@ -32,7 +32,7 @@
<td class="cel_name"><?php echo $channel->name; ?></td>
<td class="cel_interface"><?php echo $channel->interface; ?></td>
<td class="cel_port"><?php echo $channel->port; ?></td>
<td class="cel_data"><?php echo $channel->get_target_object()->f_link; ?></td>
<td class="cel_data"><?php echo $channel->get_target_object()->f_name_link; ?></td>
<!--<td class="cel_random"><?php echo ($channel->random ? T_('Yes') : T_('No')); ?></td>
<td class="cel_loop"><?php echo ($channel->loop ? T_('Yes') : T_('No')); ?></td>-->
<td class="cel_streamtype"><?php echo $channel->stream_type; ?></td>

View file

@ -25,6 +25,7 @@ $web_path = AmpConfig::get('web_path');
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>
<form method="post" id="reorder_playlist_<?php echo $playlist->id; ?>">
<table id="reorder_playlist_table" class="tabledata" cellpadding="0" cellspacing="0">
<thead>
<tr class="th-top">
<th class="cel_play"></th>
<th class="cel_song"><?php echo T_('Song Title'); ?></th>
@ -46,7 +47,7 @@ $web_path = AmpConfig::get('web_path');
<th class="cel_action"><?php echo T_('Action'); ?></th>
<th class="cel_drag"></th>
</tr>
</thead>
<tbody id="sortableplaylist">
<?php foreach ($object_ids as $object) {
$song = new Song($object['object_id']);
@ -58,7 +59,7 @@ $web_path = AmpConfig::get('web_path');
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr class="th-bottom">
<th class="cel_play"><?php echo T_('Play'); ?></th>
<th class="cel_song"><?php echo T_('Song Title'); ?></th>
@ -76,6 +77,7 @@ $web_path = AmpConfig::get('web_path');
<th class="cel_action"><?php echo T_('Action'); ?></th>
<th class="cel_drag"></th>
</tr>
</tfoot>
</table>
</form>
<?php if ($browse->get_show_header()) require AmpConfig::get('prefix') . '/templates/list_header.inc.php'; ?>

View file

@ -24,6 +24,7 @@ $thcount = 8;
?>
<?php UI::show_box_top(T_('Similar Artists'), 'info-box'); ?>
<table class="tabledata" cellpadding="0" cellspacing="0">
<thead>
<tr class="th-top">
<th class="cel_play"></th>
<th class="cel_artist"><?php echo T_('Artist'); ?></th>
@ -40,6 +41,8 @@ $thcount = 8;
<?php } ?>
<th class="cel_action"> <?php echo T_('Action'); ?> </th>
</tr>
</thead>
<tbody>
<?php
// Cache the ratings we are going to use
if (AmpConfig::get('ratings')) { Rating::build_cache('artist',$object_ids); }
@ -69,6 +72,8 @@ $thcount = 8;
<td colspan="<?php echo $thcount; ?>"><span class="nodata"><?php echo T_('No similar artist found'); ?></span></td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr class="th-bottom">
<th class="cel_play"></th>
<th class="cel_artist"><?php echo T_('Artist'); ?></th>
@ -85,5 +90,6 @@ $thcount = 8;
<?php } ?>
<th class="cel_action"> <?php echo T_('Action'); ?> </th>
</tr>
</tfoot>
</table>
<?php UI::show_box_bottom(); ?>

BIN
themes/classic/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
themes/fresh/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
themes/greysme/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

BIN
themes/penguin/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
themes/reborn/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB