Pode ter submenus e itens de menu aninhados
if(!$_POST["partial_render"]){
$_SESSION["acao"]="excluir";
header("Location: tiered.php");
}
$render=explode(" ",$_POST["partial_render"]);
if($_POST["source"]=="salvar"){
$sumary="Salvar";
$detail="Dados Salvos";
}
if($_POST["source"]=="atualizar"){
$sumary="Atualizar";
$detail="Dados Atualizados";
}
$resposta="
<span id="alerta" class="ui-growl-pl" data-widget="widget_alerta" data-summary="data-summary" data-detail="data-detail" data-severity="all,error" data-redisplay="true"></span>
<script id="alerta_s" type="text/javascript">
DinarteCoelho.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: [{
summary: "".$sumary.""
, detail: "".$detail.""
, severity: "info"
, severityText: "Information"
}]
});
</script>
";
if($_POST["source"]=="movel"){
$resposta="
<span id="alerta" class="ui-growl-pl" data-widget="widget_alerta" data-summary="data-summary" data-detail="data-detail" data-severity="all,error" data-redisplay="true"></span>
<script>
window.open("/sistema/movelsimulador.php", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,top=20,left=50,width=410,height=790");
</script>";
}
dc.cw("Growl", "widget_alerta", {
id: "alerta"
, sticky: false
, life: 6000
, escape: true
, keepAlive: false
, msgs: []
});
dc.cw("ContextMenu", "widget_menu", {
id: "menu"
});