protected function style() { //var_dump($this->data); if ($this->data['view_style'] == 'compact') { Qdmvc_Helper::requestCompact(); } ?> <style> #wpfooter { display: none; } </style> <?php }
public function run2() { Qdmvc_Helper::requestCompact(); echo 'blank page!'; ?> <link href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" /> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <script> (function ($) { $(document).ready(function () { //alert('ddd'); $("<div id='qd34' style='width: auto !important; margin: 0 auto; height: auto !important;background-color: #000000;'></div>") .dialog({ "title": "Title", "buttons": { "OK": function () { $(this).dialog("close"); } }, resizeStop: function( event, ui ) { $('#qd34').width('auto'); } }) .dialogExtend({ "closable": true, // enable/disable close button "maximizable": true, // enable/disable maximize button "minimizable": true, // enable/disable minimize button "collapsable": true, // enable/disable collapse button "dblclick": "collapse", // set action on double click. false, 'maximize', 'minimize', 'collapse' "titlebar": "transparent", // false, 'none', 'transparent' "minimizeLocation": "right", // sets alignment of minimized dialogues "icons": { // jQuery UI icon class "close": "ui-icon-circle-close", "maximize": "ui-icon-circle-plus", "minimize": "ui-icon-circle-minus", "collapse": "ui-icon-triangle-1-s", "restore": "ui-icon-bullet" }, "load": function (evt, dlg) { //alert(evt.type); }, // event "beforeCollapse": function (evt, dlg) { //alert(evt.type); }, // event "beforeMaximize": function (evt, dlg) { //alert(evt.type); }, // event "beforeMinimize": function (evt, dlg) { //alert(evt.type); }, // event "beforeRestore": function (evt, dlg) { //alert(evt.type); }, // event "collapse": function (evt, dlg) { //alert(evt.type); }, // event "maximize": function (evt, dlg) { //alert(evt.type); }, // event "minimize": function (evt, dlg) { //alert(evt.type); }, // event "restore": function (evt, dlg) { } // event }); }); })(jQuery); </script> <?php }