2011-03-28 14:21:28 +00:00
< ?
2012-10-11 08:00:15 +00:00
View :: show_header ( 'Create a collage' );
2011-10-27 08:00:15 +00:00
if ( ! check_perms ( 'site_collages_renamepersonal' )) {
2013-06-17 08:01:02 +00:00
$ChangeJS = " onchange= \" if ( this.options[this.selectedIndex].value == '0') { $ ('#namebox').ghide(); $ ('#personal').gshow(); } else { $ ('#namebox').gshow(); $ ('#personal').ghide(); } \" " ;
2011-12-16 08:00:18 +00:00
}
if ( ! check_perms ( 'site_collages_renamepersonal' ) && $Category === '0' ) {
$NoName = true ;
2011-10-27 08:00:15 +00:00
}
2011-03-28 14:21:28 +00:00
?>
< div class = " thin " >
2011-12-16 08:00:18 +00:00
< ?
2013-11-01 08:01:02 +00:00
if ( isset ( $Err )) { ?>
< div class = " save_message error " >< ? = $Err ?> </div>
2011-12-16 08:00:18 +00:00
< br />
2013-04-19 08:00:55 +00:00
< ?
} ?>
2012-09-15 08:00:25 +00:00
< form class = " create_form " name = " collage " action = " collages.php " method = " post " >
2011-03-28 14:21:28 +00:00
< input type = " hidden " name = " action " value = " new_handle " />
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
2012-09-01 08:00:24 +00:00
< table class = " layout " >
2011-10-27 08:00:15 +00:00
< tr id = " collagename " >
2011-03-28 14:21:28 +00:00
< td class = " label " >< strong > Name </ strong ></ td >
< td >
2013-07-10 00:08:53 +00:00
< input type = " text " < ? = $NoName ? ' class="hidden"' : '' ; ?> name="name" size="60" id="namebox" value="<?=display_str($Name)?>" />
< span id = " personal " < ? = $NoName ? '' : ' class="hidden"' ; ?> style="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 >
2013-02-23 08:00:22 +00:00
< select name = " category " < ? = $ChangeJS ?> >
2011-03-28 14:21:28 +00:00
< ?
array_shift ( $CollageCats );
2013-02-22 08:00:24 +00:00
2013-07-10 00:08:53 +00:00
foreach ( $CollageCats as $CatID => $CatName ) { ?>
2013-04-19 08:00:55 +00:00
< option value = " <?= $CatID + 1 ?> " < ? = (( $CatID + 1 == $Category ) ? ' selected="selected"' : '' ) ?> ><?=$CatName?></option>
< ?
2013-07-10 00:08:53 +00:00
}
2013-04-19 08:00:55 +00:00
2013-07-10 00:08:53 +00:00
$DB -> query ( "
SELECT COUNT ( ID )
FROM collages
WHERE UserID = '$LoggedUser[ID]'
AND CategoryID = '0'
AND Deleted = '0' " );
2011-10-27 08:00:15 +00:00
list ( $CollageCount ) = $DB -> next_record ();
2013-04-19 08:00:55 +00:00
if (( $CollageCount < $LoggedUser [ 'Permissions' ][ 'MaxCollages' ]) && check_perms ( 'site_collages_personal' )) { ?>
2013-02-23 08:00:22 +00:00
< option value = " 0 " < ? = (( $Category === '0' ) ? ' selected="selected"' : '' ) ?> >Personal</option>
2013-04-19 08:00:55 +00:00
< ?
} ?>
2011-03-28 14:21:28 +00:00
</ select >
< br />
< ul >
2013-02-22 08:00:24 +00:00
< li >< strong > Theme </ strong > - A collage containing releases that all relate to a certain theme ( e . g . " Searching for the Perfect Beat " , " Concept Albums " , " Funky Groove " , etc . ) .</ li >
2012-11-06 08:00:20 +00:00
< li >< strong > Genre introduction </ strong > - A subjective introduction to a genre composed by our own users .</ li >
2013-04-19 08:00:55 +00:00
< li >< strong > Discography </ strong > - A collage containing all the releases of an artist , which can be useful for keeping track of side projects .</ li >
2012-11-06 08:00:20 +00:00
< li >< strong > Label </ strong > - A collage containing all the releases of a particular record label .</ li >
< li >< strong > Staff picks </ strong > - A listing of recommendations picked by the staff on special occasions .</ li >
2013-07-18 08:00:51 +00:00
< li >< strong > Charts </ strong > - Contains all the releases that comprise a certain type of chart ( e . g . Billboard Top 100 , Pitchfork Top 100 , < ? = SITE_NAME ?> Top 10, etc.).</li>
2011-10-27 08:00:15 +00:00
< ?
2013-04-19 08:00:55 +00:00
if (( $CollageCount < $LoggedUser [ 'Permissions' ][ 'MaxCollages' ]) && check_perms ( 'site_collages_personal' )) { ?>
< li >< strong > Personal </ strong > - You can put whatever you want here . It is your own personal collage .</ li >
< ? } ?>
2011-03-28 14:21:28 +00:00
</ ul >
</ td >
</ tr >
< tr >
< td class = " label " > Description </ td >
< td >
2011-12-16 08:00:18 +00:00
< textarea name = " description " id = " description " cols = " 60 " rows = " 10 " >< ? = display_str ( $Description ) ?> </textarea>
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td class = " label " >< strong > Tags ( comma - separated ) </ strong ></ td >
< td >
2011-12-16 08:00:18 +00:00
< input type = " text " id = " tags " name = " tags " size = " 60 " value = " <?=display_str( $Tags )?> " />
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td colspan = " 2 " class = " center " >
2012-11-06 08:00:20 +00:00
< strong > Please ensure your collage will be allowed under the < a href = " rules.php?p=collages " > Collage Rules </ a >.</ strong >
2011-03-28 14:21:28 +00:00
</ td >
</ tr >
< tr >
< td colspan = " 2 " class = " center " >< input type = " submit " value = " Create collage " /></ td >
</ tr >
</ table >
</ form >
</ div >
2012-10-11 08:00:15 +00:00
< ? View :: show_footer (); ?>