Пример #1
0
function setHead($title = '', $extra = '', $charset = '')
{
    echo '<head>
    ' . setCharset() . '
    ' . setTitle($title) . '
    ' . setRss() . '
    <style type="text/css" media="all">
        @import "css/defaults.css";
        @import "css/messages.css";
    </style>
    <!-- Begin the rounding blurb and use RUZEE -->
    <script type="text/javascript" src="js/sb.js"></script>
    <script type="text/javascript">
            var border = RUZEE.ShadedBorder.create({ corner:10, shadow:16,  border:1 });
            var minicontainer = RUZEE.ShadedBorder.create({ corner:7, shadow:0,  border:1 });
    </script>';
    echo !empty($extra) ? "\t" . $extra . "\n" : "\n";
    echo "</head>\n";
    #[TODO] Create a good favicon <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
}
Пример #2
0
             
     	    $validation = $validateRegister->check($_POST, array(
     	            'name' => array('required' => true),
     	            'password' => array('required' => true)
       				));
     */
     $_SESSION["error"] = login($user, $pass);
     header("Location: DTTadmin.php?a=admin");
 } else {
     if ($action == "admin") {
         if (!isset($_SESSION["name"])) {
             header("Location: DTTadmin.php?a=login");
         } else {
             //var_dump($_SESSION["name"]);
             $admin = file_get_contents("widgetAdmin.html");
             echo setTitle($template, "", $admin);
             require_once "adminArt.html";
             $query = $pdo->prepare("SELECT * FROM articleTable");
             $count = 0;
             if ($query->execute()) {
                 while ($row = $query->fetch()) {
                     $count += 1;
                     echo showTable($row, $count);
                 }
             }
             $link = '</table> <br/>' . $count . ' articles in total<br/><br/><a href = "article.php?a=admin&b=add">Add a New Article</a>';
             echo setFoot($link);
         }
     } else {
         if ($action == "logout") {
             logout();
Пример #3
0
<?php

pushKeywords('web', 'tool', 'easy', 'simple');
loadModules('strings.php');
setTitle('Tools for the Compuationally Impaired');
Пример #4
0
<?php

require_once './common.php';
//检查漫游是否开启
if (!$_SITE_CONFIG['my_status']) {
    redirect(SITE_URL, 5, '抱歉:漫游已关闭。系统将在5秒后自动跳转至首页');
}
if (empty($_GET['id'])) {
    exit('请先选择应用');
}
$_GET['id'] = intval($_GET['id']);
$db_prefix = getDbPrefix();
$app = doQuery("SELECT * FROM {$db_prefix}myop_myapp WHERE `appid` = {$_GET['id']} LIMIT 1");
$app = $app[0];
setTitle($app['appname']);
//漫游
$my_appId = $_GET['id'];
$my_suffix = base64_decode(urldecode($_GET['my_suffix']));
$my_prefix = MYOP_URL . '/';
if (!$my_suffix) {
    header('Location: userapp.php?id=' . $my_appId . '&my_suffix=' . urlencode(base64_encode('/')));
    exit;
}
if (preg_match('/^\\//', $my_suffix)) {
    $url = 'http://apps.manyou.com/' . $my_appId . $my_suffix;
} else {
    if ($my_suffix) {
        $url = 'http://apps.manyou.com/' . $my_appId . '/' . $my_suffix;
    } else {
        $url = 'http://apps.manyou.com/' . $my_appId;
    }
Пример #5
0
        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnload();">
    <?php 
        echo getTopFrame();
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
		<?php 
        echo getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
        ?>
		<div class="frame_title"><?php 
        echo setTitle("#", "filter", "<convert>#label=80<convert>", 2);
        ?>
</div><!--Erreur-->
		<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
echo getBotFrame();
Пример #6
0
    if (array_key_exists($_POST['from'], $options)) {
        $from = $_POST['from'];
    }
}
if (!isempty($_POST['to'])) {
    if (array_key_exists($_POST['to'], $options)) {
        $to = $_POST['to'];
    }
}
$input = null;
$output = null;
if (!isempty($_POST['input'])) {
    $input = $_POST['input'];
    $output = sc_convert($input, $from, $to);
}
setTitle('String Converter::' . $SP_TITLE);
include ROOT . '/header.php';
?>
<h1>String Converter</h1>
<h2><?php 
echo $options[$from] . ' to ' . $options[$to];
?>
</h2>
<span>The input needs to be the right length for a byte of each type:</span>
<ul>
<li>ASCII: 1 character long. It takes a lot of effort to mess this one up.</li>
<li>Hexadecimal: 2 characters long. e.x. "0f" instead of just "f"</li>
<li>Decimal: 3 characters long, do not exceed 255. e.x. "097" instead of just "97"</li>
<li>Binary: 8 characters long. e.x. "00000101" instead of just "101"</li>
</ul>
<span>If you are short any characters the conversion will become offset and the last byte will be ignored.</span>
Пример #7
0
<?php

require_once "DTTCore.php";
$template = file_get_contents("DTTHeader.html");
echo setTitle($template);
try {
    $query = $pdo->prepare("SELECT * FROM articleTable ORDER BY id DESC LIMIT 5");
    if ($query->execute()) {
        while ($row = $query->fetch()) {
            echo display($row);
        }
    }
} catch (Exception $e) {
    $pdo->rollBack();
    echo "Fail: " . $e->getMessage();
}
$query = null;
$pdo = null;
//Override link for footer.
$link = '<a href = "article.php?a=allStories">Article Archive</a>';
echo setFoot($link);
Пример #8
0
<?php

include_once 'base.php';
setTitle("로그인");
if (isset($_POST['id']) && isset($_POST['pw'])) {
    $result = login($_POST['id'], $_POST['pw']);
    if ($result[0][0] == 'success') {
        echo "string";
        $_SESSION['user_id'] = $result[1][0];
        $_SESSION['user_name'] = $result[1][1];
        $_SESSION['user_level'] = $result[1][2];
        echo "<meta http-equiv='refresh' content='0;url=todaysExercise.php'>";
    } else {
        // 존재하지 않는 아이디거나 비밀번호가 틀림
        echo '<script type="text/javascript">';
        echo 'alert("비밀번호가 틀렷거나 등록되지 않은 아이디 입니다.")';
        echo '</script>';
        $isLogin = false;
    }
} else {
    $isLogin = false;
}
startblock('content');
?>
       <h1 class="login_text">로그인</h1>
       <form action="login.php" method="post">
         <input class="input_id" type="text" name="id" value="" placeholder="id"/><br/>
         <input class="input_password" type="password" name="pw" value="" placeholder="pw"/>
         <input class="btn vtn-default login_button" type="submit" name="" value="login"/>
         <a href="register.php" class="join">회원가입</a>
       </form>
Пример #9
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";
}
Пример #10
0
        $type = "Admin";
        break;
    case "Login":
        $type = "Login";
        break;
}
define("PAGETYPE", $type);
$GLOBALS["C"]["pagetype"] = $type;
inc("dom-manage");
switch ($type) {
    case "Admin":
        explode("/", $uri)[1];
        if ($uri == "") {
            $uri = "index.php";
        }
        if (file_exists(HERE . "admin" . DS . $uri)) {
            inc("admin" . DS . $uri);
        } else {
            inc("admin" . DS . "404");
        }
        break;
    case "Login":
        inc("pages" . DS . "login");
        break;
    case "none":
        setTitle(L("404", true));
        inc("404");
        break;
}
//Show the Page
echo $GLOBALS["C"]["doc"]->saveHTML();
Пример #11
0
function addcategory( $option ) {
	global $savantConf, $Itemid, $mtconf;
	
	$database	=& JFactory::getDBO();
	$my		=& JFactory::getUser();
	
	# Get cat_id / link_id
	$cat_id	= JRequest::getInt('cat_id', 0);
	$link_id	= JRequest::getInt('link_id', 0);

	if ( $cat_id == 0 && $link_id > 0 ) {
		$database->setQuery( "SELECT cl.cat_id FROM (#__mt_links AS l, #__mt_cl AS cl) WHERE l.link_id = cl.link_id AND cl.main = '1' AND link_id ='".$link_id."'" );
		$cat_parent = $database->loadResult();
	} else {
		$cat_parent = $cat_id;
	}

	$database->setQuery( "SELECT cat_name FROM #__mt_cats WHERE cat_id = '".$cat_parent."' LIMIT 1" );
	$cat_name = $database->loadResult();

	$title = JText::sprintf( 'Add cat2', $cat_name);
	setTitle($title);
	

	# Pathway
	$pathWay = new mtPathWay( $cat_parent );

	# Savant Template
	$savant = new Savant2($savantConf);
	assignCommonVar($savant);
	$savant->assign('pathway', $pathWay);
	$savant->assign('cat_parent', $cat_parent);

	if ( $mtconf->get('user_addcategory') == '1' && $my->id < 1 ) {
		# Error. Please login before you can add category
		$savant->assign('error_msg', JText::_( 'Please login before addcategory' ));
		$savant->display( 'page_error.tpl.php' );
	} elseif( $mtconf->get('user_addcategory') == '-1' ) {
		# Add category is disabled
		JError::raiseError(404, JText::_('Resource Not Found'));
	} else {
		# OK. User is allowed to add category
		$savant->display( 'page_addCategory.tpl.php' );
	}

}
Пример #12
0
    }

    <?php 
echo getCDataTag(false);
?>
    </script>
  </head>
  <body onload="JavaScript:load();">
    <?php 
echo getTopFrame();
?>
    <?php 
echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
?>
    <div class="frame_title"><?php 
echo setTitle("home_" . $_SESSION['language'] . ".php", "home", "<convert>#label=600<convert>", 1);
?>
</div><!--Acceuil-->
    <table border="0" cellspacing="1" cellpadding="0" class="main_table">
      <tr><td>
        <!--<div>-->
        <?php 
include "home_description.php";
?>
        <!--<ul><li><?php 
//echo getAddThisButton($_SESSION['language'], 'grottocenter')
?>
</li></ul>-->
        <!--</div>-->
      </td></tr>
      <tr><td>
Пример #13
0
 public function __construct()
 {
     setTitle('专业虚拟主机提供商');
     parent::__construct();
 }
Пример #14
0
                 //who expects the own admin injectin bad querys?
                 $query = $pdo->prepare("UPDATE articleTable SET title = '{$title}', sumary = '{$sumary}', article = '{$content}', publishdate = '{$date}' WHERE id = " . $id);
                 $query->execute();
                 header("Location: DTTadmin.php?a=admin");
             }
         }
     }
     break;
 case "edit":
     $id = $_GET["c"];
     //if not null also
     if ($id == null) {
         header("Location: DTTadmin.php?a=admin");
     } else {
         $admin = file_get_contents("widgetAdmin.html");
         echo setTitle($template, "Edit Article", $admin);
         $query = $pdo->prepare("SELECT * FROM articleTable WHERE id = :id");
         $query->execute(array('id' => $id));
         $row = $query->fetch();
         echo loadFormEdit($row);
         $link = '<a href = "article.php?a=admin&b=delete&c=' . $id . '">Delete This Article</a>';
         echo setFoot($link);
     }
     break;
 case "delete":
     $id = $_GET["c"];
     //if not null delete else go admin and dont play with urls
     if (!isset($id)) {
         header("Location: DTTadmin.php?a=admin");
     }
     $query = $pdo->prepare("DELETE FROM articleTable WHERE id = :id");
Пример #15
0
        echo getCDataTag(false);
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnload();">
    <?php 
        echo getTopFrame(false);
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
  	<?php 
        echo getCloseBtn("filter_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
        ?>
  	<div class="frame_title"><?php 
        echo setTitle("#", "popup", "<convert>#label=80<convert>", 1);
        ?>
</div>
  	<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
if ($type != "topo" && $type != "author") {
Пример #16
0
}
//站点地址
$uchUrl = MYOP_URL . '/cp.php?ac=userapp';
//manyou
$my_prefix = $_MY_GLOBAL['my_uchome_url'];
/* http://uchome.manyou.com */
if (empty($_GET['my_suffix'])) {
    $appId = intval($_GET['appid']);
    if ($appId) {
        // 应用简介
        $mode = $_GET['mode'];
        if ($mode == 'about') {
            setTitle('应用简介');
            $my_suffix = '/userapp/about?appId=' . $appId;
        } else {
            setTitle('隐私设置');
            $my_suffix = '/userapp/privacy?appId=' . $appId;
        }
    } else {
        // 管理应用
        $my_suffix = '/userapp/list';
    }
} else {
    // 添加应用 OR 删除应用
    $my_suffix = $_GET['my_suffix'];
}
$my_extra = isset($_GET['my_extra']) ? $_GET['my_extra'] : '';
$delimiter = strrpos($my_suffix, '?') ? '&' : '?';
$myUrl = $my_prefix . urldecode($my_suffix . $delimiter . 'my_extra=' . $my_extra);
// 本地列表
if ($my_suffix == '/userapp/list') {
Пример #17
0
          	<span class="filter_head"> (<?php 
    echo countByCategory("grotto");
    ?>
) <convert>#label=386<convert><!--Clubs--></span>
        	</label>
        	<div id="div|grotto" class="filter_div">
        	</div>
      	</div>
      </form>
    </div>
<?php 
    if (USER_IS_CONNECTED) {
        ?>
    <div class ="nearMe">
      <div class="frame_title" style="margin-right:0px;"><?php 
        echo setTitle("#", "filter_4", "<convert>#label=564<convert>", 1);
        ?>
</div><!--Options d'affichage-->
      <label for="new_markers" style="display:block;">
        <input type="checkbox" id="new_markers" name="new_markers" onclick="JavaScript:setFilterOptions(this);" /> <convert>#label=562<convert></span><!--Afficher uniquement les nouveautes-->
      </label>
      <label for="reviewed_markers" style="display:block;">
        <input type="checkbox" id="reviewed_markers" name="reviewed_markers" onclick="JavaScript:setFilterOptions(this);" /> <convert>#label=563<convert></span><!--Changements-->
      </label>
      <label for="connected_cavers" style="display:block;">
        <input type="checkbox" id="connected_cavers" name="connected_cavers" onclick="JavaScript:setFilterOptions(this);" /> <convert>#label=567<convert></span><!--Spéléologues connectés-->
      </label>
    </div>
<?php 
    }
}
Пример #18
0
/**
 * 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;
}
Пример #19
0
foreach ($required_libraries as $library) {
    require_once root . "Resources/Library/{$library}.php";
}
crunch($_GET['app']);
System::Initialize();
$app_list = fsGetApplications();
$app_path = $app_list[System::Application()];
if (file_exists($app_path . 'Application.php')) {
    if (file_exists($app_path . 'Initialize.php')) {
        include $app_path . 'Initialize.php';
    }
    if (System::Authority()->verified) {
        if (file_exists($app_path . 'Info.php')) {
            include $app_path . 'Info.php';
            if (!is_null($application['name'])) {
                setTitle($application['name']);
            }
        }
        if (file_exists($app_path . 'Resources.php')) {
            include $app_path . 'Resources.php';
        }
        require_once $app_path . 'Application.php';
    } else {
        exLog('Authority->verified: false');
        error('Insufficent Privlidges', 'You do not have the required permission to view this page.');
    }
} else {
    exLog('Application Load Failed: ' . System::Application());
    error('Application Not Found', 'The requested application bundle was either not found, or invalid.');
}
add('<hr />');
Пример #20
0
<!DOCTYPE html>
<html lang="id">
	<?php 
include "head.php";
if (!isset($title)) {
    setTitle("Admin Area");
}
?>
	<body>
		<!--Start Header-->
		<?php 
include "topbar.php";
?>
		<!--End Header-->
		<!--Start Container-->
		<div id="main" class="container-fluid">
			<div class="row">
				<!--Start Sidebar-->
				<?php 
include "sidebar.php";
?>
				<!--End Sidebar-->
				<!--Start Content-->
				<div id="content" class="col-xs-12 col-sm-9 col-md-10">
					<br>
					<div id="ajax-content"></div>
				</div>
				<!--End Content-->
			</div>
		</div>
		<!--End Container-->
Пример #21
0
<?php

include_once 'base.php';
setTitle("회원가입");
/* 회원가입 페이지 html 코드 호출 함수 */
function registerpage()
{
    echo '<h1>회원가입</h1>';
    echo '<form action="register.php" method="post">';
    echo '<input type="text" name="id" value="' . $_POST[id] . '" placeholder="아이디"/><br/>';
    echo '<input type="text" name="name" value="' . $_POST[name] . '" placeholder="이름"/><br/>';
    echo '<input type="password" name="pw" value="" placeholder="비밀번호"/><br/>';
    echo '<input type="password" name="repw" value="" placeholder="비밀번호확인"/><br/>';
    echo '<input type="submit" name="" value="완료"/><br/>';
    echo '</form>';
}
?>



<!-- 이부분만 바꿔서 수정하면 됩니다. -->
<?php 
startblock('content');
if ($_POST['id'] != '' && $_POST['pw'] != '') {
    if ($_POST['pw'] == $_POST['repw']) {
        $result = login($_POST['id'], $_POST['pw']);
        if ($result[0][0] == 'fail') {
            $a = adduser($_POST['id'], $_POST['name'], $_POST['pw']);
            if ($a[0][0] == 'success') {
                // 아이디 생성완료 로그인페이지로 이동
                echo '<script type="text/javascript">';
Пример #22
0
<?php

include_once 'base.php';
setTitle("오늘의 운동");
?>



<!-- 이부분만 바꿔서 수정하면 됩니다. -->
<?php 
startblock('content');
?>

        <nav class="navbar navbar-default">
          <div class="container-fluid">
            <div>
              <ul class="nav navbar-nav">
                <li class="active"><a href="#">CrossFit</a></li>
                <li><a href="todaysExercise_weight.php">Weight</a></li>
              </ul>
            </div>
          </div>
        </nav>

        <div class="container-fluid">
          <object type="application/x-shockwave-flash"
           data="http://www.youtube.com/v/eKgPY1adc0A">
            <param name="wmode" value="transparent" />
          </object>
          <div class="well">설명text</div>
        </div>        
Пример #23
0
if (function_exists('is_tag')) {
    if (is_tag()) {
        ?>
<title><?php 
        single_tag_title("", true);
        ?>
 | <?php 
        bloginfo('name');
        ?>
</title><?php 
    }
}
if (is_tax('notice')) {
    ?>
<title><?php 
    setTitle();
    ?>
 | <?php 
    bloginfo('name');
    ?>
</title><?php 
}
if (!function_exists('utf8Substr')) {
    function utf8Substr($str, $from, $len)
    {
        return preg_replace('#^(?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,' . $from . '}' . '((?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,' . $len . '}).*#s', '$1', $str);
    }
}
if (is_single()) {
    if ($post->post_excerpt) {
        $description = $post->post_excerpt;
Пример #24
0
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnLoad();">
    <?php 
        echo getTopFrame();
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
		<?php 
        echo getCloseBtn("JavaScript:backToMenu();", "<convert>#label=371<convert>");
        ?>
<!-- Fermer -->
		<div class="frame_title"><?php 
        echo setTitle("parameters_" . $_SESSION['language'] . ".php?type=", "filter", "<convert>#label=80<convert>", 2);
        ?>
</div><!--Erreur-->
		<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
echo getBotFrame();
<?php

include_once 'base.php';
setTitle("운동기록 보기");
?>



<!-- 이부분만 바꿔서 수정하면 됩니다. -->
<?php 
startblock('content');
?>

    
      

       
          <!--<div class="container-fluid">
            <div>
              <ul class="nav nav-tabs">
                <li class="active"><a href="exerciseRecord_mainRecord.php">주요기록</a></li>
                <li ><a href="exerciseRecord_dailyRecord.php">매일기록</a></li>
              </ul>
            </div>
          </div>-->
        
        <div class="secondTab">
          <a href="exerciseRecord_mainRecord.php"><p class="left" style="background-color:#DF314D">주요기록</p></a>
          <a href="exerciseRecord_dailyRecord.php"><p class="right" >매일기록</p></a>
        </div>
Пример #26
0
<?php

include_once 'base.php';
setTitle("운동기록 하기");
?>



<!-- 이부분만 바꿔서 수정하면 됩니다. -->
<?php 
startblock('content');
?>


    <div class="row">
      <div class="col-sm-12">기록할 운동을 선택하세요</div>
      <div class="col-sm-9">
        <div>
          <label >
            <input type="radio" id="q128" name="quality[21]" value="1"/> CrossFit
          </label> 
          <label >
            <input type="radio" id="q129" name="quality[21]" checked="checked" value="2" /> Weight
          </label> 
        </div>
      </div>
    </div>
    <h1>9월 17일</h1>
    <!--if) crossfit을 선택했다면-->
    <div class="container-fluid">
      <h2>오늘의 운동</h2> 
Пример #27
0
        ?>
    </script>
  </head>
  <body onload="JavaScript:defaultOnLoad();">
    <?php 
        echo getTopFrame();
        ?>
    <?php 
        echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
        ?>
  	<?php 
        echo getCloseBtn($back_src, "<convert>#label=371<convert>");
        ?>
<!-- Fermer -->
  	<div class="frame_title"><?php 
        echo setTitle("connection_" . $_SESSION['language'] . ".php?type=", "connect_filter", "<convert>#label=80<convert>", 2 + $back_delta);
        ?>
</div><!--Erreur-->
  	<div class="error"><?php 
        echo getTopBubble();
        ?>
<convert>#label=81<convert><!--Cas non traité !--><?php 
        echo getBotBubble();
        ?>
</div>
<?php 
        break;
}
?>
    <?php 
echo getBotFrame();
Пример #28
0
$uch_prefix = MYOP_URL . '/myop.php';
$uch_suffix = '';
$uchUrl = $uch_prefix . $uch_suffix;
//manyou
$my_prefix = $_MY_GLOBAL['my_uchome_url'];
/* http://uchome.manyou.com */
$my_suffix = urlencode($_GET['my_suffix']);
if (!$my_suffix) {
    header('Location: myop.php?my_suffix=' . urlencode('/appadmin/list'));
    exit;
}
$tmp_suffix = isset($_GET['my_suffix']) ? urldecode($_GET['my_suffix']) : '/appadmin/list';
$myUrl = $my_prefix . $tmp_suffix;
$hash = md5($_SITE_CONFIG['my_site_id'] . '|' . $_SITE_CONFIG['uid'] . '|' . $_SITE_CONFIG['my_site_key'] . '|' . $_MY_GLOBAL['timestamp']);
$delimiter = strrpos($myUrl, '?') ? '&' : '?';
$url = $myUrl . $delimiter . 's_id=' . $_SITE_CONFIG['my_site_id'] . '&uch_id=' . $_SITE_CONFIG['uid'] . '&uch_url=' . urlencode($uchUrl) . '&my_suffix=' . $my_suffix . '&timestamp=' . $_MY_GLOBAL['timestamp'] . '&my_sign=' . $hash;
if ($_GET['my_suffix'] == '/app/list') {
    $is_app_manage = 1;
    setTitle('添加应用');
    // 前台
    include MYOP_THEME_PATH . '/header.html';
    echo '<div class="content">';
    include MYOP_THEME_PATH . '/apps.html';
    echo '<div class="main"><div class="mainbox"><div class="mainbox_C no_r myop">';
    include MYOP_THEME_PATH . '/body.html';
    echo '</div></div></div></div>';
    include MYOP_THEME_PATH . '/footer.html';
} else {
    // 后台管理员
    include MYOP_THEME_PATH . '/body.html';
}
Пример #29
0
  
<?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>");
Пример #30
0
  </head>
  <body>
    <?php 
echo getTopFrame();
?>
    <?php 
echo getNoScript("<convert>#label=22<convert>", "<convert>#label=23<convert>");
?>
  	<?php 
if ($frame != "function") {
    echo getCloseBtn($frame . "_" . $_SESSION['language'] . ".php", "<convert>#label=371<convert>");
}
?>
<!-- Fermer -->
  	<div class="frame_title"><?php 
echo setTitle("error_" . $_SESSION['language'] . ".php?frame=" . $frame, $frame, "<convert>#label=80<convert>", 2);
?>
</div><!--Erreur-->
  	<div class="error"><?php 
echo getTopBubble();
?>
      <p><convert>#label=317<convert><!--Une erreur est survenue, un e-mail a été envoyé au webmasteur de--> <?php 
echo $_SESSION['Application_name'];
?>
.</p>
      <p><convert>#label=318<convert><!--Veuillez retenter cette action plus tard.--></p>
      <p><convert>#label=319<convert><!--L'équipe de--> <?php 
echo $_SESSION['Application_name'];
?>
 <convert>#label=320<convert><!--s'excuse pour le désagrément occasionné.--></p>
    <?php