-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.preview.php
More file actions
24 lines (24 loc) · 1.25 KB
/
Copy path7.preview.php
File metadata and controls
24 lines (24 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php if ($s_session['preview'] || $config->server->type == InterSite::QA) { // Precisa ser Global ?>
<?php
if ($config->server->type == InterSite::QA) {
$S = 'QA';
}
if ($s_session['preview']) {
if ($config->server->type == InterSite::QA) {
$S .= ' - '.mb_strtoupper('Preview');
} else {
$S = mb_strtoupper('Preview');
}
}
?>
<script>
function interadmin_preview(){
if(confirm("Deseja sair do modo PREVIEW e ir para o modo PUBLICADO?")) location='http://<?php echo $_SERVER['HTTP_HOST'] ?>/<?php echo $c_path ?>visualizar.php?redirect='+location.toString()
}
</script>
<div class="preview_type" style="left:0px;border-width:0px 1px 1px 0px;background:#FFCC00;filter:alpha(opacity=50);z-index:1000"><?php echo $S ?></div>
<div class="preview_type" style="right:0px;border-width:0px 0px 1px 1px;background:#FFCC00;filter:alpha(opacity=50);z-index:1000"><?php echo $S ?></div>
<div class="preview_type" style="left:0px;border-width:0px 1px 1px 0px;z-index:1001"<?php /* onclick="interadmin_preview()"*/ ?>><?php echo $S ?></div>
<div class="preview_type" style="right:0px;border-width:0px 0px 1px 1px;z-index:1001"<?php /* onclick="interadmin_preview()"*/ ?>><?php echo $S ?></div>
<?php
} ?>