summaryrefslogtreecommitdiffstats
path: root/templates/show_playlist_edit.inc.php
blob: 7580d7afe13f384c8dfbcb12c6dae8f0f9e51a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*

 Copyright (c) 2001 - 2006 Ampache.org
 All rights reserved.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

$web_path = conf('web_path');

?>
<?php show_box_top(_('Editing Playlist')); ?>
<form method="post" action="<?php echo $web_path; ?>/playlist.php" enctype="multipart/form-data">
<table>
<tr>
	<td><?php echo _('Name'); ?>:</td>
	<td align="left">
	<input type="text" name="playlist_name" value="<?php echo scrub_out($playlist->name); ?>" size="<?php echo strlen($playlist->name)+3; ?>" />
	</td>
</tr>
<tr>
	<td valign="top"><?php echo _('Type'); ?>:</td>
	<td>
	<?php $select_name = 'selected_' . $playlist->type; ${$select_name} = "checked=\"checked\""; ?>
	<input type="radio" name="type" value="public" <?php echo $selected_public; ?>/><?php echo _('Public'); ?><br />
	<input type="radio" name="type" value="private" <?php echo $selected_private; ?>/><?php echo _('Private'); ?><br />
	</td>
</tr>
</table>
<div class="formValidation">
	<input type="hidden" name="playlist_id" value="<?php echo $playlist->id; ?>" />
	<input type="hidden" name="action" value="update_playlist" />
	<input type="submit" value="<?php echo _('Update'); ?>" />
</div>
</form>
<?php show_box_bottom(); ?>
a id='n439' href='#n439'>439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736
/*

 Copyright (c) 2001 - 2006 Ampache.org
 All rights reserved.

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/

/***************************************************************/

 Ampache Theme "Greysme"
 by Spocky v1.02 (2007/09/23)
 
 Feel free to modify/reuse, just mention my name _somewhere_
  
/***************************************************************/
/* Theme colors : */
/* ---------------*/
/* Red : 		#8b3e38 (#5a211c was too dark) */
/* Light blue : 	#74718a (#5b596d was too dark) */
/* Dark blue  : 	#2b293d */
/* Black : 		#050505 */
/* Dark grey : 		#111    */
/* Orange:		#e9ad51 */




/************************************************/
/*    Unify default browsers style rules        */
/************************************************/
h1, h2, h3, h4, h5, h6, pre, code	{ font-size: 1em; line-height: 1em; } /* avoid browser default inconsistent font-sizes */
ol, ul { list-style: none; }
table {	border-collapse: separate; border-spacing: 0; }
caption, th, td {	text-align: left;	font-weight: normal; }
*	{ margin: 0; padding: 0; border:0; } /* White space reset */
a img, :link img, :visited img { border: 0; } /* no blue linked image borders */

/************************************************/
/*           General style rules                */
/************************************************/
html{ font-size: 62.5%; }

body{ 
  font-size:1.1em;
	font-family: Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;
	background: #2b293d url(../images/background.jpg) 0 0 repeat-x fixed;
	min-width:90em;
	color:#e9ad51;
}

ol	{ list-style-type: decimal-leading-zero; }
p 	{ color: #e9ad51; }
a	  { color: #74718a; text-decoration: none; }

td 	{ padding: 0 8px; color: #e9ad51; }
th 	{ font-weight:bold; padding: 0 .3em;}

input, select	{
	font-size:1em;
	font-family: Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;
	color: #e9ad51;
	background-color: #111; 
	border: 1px solid #8b3e38;
	margin:0 0 0px 0;
}

input{ padding:0 2px; }
input:focus, select:focus { border-style: dotted; }
textarea { background-color: #111; color: #e9ad51; }

/************************************************/
/*             IE6 behaviors                    */
/* - csshover2: :hover support on any element   */
/************************************************/
body { behavior:url("templates/csshover2.htc"); }

/************************************************/
/*         Float Clearer                        */
/************************************************/
/* float clearing for IE6 */
* html .clearfix{ height: 1%; overflow: visible; }
/* float clearing for IE7 */
/* *+html .clearfix{ min-height: 1%; }*/
/* float clearing for everyone else */
.clearfix:after{ clear: both; content: "."; display: block; height: 0; visibility: hidden; }

/************************************************/
/*                XSPF Player                   */
/************************************************/
.xspf_player {
    right: 20px;
    position: absolute;
}

/************************************************/
/*             Main Container                   */
/************************************************/
#maincontainer{}

/************************************************/
/*             Header                           */
/************************************************/
#header 	{ padding: 0 0; }
#headerbox  	{ font-size: 0.9em; text-align: right; color: #e9ad51; position: absolute; top: 15px; right: 0; padding: 3px; }
#headerbox b 	{ font-weight: normal }
#headerbox a 	{ color: #e9ad51;}
#headerlogo 	  { text-align: center; background: url(../images/ampache_back.gif) 0 0 repeat-x;}
#headerlogo a 	{ }
#headerbox .box-content    {background:transparent;border:none;}
#headerbox .box-top{display:none;}
#headerbox .box-bottom{display:none;}

#play_type_switch {
        float:left;
        margin-top:2px;
}

/************************************************/
/*               Content block                  */
/************************************************/
#content { 
  margin:10px 14em 10px 13.5em;
}

/************************************************/
/*                Footer                        */
/************************************************/
#footer {
  clear:both;
	text-align:center;
	font-size:.8em;
	padding:3px 0;
	background:#2c2b39;
	border-top:5px solid #21212a;
	margin-top:20px;
}

/************************************************/
/*                  Buttons                     */
/************************************************/

.button, input[type=button], input[type=submit] {
	background:#8b3e38 url(../images/button_back2.png) 0 100% repeat-x !important;
	background:#8b3e38;
	color:#e9ad51;
	padding:0px 0.5em; 
	margin:4px 0 0 0; 
	border:0;
  cursor:pointer;
}
.button:hover, input[type=button]:hover, input[type=submit]:hover {
	background:#74718a url(../images/button_back2.png) 0 100% repeat-x !important;
	background:#74718a;
}

a.button              { padding:1px .5em; }
input[type=checkbox]  { border:0;background:none; }

/************************************************/
/*                  Sidebar                     */
/************************************************/
#sidebar {
	float:left:
  position:relative;
	width: 13em;
	text-align: left;
	font-size: 0.8em;
	padding-top:29px;
	background:#2b293d url(../images/ampache_menu.gif) 50% 0 no-repeat;
}

/* For supporting browsers *cough*... I mean not IE6... *cough*, fix sidebar position on the left */
*>div#sidebar{ position: fixed; } 

#sidebar select		    { width: 95%; }
#sidebar ul           { list-style:none; }

/* For sidebar tabs */
/********************/
#sidebar-tabs{
	border-top:1px solid #000;
	background:#111;
}

#sidebar-tabs li.sb1 {
  float: left;
	padding:1px;
  background: #111 ; 
  border-top:0.5em solid #8b3e38;
  border-right:1px solid #000;width:16px;
}
#sidebar-tabs li.active { 
	border-top-color: #e9ad51;
} 
#sidebar-tabs li:hover.sb1
{
  background:#000;
	border-top-color: #e9ad51;
}
/* Tabs content */
/****************/
#sidebar-page {
  position:absolute;
  left:0;
  top:52px;
	background: #111;
	padding-bottom:0.5em;
  width:13em;
  color:#8b3e38;
} 
#sidebar-page ul.sb2 {
}
#sidebar-page ul.sb2 li{
  margin:1em auto;
  padding-bottom: 0.5em;
}
#sidebar-page ul.sb2 h4{
  padding:.2em .5em .5em 0;
  font-style:italic; 
  font-weight:normal;
  font-size:1em;
  letter-spacing:.2em;
  text-align:right;
  border-bottom:1px dotted #e9ad51;
  text-decoration: overline;
  background: url(../images/puce.gif) -8px -8px no-repeat;
  color:#e9ad51;
}
#sidebar-page ul.sb2 li:hover h4{
  background-color:#000;
}

#sidebar-page ul.sb3, #sidebar-page div.sb3 {
  color:#8b3e38;
}
#sidebar-page .sb3 a{ color:#8b3e38; }
#sidebar-page ul.sb3 li{
  margin:0;
  padding:0;
  border:none;
  font-weight:normal;
  background: #111 url(../images/button_back.png) 0 100% repeat-x;
  border-bottom: 1px solid #000;
}
* html #sidebar-page ul.sb3 li{display:inline;background:#111;} /* fix ie6 */
#sidebar-page .sb3 a, #sidebar-page .sb3 div{
  padding:.2em .6em;
  border-left: .5em solid #8b3e38;
}
#sidebar-page .sb3 a:hover{ 
  border-left-color: #e9ad51;
}

#sidebar-page a{
  display:block;
}
#sidebar-page a:hover{
  background:#000;
  color:#e9ad51;
}

/* SIDEBAR : Home */
/******************/

/* SIDEBAR : Browse */
/********************/
.alphabet { 
  background:transparent; /* fix ie bug */
	margin: 0.3em auto;
	font-size: 0.9em;
}

.alphabet span.link { 
	cursor: pointer;
	margin: 0;
	padding:3px 5px;
	font-family: monospace, Courier, Georgia;
} 
.alphabet span.active{ color:#e9ad51; }
.alphabet span.link:hover { 
	background: #8b3e38;
	color:#111;
} 

/* SIDEBAR : Localplay */
/***********************/

.active_instance { 
} 

/* SIDEBAR : Preferences */
/*************************/

/* SIDEBAR : Admin */
/*******************/
#sb_admin_catalogs li.sb_admin_catalogs_ctrls img {margin:0;}
#sb_admin_catalogs li.sb_admin_catalogs_ctrls a{
  display:inline; 
  padding:0; 
  border:none; 
}

/************************************************/
/*                  Rightbar                    */
/************************************************/
#rightbar { 
	width:13em;
	background:#2b293d;
	float:right;
} 
#rightbar ul                      {	list-style:none; }
#rightbar a                       { text-decoration:none; }


/* Rightbar Menu */
#rightbar #rb_action {	
  padding:4px;
}
#rightbar #rb_action li         {	display:inline; }
#rightbar li#rb_add,#rightbar li#pl_add              { position:relative; z-index:10;}
#rightbar li#rb_add:hover, #rightbar li#pl_add:hover { background:#e9ad51; } 
/* Rightbar AddItems SubMenu */
#rightbar li:hover .submenu  {	display:block; } 
#rightbar .submenu { 
  display:none; 	
  position:absolute;
	right:0px;
	top:15px;
  background: #050505 url(../images/button_back.png) 0 100% repeat-x  !important;
  background: #050505;
	border:2px solid #e9ad51;
	width:15em;
	padding:0.3em;
	font-size:0.8em;
	
}
* html #rightbar .submenu {right:100px;} /* IE6 fix */

#rightbar .submenu a {
 display:block;
 padding:0.1em;
 color:#8b3e38;
 text-decoration:none;
 text-align:right;
}
#rightbar .submenu a:hover,
#rightbar #rb_current_playlist a:hover { color:#e9ad51; }

/* Rightbar playlist */
#rightbar #rb_current_playlist    {
  background: #111;
  padding-bottom:0.5em; 
}
#rightbar #rb_current_playlist li   { position:relative;font-size:0.9em;;line-height:14px; color:#5b5b5b; padding-right:20px;}
#rightbar #rb_current_playlist li a { display:block; padding:0.2em;}
#rightbar .delitem                  { position:absolute;right:0;top:0; }


/************************************************/
/*        Styles for the star ratings           */
/************************************************/
.star-rating {
  position:relative;
}
.dynamic-star-rating{
  width:96px;
}

.star-rating ul,
.star-rating a:hover,
.star-rating .current-rating{
  background: url(../images/ratings/star_rating.gif) left -1000px repeat-x;
}
.star-rating ul{
  position:relative;
  width:80px;
  height:15px;
  overflow:hidden;
  list-style:none;
  margin:0;
  padding:0;
  background-position: left top;
  /*float:left;*/
}
.star-rating li{
  display: inline;
}
.star-rating a, .star-rating span,  
.star-rating .current-rating{
  position:absolute;
  top:0;
  left:0;
  text-indent:-1000em;
  height:15px;
  line-height:15px;
  outline:none;
  overflow:hidden;
  border: none;
}
.star-rating .star1 { width:20%; z-index:6; }
.star-rating .star2 { width:40%; z-index:5; }
.star-rating .star3 { width:60%; z-index:4; }
.star-rating .star4 { width:80%; z-index:3; }
.star-rating .star5 { width:100%; z-index:2;}
.star-rating .current-rating { z-index:1; background-position: left bottom; }

.star-rating-reset {height:16px;}
.star-rating a.star0 {
  left:80px;
  height:16px;
  width:16px;
  background: url(../images/ratings/x_off.gif) left top;
}
/* hovering effect only for dynamic star rating */
#content .dynamic-star-rating a:hover{
  background-position: left center;
  background-color:transparent;
}
.dynamic-star-rating a:hover.star0 {
  background: url(../images/ratings/x.gif) left top;
}


/************************************************/
/*              Box Related Styles              */
/************************************************/
.box-title { 
	display:block;
	color:#8b3e38;
	padding:3px 13px 0 28px;
	background: #000 url(../images/puce.gif) 10px 50% no-repeat;
	font-size: 1.1em;
	font-variant:small-caps;
	border-bottom:1px solid #8b3e38;
	letter-spacing:0.1em;
}
.box-title:first-letter{font-style:italic;}

.box-list { 
	padding-right: 10px;
}

/* Enclosing Boxes Styles */
.box, .info-box { 
	margin-top: 7px;
	margin-right: 11px;
	/*background: url(../images/back-box.gif) 0 0 no-repeat;*/
	font-size : 0.9em;
	float:left;
  clear:left;
	height:1%; /* IE6 : Holly Hack comes to rescue once again */
}
/* Hovering effects on links */
.box a:hover, .info-box a:hover { /*background-color: #8b3e38;*/ color: #e9ad51;}

.box-inside { 
	background: url(../images/right.gif) top right repeat-y;
}
.box-content {
	padding:12px 12px;
	background:#000;
}

.box-top { 
	position:relative;
	background:transparent url(../images/box_top.png) 0 100% repeat-x !important;
	background:#000;
}
.box-left-top { 
	/*background: url(../images/punaise-tl.gif) no-repeat;*/
	height:15px;
	width:17px;
	position:relative;left:/*-8px*/ 30%;top:-3px;
}
.box-right-top {
	/*background: url(../images/curl.gif) no-repeat;*/
	background: url(../images/punaise-tl.gif) no-repeat;
	height:15px;
	width:17px;
	position:absolute;left:30%;top:-3px;
}
* html .box-right-top {right: expression(-this.parentNode.offsetWidth%2+"px");} /* Fixes an IE6 rounding error */
.box-bottom { 
	position:relative;clear:both;
	background:transparent url(../images/box_bottom.png) 0 0 repeat-x !important;
	background:#000;
}
.box-left-bottom {
	background: url(../images/punaise-bl.gif) no-repeat;
	height:15px;
	width:17px;
	position:relative;left:-7px;top:-3px;
}
.box-right-bottom { 
	background: url(../images/punaise-br.gif) no-repeat;
	height:15px;
	width:17px;
	position:absolute;right:-7px;top:-3px;
}
* html .box-right-bottom {right: expression(-this.parentNode.offsetWidth%2+"px");} /* Fixes an IE6 rounding error */


/* Specific to Info Boxes */
.info-box .album_art {float:left;margin-right:10px;}
.info-box th {color:#8b3e38;}
#information_actions { } 
#information_actions h3 { color:#8b3e38; font-size:1.2em; margin:0.2em; }

/* Specific boxes */
.box_newest_albums  {}
.box_newest_artists {clear:none;}
.box_newest_genres  {clear:none;}
.box_popular_album  {}
.box_popular_artists {clear:none;}
.box_popular_genres {clear:none;}
.box_preferences h4 {color: #8b3e38;font-size: 1.1em;text-align:center;font-weight: bold;border-bottom:1px solid #8b3e38;padding:1em;}

/************************************************/
/*         Tables (songs lists...)              */
/************************************************/
.tabledata .th-top, .tabledata .th-bottom {
	background: #111;
	vertical-align: top;
}
.tabledata th {
	color:#8b3e38; 
	font-variant:small-caps;
	font-weight:normal;
	border-right:3px solid #000;
	text-align:center;
	line-height:2em;
}
.tabledata th a {
	color:#8b3e38;
	padding-right:10px;
	background: url(../images/sort_off.gif) 100% 50% no-repeat;
	display:block;
}
.tabledata th a:hover {
	color:#8b3e38;
	background-color:transparent;
	background-image:url(../images/sort_on.gif);
}

/* table rows */
.odd, .even		{ background: url(../images/list_back.png) 0 50% repeat-x !important; background-image: none;}
.odd 					{ background-color: #111 !important;}
.even					{ }
.odd:hover, .even:hover 		{ background-color: #2b293d !important;}

/* Misc */
.border 	{ background: #000; }
.tabledata input[type=text], .tabledata select{ margin:1px 0; }
.discnb       { font-style: italic; font-size:0.8em; }

/* specific cells */
.cel_cover{padding:6px;}
.cel_select, .cel_action, .cel_date, .cel_applytoall, .cel_level {text-align:center;}
td.cel_track {text-align:right;}
/* specific cells : users login state */
.user_online{background:#0f0;}
.user_offline{background:#7f0000;}
.user_disabled{background:#ccc;}
/* specific cells : enlarge links */
.tabledata td a{display:block;}
.tabledata td.cel_add a, .tabledata td.cel_action a{display:inline;}
/* specific cells : image links */
.odd td a img, .even td a img {opacity:0.7;}
.odd td a img:hover, .even td a img:hover {opacity:1;}

/* specific tables */
#recently_played .th-bottom {display:none;}
.box_preferences .th-bottom {display:none;}

/************************************************/
/*          Albums of the moment                */
/************************************************/
.random_album{
  position:relative;
  float:left;
  padding:8px;
}

.random_album .play_album{
  position:absolute;
  top:10px;
  right:0;
}

#random_selection .box-content{
  float:left;
}

/************************************************/
/*          Now Playing                         */
/************************************************/
#now_playing{
}

.np_row {
	padding: 3px;
	float:left;
	clear:both;
}
.np_cell {
  padding-left:5px;
  margin-left:5px;
}

.np_row label {
  display:block;
  font-weight:bold;
  margin-left:-5px;
}

.np_group {
  float:left;
  padding-left:10px;
}

#now_playing .box-content{
background:#000;
  float:left;
}


/************************************************/
/*             List Header                      */
/************************************************/
.list-header{margin:7px 0; padding:0 4em; text-align:center; font-size: 0.9em;position:relative;} 
.list-header .prev{position:absolute; top:0; left:0;}
.list-header .next{position:absolute; top:0; right:0;}
.list-header .selected{background:#e9ad51;color:#111;}
.list-header .page-nb{padding:1px;border: 1px solid #111;}
.list-header a:hover{background: transparent; border-color:#e9ad51;}

/************************************************/
/*             Errors                           */
/************************************************/
.error {
	color: #990033; 
}

.fatalerror {
	padding: 3px;
	display: table-cell;
	color: #990033;
	font-weight:bold;
 	border:2px solid #990033;		
}


/************************************************/
/*             LocalPlay                        */
/************************************************/
.lp_box_ctrl, .lp_box_vol {
	text-align: center; /*for compatibility, may be controlled by themers now*/
}


/************************************************/
/*         Styles for Login template            */
/************************************************/
#loginPage #maincontainer {
	margin: 100px auto 0px auto;
	text-align:center;	
}
#loginPage h2{
	color:#111;
	font-size:0.8em;
	font-style:italic;
	font-weight:normal;
	margin: 0 0 2em 0;
}
#loginPage #loginbox{
  width:340px;
  margin:auto;
}
.loginfield{
	text-align:right;
	padding-right:100px;
	margin: 1px 0;
}
.loginfield input.text_input{
  width:12em;
  border:1px solid #74718a;
}

#loginPage div.fatalerror {
	padding:5px;
	margin:10px;
}


/************************************************/
/*                Misc                          */
/************************************************/

.formValidation{
  margin-top:1em;
  text-align:center;
}

.text-box, .confirmation-box {
	display: table-cell;
	padding:5px;
	margin:0 0 10px 0;
	background-color: #111;
}

#ajax-loading {
 	position: absolute;  
  top:106px;
  left:42%; 
  width:265px;
  height:50px;
	z-index: 100;
  background: url(../images/ajax-loader.gif) no-repeat;
	text-indent:-9999em;
	display: none;
}