$render=explode(" ", $_POST['partial_render']);
if($_POST['alternavel_collapsed']=='true'){
$detail="O painel foi escondido!";
}
if($_POST['alternavel_collapsed']=='false'){
$detail="O painel é mostrado!";
}
if($_POST['alternavel_visible']=='false'){
$detail="O painel foi fechado!";
}
$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: "Ação realizada",
detail: "'.$detail.'",
severity: "info",
severityText: "Information"
}]
});
</script>
';
dc.cw("Panel", "widget_regular", {
id: "regular"
});
dc.cw("PlainMenu", "widget_menu", {
id: "menu"
, overlay: true
, my: "left top"
, at: "left bottom"
, trigger: "@(#alternavel_menu)"
, triggerEvent: "click"
, collision: "flip"
});
dc.cw("Panel", "panel", {
id: "alternavel"
, toggleable: true
, toggleSpeed: 500
, collapsed: false
, toggleOrientation: "vertical"
, toggleableHeader: false
, closable: true
, closeSpeed: 500
, hasMenu: true
, behaviors: {
toggle: function (ext, event) {
dc.ab({
s: "alternavel"
, e: "toggle"
, f: "formulario"
, p: "alternavel"
, u: "alerta"
}, ext);
}
, close: function (ext, event) {
dc.ab({
s: "alternavel"
, e: "close"
, f: "formulario"
, p: "alternavel"
, u: "alerta"
}, ext);
}
}
});
dc.cw("Panel", "widget_custom", {
id: "custom"
});