2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
show_header('Create a collage');
|
2011-10-27 08:00:15 +00:00
|
|
|
|
|
|
|
if (!check_perms('site_collages_renamepersonal')) {
|
|
|
|
$ChangeJS = 'OnChange="if ( this.options[this.selectedIndex].value == \'0\') { namebox.style.display = \'none\'; personal.style.display = \'inline\'; } else { namebox.style.display = \'inline\'; personal.style.display = \'none\'; }"';
|
|
|
|
}
|
2011-03-28 14:21:28 +00:00
|
|
|
?>
|
|
|
|
<div class="thin">
|
2011-10-27 08:00:15 +00:00
|
|
|
<form action="collages.php" method="post" name="newcollage">
|
2011-03-28 14:21:28 +00:00
|
|
|
<input type="hidden" name="action" value="new_handle" />
|
|
|
|
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
|
2011-10-27 08:00:15 +00:00
|
|
|
<table>
|
|
|
|
<tr id="collagename">
|
2011-03-28 14:21:28 +00:00
|
|
|
<td class="label"><strong>Name</strong></td>
|
|
|
|
<td>
|
2011-10-27 08:00:15 +00:00
|
|
|
<input type="text" name="name" size="60" id="namebox" />
|
|
|
|
<span id="personal" style="display: none; font-style: oblique"><strong><?=$LoggedUser['Username']?>'s personal collage</strong></span>
|
2011-03-28 14:21:28 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label"><strong>Category</strong></td>
|
|
|
|
<td>
|
2011-10-27 08:00:15 +00:00
|
|
|
<select name="category" <?=$ChangeJS?>>
|
2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
array_shift($CollageCats);
|
2011-10-27 08:00:15 +00:00
|
|
|
|
2011-03-28 14:21:28 +00:00
|
|
|
foreach($CollageCats as $CatID=>$CatName) { ?>
|
|
|
|
<option value="<?=$CatID+1?>"><?=$CatName?></option>
|
2011-10-27 08:00:15 +00:00
|
|
|
<? }
|
|
|
|
$DB->query("SELECT COUNT(ID) FROM collages WHERE UserID='$LoggedUser[ID]' AND CategoryID='0' AND Deleted='0'");
|
|
|
|
list($CollageCount) = $DB->next_record();
|
|
|
|
if(($CollageCount < $LoggedUser['Permissions']['MaxCollages']) && check_perms('site_collages_personal')) { ?>
|
|
|
|
<option value="0">Personal</option>
|
2011-03-28 14:21:28 +00:00
|
|
|
<? } ?>
|
|
|
|
</select>
|
|
|
|
<br />
|
|
|
|
<ul>
|
|
|
|
<li><strong>Theme</strong> - A collage containing releases that all relate to a certain theme (Searching for the perfect beat, for instance)</li>
|
|
|
|
<li><strong>Genre introduction</strong> - A subjective introduction to a Genre composed by our own users</li>
|
|
|
|
<li><strong>Discography</strong> - A collage containing all the releases of an artist, when that artist has a multitude of side projects</li>
|
|
|
|
<li><strong>Label</strong> - A collage containing all the releases of a particular record label</li>
|
|
|
|
<li><strong>Staff picks</strong> - A list of recommendations picked by the staff on special occasions</li>
|
|
|
|
<li><strong>Charts</strong> - A collage containing all the releases that comprise a certain chart (Billboard Top 100, Pitchfork Top 100, What.cd Top 10 for a certain week)</li>
|
2011-10-27 08:00:15 +00:00
|
|
|
<?
|
|
|
|
if(($CollageCount < $LoggedUser['Permissions']['MaxCollages']) && check_perms('site_collages_personal')) { ?>
|
|
|
|
<li><strong>Personal</strong> - You can put whatever your want here. It's your personal collage.</li>
|
|
|
|
<? } ?>
|
2011-03-28 14:21:28 +00:00
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">Description</td>
|
|
|
|
<td>
|
|
|
|
<textarea name="description" id="description" cols="60" rows="10"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label"><strong>Tags (comma-separated)</strong></td>
|
|
|
|
<td>
|
|
|
|
<input type="text" id="tags" name="tags" size="60" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="center">
|
|
|
|
<strong>Please ensure your collage will be allowed under the <a href="rules.php?p=collages">rules</a></strong>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" class="center"><input type="submit" value="Create collage" /></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<? show_footer(); ?>
|