<?php 
    if ($converter == "coords" || !$selected) {
        ?>
    <div id="coords_converter" <?php 
        if (!$selected && !$show_coords_conv) {
            ?>
style="display:none;visibility:hidden;"<?php 
        }
        ?>
 >
<?php 
        if ($parted) {
            ?>
      <?php 
            echo getTopMenu(getCloseBtn("JavaScript:switchConverter(false,'coords_converter');", "<convert>#label=371<convert>") . '<div class="frame_title">' . setTitle("#", "details", "<convert>#label=266<convert>", 2) . '</div><!--Coordonnées-->');
        }
        ?>
      <form id="coords_converter_form" name="coords_converter_form" action="">
<?php 
        if ($parted) {
            ?>
				<div style="margin-top:10px;text-align:center;">
					<input name="manual" id="manual_true" type="radio" checked="checked" value="true" style="border:0px none;" onclick="javascript:converterHash.setManualMode(true);"><label for="manual_true"><convert>#label=920<convert><!--Manuel--></label>&nbsp;&nbsp;&nbsp;
					<input name="manual" id="manual_false" type="radio" value="false" style="border:0px none;" onclick="javascript:converterHash.setManualMode(false);"><label for="manual_false"><convert>#label=921<convert><!--CSV--></label>
				</div>
				<div style="margin-top:10px;">
					<label for="conv_country"><convert>#label=917<convert><!--Filtrer par pays :--></label>
          <select class="select2" name="conv_country" id="conv_country" onchange="JavaScript:countryOnChange(this);">
<?php 
            echo getOptionCountry($_SESSION['language'], "", "<convert>#label=918<convert>");
Beispiel #2
0
use INUtils\Entity\PostEntity;
use Staff\Controller\StaffController;
/*
  Template Name: staff
*/
$pageEntity = new PostEntity(get_the_ID());
$staffs = StaffController::getSingleton()->getAll();
get_header();
?>
<div class="container all-pad-gone">
    <?php 
echo do_shortcode('[slideshow group="about"]');
?>
    <?php 
echo getTopMenu();
?>
       
</div> 

<!--start main content here-->

<div class="container all-pad-gone">
    <div class="row">
        <div class="col-md-12 about">   
            <h2><?php 
echo $pageEntity->getTitle();
?>
</h2>
            <p><?php 
echo $pageEntity->getContent();
Beispiel #3
0
<?php

require_once 'conf.php';
require_once 'lib.php';
$conf['pageTitle'] .= " | Home";
$data['menu'] = getTopMenu();
$data['bodyContent'] = getHomeBodyContent();
require_once TEMPLATE;
function getHomeBodyContent()
{
    $temp = '<div class="home-container">';
    if (isLogin()) {
        global $current_user;
        $temp .= '<div class="user-info">';
        $temp .= 'Welcome ' . $current_user->name . '<br/>';
        $temp .= 'Email: ' . $current_user->email . '<br/>';
        $temp .= 'Username: '******'<br/>';
        $temp .= '</div>';
    } else {
        $temp .= '<div class="banner">
			  <img src="images/home-banner.jpg" width="597"/>
			  </div>
			  <div class="notice">
			  Share your feelings with your connections.<br/><br/>
			  <a href="signup.php" class="btn">Signup Now</a>
			  </div>
			  <div class="clear"></div>
			 ';
    }
    $temp .= '</div>';
    return $temp;
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/bootstrap-theme.min.css">
	<link rel="stylesheet" href="css/main.css">
	<link href='https://fonts.googleapis.com/css?family=Share+Tech' rel='stylesheet' type='text/css'>
		
</head>

<body>

	<!-- 1. header -->
	<?php 
require '/model/common/header.php';
?>
	<?php 
getTopMenu();
?>

	<!-- 2. caroussel -->
	<?php 
require '/model/common/carousel.php';
?>

	<!-- 3. content -->
	<div class="col-md-7 col--centered" name="content">
		<!-- A. secondary-menu -->
		<?php 
getSideMenu();
?>

		<!-- B. bloc-article -->
Beispiel #5
0
        ?>
      <form id="nearMeFrom" name="nearMeFrom" method="post" action="">
        <select style="width:100%;" name="markersNearMeSelect" id="markersNearMeSelect" size="5" onclick="JavaScript:selectOnClick(this);">
          <option></option>
        </select>
      </form>
      <?php 
        echo getBotMenu();
        ?>
  	</div>
<?php 
    }
    ?>
  	<div class="menu">
      <?php 
    echo getTopMenu('<div class="frame_title" style="margin-right:0px;">' . setTitle("#", "filter_3", "<convert>#label=381<convert>", 1) . '</div><!--Filtre d\'affichage-->');
    ?>
      <form id="visibilityFrom" name="visibilityFrom" method="post" action="" onsubmit="JavaScript:return false;">
        <input class="input1" style="border:0px none;" type="checkbox" id="entry" name="entry" onclick="visibilityOnClick(this.id, this.checked);" />
        <label for="entry">
          <img src="../images/icons/bullet_entry.png" alt="<convert>#label=384<convert>" /> <b>(<?php 
    echo countByCategory("entry");
    ?>
) <convert>#label=384<convert><!--Entrées--></b>
        </label><br />
        <input class="input1" style="border:0px none;" type="checkbox" id="grotto" name="grotto" onclick="visibilityOnClick(this.id, this.checked);" />
        <label for="grotto">
          <img src="../images/icons/bullet_grotto.png" alt="<convert>#label=386<convert>" /> <b>(<?php 
    echo countByCategory("grotto");
    ?>
) <convert>#label=386<convert><!--Clubs--></b>
      menuBeforeLoad();
<?php 
        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:menuOnLoad();">
    <?php 
        echo getTopFrame();
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
    <div class="menu">
		  <?php 
        echo getTopMenu(getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>") . '<div class="frame_title">' . setTitle("parameters_" . $_SESSION['language'] . ".php?type=menu", "filter", "<convert>#label=375<convert>", 2) . '</div><!--Mes paramètres-->');
        ?>
      <ul>
<?php 
        if (allowAccess(caver_edit_himself)) {
            ?>
        <li class ="sub_menu">
          <a href="JavaScript:menuDefault();"><convert>#label=412<convert><!--Enregistrer cette vue comme vue par défaut--></a>
        </li>
        <li class ="sub_menu">
          <a href="parameters_<?php 
            echo $_SESSION['language'];
            ?>
.php?type=account"><convert>#label=413<convert><!--Gérer mon compte--></a>
        </li>
        <li class ="sub_menu">
/**
 * This file is part of GrottoCenter.
 *
 * GrottoCenter is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * GrottoCenter is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with GrottoCenter.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @copyright Copyright (c) 2009-2012 Cl�ment Ronzon
 * @license http://www.gnu.org/licenses/agpl.txt
 */
function getProperties($category, $id, $isConnected, $labelsBlank, $labelsSinceDate, $addTitle, $systemArray = array(), $for_printer = false, $opener)
{
    switch ($category) {
        case "entry":
            $AvgAe = getAvgAestheticism($id);
            $sqlAe = "SELECT round(Aestheticism) AS Aestheticism FROM `" . $_SESSION['Application_host'] . "`.`T_comment` WHERE Id_entry=" . $id;
            $AvgCa = getAvgCaving($id);
            $sqlCa = "SELECT round(Caving) AS Caving FROM `" . $_SESSION['Application_host'] . "`.`T_comment` WHERE Id_entry=" . $id;
            $AvgAp = getAvgApproach($id);
            $sqlAp = "SELECT round(Approach) AS Approach FROM `" . $_SESSION['Application_host'] . "`.`T_comment` WHERE Id_entry=" . $id;
            if (!$addTitle) {
                $histoAe = "<div onclick=\"JavaScript:infoHistoAe();\" class=\"histo\"><img src=\"" . getHistoSrc($sqlAe, 'Aestheticism') . "\" alt=\"image\" /></div>\n";
                $histoCa = "<div onclick=\"JavaScript:infoHistoCa();\" class=\"histo\"><img src=\"" . getHistoSrc($sqlCa, 'Caving') . "\" alt=\"image\" /></div>\n";
                $histoAp = "<div onclick=\"JavaScript:infoHistoAp();\" class=\"histo\"><img src=\"" . getHistoSrc($sqlAp, 'Approach') . "\" alt=\"image\" /></div>\n";
            } else {
                $histoAe = "";
                $histoCa = "";
                $histoAp = "";
            }
            $sql = "SELECT cat.*, ty." . $_SESSION['language'] . "_type AS typeName, ca.Name as NetwName, ca.Id as NetwId, ma.Name AS MasName, ma.Id AS MasId, ";
            //$sql .= "IF(ISNULL(ca.Id)=1,eybis.Min_depth,ca.Min_depth) AS Min_depth, ";
            //$sql .= "IF(ISNULL(ca.Id)=1,eybis.Max_depth,ca.Max_depth) AS Max_depth, ";
            $sql .= "IF(ISNULL(ca.Id)=1,eybis.Depth,ca.Depth) AS Depth, ";
            $sql .= "IF(ISNULL(ca.Id)=1,eybis.Is_diving,ca.Is_diving) AS Is_diving, ";
            $sql .= "IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length) AS Length, ";
            $sql .= "IF(ISNULL(ca.Id)=1,eybis.Temperature,ca.Temperature) AS Temperature, ";
            $sql .= "IF(ISNULL(ca.Id)=1,NULL,(SELECT COUNT(*) FROM `" . $_SESSION['Application_host'] . "`.`J_cave_entry` WHERE ca.Id = Id_cave)) AS NumberOfEntries, ";
            $sql .= "GROUP_CONCAT(DISTINCT u.Url ORDER BY u.Url SEPARATOR '<br />\n') AS Partners ";
            $sql .= "FROM `" . $_SESSION['Application_host'] . "`.`T_entry` cat ";
            $sql .= "INNER JOIN `" . $_SESSION['Application_host'] . "`.`T_single_entry` eybis ON cat.Id = eybis.Id ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_type` ty ON cat.Id_type = ty.Id ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_cave_entry` ce ON cat.Id = ce.Id_entry ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_cave` ca ON ce.Id_cave = ca.Id ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_massif_cave` mc ON (mc.Id_cave = ca.Id OR mc.Id_entry = cat.Id) ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_massif` ma ON ma.Id = mc.Id_massif ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_entry_url` eu ON eu.Id_entry = cat.Id ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_url` u ON u.Id = eu.Id_url ";
            break;
        case "cave":
            $listSQL = "SELECT DISTINCT e.Id, e.Name ";
            $listSQL .= "FROM `" . $_SESSION['Application_host'] . "`.`T_entry` e ";
            $listSQL .= "INNER JOIN `" . $_SESSION['Application_host'] . "`.`J_cave_entry` ce ON ce.Id_entry = e.Id ";
            $listSQL .= "WHERE ce.Id_cave = " . $id . " AND e.Is_public = 'YES' ";
            if (!$isConnected) {
                $listSQL .= "AND e.Is_public = 'YES' ";
            }
            $listSQL .= "ORDER BY e.Name ";
            $entryList = getDataFromSQL($listSQL, __FILE__, "function", __FUNCTION__);
            $entriesList = "";
            for ($index = 0; $index < $entryList["Count"]; $index++) {
                $entriesList .= "<a href=\"JavaScript:openMe(" . $entryList[$index]['Id'] . ", 'entry', false);\">" . $entryList[$index]['Name'] . "</a>, ";
            }
            $entriesList = substr($entriesList, 0, strlen($entriesList) - 2);
            $sql = "SELECT cat.*, ma.Name AS MasName, ma.Id AS MasId ";
            $sql .= "FROM `" . $_SESSION['Application_host'] . "`.`T_cave` cat ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_massif_cave` mc ON mc.Id_cave = cat.Id ";
            $sql .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_massif` ma ON ma.Id = mc.Id_massif ";
            break;
        case "massif":
            $listSQL = "SELECT COUNT(*) AS Nb, ";
            $listSQL .= "-MAX(ABS(IF(ISNULL(ca.Id)=1,eybis.Depth,ca.Depth))) AS Max_Depth, ";
            $listSQL .= "MAX(ABS(IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length))) AS Max_Length, ";
            $listSQL .= "SUM(ABS(IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length))) AS Sum_Length, ";
            $listSQL .= "-AVG(ABS(IF(ISNULL(ca.Id)=1,eybis.Depth,ca.Depth))) AS Avg_Depth, ";
            $listSQL .= "STD(ABS(IF(ISNULL(ca.Id)=1,eybis.Depth,ca.Depth))) AS Std_Depth, ";
            $listSQL .= "AVG(ABS(IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length))) AS Avg_Length, ";
            $listSQL .= "STD(ABS(IF(ISNULL(ca.Id)=1,eybis.Length,ca.Length))) AS Std_Length ";
            $listSQL .= "FROM `" . $_SESSION['Application_host'] . "`.`T_entry` e ";
            $listSQL .= "INNER JOIN `" . $_SESSION['Application_host'] . "`.`T_single_entry` eybis ON e.Id = eybis.Id ";
            $listSQL .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_cave_entry` ce ON e.Id = ce.Id_entry ";
            $listSQL .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`T_cave` ca ON ca.Id = ce.Id_cave ";
            $listSQL .= "LEFT OUTER JOIN `" . $_SESSION['Application_host'] . "`.`J_massif_cave` mc ON (mc.Id_cave = ce.Id_cave OR mc.Id_entry = e.Id) ";
            $listSQL .= "WHERE mc.Id_massif = " . $id . " ";
            $entriesStats = getDataFromSQL($listSQL, __FILE__, "function", __FUNCTION__);
        default:
            $sql = "SELECT cat.* ";
            $sql .= "FROM `" . $_SESSION['Application_host'] . "`.`T_" . $category . "` cat ";
            break;
    }
    $sql .= "WHERE cat.Id = " . $id . " ";
    if (!$isConnected && $category == "entry") {
        $sql .= "AND cat.Is_public = 'YES' ";
    }
    if ($category == "entry") {
        $sql .= "GROUP BY cat.Id ";
        $sql .= "ORDER BY MasName DESC ";
    }
    $data = getDataFromSQL($sql, __FILE__, $opener, __FUNCTION__);
    if ($data['Count'] > 0) {
        $is_public = $data[0]['Contact_is_public'];
        $is_shown = $category == "caver" && ($is_public == Contact_for_registered && $isConnected || $is_public == Contact_for_everybody) || $category != "caver";
        if ($addTitle) {
            if (isset($data[0]['Nickname'])) {
                $title_name = $data[0]['Nickname'];
            } else {
                $title_name = $data[0]['Name'];
            }
            $innerHTML .= getTopMenu(getCloseBtn("JavaScript:resetDetails();", "<convert>#label=371<convert>") . "<div class=\"frame_title\">" . setTitle("#", "details", "<convert>#label=440<convert> " . $title_name, 1) . "</div>");
            //A propos de
        }
        if ($is_shown) {
            $innerHTML .= getInnerLine($data[0]['Name'], $data[0]['Name'], "<convert>#label=199<convert> :");
            //Nom
        }
        $innerHTML .= getInnerLine($entriesList, $entriesList, "<convert>#label=384<convert> :");
        //Entrées :
        $innerHTML .= getInnerLine($entriesStats[0]['Nb'], $entriesStats[0]['Nb'], "<convert>#label=384<convert> :");
        //Entrées :
        $innerHTML .= getInnerLine($entriesStats[0]['Max_Depth'], round($entriesStats[0]['Max_Depth']), "<convert>#label=758<convert> :", "", "<convert>#label=268<convert>");
        //Prof. Max. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Avg_Depth'], round($entriesStats[0]['Avg_Depth']), "<convert>#label=759<convert> :", "", "<convert>#label=268<convert>");
        //Prof. Moy. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Std_Depth'], round($entriesStats[0]['Std_Depth']), "<convert>#label=760<convert> :", "", "<convert>#label=268<convert>");
        //E.Type Prof. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Max_Length'], round($entriesStats[0]['Max_Length']), "<convert>#label=761<convert> :", "", "<convert>#label=268<convert>");
        //Dev. Max. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Sum_Length'], round($entriesStats[0]['Sum_Length']), "<convert>#label=762<convert> :", "", "<convert>#label=268<convert>");
        //Dev. Total ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Avg_Length'], round($entriesStats[0]['Avg_Length']), "<convert>#label=763<convert> :", "", "<convert>#label=268<convert>");
        //Dev. Moy. ://m
        $innerHTML .= getInnerLine($entriesStats[0]['Std_Length'], round($entriesStats[0]['Std_Length']), "<convert>#label=764<convert> :", "", "<convert>#label=268<convert>");
        //E.Type Dev. ://m
        if ($isConnected) {
            $innerHTML .= getInnerLine($data[0]['Locked'], convertYN($data[0]['Locked'], "<convert>#label=441<convert>", "<convert>#label=442<convert>"), "<convert>#label=443<convert> :");
            //Oui //Non //Est en cours de modification
            $innerHTML .= getInnerLine($data[0]['Is_public'], convertYN($data[0]['Is_public'], "<convert>#label=441<convert>", "<convert>#label=442<convert>"), "<convert>#label=444<convert> :");
            //Est publique
        }
        $innerHTML .= getInnerLine($data[0]['typeName'], $data[0]['typeName'], "<convert>#label=114<convert> :");
        //Type de sous-sol
        if ($is_shown) {
            $innerHTML .= getInnerLine($data[0]['Surname'], $data[0]['Surname'], "<convert>#label=200<convert> :");
            //Prénom
        }
        $innerHTML .= getInnerLine($data[0]['Nickname'], $data[0]['Nickname'], "<convert>#label=34<convert> :");
        //Alias
        if ($is_shown) {
            $innerHTML .= getInnerLine($data[0]['Date_birth'], timeToStr($data[0]['Date_birth']), "<convert>#label=445<convert> ", "", "<convert>#label=446<convert>", getSinceDateFromD(cDate($data[0]['Date_birth'], false), $labelsBlank), "", "<convert>#label=447<convert>");
            //Né(e) le //(mm/jj/aaaa) //ans
        }
        $innerHTML .= getInnerLine($data[0]['Year_discovery'], $data[0]['Year_discovery'], "<convert>#label=109<convert> :", "", "", getSinceDateFromD("01/01/" . $data[0]['Year_discovery'], $labelsSinceDate));
        //Année de découverte
        $innerHTML .= getInnerLine($data[0]['Year_birth'], $data[0]['Year_birth'], "<convert>#label=147<convert> :", "", "", getSinceDateFromD("01/01/" . $data[0]['Year_birth'], $labelsSinceDate));
        //Année de fondation
        if ($is_shown) {
            //$innerHTML .= getInnerLine($data[0]['Date_inscription'],"<br />".timeToStr($data[0]['Date_inscription']),"<convert>#label=448<convert> ".$_SESSION['Application_name']." :","","<convert>#label=446<convert><br />",getSinceDateFromD(cDate($data[0]['Date_inscription'],false),$labelsSinceDate));//Date d'inscription à //(mm/jj/aaaa)
            $innerHTML .= getInnerLine($data[0]['Connection_counter'], $data[0]['Connection_counter'], "<convert>#label=449<convert> ", "", "<convert>#label=450<convert> " . $_SESSION['Application_name']);
            //S'est connecté //fois sur
            //$innerHTML .= getInnerLine($data[0]['Date_last_connection'],"<br />".timeToStr($data[0]['Date_last_connection']),"<convert>#label=24<convert> :","","<convert>#label=446<convert><br />",getSinceDateFromDT(cDate($data[0]['Date_last_connection'],false),$labelsSinceDate));//Dernière connection //(mm/jj/aaaa)
        }
        if ($isConnected) {
            //$innerHTML .= getInnerLine($data[0]['Date_reviewed'],"<br />".timeToStr($data[0]['Date_reviewed']),"<convert>#label=451<convert> :","","<convert>#label=446<convert><br />",getSinceDateFromDT(cDate($data[0]['Date_reviewed'],false),$labelsSinceDate));//Dernière modification //(mm/jj/aaaa)
        }
        if ($is_shown) {
            $innerHTML .= getInnerLine($data[0]['Year_initiation'], $data[0]['Year_initiation'], "<convert>#label=204<convert> :");
            //Année d'initiation à la spéléo
            if ($category == "entry") {
                $innerHTML .= getInnerLine($data[0]['Contact'], $data[0]['Contact'], "<convert>#label=741<convert> :");
                //Contact
            } else {
                $innerHTML .= getInnerLine($data[0]['Contact'], $data[0]['Contact'], "<convert>#label=146<convert> :", "mailto:" . $data[0]['Contact']);
                //Contact
            }
            if (isset($data[0]['City'])) {
                $innerHTML .= "<div class=\"detail_line\"><span class=\"details_label\"><convert>#label=102<convert> :</span><br />\n";
                //Adresse
                if ($category != "entry") {
                    $innerHTML .= getInnerLine($data[0]['Address'], $data[0]['Address']) . "<br />\n";
                }
                $innerHTML .= getInnerLine($data[0]['City'], $data[0]['Postal_code'] . " " . $data[0]['City']) . "<br />\n";
                $innerHTML .= getInnerLine($data[0]['Region'], $data[0]['Region'] . ", " . strtoupper(getCountry($_SESSION['language'], $data[0]['Country']))) . "<br />\n";
                $innerHTML .= "</div>";
            } else {
                $innerHTML .= getInnerLine($data[0]['Country'], getCountry($_SESSION['language'], $data[0]['Country']), "<convert>#label=98<convert> :");
                //Pays
            }
            $innerHTML .= getInnerLine($data[0]['Language'], $data[0]['Language'], "<convert>#label=205<convert> :");
            //Langue
        }
        if ($is_shown) {
            if ($data[0]['Latitude'] != "" && $data[0]['Longitude'] != "") {
                $innerHTML .= "<div class=\"detail_line\"><span class=\"details_label\"><convert>#label=660<convert></span>";
                $innerHTML .= " <span class=\"details_data\"><convert>#label=286<convert></span></div>";
                //Système géodésique //(GPS) - WGS84 Décimal
                $innerHTML .= getInnerLine($data[0]['Latitude'], round($data[0]['Latitude'], 5), "<convert>#label=103<convert> :", "", "<convert>#label=104<convert> <convert>#label=293<convert>.");
                //Latitude //degrés N.
                $innerHTML .= getInnerLine($data[0]['Longitude'], round($data[0]['Longitude'], 5), "<convert>#label=105<convert> :", "", "<convert>#label=104<convert> <convert>#label=294<convert>.");
                //Longitude //degrés S.
                $innerHTML .= "<div class=\"detail_line\"><input type=\"button\" name=\"convert\" class=\"button1\" value=\"<convert>#label=31<convert>...\" onclick=\"JavaScript:";
                $innerHTML .= "openWindow('converter_" . $_SESSION['language'] . ".php?c=coords&amp;lat=" . $data[0]['Latitude'] . "&amp;lng=" . $data[0]['Longitude'] . "&amp;i=" . $data[0]['Country'] . "&amp;readonly=true', '', 434, 260);\" /></div>";
                //<!--Convertisseur...-->
            }
        }
        $innerHTML .= getInnerLine($data[0]['Altitude'], $data[0]['Altitude'], "<convert>#label=106<convert> :", "", "<convert>#label=66<convert>");
        //Altitude //mètres
        $innerHTML .= getInnerLine($data[0]['NetwId'], $data[0]['NetwName'], "<convert>#label=453<convert>", "JavaScript:detailMarker(undefined, 'cave', " . $data[0]['NetwId'] . ", '" . $_SESSION['language'] . "')", "", $data[0]['NumberOfEntries'], "<convert>#label=454<convert>", "<convert>#label=455<convert>");
        //Fait partie du réseau //ayant //entrées
        $innerHTML .= getInnerLine($data[0]['MasId'], $data[0]['MasName'], "<convert>#label=560<convert> ", "JavaScript:detailMarker(undefined, 'massif', " . $data[0]['MasId'] . ", '" . $_SESSION['language'] . "')");
        //Fait partie du massif
        //$innerHTML .= getInnerLine($data[0]['Min_depth'],$data[0]['Min_depth'],"<convert>#label=456<convert> :","","<convert>#label=66<convert>");//Profondeur Min. //mètres
        //$innerHTML .= getInnerLine($data[0]['Max_depth'],$data[0]['Max_depth'],"<convert>#label=457<convert> :","","<convert>#label=66<convert>");//Profondeur Max. //mètres
        $innerHTML .= getInnerLine($data[0]['Depth'], $data[0]['Depth'], "<convert>#label=64<convert> :", "", "<convert>#label=66<convert>");
        //Profondeur Min. //mètres
        $innerHTML .= getInnerLine($data[0]['Length'], $data[0]['Length'], "<convert>#label=68<convert> :", "", "<convert>#label=66<convert>");
        //Développement //mètres
        $innerHTML .= getInnerLine($data[0]['Temperature'], $data[0]['Temperature'], "<convert>#label=69<convert> :", "", "<convert>#label=70<convert>");
        //Température //degrés celsius
        $innerHTML .= getInnerLine($data[0]['Is_diving'], convertYN($data[0]['Is_diving'], "<convert>#label=441<convert>", "<convert>#label=442<convert>"), "<convert>#label=71<convert> :");
        //Oui //Non //Spéléo. plongée
        if ($category == "entry") {
            $innerHTML .= getInnerLine($data[0]['Partners'], replaceLinks($data[0]['Partners']), "<convert>#label=670<convert> :<br />\n");
            //Sites partenaires
        }
        $innerHTML .= getInnerLine($AvgAe, round($AvgAe, 1), "<convert>#label=458<convert> :", "", "<convert>#label=459<convert>");
        //Intérêt ///10
        if (isset($AvgAe)) {
            $innerHTML .= $histoAe;
        }
        $innerHTML .= getInnerLine($AvgCa, round($AvgCa, 1), "<convert>#label=460<convert> :", "", "<convert>#label=459<convert>");
        //Progression ///10
        if (isset($AvgCa)) {
            $innerHTML .= $histoCa;
        }
        $innerHTML .= getInnerLine($AvgAp, round($AvgAp, 1), "<convert>#label=461<convert> :", "", "<convert>#label=459<convert>");
        //Accès ///10
        if (isset($AvgAp)) {
            $innerHTML .= $histoAp;
        }
        if ($category == "entry" && $addTitle) {
            $innerHTML .= "<a href=\"#\" onclick=\"JavaScript:detailMarker(event, 'entry', '" . $id . "', '" . $_SESSION['language'] . "',true, {'geodesic': '" . $systemArray["geodesic"] . "','length': '" . $systemArray["length"] . "','temperature': '" . $systemArray["temperature"] . "'});\" title=\"<convert>#label=184<convert>\" style=\"color:red;\"><!--Voir la fiche détaillée de cette entrée-->\n";
            $innerHTML .= "<convert>#label=185<convert>\n";
            //Fiche détaillée...
            $innerHTML .= "</a><br />\n";
        }
        if ($isConnected && allowAccess(properties_view_all)) {
            $innerHTML .= "### Reserved for webmasters: ###<br />\n";
            foreach ($data[0] as $key => $value) {
                if ($key != "Custom_message") {
                    $innerHTML .= "<b>" . $key . "</b> : <i>" . replaceLinks(nl2br($value)) . "</i><br />\n";
                }
            }
        }
    }
    if ($addTitle) {
        $innerHTML .= getBotMenu();
    }
    $innerHTML = "<div class=\"menu\">" . $innerHTML . "</div>";
    return $innerHTML;
}
Beispiel #8
0
            <select class="input1" style="width:100%" name="result" id="result" size="10" disabled="disabled" onclick="JavaScript:selectOnClick(event, this);"><!-- ondblclick="JavaScript:selectOnClick(event, this, event);"-->
              <option></option>
            </select>
          </td></tr></table>
          <input type="button" class="button1" id="advanced" name="advanced" style="visibility:hidden;display:none;" value="<convert>#label=310<convert>" onclick="JavaScript:advancedSearch();" /><!--Recherche avancée...-->
        </form>
        <?php 
    echo getBotMenu();
    ?>
      </div>
<?php 
}
?>
      <div class ="menu" id="help_menu">
        <?php 
echo getTopMenu('<div class="frame_title" style="margin-right:0px;">' . setTitle("#", "details", "<convert>#label=311<convert>", 1) . '</div><!--Aide &amp; contacts-->');
?>
        <ul>
          <li class ="sub_menu">
      	    <a href="contact_<?php 
echo $_SESSION['language'];
?>
.php?type=message" target="filter"><convert>#label=312<convert><!--Contacter votre administrateur/modérateur--></a>
      	  </li>

          <li class ="sub_menu">
            <?php 
$blogURL = "http://blog-" . strtolower($_SESSION['language']) . ".grottocenter.org";
if (!in_array(strtolower($_SESSION['language']), array("fr", "en"))) {
    $blogURL = "http://blog-en.grottocenter.org";
}
            exit;
        }
        ?>
    menuBeforeLoad();
    <?php 
        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:menuOnLoad();">
    <?php 
        echo getTopFrame();
        ?>
		<div class="menu">
      <?php 
        echo getTopMenu(getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>") . '<div class="frame_title">' . setTitle("administration_" . $_SESSION['language'] . ".php?type=menu", "filter", "<convert>#label=691<convert>", 2) . '</div><!--Menu d\'administration-->');
        ?>
      <ul>
<?php 
        if (allowAccess(right_view_all)) {
            ?>
        <li class ="sub_menu">
          <a href="administration_<?php 
            echo $_SESSION['language'];
            ?>
.php?type=right"><convert>#label=692<convert><!--Gestion des droits--></a>
        </li>
<?php 
        }
        if (allowAccess(group_view_all)) {
            ?>
        if (USER_IS_CONNECTED) {
        } else {
            $sql .= "AND cat.Is_public = 'YES' ";
        }
        $sql .= "ORDER BY NName ";
        $comparedCol = "value";
        $idCol = "objectId";
        $categoryCol = "category";
        $textCol = "NName";
        $selected = "";
        $Obj_name_sql = "SELECT * ";
        $Obj_name_sql .= "FROM `" . $_SESSION['Application_host'] . "`.`T_" . $category . "` ";
        $Obj_name_sql .= "WHERE Id = " . $id;
        $object_source_name = getDataFromSQL($Obj_name_sql, __FILE__, $frame, __FUNCTION__);
        if ($category == "caver") {
            $object_source_name = $object_source_name[0]['Nickname'];
        } else {
            $object_source_name = $object_source_name[0]['Name'];
        }
        $rnd_div_id = "list_contribution_div_" . rand();
        $innerHTML = "<div id=\"" . $rnd_div_id . "\" class=\"menu\">";
        $innerHTML .= getTopMenu(getCloseBtn("JavaScript:resetListDiv('" . $rnd_div_id . "');", "<convert>#label=371<convert>") . "<div class=\"frame_title\">" . setTitle("JavaScript:openMe(" . $id . ", '" . $category . "', false);", "list", "<convert>#label=887<convert> <convert>#label=540<convert> " . $object_source_name, 1) . "</div>");
        //Contributions en lien avec//Fermer
        $innerHTML .= "<select onclick=\"JavaScript:selectOnClick(this);\" size=\"5\" class=\"entry\">\n";
        $innerHTML .= getOptions($sql, "", $selected, $comparedCol, $countryCol, $idCol, $categoryCol, $textCol) . "\n";
        $innerHTML .= "</select>" . getBotMenu() . "</div>\n";
        break;
    default:
        break;
}
echo $innerHTML;