Location: PHPKode > projects > SiteX > admin/popup.php
<?PHP
ob_start();
session_start();
include("../includes/globals.php.inc");
include("../includes/functions.php");
include("../lang/English.php");
if(strtolower($sxSetup['Language']) != 'english') include("../lang/".$sxSetup['Language'].".php");

if(!userAdmin())
	loginError($sxLang['LoginRequired']);

$sxTitleAddendum = $sxLang['AdminHeading'];

$query1 = "SELECT * FROM $DB_Themes_Setup WHERE id='$schemeid'";
$result1 = mysql_query($query1, $Link) or queryError("46", mysql_error());
$ROW1 = mysql_fetch_object($result1);

$query2 = "SELECT * FROM $DB_Title_Pictures WHERE id='$titleid'";
$result2 = mysql_query($query2, $Link) or queryError("46", mysql_error());
$sxTitlePicture = mysql_fetch_object($result2);

?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
	<title><?php echo $sxSelectedTheme->name .' - '.$sxLang['GeneralItemPreview'] ; ?></title>
<link rel="stylesheet" type="text/css" href="<?PHP echo $sxSetup['Url'] ?>/includes/colorpicker/colorpicker.css" />
<style type="text/css">
body,td,th {
	color: <?PHP echo $sxTheme['ColorText']; ?>;
	background: <?PHP echo $sxTheme['ColorBackground']; ?>;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
}
</style>

</head>

<body style="margin:0px; padding:0px;">

<a name="1"></a><table border="0" cellspacing="3" cellpadding="5">
<form name="sxFileSchemeEdit" action="<?PHP print $PHP_SELF; ?>" method="post" enctype="multipart/form-data">
 <tr> 
  <td class="sxTdItem"><strong><?PHP echo $sxLang['ThemesItemSchemeName']; ?>:</strong></td>
  <td><strong><?PHP echo htmlspecialchars($ROW1->name); ?></strong></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorPrimary']; ?></td>
  <td>&nbsp;<span id="colorbox1" class="colorbox" style="background: <?PHP echo $ROW1->color_primary; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_primary; ?></td>
  </td>
</tr>
<tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorSecondary']; ?></td>
  <td>&nbsp;<span id="colorbox2" class="colorbox" style="background: <?PHP echo $ROW1->color_secondary; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_secondary; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorBackground']; ?></td>
  <td>&nbsp;<span id="colorbox3" class="colorbox" style="background: <?PHP echo $ROW1->color_background; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_background; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorTableTitle']; ?></td>
  <td>&nbsp;<span id="colorbox4" class="colorbox" style="background: <?PHP echo $ROW1->color_table; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_table; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorTableItem']; ?></td>
  <td>&nbsp;<span id="colorbox5" class="colorbox" style="background: <?PHP echo $ROW1->color_table_row; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_table_row; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorText']; ?></td>
  <td>&nbsp;<span id="colorbox6" class="colorbox" style="background: <?PHP echo $ROW1->color_text; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_text; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorTextSecondary']; ?></td>
  <td>&nbsp;<span id="colorbox7" class="colorbox" style="background: <?PHP echo $ROW1->color_text_secondary; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_text_secondary; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorTableText']; ?></td>
  <td>&nbsp;<span id="colorbox8" class="colorbox" style="background: <?PHP echo $ROW1->color_text_table; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_text_table; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorLink']; ?></td>
  <td>&nbsp;<span id="colorbox9" class="colorbox" style="background: <?PHP echo $ROW1->color_links; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_links; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorLinkVisited']; ?></td>
  <td>&nbsp;<span id="colorbox10" class="colorbox" style="background: <?PHP echo $ROW1->color_links_visited; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_links_visited; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorLinkHover']; ?></td>
  <td>&nbsp;<span id="colorbox11" class="colorbox" style="background: <?PHP echo $ROW1->color_links_hover; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_links_hover; ?></td>
 </tr>
 <tr> 
  <td class="sxTdItem"><?PHP echo $sxLang['ThemesItemSchemeColorSitename']; ?></td>
  <td>&nbsp;<span id="colorbox12" class="colorbox" style="background: <?PHP echo $ROW1->color_sitename; ?>;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>&nbsp;<?PHP echo $ROW1->color_sitename; ?></td>
 </tr>
</table>
<br/>
<br/>
<a name="2"></a>
<?php
				/*if(getTitlePicture())
				{
					$filenameTitle = getTitlePicture();
					echo '<img src="' . $sxSetup['Url'] . '/content/title_pictures/' . $filenameTitle .'" width="' . getTitleWidth($filenameTitle) . '" height="' . getTitleHeight($filenameTitle) . '" alt="' . getTitleName($filenameTitle) . '" />';
				}*/
?>

<img src="../content/title_pictures/<?PHP echo htmlspecialchars($sxTitlePicture->filename); ?>" style="border: 0;" alt="" width="<?PHP echo $sxTitlePicture->width; ?>" height="<?PHP echo $sxTitlePicture->height; ?>" />
<br/>
<br/>

</body>
</html>
<?PHP
ob_end_flush();
?>
Return current item: SiteX