Created
May 18, 2014 23:54
-
-
Save Logiks/84dac51faad84559123e to your computer and use it in GitHub Desktop.
Logiks boiler plate code for a basic DigiOffice plugin based on page module (apppage). Just put these to files in a custom made folder. rename 'digioffice-module-apppage.php' to 'index.php', and the module is ready to be used with a pretty decent gui of toolbar,sidebar and content space.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('ROOT')) exit('No direct script access allowed'); | |
//session_check(true); | |
loadModule("page"); | |
$params["toolbar"]="printToolbar"; | |
$params["contentarea"]="printContent"; | |
printPageContent("apppage",$params); | |
function printToolbar() { ?> | |
<button onclick="window.location.reload()" style='width:46px;' ><div class='reloadicon'> </div></button> | |
<?php | |
} | |
function printContent() { | |
?> | |
<div style='width:100%;height:100%;overflow:hidden;'> | |
<div class='pageSidebar'> | |
</div> | |
<div class="componentSpace"> | |
</div> | |
</div> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!defined('ROOT')) exit('No direct script access allowed'); | |
//checkServiceSession(); | |
if(isset($_REQUEST['action'])) { | |
switch($_REQUEST['action']) { | |
default: | |
break; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment