Beispiel #1
0
/**
 * main function for churchauth
 * @return string
 */
function churchauth_main()
{
    if (!user_access("administer persons", "churchcore")) {
        addInfoMessage(t("no.permission.for", "<i>administer persons</i>"));
        return " ";
    }
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(BOOTSTRAP . '/js/bootstrap-multiselect.js');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_css(ASSETS . '/dynatree/ui.dynatree.css');
    drupal_add_js(ASSETS . '/dynatree/jquery.dynatree-1.2.4.js');
    drupal_add_js(CHURCHCORE . '/churchcore.js');
    drupal_add_js(CHURCHCORE . '/churchforms.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCORE . '/cc_interface.js');
    drupal_add_js(CHURCHCORE . '/cc_authview.js');
    drupal_add_js(CHURCHCORE . '/cc_authmain.js');
    drupal_add_js(createI18nFile("churchcore"));
    $content = '
<div class="row-fluid">
  <div class="span3">
    <div id="cdb_menu"></div>
    <div id="cdb_filter"></div>
  </div>
  <div class="span9">
    <div id="cdb_search"></div>
    <div id="cdb_group"></div>
    <div id="cdb_content"></div>
  </div>
</div>';
    return $content;
}
function churchreport_main()
{
    global $files_dir;
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(ASSETS . '/pivottable/pivot.js');
    drupal_add_css(ASSETS . '/pivottable/pivot.css');
    drupal_add_js(CHURCHREPORT . '/report_maintainview.js');
    drupal_add_js(CHURCHREPORT . '/churchreport.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchreport"));
    $text = '<div id="cdb_navi"></div>';
    $text .= '<div id="cdb_menu"></div>';
    $text .= '<div id="cdb_content"></div>';
    $page = '<div class="row-fluid">';
    $page .= '<div class="span12">' . $text . '</div>';
    $page .= '</div>';
    return $page;
}
/**
 * ChurchTools 2.0
 * http://www.churchtools.de
 *
 * Copyright (c) 2014 Jens Martin Rauen
 * Licensed under the MIT license, located in LICENSE.txt
 *
 * ChurchCal Module
 * Depends on ChurchCore
 *
 */
function churchcal_main()
{
    global $config, $base_url, $config, $embedded;
    drupal_add_css(ASSETS . '/fullcalendar/fullcalendar.css');
    if (isset($_GET["printview"])) {
        drupal_add_css(ASSETS . '/fullcalendar/fullcalendar.print.css');
    }
    drupal_add_css(ASSETS . '/simplecolorpicker/jquery.simplecolorpicker.css');
    drupal_add_js(ASSETS . '/simplecolorpicker/jquery.simplecolorpicker.js');
    drupal_add_js(ASSETS . '/fullcalendar/fullcalendar.min.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCAL . '/eventview.js');
    drupal_add_js(CHURCHCAL . '/yearview.js');
    drupal_add_js(CHURCHCAL . '/calendar.js');
    drupal_add_js(CHURCHCAL . '/cal_sources.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchcal"));
    $txt = '';
    if (isset($_GET["category_id"]) && $_GET["category_id"] != "" && $_GET["category_id"] != "null") {
        $txt .= '<input type="hidden" id="filtercategory_id" name="category_id" value="' . $_GET["category_id"] . '"/>';
    }
    if ($embedded) {
        if (variable_get("churchcal_css", "-") != "-") {
            $txt .= '<style>' . variable_get("churchcal_css") . '</style>';
        }
        if (isset($_GET["cssurl"])) {
            drupal_add_css($_GET["cssurl"]);
        }
        if (isset($_GET["category_select"]) && $_GET["category_select"] != "" && $_GET["category_select"] != "null") {
            $txt .= '<input type="hidden" id="filtercategory_select" name="category_select" value="' . $_GET["category_select"] . '"/>';
        }
        if (isset($_GET["minical"]) && $_GET["minical"] == "true") {
            $txt .= '<input type="hidden" id="isminical"/>';
        }
        $txt .= '<div class="row-fluid">';
        $txt .= '<div id="cdb_filter"></div>';
        $txt .= '</div>';
        $txt .= '<div id="calendar"></div>';
        $txt .= '<input type="hidden" id="isembedded"/>';
        if (isset($_GET["title"])) {
            $txt .= '<input type="hidden" id="embeddedtitle" value="' . $_GET["title"] . '"/>';
        }
        if (isset($_GET["printview"])) {
            $txt .= '<input type="hidden" id="printview" value="true"/>';
        }
        if (isset($_GET["entries"])) {
            $txt .= '<input type="hidden" id="entries" value="' . $_GET["entries"] . '"/>';
        }
        if (isset($_GET["startdate"])) {
            $txt .= '<input type="hidden" id="init_startdate" value="' . $_GET["startdate"] . '"/>';
        }
        if (isset($_GET["enddate"])) {
            $txt .= '<input type="hidden" id="init_enddate" value="' . $_GET["enddate"] . '"/>';
        }
    } else {
        $txt .= '<div class="row-fluid">
  					<div class="span3"><div id="cdb_filter"></div></div>
  					<div class="span9"><div id="header" class="pull-right"></div><div id="calendar"></div></div>' . '<p align=right><small>' . '<a target="_blank" href="' . $base_url . '?q=churchcal&embedded=true&category_id=null">' . $config["churchcal_name"] . ' ' . t("embedding") . '</a>
  			  <a target="_clean" href="http://intern.churchtools.de/?q=churchwiki#WikiView/filterWikicategory_id:0/doc:ChurchCal%C2%A0einbetten/"><i class="icon-question-sign"></i></a>
  			    &nbsp; <a id="abo" href="' . $base_url . '?q=churchcal/ical">' . $config["churchcal_name"] . ' ' . t("subscribe.per.ical") . '</a>' . '</small>';
    }
    if (isset($_GET["date"])) {
        $txt .= '<input type="hidden" name="viewdate" id="viewdate" value="' . $_GET["date"] . '"/>';
    }
    if (isset($_GET["viewname"])) {
        $txt .= '<input type="hidden" name="viewname" id="viewname" value="' . $_GET["viewname"] . '"/>';
    }
    return $txt;
}
<script> <?php 
echo "var settings=new Object();";
echo "settings.files_url=\"{$base_url}{$files_dir}\";";
echo "settings.base_url=\"{$base_url}\";";
echo "settings.q=\"{$q}\";";
echo "settings.user=new Object();";
if (isset($user)) {
    echo "settings.user.id=\"{$user->id}\";";
    echo "settings.user.vorname=\"{$user->vorname}\";";
    echo "settings.user.name=\"{$user->name}\";";
}
echo 'version=' . $config["version"];
?>
</script>
<script src="<?php 
echo createI18nFile("churchcore");
?>
"></script>

 <link rel="shortcut icon" href="<?php 
echo ASSETS;
?>
/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php 
echo ASSETS;
?>
/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php 
echo ASSETS;
?>
/ico/apple-touch-icon-114-precomposed.png">
/**
 * main function for churchservice
 * @return string
 */
function churchservice_main()
{
    global $version, $files_dir, $config;
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(BOOTSTRAP . '/js/bootstrap-multiselect.js');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(ASSETS . '/mediaelements/mediaelement-and-player.min.js');
    drupal_add_css(ASSETS . '/mediaelements/mediaelementplayer.css');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_listview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_main.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchservice"));
    $content = "";
    // ids for direct links
    if ($id = getVar("id")) {
        $content .= "<input type='hidden' id='externevent_id' value='{$id}'/>";
    }
    if ($sId = getVar("service_id")) {
        $content .= "<input type='hidden' id='service_id' value='{$sId}'/>";
    }
    $content .= "\n<div class='row-fluid'>\n  <div class='span3'>\n    <div id='cdb_menu'></div>\n    <div id='cdb_filter'></div>\n  </div>\n  <div class='span9'>\n    <div id='cdb_search'></div>\n    <div id='cdb_group'></div>\n    <div id='cdb_content'></div>\n  </div>\n</div>\n";
    return $content;
}
Beispiel #6
0
/**
 * ChurchTools 2.0
 * http://www.churchtools.de
 *
 * Copyright (c) 2014 Jens Martin Rauen
 * Licensed under the MIT license, located in LICENSE.txt
 *
 * ChurchCal Module
 * Depends on ChurchCore
 */
function churchcal_main()
{
    global $config, $base_url, $config, $embedded;
    drupal_add_css(ASSETS . '/fullcalendar/fullcalendar.css');
    if (isset($_GET["printview"])) {
        drupal_add_css(ASSETS . '/fullcalendar/fullcalendar.print.css');
    }
    drupal_add_css(ASSETS . '/simplecolorpicker/jquery.simplecolorpicker.css');
    drupal_add_js(ASSETS . '/simplecolorpicker/jquery.simplecolorpicker.js');
    drupal_add_js(ASSETS . '/fullcalendar/moment.min.js');
    drupal_add_js(ASSETS . '/fullcalendar/fullcalendar.min.js');
    drupal_add_js(CHURCHCORE . '/cc_events.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCAL . '/eventview.js');
    drupal_add_js(CHURCHCAL . '/yearview.js');
    drupal_add_js(CHURCHCAL . '/calendar.js');
    drupal_add_js(CHURCHCAL . '/cal_sources.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchcal"));
    $txt = '';
    if ($catId = getVar("category_id")) {
        include_once CHURCHCAL . '/churchcal_db.php';
        $auth = churchcal_getAuthForAjax();
        $perm = true;
        foreach (explode(",", $catId) as $id) {
            // Check permission, perhaps show login mask
            if (empty($auth["view category"]) || empty($auth["view category"][$id])) {
                $perm = false;
            }
        }
        if (!$perm) {
            include_once MAIN . '/login.php';
            $login = login_main();
            if (!userLoggedIn()) {
                return $login;
            }
        }
        $txt .= '<input type="hidden" id="filtercategory_id" name="category_id" value="' . $catId . '"/>' . NL;
        if ($id = getVar("id")) {
            // only of category_id is set
            $txt .= '<input type="hidden" id="filterevent_id" name="id" value="' . $id . '"/>' . NL;
        }
    }
    if (getVar("printview")) {
        $txt .= '<input type="hidden" id="printview" value="true"/>';
        $embedded = true;
    }
    if ($embedded) {
        if ($catSel = getVar("category_select")) {
            $txt .= '<input type="hidden" id="filtercategory_select" name="category_select" value="' . $catSel . '"/>' . NL;
        }
        if ($cssUrl = getVar("cssurl")) {
            drupal_add_css($cssUrl);
        }
        // if (getConf("churchcal_css", "-") != "-") $txt .= '<style>' . getConf("churchcal_css") . '</style>'; //TODO: is
        // the '-' important?
        if ($css = getConf("churchcal_css")) {
            $txt .= "<style>{$css}</style>" . NL;
        }
        if (getVar("minical")) {
            $txt .= '<input type="hidden" id="isminical"/>';
        }
        $txt .= '
        <div class="row-fluid">
          <div id="cdb_filter"></div>
        </div>
        <div id="cdb_content"><div id="calendar"></div></div>
    ';
        if (getVar("embedded")) {
            $txt .= '<input type="hidden" id="isembedded"/>';
        }
        if ($t = getVar("title")) {
            $txt .= '<input type="hidden" id="embeddedtitle" value="' . $t . '"/>';
        }
        if ($e = getVar("entries")) {
            $txt .= '<input type="hidden" id="entries" value="' . $e . '"/>';
        }
        if ($s = getVar("startdate")) {
            $txt .= '<input type="hidden" id="init_startdate" value="' . $s . '"/>';
        }
        if ($e = getVar("enddate")) {
            $txt .= '<input type="hidden" id="init_enddate" value="' . $e . '"/>';
        }
    } else {
        $txt .= '
      <div class="row-fluid">
    <div class="span3"><div id="cdb_filter"></div></div>
    <div class="span9"><div id="header" class="pull-right"></div><div id="cdb_content"><div id="calendar"></div></div></div>
        <p align=right><small>
          <a target="_blank" href="' . $base_url . '?q=churchcal&embedded=true"> ' . t("embed", getConf("churchcal_name")) . '</a>
          <a target="_clean" href="http://intern.churchtools.de/?q=churchwiki#WikiView/filterWikicategory_id:0/doc:ChurchCal%C2%A0einbetten/"><i class="icon-question-sign"></i></a>
          &nbsp; <a id="abo" href="' . $base_url . '?q=churchcal/ical">' . $config["churchcal_name"] . ' ' . t("subscribe.to.ical") . '</a>' . '</small>';
    }
    if ($d = getVar("date")) {
        $txt .= '<input type="hidden" name="viewdate" id="viewdate" value="' . $d . '"/>';
    }
    if ($v = getVar("viewname")) {
        $txt .= '<input type="hidden" name="viewname" id="viewname" value="' . $v . '"/>';
    }
    return $txt;
}
/**
 * view external map
 * 
 * TODO: maybe support use of openStreetMap too?
 * 
 * @return string
 */
function externmapview_main()
{
    global $user;
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(CHURCHCORE . '/shortcut.js');
    drupal_add_css(ASSETS . '/ui/jquery-ui-1.8.18.custom.css');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.core.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.position.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.widget.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.autocomplete.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.dialog.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.mouse.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.draggable.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.resizable.min.js');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/ckeditor/ckeditor.js');
    drupal_add_js(ASSETS . '/ckeditor/lang/de.js');
    drupal_add_js(CHURCHCORE . '/churchcore.js');
    drupal_add_js(CHURCHCORE . '/churchforms.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCORE . '/cc_interface.js');
    drupal_add_js(CHURCHDB . '/cdb_cdbstandardview.js');
    drupal_add_js(CHURCHDB . '/cdb_geocode.js');
    drupal_add_js(CHURCHDB . '/cdb_loadandmap.js');
    //drupal_add_js(CHURCHDB .'/cdb_mapview.js');
    drupal_add_js(CHURCHDB . '/cdb_externgroupview.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchdb"));
    // API v3
    $content = '<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>';
    // Übergabe der ID für den Direkteinstieg einer Person
    if (isset($_GET["g_id"]) && $_GET["g_id"] != null) {
        $content = $content . '<input type="hidden" id="g_id" value="' . $_GET["g_id"] . '"/>';
    }
    $content = $content . "\n    <div id=\"cdb_content\" style=\"width:100%;height:500px\"></div>";
    return $content;
}
function churchwiki_main()
{
    global $files_dir;
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/tablesorter/jquery.tablesorter.min.js');
    drupal_add_js(ASSETS . '/tablesorter/jquery.tablesorter.widgets.min.js');
    drupal_add_js(ASSETS . '/mediaelements/mediaelement-and-player.min.js');
    drupal_add_css(ASSETS . '/mediaelements/mediaelementplayer.css');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(ASSETS . '/ckeditor/ckeditor.js');
    drupal_add_js(ASSETS . '/ckeditor/lang/de.js');
    drupal_add_js(CHURCHWIKI . '/wiki_maintainview.js');
    drupal_add_js(CHURCHWIKI . '/churchwiki.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchwiki"));
    $doc_id = "";
    if (isset($_GET["doc"])) {
        $doc_id = $_GET["doc"];
    }
    $text = '<div id="cdb_navi"></div>';
    $text .= '<div id="cdb_content"></div>';
    if ($doc_id != "") {
        $text .= '<input type="hidden" id="doc_id" name="doc_id" value="' . $doc_id . '"/>';
    }
    $page = '<div class="row-fluid">';
    $page .= '<div class="span3 bs-docs-sidebar">';
    $page .= '<div class="bs-docs-sidebar" id="cdb_menu"></div>';
    $page .= '<div class="bs-docs-sidebar" id="sidebar"></div>';
    $page .= '</div>';
    $page .= '<div class="span9">' . $text . '</div>';
    $page .= '</div>';
    return $page;
}
Beispiel #9
0
  <script src="<?php 
echo CHURCHCORE;
?>
/churchforms.js?<?php 
echo JS_VERSION;
?>
"></script>
  <script src="<?php 
echo CHURCHCORE;
?>
/cc_interface.js?<?php 
echo JS_VERSION;
?>
"></script>
  <script src="<?php 
echo createI18nFile("churchcore") . "?" . JS_VERSION;
?>
"></script>
  <script>
      var settings=new Object();
      settings.files_url="<?php 
echo $base_url . $files_dir;
?>
";
      settings.base_url="<?php 
echo $base_url;
?>
";
      settings.q="<?php 
echo $q;
?>
Beispiel #10
0
/**
 * view external map
 *
 * TODO: maybe support use of openStreetMap too?
 *
 * @return string
 */
function externmapview_main()
{
    global $user;
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(CHURCHCORE . '/shortcut.js');
    drupal_add_css(ASSETS . '/ui/jquery-ui-1.8.18.custom.css');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.core.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.position.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.widget.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.autocomplete.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.dialog.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.mouse.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.draggable.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.resizable.min.js');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/ckeditor/ckeditor.js');
    drupal_add_js(ASSETS . '/ckeditor/lang/de.js');
    drupal_add_js(CHURCHCORE . '/churchcore.js');
    drupal_add_js(CHURCHCORE . '/churchforms.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCORE . '/cc_interface.js');
    drupal_add_js(CHURCHDB . '/cdb_cdbstandardview.js');
    drupal_add_js(CHURCHDB . '/cdb_geocode.js');
    drupal_add_js(CHURCHDB . '/cdb_loadandmap.js');
    // drupal_add_js(CHURCHDB .'/cdb_mapview.js');
    drupal_add_js(CHURCHDB . '/cdb_externgroupview.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchdb"));
    // API v3
    $content = '<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>';
    // id for direct access of a person
    if ($id = getVar("g_id")) {
        $content .= "<input type='hidden' id='g_id' value='{$id}'/>";
    }
    $content .= NL . '<div id="cdb_content" style="width:100%;height:500px"></div>' . NL;
    return $content;
}
function churchservice_main()
{
    global $version, $files_dir, $config;
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(BOOTSTRAP . '/js/bootstrap-multiselect.js');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(ASSETS . '/mediaelements/mediaelement-and-player.min.js');
    drupal_add_css(ASSETS . '/mediaelements/mediaelementplayer.css');
    drupal_add_js(ASSETS . '/ckeditor/ckeditor.js');
    drupal_add_js(ASSETS . '/ckeditor/lang/de.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_loadandmap.js');
    drupal_add_js(CHURCHSERVICE . '/cs_settingsview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_maintainview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_listview.js');
    //drupal_add_js(CHURCHSERVICE .'/cs_testview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_calview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_factview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_agendaview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_songview.js');
    drupal_add_js(CHURCHSERVICE . '/cs_main.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchservice"));
    $content = "";
    // �bergabe der ID f�r den Direkteinstieg einer Person
    if (isset($_GET["id"]) && $_GET["id"] != null) {
        $content = $content . "<input type=\"hidden\" id=\"externevent_id\" value=\"" . $_GET["id"] . "\"/>";
    }
    if (isset($_GET["service_id"]) && $_GET["service_id"] != null) {
        $content = $content . "<input type=\"hidden\" id=\"service_id\" value=\"" . $_GET["service_id"] . "\"/>";
    }
    $content = $content . " \n<div class=\"row-fluid\">\n  <div class=\"span3\">\n    <div id=\"cdb_menu\"></div>\n    <div id=\"cdb_filter\"></div>\n  </div>  \n  <div class=\"span9\">\n    <div id=\"cdb_search\"></div> \n    <div id=\"cdb_group\"></div> \n    <div id=\"cdb_content\"></div>\n  </div>\n</div>";
    return $content;
}
/**
 * print view
 * echo html content
 */
function churchresource__printview()
{
    global $user;
    drupal_add_js(ASSETS . "/js/jquery-2.1.1.js");
    drupal_add_js(ASSETS . "/js/jquery-migrate-1.2.1.min.js");
    drupal_add_js(CHURCHCORE . '/shortcut.js');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.core.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.datepicker.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.position.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.widget.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.autocomplete.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.dialog.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.mouse.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.draggable.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.resizable.min.js');
    drupal_add_js(CHURCHCORE . '/churchcore.js');
    drupal_add_js(CHURCHCORE . '/cc_events.js');
    drupal_add_js(CHURCHCORE . '/churchforms.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCORE . '/cc_interface.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_loadandmap.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_maintainview.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_weekview.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_main.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchresource"));
    $content = "<html><head>" . drupal_get_header();
    $content .= '<link type="text/css" rel="stylesheet" media="all" href="' . INCLUDES . '/churchtools.css" />';
    $content .= '<link type="text/css" rel="stylesheet" media="all" href="' . CHURCHRESOURCE . '/cr_printview.css" />';
    $content .= "</head><body>";
    $content .= "<input type='hidden' id='printview' value='true'/>";
    $content .= "<script>jsversion=" . JS_VERSION . "</script>";
    if ($curdate = getVar("curdate")) {
        $content .= "<input type='hidden' id='curdate' value='{$curdate}'/>";
    }
    $content .= "<div id='cdb_f_ilter'></div></div> <div id='cdb_content'>Seite wird aufgebaut...</div>";
    $content .= "</body></html>";
    echo $content;
}
function churchresource__printview()
{
    global $user;
    $content = "<html><head>";
    drupal_add_js(ASSETS . "/js/jquery-1.10.2.min.js");
    drupal_add_js(ASSETS . "/js/jquery-migrate-1.2.1.min.js");
    drupal_add_js(CHURCHCORE . '/shortcut.js');
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.core.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.datepicker.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.position.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.widget.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.autocomplete.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.dialog.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.mouse.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.draggable.min.js');
    drupal_add_js(ASSETS . '/ui/jquery.ui.resizable.min.js');
    drupal_add_js(CHURCHCORE . '/churchcore.js');
    drupal_add_js(CHURCHCORE . '/churchforms.js');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(CHURCHCORE . '/cc_interface.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_loadandmap.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_maintainview.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_weekview.js');
    drupal_add_js(CHURCHRESOURCE . '/cr_main.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchresource"));
    $content = $content . drupal_get_header();
    $content = $content . '<link type="text/css" rel="stylesheet" media="all" href="' . phpLUDES . '/churchtools.css" />';
    $content = $content . '<link type="text/css" rel="stylesheet" media="all" href="' . CHURCHRESOURCE . '/cr_printview.css" />';
    $content = $content . "</head><body>";
    $content = $content . "<input type=\"hidden\" id=\"printview\" value=\"true\"/>";
    if (isset($_GET["curdate"]) && $_GET["curdate"] != null) {
        $content = $content . "<input type=\"hidden\" id=\"curdate\" value=\"" . $_GET["curdate"] . "\"/>";
    }
    $content = $content . "<div id=\"cdb_f_ilter\"></div></div> <div id=\"cdb_content\">Seite wird aufgebaut...</div>";
    $content = $content . "</body></html>";
    echo $content;
}
Beispiel #14
0
/**
 * churchwiki print view
 * @return string html content
 */
function churchwiki__printview()
{
    global $files_dir;
    drupal_add_js(ASSETS . '/js/jquery.history.js');
    drupal_add_css(ASSETS . '/fileuploader/fileuploader.css');
    drupal_add_js(ASSETS . '/fileuploader/fileuploader.js');
    drupal_add_js(ASSETS . '/tablesorter/jquery.tablesorter.min.js');
    drupal_add_js(ASSETS . '/tablesorter/jquery.tablesorter.widgets.min.js');
    drupal_add_js(ASSETS . '/mediaelements/mediaelement-and-player.min.js');
    drupal_add_css(ASSETS . '/mediaelements/mediaelementplayer.css');
    drupal_add_js(CHURCHCORE . '/cc_abstractview.js');
    drupal_add_js(CHURCHCORE . '/cc_standardview.js');
    drupal_add_js(CHURCHCORE . '/cc_maintainstandardview.js');
    drupal_add_js(ASSETS . '/ckeditor/ckeditor.js');
    drupal_add_js(ASSETS . '/ckeditor/lang/de.js');
    drupal_add_js(CHURCHWIKI . '/wiki_maintainview.js');
    drupal_add_js(CHURCHWIKI . '/churchwiki.js');
    drupal_add_js(createI18nFile("churchcore"));
    drupal_add_js(createI18nFile("churchwiki"));
    $doc_id = urldecode(getVar("doc"));
    $content = '
    <div class="row-fluid">
      <div class="span12">
        <div id="cdb_content"></div>';
    if ($doc_id) {
        $content .= '
        <input type="hidden" id="doc_id" name="doc_id" value="' . $doc_id . '"/>';
    }
    $content .= '
      </div>
    </div>';
    return $content;
}