コード例 #1
0
                     if (!in_array($field["options"]["mtm-other-table"] . "#structure", $p["tables"]) && substr($field["options"]["mtm-other-table"], 0, 8) != "bigtree_") {
                         $p["tables"][] = $field["options"]["mtm-other-table"] . "#structure";
                     }
                 }
                 // Include the custom field type if it was forgotten.
                 if (isset($custom_field_types[$field["type"]])) {
                     if (!in_array($field["type"], $p["field_types"])) {
                         $p["field_types"][] = $field["type"];
                     }
                 }
             }
             // For views/reports we just care about what table it's from
         } elseif ($action["view"]) {
             $auto = BigTreeAutoModule::getView($action["view"]);
         } elseif ($action["report"]) {
             $auto = BigTreeAutoModule::getReport($action["report"]);
         }
         if (!in_array($auto["table"] . "#structure", $p["tables"])) {
             $p["tables"][] = $auto["table"] . "#structure";
         }
     }
     if ($module["group"]) {
         $p["module_groups"][] = $module["group"];
     }
 }
 // Search the class files directory to see if one exists in there with our route.
 if (file_exists(SERVER_ROOT . "custom/inc/modules/" . $module["route"] . ".php")) {
     $p["files"][] = SERVER_ROOT . "custom/inc/modules/" . $module["route"] . ".php";
 }
 // Search the class files directory to see if one exists in there with our route.
 if (file_exists(SERVER_ROOT . "custom/inc/required/" . $module["route"] . ".php")) {
コード例 #2
0
ファイル: create.php プロジェクト: matthisamoto/Graphfan
    $package["components"]["module_groups"][] = $admin->getModuleGroup($group);
}
foreach ((array) $modules as $module) {
    $module = $admin->getModule($module);
    if ($module) {
        $module["actions"] = $admin->getModuleActions($module["id"]);
        foreach ($module["actions"] as $a) {
            // If there's an auto module, include it as well.
            if ($a["form"] && !in_array($a["form"], $used_forms)) {
                $module["forms"][] = BigTreeAutoModule::getForm($a["form"], false);
                $used_forms[] = $a["form"];
            } elseif ($a["view"] && !in_array($a["view"], $used_views)) {
                $module["views"][] = BigTreeAutoModule::getView($a["view"], false);
                $used_views[] = $a["view"];
            } elseif ($a["report"] && !in_array($a["report"], $used_reports)) {
                $module["reports"][] = BigTreeAutoModule::getReport($a["report"]);
                $used_reports[] = $a["report"];
            }
        }
        $module["embed_forms"] = $admin->getModuleEmbedForms("title", $module["id"]);
        $package["components"]["modules"][] = $module;
    }
}
foreach ((array) $templates as $template) {
    $package["components"]["templates"][] = $cms->getTemplate($template);
}
foreach ((array) $callouts as $callout) {
    $package["components"]["callouts"][] = $admin->getCallout($callout);
}
foreach ((array) $feeds as $feed) {
    $package["components"]["feeds"][] = $cms->getFeed($feed);
コード例 #3
0
ファイル: report.php プロジェクト: kurt-planet/BigTree-CMS
<?php

$bigtree["report"] = BigTreeAutoModule::getReport($bigtree["module_action"]["report"]);
$bigtree["form"] = BigTreeAutoModule::getRelatedFormForReport($bigtree["report"]);
$bigtree["view"] = $bigtree["report"]["view"] ? BigTreeAutoModule::getView($bigtree["report"]["view"]) : BigTreeAutoModule::getRelatedViewForReport($bigtree["report"]);
if ($admin->Level > 1) {
    $bigtree["subnav_extras"][] = array("link" => ADMIN_ROOT . "developer/modules/reports/edit/" . $bigtree["report"]["id"] . "/?return=front", "icon" => "setup", "title" => "Edit in Developer");
}
$action = $bigtree["commands"][0];
if ($action == "csv") {
    include BigTree::path("admin/auto-modules/reports/csv.php");
} elseif ($action == "view") {
    include BigTree::path("admin/auto-modules/reports/view.php");
} else {
    include BigTree::path("admin/auto-modules/reports/filter.php");
}
コード例 #4
0
ファイル: edit.php プロジェクト: kurt-planet/BigTree-CMS
<?php

$report = BigTreeAutoModule::getReport(end($bigtree["commands"]));
$action = $admin->getModuleActionForReport($report);
BigTree::globalizeArray($report);
// Find out available views to use
$available_views = $admin->getModuleViews("title", $action["module"]);
?>
<div class="container">
	<form method="post" action="<?php 
echo SECTION_ROOT;
?>
update/<?php 
echo $report["id"];
?>
/" class="module">
		<?php 
if ($_GET["return"] == "front") {
    ?>
		<input type="hidden" name="return_page" value="<?php 
    echo htmlspecialchars($_SERVER["HTTP_REFERER"]);
    ?>
" />
		<?php 
}
?>
		<section>
			<div class="left last">
				<fieldset>
					<label class="required">Title</label>
					<input type="text" class="required" name="title" value="<?php