Viewing file: viewNewsletter.php (7.75 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include "modTopView.php";
$emailCtrl = new GenericCtrl("Newsletter");
?>
<script src="../js/busca.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript" src="../js/lytebox.js"></script>
<link rel="stylesheet" href="css/lytebox.css" type="text/css" media="screen"/>
<style type="text/css">
.ajuste {
margin:0px !important;
padding:0px;
position:inherit !important;
}
.iten_list td {
height:100px;
}
</style>
<div class="lt" style="padding-bottom:0px!important;">
<div class="lt_topo">
<?= $this->getImage() ?>
<div class="lt_menu_topo">
<h1><?= $this->getCurrentTitle() ?></h1>
<ul>
<?= $this->getCurrentDescription() ?>
<div class="clear"></div>
</ul>
<div class="clear"></div>
</div>
<div id="statusRegistro" class="status_search">
<h3>Listagem de registros em <?= $this->getCurrentAlias() ?></h3>
<?= $this->writeStatusOptions() ?>
<?= $this->writeSearchForm($fieldSearch, $valueIniRetorno, $valueEndRetorno, $_GET) ?>
</div>
</div>
</div>
<div class="lt">
<div class="tool_list_top"><?php include "modActions.php" ?></div>
<div class="list_full">
<form name="FormLista" action="../app/cms/processa.php?lc=<?= $this->getArea() ?><?= $parametersUrl ?>" enctype="multipart/form-data" method="post" onSubmit="return Confirma()">
<input type="hidden" name="prm" value="<?= $this->parametrosAdd ?>"/>
<input type="hidden" name="galId" id="galId" value=""/>
<input type="hidden" name="action" value="DeleteList"/>
<table>
<tr>
<td>
<ul class="list_listing">
<li>
<table>
<tr class="list_top">
<td width="20px"><input name="" type="checkbox" value="" /></td>
<td width="80px"><a href="#"> ID </a></td>
<td width="280px"><a href="#"> Nome </a></td>
<td width="130px"><a href="#"> Email </a></td>
<td width="150px"><a href="#"> Data do Cadastro </a></td>
<td width="250px"><a href="#"> Local </a></td>
</tr>
<?php
/**
* Efetua o laço nos registros providos dos termos de pesquisa ou de acordo coma a paginação
*
*/
foreach($arrayList as $object){
?>
<tr class="iten_list" id="reg<?= $object['id'] ?>">
<td><input type="checkbox" name="check[]" value="<?= $object['id'] ?>"/></td>
<td style="position:relative">
<?= $object['id']?>
</td>
<td class="tx_titulo" style="position:relative;">
<h1><strong><?= $object['nome'] ?></strong></h1>
<div id="editTools<?= $object['id'] ?>" class="list_actions">
<?php if($this->getConfig()->getParameter("showEditButton") == true && $this->verificaPermissao($this->getArea(), "Alterar")){ ?>
<a title="Editar Cadastro" href="?lc=<?= $this->getArea() ?>&md=Form&id=<?= $object['id'] ?><?= $parametersUrl ?>">Editar</a> |
<?php } ?>
<a title="Ver Detalhes" href="javascript:;" onClick="showHideDiv('<?= "i".$object['id']?>')">Ver Detalhes</a>
<?php if($this->getConfig()->getParameter("showDeleteButton") == true && $this->verificaPermissao($this->getArea(), "Excluir")){ ?>
<a title="Excluir Cobrança" href="javascript:if(confirm('Deseja realmente excluir este cadastro?')) {window.parent.location='../app/cms/processa.php?lc=<?= $this->getArea() ?>&md=DeleteUnique&id=<?= $object['id'] ?><?= $parametersUrl ?>'}">| Excluir Cadastro</a>
<?php } ?>
<!--<a title="Visualizar" href="../../empresa_gerar_cobranca.php?id=<?= $object['id'] ?>" target="_blank">| Visualizar</a>-->
</div>
</td>
<td style="position:relative">
<?= $object['email'] ?>
</td>
<td style="position:relative">
<p style="padding:2px"><strong>
<span style='color: green'> <?= $data->convertDateSqlToDateBRExtense($object['dataCadastro']) ?></span>
</strong></p>
</td>
<td>
<p style="padding:2px"><strong>
<?php switch($object['local']){
case "A": echo "<span style='color: red'>Admin</span>"; break;
case "S": echo "<span style='color: green'>Site</span>"; break;
} ?>
</strong></p>
</td>
</tr>
<?php } ?>
<tr class="list_top">
<td><input name="" type="checkbox" value="" /></td>
<td width="80px"><a href="#"> ID </a></td>
<td width="280px"><a href="#"> Nome </a></td>
<td width="130px"><a href="#"> Email </a></td>
<td width="150px"><a href="#"> Data do Cadastro </a></td>
<td width="250px"><a href="#"> Local </a></td>
</tr>
</table>
</li>
</ul>
</td>
</tr>
</table>
<script>
$(function() {
// if the function argument is given to overlay,
// it is assumed to be the onBeforeLoad event listener
$("#comments_show a[rel]").overlay({
mask: '#fff',
effect: 'apple',
speed: 'fast',
closeOnClick: 'false',
onBeforeLoad: function() {
var wrap = this.getOverlay().find(".contentWrap");
wrap.load(this.getTrigger().attr("href"));
}
});
});
</script>
<input name="ids" type="hidden" id="ids" value="<?= $ids ?>" />
<input name="nroRegistros" type="hidden" id="nroRegistros" value="<?= $atualPages ?>" />
</form>
</div>
<?php include ("modPaginacao.php") ?>
</div>
<div style="clear:both"></div>
|