Beispiel #1
0
/**
 * Smarty plugin
 *
 * @package    Smarty
 * @subpackage PluginsFunction
 * @author		Bismay Kumar Mohaptra
 */
function smarty_function_module($params, Smarty_Internal_Template $template)
{
    $src = explode(".", $params['src']);
    if (count($src) <= 1) {
        $GLOBALS['PAGETMPL'] = $template->smarty;
        $_ENV['MODULECONFIG'][$params['src']] = $params;
        return loadModule($params['src']);
    } else {
        $GLOBALS['PAGETMPL'] = $template->smarty;
        $_ENV['MODULECONFIG'][$src[0]] = $params;
        loadModuleLib($src[0], $src[1]);
    }
}
Beispiel #2
0
<?php

if (!defined('ROOT')) {
    exit('No direct script access allowed');
}
session_check(true);
_css(array("jquery.tagit"));
_js(array("jquery.tagit", "validator", "jquery.form.min"));
loadHelpers('uicomponents');
loadModule("editor");
loadEditor("cleditor");
if (isset($_REQUEST['refid'])) {
    loadModuleLib('api', 'api');
    $apiDetails = getApiDetails($_REQUEST['refid']);
} else {
    $apiDetails['editable'] = true;
}
if ($apiDetails['editable'] == 'true') {
    ?>
<style>
.cleditorMain {
	height: auto !important;
}
</style>
<div class="container-fluid">
	<div class="row">
		<div class="col-lg-12">

			<form  name="apiForm" id="apiForm" class='apiForm' onsubmit="return validateForm('#apiForm');">
				<input type="hidden" name="id" id="id" value="<?php 
    if (isset($apiDetails['id'])) {
Beispiel #3
0
        echo loadMedia("logos/logo-128.png");
        ?>
' alt='Logo Image' />
						<br/>
						Logiks GUIDES
					</h1>
		    </div>
		</div>
		<?php 
        break;
    default:
        if (isset($page[2])) {
            loadModule("guides");
        } elseif (isset($page[1])) {
            $_REQUEST['category'] = $page[1];
            loadModuleLib("guides", "list");
        } else {
            ?>
			<div class="container-fluid">
				<?php 
            if (session_check(false)) {
                ?>
				<div id='toolbar' class="text-right">
					<a href="<?php 
                echo _link("guides/create");
                ?>
">Create</a>
				</div>
				<?php 
            }
            ?>
Beispiel #4
0
<?php

if (!defined('ROOT')) {
    exit('No direct script access allowed');
}
loadModuleLib('guides', 'api');
$page = $_REQUEST['page'];
$pageArr = explode("/", $page);
if (count($pageArr) > 1) {
    $title = end($pageArr);
    $titleArr = explode("-", $title);
    $id = md5(end($titleArr));
    $guideDetails = getGuideDetails($id);
    //printArray($guideDetails);
    if ($guideDetails['viewable']) {
        ?>
<div class="guideContent container-fluid">
	<div class="row">
		<div class="col-lg-12">
			<?php 
        if (session_check(false)) {
            ?>
			<div id='toolbar' class="text-right">
				<a href="<?php 
            echo _link("guides/create");
            ?>
">Create</a> |
				<?php 
            if ($guideDetails['editable'] == 'true') {
                ?>
					<a href="<?php 
Beispiel #5
0
<?php

if (!defined('ROOT')) {
    exit('No direct script access allowed');
}
loadModuleLib('guides', 'api');
loadModuleLib("markitup", "api");
$page = $_REQUEST['page'];
$pageArr = explode("/", $page);
if (count($pageArr) > 1) {
    $title = end($pageArr);
    $titleArr = explode("-", $title);
    $id = md5(end($titleArr));
    $guideDetails = getGuideDetails($id);
    //printArray($guideDetails);
    if ($guideDetails['viewable']) {
        ?>
<div class="guideContent container-fluid">
	<div class="row">
		<div class="col-lg-12">
			<?php 
        if (session_check(false)) {
            ?>
			<div id='toolbar' class="text-right">
				<a href="<?php 
            echo _link("guides/create");
            ?>
">Create</a> |
				<?php 
            if ($guideDetails['editable'] == 'true') {
                ?>
Beispiel #6
0
        echo loadMedia("logos/logo-128.png");
        ?>
' alt='Logo Image' />
						<br/>
						Logiks APIDOCS
					</h1>
		    </div>
		</div>
		<?php 
        break;
    default:
        if (isset($page[2])) {
            loadModule("api");
        } elseif (isset($page[1])) {
            $_REQUEST['category'] = $page[1];
            loadModuleLib("api", "list");
        } else {
            ?>
			<div class="container-fluid">
				<?php 
            if (session_check(false)) {
                ?>
				<div id='toolbar' class="text-right">
					<a href="<?php 
                echo _link("api/create");
                ?>
">Create</a>
				</div>
				<?php 
            }
            ?>
Beispiel #7
0
<?php

if (!defined('ROOT')) {
    exit('No direct script access allowed');
}
checkServiceSession();
if (!isset($_REQUEST['datatype'])) {
    $_REQUEST['datatype'] = "json";
}
loadHelpers(array("sqlprint", "sqlsrc"));
loadModuleLib("reports", "jqgrid");
if ($_REQUEST['action'] == "load") {
    $src = "";
    $id = "";
    $tbl = "";
    if (isset($_REQUEST['sqlsrc'])) {
        $src = $_REQUEST['sqlsrc'];
    }
    if (isset($_REQUEST['sqlid'])) {
        $id = $_REQUEST['sqlid'];
    }
    if (isset($_REQUEST['sqltbl'])) {
        $tbl = $_REQUEST['sqltbl'];
    }
    if (!isset($_REQUEST['page'])) {
        $_REQUEST['page'] = "1";
    }
    if (!isset($_REQUEST['rows'])) {
        $_REQUEST['rows'] = "30";
    }
    if (!isset($_REQUEST['sidx'])) {
Beispiel #8
0
<?php

loadModuleLib("navigator", "api");
$menuTree1 = generateNavigationFromDB("default", "admin_links", "app");
$menuTree2 = generateNavigationFromDir(APPROOT . "misc/menus/", "app");
$menuTree = array_merge_recursive($menuTree1, $menuTree2);
//printArray($menuTree);exit();
?>
<style>
.sidebarMenu {
  width: 100%;
  overflow-x: auto;
  position: absolute;
  bottom: -20px;
  top: 32px;
  left: 0px;
  right: 0px;
}
</style>
<div class="panel-group sidebarMenu" id="accordion" role="tablist" aria-multiselectable="true">
  <?php 
foreach ($menuTree as $category => $menuSet) {
    if (count($menuSet) <= 0) {
        continue;
    }
    $hash = md5($category);
    echo "<div class='panel panel-default'>";
    echo "  <div class='panel-heading' role='tab' id='{$hash}'>";
    echo "    <h4 class='panel-title'>";
    echo "      <a role='button' data-toggle='collapse' data-parent='#accordion' href='#collapse{$hash}' aria-expanded='true' aria-controls='collapseOne'>";
    echo "        {$category}";