/** * Displays the top of the page for the popup window * * @author Ross Carlson * @version 01/18/05 * @since 01/18/05 * @param $bg_color a hex value for the background color, IF we want one * @param $headerTitle The title for the page */ function displayPageTop($bg_color = "", $headerTitle = "", $js = true) { global $row_colors, $web_root, $root_dir, $skin, $cms_mode, $cms_type, $cur_theme, $css; $display = new jzDisplay(); //handleSetTheme(); // AJAX: $display->handleAJAX(); // Let's include the javascript if ($js) { echo '<script type="text/javascript" src="' . $root_dir . '/lib/jinzora.js"></script>' . "\n"; echo '<script type="text/javascript" src="' . $root_dir . '/lib/overlib.js"></script>'; echo '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>'; } // Let's start our page echo '<title>Jinzora</title>' . "\n"; // Let's output the Jinzora style sheet //include_once($css); echo '<link rel="stylesheet" title="' . $skin . '" type="text/css" media="screen" href="' . $css . '">' . "\n"; // Now let's see if they wanted a different background color if ($bg_color != "") { echo '<span style="font-size:0px">.</span><body marginwidth=0 marginheight=0 style="margin: 0px" style="background-color:' . $bg_color . '">' . "\n"; } // Now let's output the CMS style sheet, if necessary if ($cms_mode != "false") { switch ($cms_type) { case "postnuke": case "phpnuke": case "cpgnuke": case "mdpro": echo '<LINK REL="StyleSheet" HREF="' . $_SESSION['cms-style'] . '" TYPE="text/css">'; // Now let's get the data we need from the session var $cArr = explode("|", urldecode($_SESSION['cms-theme-data'])); echo "<style type=\"text/css\">" . ".jz_row1 { background-color:" . $cArr[0] . "; }" . ".jz_row2 { background-color:" . $cArr[1] . "; }" . ".and_head1 { background-color:" . $cArr[0] . "; }" . ".and_head2 { background-color:" . $cArr[1] . "; }" . "</style>"; break; case "mambo": echo '<LINK REL="StyleSheet" HREF="' . $_SESSION['cms-style'] . '" TYPE="text/css">' . "\n"; $row_colors = array('sectiontableentry2', 'tabheading'); break; } } if (stristr($skin, "/")) { $img_path = $root_dir . "/" . $skin; } else { $img_path = $root_dir . "/style/" . $skin; } // Now let's show the page title if ($headerTitle != "") { ?> <table width="100%" cellpadding="3" cellspacing="0" border="0"><tr><td> <table width="100%" cellpadding="3" cellspacing="0" border="0"> <tr> <td width="6" height="6" style="background: url(<?php echo $img_path; ?> /inner-block-top-left.gif); background-repeat:no-repeat"></td> <td width="99%" height="6" style="background: url(<?php echo $img_path; ?> /inner-block-top-middle.gif);"></td> <td width="6" height="6" style="background: url(<?php echo $img_path; ?> /inner-block-top-right.gif); background-repeat:no-repeat"></td> </tr> <tr> <td width="6" style="background: url(<?php echo $img_path; ?> /inner-block-left.gif); background-repeat:repeat"></td> <td width="99%"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td width="100%"> <font size="1" color="<?php echo jz_font_color; ?> "> <strong><?php echo $headerTitle; ?> </strong> </font> </td> <td align="right"><a href="javascript:window.close();"><?php echo word('Close'); ?> </a></td> </tr> </table> </td> <td width="6" style="background: url(<?php echo $img_path; ?> /inner-block-right.gif); background-repeat:repeat"></td> </tr> <tr> <td width="6" height="6" style="background: url(<?php echo $img_path; ?> /inner-block-bottom-left.gif); background-repeat:no-repeat"></td> <td width="99%" height="6" style="background: url(<?php echo $img_path; ?> /inner-block-bottom-middle.gif);"></td> <td width="6" height="6" style="background: url(<?php echo $img_path; ?> /inner-block-bottom-right.gif); background-repeat:no-repeat"></td> </tr> </table> </td></tr></table> <?php } flushDisplay(); }
return adduser(); break; case "removeuser": return removeuser(); break; case "listusers": return listusers(); break; case "setpassword": return setpassword(); break; case "stylesheet": echo '<link rel="stylesheet" title="slick" type="text/css" media="screen" href="' . $root_dir . '/style/' . $skin . '/default.php">'; break; case "javascript": $display->handleAJAX(); break; case "artistAlbumsBlock": case "artistProfileBlock": case "displaySlickSampler": case "displaySlickAllTracks": case "artistAlbumArtBlock": case "albumAlbumBlock": case "albumTracksBlock": case "albumOtherAlbumBlock": case "blockUser": case "blockNowStreaming": case "blockWhoIsWhere": case "blockSearch": case "blockPlaylists": case "blockBrowsing":