function pagetop($pagetitle, $message = "")
{
    global $css_mode, $siteurl, $sitename, $txp_user, $event;
    $area = gps('area');
    $event = !$event ? 'article' : $event;
    $bm = gps('bm');
    $privs = safe_field("privs", "txp_users", "name = '" . doSlash($txp_user) . "'");
    $GLOBALS['privs'] = $privs;
    $areas = areas();
    $area = false;
    foreach ($areas as $k => $v) {
        if (in_array($event, $v)) {
            $area = $k;
            break;
        }
    }
    if (gps('logout')) {
        $body_id = 'page-logout';
    } elseif (!$txp_user) {
        $body_id = 'page-login';
    } else {
        $body_id = 'page-' . $event;
    }
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
    echo LANG;
    ?>
" lang="<?php 
    echo LANG;
    ?>
" dir="<?php 
    echo gTxt('lang_dir');
    ?>
">
	<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex, nofollow" />
	<title>Txp &#8250; <?php 
    echo htmlspecialchars($sitename);
    ?>
 &#8250; <?php 
    echo escape_title($pagetitle);
    ?>
</title>
	<link href="textpattern.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="textpattern.js"></script>
	<script type="text/javascript">
	<!--

		var cookieEnabled = checkCookies();

		if (!cookieEnabled)
		{
			confirm('<?php 
    echo trim(gTxt('cookies_must_be_enabled'));
    ?>
');
		}

<?php 
    $edit = array();
    if ($event == 'list') {
        $rs = safe_column('name', 'txp_section', "name != 'default'");
        $edit['section'] = $rs ? selectInput('Section', $rs, '', true) : '';
        $rs = getTree('root', 'article');
        $edit['category1'] = $rs ? treeSelectInput('Category1', $rs, '') : '';
        $edit['category2'] = $rs ? treeSelectInput('Category2', $rs, '') : '';
        $edit['comments'] = onoffRadio('Annotate', safe_field('val', 'txp_prefs', "name = 'comments_on_default'"));
        $edit['status'] = selectInput('Status', array(1 => gTxt('draft'), 2 => gTxt('hidden'), 3 => gTxt('pending'), 4 => gTxt('live'), 5 => gTxt('sticky')), '', true);
        $rs = safe_column('name', 'txp_users', "privs not in(0,6)");
        $edit['author'] = $rs ? selectInput('AuthorID', $rs, '', true) : '';
    }
    if (in_array($event, array('image', 'file', 'link'))) {
        $rs = getTree('root', $event);
        $edit['category'] = $rs ? treeSelectInput('category', $rs, '') : '';
    }
    if ($event == 'plugin') {
        $edit['order'] = selectInput('order', array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9), 5, false);
    }
    if ($event == 'admin') {
        $edit['privilege'] = privs();
    }
    // output JavaScript
    ?>
		function poweredit(elm)
		{
			var something = elm.options[elm.selectedIndex].value;

			// Add another chunk of HTML
			var pjs = document.getElementById('js');

			if (pjs == null)
			{
				var br = document.createElement('br');
				elm.parentNode.appendChild(br);

				pjs = document.createElement('P');
				pjs.setAttribute('id','js');
				elm.parentNode.appendChild(pjs);
			}

			if (pjs.style.display == 'none' || pjs.style.display == '')
			{
				pjs.style.display = 'block';
			}

			if (something != '')
			{
				switch (something)
				{
<?php 
    foreach ($edit as $key => $val) {
        echo "case 'change" . $key . "':" . n . t . "pjs.innerHTML = '<span>" . str_replace(array("\n", '-'), array('', '&#45;'), addslashes($val)) . "</span>';" . n . t . 'break;' . n . n;
    }
    ?>
					default:
						pjs.style.display = 'none';
					break;
				}
			}

			return false;
		}

		addEvent(window, 'load', cleanSelects);
	-->
	</script>
	<script type="text/javascript" src="jquery.js"></script>
	<?php 
    callback_event('admin_side', 'head_end');
    ?>
	</head>
	<body id="<?php 
    echo $body_id;
    ?>
">
	<?php 
    callback_event('admin_side', 'pagetop');
    ?>
  <table id="pagetop" cellpadding="0" cellspacing="0">
  <tr id="branding"><td><h1 id="textpattern">Textpattern</h1></td><td id="navpop"><?php 
    echo navPop(1);
    ?>
</td></tr>
  <tr id="nav-primary"><td align="center" class="tabs" colspan="2">
 		<?php 
    if (!$bm) {
        echo '<table cellpadding="0" cellspacing="0" align="center"><tr>
  <td valign="middle" style="width:368px">&nbsp;' . $message . '</td>', has_privs('tab.content') ? areatab(gTxt('tab_content'), 'content', 'article', $area) : '', has_privs('tab.presentation') ? areatab(gTxt('tab_presentation'), 'presentation', 'page', $area) : '', has_privs('tab.admin') ? areatab(gTxt('tab_admin'), 'admin', 'admin', $area) : '', (has_privs('tab.extensions') and !empty($areas['extensions'])) ? areatab(gTxt('tab_extensions'), 'extensions', array_shift($areas['extensions']), $area) : '', '<td class="tabdown"><a href="' . hu . '" class="plain" target="_blank">' . gTxt('tab_view_site') . '</a></td>', '</tr></table>';
        $secondary = tabsort($area, $event);
        if ($secondary) {
            echo '</td></tr><tr id="nav-secondary"><td align="center" class="tabs" colspan="2">
			<table cellpadding="0" cellspacing="0" align="center"><tr>', $secondary, '</tr></table>';
        }
    }
    echo '</td></tr></table>';
    callback_event('admin_side', 'pagetop_end');
}
Exemple #2
0
function pagetop($pagetitle, $message = "")
{
    global $css_mode, $siteurl, $txp_user, $event;
    $area = gps('area');
    $event = !$event ? 'article' : $event;
    $bm = gps('bm');
    $privs = safe_field("privs", "txp_users", "`name`='{$txp_user}'");
    $GLOBALS['privs'] = $privs;
    $areas = areas();
    foreach ($areas as $k => $v) {
        if (in_array($event, $v)) {
            $area = $k;
        }
    }
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
			"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Textpattern &#8250; <?php 
    echo strtolower($pagetitle);
    ?>
</title>
	<link href="textpattern.css" rel="Stylesheet" type="text/css" />
	<script language="JavaScript" type="text/javascript">
	<!--
		function verify(msg) { return confirm(msg); }

		var cookieEnabled=(navigator.cookieEnabled)? true : false
		if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled) { 
			document.cookie="testcookie"
			cookieEnabled=(document.cookie=="testcookie")? true : false
			document.cookie="" //erase dummy value
		}
		if(!cookieEnabled){
			confirm(<?php 
    echo "'" . trim(gTxt('cookies_must_be_enabled')) . "'";
    ?>
)
		}

		function toggleDisplay(obj_id) {
			if (document.getElementById){
				var obj = document.getElementById(obj_id);
				if (obj.style.display == '' || obj.style.display == 'none'){
					var state = 'block';
				} else {
					var state = 'none';
				}
				obj.style.display = state;
			}
		}

		function selectall() {
			var cnt = 0;
			var elem = window.document.longform.elements;
			cnt = elem.length;
			for (var i=0; i < cnt; i++) elem[i].checked = true;
		}
		
		function deselectall() {
			var cnt = 0;
			var elem = window.document.longform.elements;
			cnt = elem.length;
			for (var i=0; i < cnt; i++) elem[i].checked = false;
		}
		
		function selectrange() {
			var inrange = false;
			var cnt = 0;
			var elem = window.document.longform.elements;
			cnt = elem.length;
			for (var i=0; i < cnt; i++) {
				if (elem[i].type == 'checkbox') {
					if (elem[i].checked == true) {
						if (!inrange) inrange = true;
						else inrange = false;
					}
					if (inrange) elem[i].checked = true;
				}
			}
		}
	-->
	</script>
	</head>
	<body>
  <table cellpadding="0" cellspacing="0" width="100%" style="margin-bottom:2em">
  <tr><td align="left" style="background:#FFCC33"><img src="txp_img/textpattern.gif" height="15" width="368" alt="textpattern" /></td></tr>
  <tr><td align="center" class="tabs">
 		<?php 
    if (!$bm) {
        echo '<table cellpadding="0" cellspacing="0" align="center"><tr>
  <td valign="middle" style="width:368px">&nbsp;' . $message . '</td>', has_privs('tab.content') ? areatab(gTxt('tab_content'), 'content', 'article', $area) : '', has_privs('tab.presentation') ? areatab(gTxt('tab_presentation'), 'presentation', 'page', $area) : '', has_privs('tab.admin') ? areatab(gTxt('tab_admin'), 'admin', 'prefs', $area) : '', (has_privs('tab.extensions') and !empty($areas['extensions'])) ? areatab(gTxt('tab_extensions'), 'extensions', array_shift($areas['extensions']), $area) : '', '<td class="tabdown"><a href="' . hu . '" class="plain" target="blank">' . gTxt('tab_view_site') . '</a></td>', '</tr></table>', '</td></tr><tr><td align="center" class="tabs">
			<table cellpadding="0" cellspacing="0" align="center"><tr>', tabsort($area, $event), '</tr></table>';
    }
    echo '</td></tr></table>';
}
Exemple #3
0
function pagetop($pagetitle, $message = "")
{
    global $css_mode, $siteurl, $sitename, $txp_user, $event;
    $area = gps('area');
    $event = !$event ? 'article' : $event;
    $bm = gps('bm');
    $privs = safe_field("privs", "txp_users", "`name`='{$txp_user}'");
    $GLOBALS['privs'] = $privs;
    $areas = areas();
    foreach ($areas as $k => $v) {
        if (in_array($event, $v)) {
            $area = $k;
        }
    }
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
			"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Txp &#8250; <?php 
    echo $sitename;
    ?>
 &#8250; <?php 
    echo $pagetitle;
    ?>
</title>
	<link href="textpattern.css" rel="Stylesheet" type="text/css" />
	<script language="JavaScript" type="text/javascript">
	<!--
		function verify(msg) { return confirm(msg); }

		var date = new Date();
		date.setTime(date.getTime()+(60*1000));
		var expires = "; expires="+date.toGMTString();
		document.cookie="testcookie=enabled"+expires+"; path=/";
		cookieEnabled=(document.cookie.length>2)? true : false
		date.setTime(date.getTime()-(60*1000));
		var expires = "; expires="+date.toGMTString();
		document.cookie="testcookie"+expires+"; path=/"; //erase dummy value
		if(!cookieEnabled){
			confirm(<?php 
    echo "'" . trim(gTxt('cookies_must_be_enabled')) . "'";
    ?>
)
		}

		function toggleDisplay(obj_id) {
			if (document.getElementById){
				var obj = document.getElementById(obj_id);
				if (obj.style.display == '' || obj.style.display == 'none'){
					var state = 'block';
				} else {
					var state = 'none';
				}
				obj.style.display = state;
			}
		}

		function selectall() {
			var cnt = 0;
			var elem = window.document.longform.elements;
			cnt = elem.length;
			for (var i=0; i < cnt; i++) elem[i].checked = true;
		}
		
		function deselectall() {
			var cnt = 0;
			var elem = window.document.longform.elements;
			cnt = elem.length;
			for (var i=0; i < cnt; i++) elem[i].checked = false;
		}
		
		function selectrange() {
			var inrange = false;
			var cnt = 0;
			var elem = window.document.longform.elements;
			cnt = elem.length;
			for (var i=0; i < cnt; i++) {
				if (elem[i].type == 'checkbox') {
					if (elem[i].checked == true) {
						if (!inrange) inrange = true;
						else inrange = false;
					}
					if (inrange) elem[i].checked = true;
				}
			}
		}
<?php 
    if ($event == 'list') {
        ?>
		
		function poweredit(elm)
		{
			
<?php 
        $sections = '';
        $rs = safe_column("name", "txp_section", "name!='default'");
        if ($rs) {
            $sections = str_replace("\n", '', stripslashes(selectInput("Section", $rs, '', 1)));
        }
        $statuses = str_replace("\n", '', stripslashes(selectInput('Status', array(1 => gTxt('draft'), 2 => gTxt('hidden'), 3 => gTxt('pending'), 4 => gTxt('live'), 5 => gTxt('sticky')), '')));
        ?>
			something = elm.options[elm.selectedIndex].value;
			// Add another chunk of HTML
			pjs = document.getElementById('js');
			if(pjs == null) {
				br = document.createElement('br');
				elm.parentNode.appendChild(br);
				pjs = document.createElement('P');
				pjs.setAttribute('id','js');
				pjs.setAttribute('style','text-align:right; padding-right:30px; display: none;');
				elm.parentNode.appendChild(pjs);
			}
			
			if(pjs.style.display == 'none' || pjs.style.display == '') pjs.style.display = 'block';
			
			if(something!='' && something == 'changesection'){
				sects = '<?php 
        echo $sections;
        ?>
';
				pjs.innerHTML = '<span style="background-color: #ffc; padding: 10px;"><?php 
        echo gTxt('section');
        ?>
: '+sects+'</span>';
			}else if(something!='' && something == 'changestatus'){
				stats = '<?php 
        echo $statuses;
        ?>
';
				pjs.innerHTML = '<span style="background-color: #ffc; padding: 10px;"><?php 
        echo gTxt('status');
        ?>
: '+stats+'</span>';
			}else{
				pjs.style.display = 'none';
			}
			
			return false;
		}
		
		window.onload = function(){
			withsel = document.getElementById('withselected');
			if(withsel.options[withsel.selectedIndex].value != '') return (withsel.selectedIndex = 0);
		}
<?php 
    }
    ?>
		
	-->
	</script>
	</head>
	<body>
  <table cellpadding="0" cellspacing="0" width="100%" style="margin-bottom:2em">
  <tr><td align="left" style="background:#FFCC33"><img src="txp_img/textpattern.gif" height="15" width="368" alt="textpattern" /></td><td style="background:#FFCC33" align="right"><?php 
    echo navPop(1);
    ?>
</td></tr>
  <tr><td align="center" class="tabs" colspan="2">
 		<?php 
    if (!$bm) {
        echo '<table cellpadding="0" cellspacing="0" align="center"><tr>
  <td valign="middle" style="width:368px">&nbsp;' . $message . '</td>', has_privs('tab.content') ? areatab(gTxt('tab_content'), 'content', 'article', $area) : '', has_privs('tab.presentation') ? areatab(gTxt('tab_presentation'), 'presentation', 'page', $area) : '', has_privs('tab.admin') ? areatab(gTxt('tab_admin'), 'admin', 'prefs', $area) : '', (has_privs('tab.extensions') and !empty($areas['extensions'])) ? areatab(gTxt('tab_extensions'), 'extensions', array_shift($areas['extensions']), $area) : '', '<td class="tabdown"><a href="' . hu . '" class="plain" target="blank">' . gTxt('tab_view_site') . '</a></td>', '</tr></table>', '</td></tr><tr><td align="center" class="tabs" colspan="2">
			<table cellpadding="0" cellspacing="0" align="center"><tr>', tabsort($area, $event), '</tr></table>';
    }
    echo '</td></tr></table>';
}
Exemple #4
0
}
?>

			<td class="tabdown"><a href="<?php 
echo hu;
?>
" class="plain" target="_blank"><?php 
echo gTxt('tab_view_site');
?>
</a></td>
		</tr>
		</table>
	</td>
</tr>
<?php 
if ($txp_user) {
    ?>

<tr id="nav-secondary">
	<td align="center" class="tabs" colspan="2">
		<table cellpadding="0" cellspacing="0" align="center">
		<tr><?php 
    echo tabsort($area, $event);
    ?>

		</tr>
		</table>
	</td>
</tr>
<?php 
}
Exemple #5
0
function pagetop($pagetitle, $message = "")
{
    global $css_mode, $siteurl, $sitename, $txp_user, $event;
    $area = gps('area');
    $event = !$event ? 'article' : $event;
    $bm = gps('bm');
    $privs = safe_field("privs", "txp_users", "name = '" . doSlash($txp_user) . "'");
    $GLOBALS['privs'] = $privs;
    $areas = areas();
    foreach ($areas as $k => $v) {
        if (in_array($event, $v)) {
            $area = $k;
        }
    }
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
			"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex, nofollow" />
	<title>Txp &#8250; <?php 
    echo htmlspecialchars($sitename);
    ?>
 &#8250; <?php 
    echo escape_title($pagetitle);
    ?>
</title>
	<link href="textpattern.css" rel="Stylesheet" type="text/css" />
	<script type="text/javascript" src="textpattern.js"></script>
	<script type="text/javascript">
	<!--

		var cookieEnabled = checkCookies();

		if (!cookieEnabled)
		{
			confirm('<?php 
    echo trim(gTxt('cookies_must_be_enabled'));
    ?>
');
		}	
	
<?php 
    if ($event == 'list') {
        $sarr = array("\n", '-');
        $rarr = array('', '&#45;');
        $sections = '';
        $rs = safe_column('name', 'txp_section', "name != 'default'");
        if ($rs) {
            $sections = str_replace($sarr, $rarr, addslashes(selectInput('Section', $rs, '', true)));
        }
        $category1 = '';
        $category2 = '';
        $rs = getTree('root', 'article');
        if ($rs) {
            $category1 = str_replace($sarr, $rarr, addslashes(treeSelectInput('Category1', $rs, '')));
            $category2 = str_replace($sarr, $rarr, addslashes(treeSelectInput('Category2', $rs, '')));
        }
        $statuses = str_replace($sarr, $rarr, addslashes(selectInput('Status', array(1 => gTxt('draft'), 2 => gTxt('hidden'), 3 => gTxt('pending'), 4 => gTxt('live'), 5 => gTxt('sticky')), '', true)));
        $comments_annotate = addslashes(onoffRadio('Annotate', safe_field('val', 'txp_prefs', "name = 'comments_on_default'")));
        $authors = '';
        $rs = safe_column('name', 'txp_users', "privs not in(0,6)");
        if ($rs) {
            $authors = str_replace($sarr, $rarr, addslashes(selectInput('AuthorID', $rs, '', true)));
        }
        // output JavaScript
        ?>
		function poweredit(elm)
		{
			var something = elm.options[elm.selectedIndex].value;

			// Add another chunk of HTML
			var pjs = document.getElementById('js');

			if (pjs == null)
			{
				var br = document.createElement('br');
				elm.parentNode.appendChild(br);

				pjs = document.createElement('P');
				pjs.setAttribute('id','js');
				elm.parentNode.appendChild(pjs);
			}

			if (pjs.style.display == 'none' || pjs.style.display == '')
			{
				pjs.style.display = 'block';
			}

			if (something != '')
			{
				switch (something)
				{
					case 'changesection':
						var sections = '<?php 
        echo $sections;
        ?>
';
						pjs.innerHTML = '<span><?php 
        echo gTxt('section');
        ?>
: '+sections+'</span>';
					break;

					case 'changecategory1':
						var categories = '<?php 
        echo $category1;
        ?>
';
						pjs.innerHTML = '<span><?php 
        echo gTxt('category1');
        ?>
: '+categories+'</span>';
					break;

					case 'changecategory2':
						var categories = '<?php 
        echo $category2;
        ?>
';
						pjs.innerHTML = '<span><?php 
        echo gTxt('category2');
        ?>
: '+categories+'</span>';
					break;

					case 'changestatus':
						var statuses = '<?php 
        echo $statuses;
        ?>
';
						pjs.innerHTML = '<span><?php 
        echo gTxt('status');
        ?>
: '+statuses+'</span>';
					break;

					case 'changecomments':
						var comments = '<?php 
        echo $comments_annotate;
        ?>
';
						pjs.innerHTML = '<span><?php 
        echo gTxt('comments');
        ?>
: '+comments+'</span>';
					break;

					case 'changeauthor':
						var authors = '<?php 
        echo $authors;
        ?>
';
						pjs.innerHTML = '<span><?php 
        echo gTxt('author');
        ?>
: '+authors+'</span>';
					break;

					default:
						pjs.style.display = 'none';
					break;
				}
			}

			return false;
		}

		addEvent(window, 'load', cleanSelects);
<?php 
    }
    ?>
	-->
	</script>
	<script type="text/javascript" src="jquery.js"></script>
	</head>
	<body>
  <table id="pagetop" cellpadding="0" cellspacing="0">
  <tr id="branding"><td><img src="txp_img/textpattern.gif" alt="textpattern" /></td><td id="navpop"><?php 
    echo navPop(1);
    ?>
</td></tr>
  <tr id="nav-primary"><td align="center" class="tabs" colspan="2">
 		<?php 
    if (!$bm) {
        echo '<table cellpadding="0" cellspacing="0" align="center"><tr>
  <td valign="middle" style="width:368px">&nbsp;' . $message . '</td>', has_privs('tab.content') ? areatab(gTxt('tab_content'), 'content', 'article', $area) : '', has_privs('tab.presentation') ? areatab(gTxt('tab_presentation'), 'presentation', 'page', $area) : '', has_privs('tab.admin') ? areatab(gTxt('tab_admin'), 'admin', 'admin', $area) : '', (has_privs('tab.extensions') and !empty($areas['extensions'])) ? areatab(gTxt('tab_extensions'), 'extensions', array_shift($areas['extensions']), $area) : '', '<td class="tabdown"><a href="' . hu . '" class="plain" target="blank">' . gTxt('tab_view_site') . '</a></td>', '</tr></table>', '</td></tr><tr id="nav-secondary"><td align="center" class="tabs" colspan="2">
			<table cellpadding="0" cellspacing="0" align="center"><tr>', tabsort($area, $event), '</tr></table>';
    }
    echo '</td></tr></table>';
}
Exemple #6
0
function pagetop($pagetitle, $message = "")
{
    global $css_mode, $siteurl, $path_from_root, $txp_user;
    $area = gps('area');
    $event = gps('event');
    $event = !$event ? 'article' : $event;
    $bm = gps('bm');
    $privs = safe_field("privs", "txp_users", "`name`='{$txp_user}'");
    $GLOBALS['privs'] = $privs;
    $ctabs = array('article', 'image', 'link', 'discuss', 'category', 'list');
    $ptabs = array('section', 'page', 'css', 'form');
    $atabs = array('prefs', 'admin', 'plugin', 'log');
    if (in_array($event, $ctabs)) {
        $area = 'content';
    } elseif (in_array($event, $ptabs)) {
        $area = 'presentation';
    } elseif (in_array($event, $atabs)) {
        $area = 'admin';
    }
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
			"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title>Textpattern &#8250; <?php 
    echo strtolower($pagetitle);
    ?>
</title>
	<link href="textpattern.css" rel="Stylesheet" type="text/css" />
	<script language="JavaScript" type="text/javascript">
	<!--
		function verify(msg) { return confirm(msg); }

		var cookieEnabled=(navigator.cookieEnabled)? true : false
		if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled) { 
			document.cookie="testcookie"
			cookieEnabled=(document.cookie=="testcookie")? true : false
			document.cookie="" //erase dummy value
		}
		if(!cookieEnabled){
			confirm(<?php 
    echo "'" . gTxt('cookies_must_be_enabled') . "'";
    ?>
)
		}

		function toggleDisplay(obj_id){
			if (document.getElementById){
				var obj = document.getElementById(obj_id);
				if (obj.style.display == '' || obj.style.display == 'none'){
					var state = 'block';
				} else {
					var state = 'none';
				}
				obj.style.display = state;
			}
		}


	-->
	</script>
	</head>
	<body>
  <table cellpadding="0" cellspacing="0" width="100%" style="margin-bottom:2em">
  <tr><td align="left" style="background:#FFCC33"><img src="txp_img/textpattern.gif" height="15" width="368" alt="textpattern" /></td></tr>
  <tr><td align="center" class="tabs">
 		<?php 
    if (!$bm) {
        echo '<table cellpadding="0" cellspacing="0" align="center"><tr>
  <td valign="middle" style="width:368px">&nbsp;' . $message . '</td>', areatab(gTxt('tab_content'), 'content', 'article', $area), ($privs == 1 or $privs == 2 or $privs == 3 or $privs == 6) ? areatab(gTxt('tab_presentation'), 'presentation', 'page', $area) : '', ($privs == 1 or $privs == 2) ? areatab(gTxt('tab_admin'), 'admin', 'prefs', $area) : '', '<td class="tabdown"><a href="http://' . $siteurl . $path_from_root . '" class="plain" target="blank">' . gTxt('tab_view_site') . '</a></td>', '</tr></table>', '</td></tr><tr><td align="center" class="tabs">
			<table cellpadding="0" cellspacing="0" align="center"><tr>', tabsort($area, $event), '</tr></table>';
    }
    echo '</td></tr></table>';
}