first commit

This commit is contained in:
/usr/bin/nano
2017-04-15 01:34:36 +03:00
commit c715e2a604
5325 changed files with 329700 additions and 0 deletions
Executable
+9
View File
@@ -0,0 +1,9 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/page_status_label.css')?>" />
</head>
<h1><?= $g_lang['head']?></h1>
<span class="page-status-label">404</span>
<?= $g_lang['message']?>
Executable
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="<?= LANG?>" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= $g_config['charset']?>" />
<title><?= L('m_title')?></title>
<link rel="icon" href="<?= Root('favicon.ico')?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?= Root('favicon.ico')?>" type="image/x-icon" />
<meta http-equiv="cleartype" content="on">
</head>
<body>
<h1><?= L('head')?></h1>
<p><?= L('message')?></p>
</body>
</html>
+291
View File
@@ -0,0 +1,291 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/home.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery-ui.theme.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery-ui.css')?>" />
<!--
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery-ui.structure.css')?>" />
-->
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery.feedback_me.css')?>" />
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
<script src="<?= Root("script/example.js")?>" ></script>
</head>
<!--
<div class="pull-right">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:240px;height:100px"
data-ad-client="ca-pub-6777969915840976"
data-ad-slot="6397293847"></ins>
</div>
-->
<h1 style="display:inline;"><?= L('title_notg')?></h1>
<span class="hidden-xs"><?= L('text')?></span>
<section>
<ul class="nav nav-pills">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-cog fa-fw"></span>
<?= L('graph')?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="NewGraph"><span class="glyphicon glyphicon-plus fa-fw"></span> <?= L('new_graph')?></button>
</li>
<li class="divider"></li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="SaveGraph"><span class="glyphicon glyphicon-floppy-disk fa-fw"></span> <?= L('save')?></button>
</li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="SaveGraphImage"><span class="glyphicon glyphicon-floppy-disk fa-fw"></span> <?= L('save_image')?></button>
</li>
<li class="divider"></li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="ShowAdjacencyMatrix"><span class="glyphicon glyphicon-th fa-fw"></span> <?= L('show_adjacency_matrix')?></button>
</li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="ShowIncidenceMatrix"><span class="glyphicon glyphicon-th fa-fw"></span> <?= L('show_incidence_matrix')?> </button>
</li>
<li class="divider"></li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="DeleteAll"><span class="glyphicon glyphicon-remove fa-fw"></span> <?= L('delete_all')?></button>
</li>
</ul>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('view')?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="Zoom100"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> 100% </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="Zoom50"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> 50% </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="Zoom25"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> 25% </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="ZoomFit"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('zoom_fit') ?></button> </li>
<li class="divider"></li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="ZoomIn"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('zoom_in') ?> </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="ZoomOut"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('zoom_out') ?> </button> </li>
<li class="divider"></li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="MoveWorspace"><span class="glyphicon glyphicon-fullscreen fa-fw"></span> <?= L('move_workspace') ?> </button> </li>
</ul>
</div>
<button type="button" class="btn btn-default btn-sm" id="Default"><span class="glyphicon glyphicon-fullscreen fa-fw"></span> <?= L('default')?></button>
<button type="button" class="btn btn-primary btn-sm" id="AddGraph"><span class="glyphicon glyphicon-plus fa-fw"></span> <?= L('add_node')?></button>
<button type="button" class="btn btn-default btn-sm" id="ConnectGraphs"><span class="glyphicon glyphicon-road fa-fw"></span> <?= L('connect_nodes')?></button>
<!-- Algorithms -->
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-cog fa-fw"></span>
<?= L('algorithms') ?>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" id="algorithmList">
<li>
<!--
<button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="FindPath"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('short_path')?></button></li>
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="ConnectedComponent"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('connected_component') ?> </button></li>
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="EulerianLoop"><span class="glyphicon glyphicon-refresh fa-fw"></span> <span><?= L('find_eulerian_loop')?></span></button></li>
-->
<li style="display: none;"><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id=""><span class="glyphicon glyphicon-search fa-fw"></span> <span></span></button></li>
</ul>
</div>
<button type="button" class="btn btn-default btn-sm" id="DeleteObject"><span class="glyphicon glyphicon-remove fa-fw"></span> <?= L('delete')?></button>
<!--
<button type="button" class="btn btn-default" id="Test"><span class="glyphicon glyphicon-remove"></span> Test repos</button>
-->
</ul>
</section>
<section>
<div id="message" class="alert alert-success" role="alert">Graph</div>
</section>
<section id="canvasSection">
<canvas id="canvas"><?= L('browser_no_support')?></canvas>
<div id="developerTools" class="well well-sm">
<h4><?= L('developer_tools_title')?></h4>
<span><?= L('developer_tools_text')?></span>
<textarea id="userScript">
</textarea>
<input type="button" value="<?= L('developer_tools_run')?>" id="runUserScript" class="btn btn-success btn-sm"/>
<input type="button" value="<?= L('developer_tools_submit')?>" id="submitUserScript" class="btn btn-default btn-sm" style="float: right;"/>
</div>
</section>
<div id="addEdge">
<form>
<fieldset>
<label id="WeightLabel">
<?= L('edge_weight')?>&nbsp; &nbsp; &nbsp; <input type="text" name="edgeWeight" value="<?= L('default_weight')?>" id="EdgeWeight" class="inputBox">
</label>
<div>
<span onClick="document.getElementById('EdgeWeight').value='<?= L('default_weight')?>'" style="cursor: pointer" class="defaultWeigth"><?= L('default_weight')?></span>
<span onClick="document.getElementById('EdgeWeight').value='1'" style="cursor: pointer" class="defaultWeigth">1</span>
<span onClick="document.getElementById('EdgeWeight').value='3'" style="cursor: pointer" class="defaultWeigth">3</span>
<span onClick="document.getElementById('EdgeWeight').value='5'" style="cursor: pointer" class="defaultWeigth">5</span>
<span onClick="document.getElementById('EdgeWeight').value='7'" style="cursor: pointer" class="defaultWeigth">7</span>
<span onClick="document.getElementById('EdgeWeight').value='11'" style="cursor: pointer" class="defaultWeigth">11</span>
</div>
</fieldset>
</form>
</div>
<div id="addVertex">
<form>
<fieldset>
<label id="VertexTitleLable">
<?= L('enter_vertex_title')?> &nbsp; &nbsp; &nbsp; <input type="text" name="VertextTitle" value="Title" id="VertexTitle" class="inputBox">
</label>
</fieldset>
</form>
</div>
<div id="adjacencyMatrix">
<form>
<fieldset>
<p><?= L('adjacency_matrix_description')?></p>
<textarea name="adjacencyMatrixField" id="AdjacencyMatrixField" wrap="off"></textarea>
<p id="BadMatrixFormatMessage"><?= L('adjacency_matrix_bad_format')?></p>
</fieldset>
</form>
</div>
<div id="incidenceMatrix">
<form>
<fieldset>
<p><?= L('incidence_matrix_description')?></p>
<textarea name="incidenceMatrixField" id="IncidenceMatrixField" wrap="off"></textarea>
<p id="BadIncidenceMatrixFormatMessage"><?= L('incidence_matrix_bad_format')?></p>
</fieldset>
</form>
</div>
<div id="saveDialog">
<form>
<fieldset>
<p><?= L('this_is_graph_link')?> <br/>
<input type="text" name="graphName" id="GraphName" onClick="this.select();">
</p>
<p><?= L('share_graph_description') ?></p>
<? $sharePageURL = $_SERVER['SERVER_NAME'] . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);?>
<ul class="share-buttons" id="ShareSavedGraph">
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $sharePageURL ?>?graph=XXXX&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
<li><a href="https://plus.google.com/share?url=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $sharePageURL ?>?graph=XXXX&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
</ul>
</fieldset>
</form>
</div>
<div id="saveImageDialog">
<form>
<fieldset>
<? $shareImagePageURL = $_SERVER['SERVER_NAME'] . "/";?>
<p id="SaveImageLinks"><a href="http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank"><?= L('open_saved_image_browser')?></a> or <a href="http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" download><?= L('download_saved_image')?></a></p>
<p><?= L('share_graph_description') ?></p>
<ul class="share-buttons" id="ShareSavedImageGraph">
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
<li><a href="https://plus.google.com/share?url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
</ul>
</fieldset>
</form>
</div>
<div id="matrixError" class="translation">
<div><span class="glyphicon glyphicon-remove-sign text-danger"></span> <?= L('bad_adj_matrix_message')?></div>
</div>
<div id="matrixErrorInc" class="translation">
<div><span class="glyphicon glyphicon-remove-sign text-danger"></span> <?= L('bad_inc_matrix_message')?></div>
</div>
<p id="SelectAndMoveObject" class="translation"><?= L('select_and_move_objects')?></p>
<p id="MoveCursorForMoving" class="translation"><?= L('move_cursor_for_moving')?></p>
<p id="SelectAndMoveObject" class="translation"><?= L('select_and_move_objects')?></p>
<p id="MoveCursorForMoving" class="translation"><?= L('move_cursor_for_moving')?></p>
<p id="clickToAddVertex" class="translation"><?= L('click_to_add_vertex')?></p>
<p id="selectFisrtVertextToConnect" class="translation"><?= L('select_first_vertext_to_connect')?></p>
<p id="selectSecondVertextToConnect" class="translation"><?= L('select_second_vertext_to_connect')?></p>
<p id="selectStartShortPathVertex" class="translation"><?= L('select_start_short_path_vertex')?></p>
<p id="selectFinishShortPathVertex" class="translation"><?= L('select_finish_short_path_vertex')?></p>
<p id="shortPathResult" class="translation"><?= L('short_path_result')?></p>
<p id="pathNotExists" class="translation"><?= L('path_not_exists')?></p>
<p id="selectObjectToDelete" class="translation"><?= L('select_object_to_delete')?></p>
<p id="AddEdge" class="translation"><?= L('add_graph')?></p>
<p id="OrintEdge" class="translation"><?= L('orint_edge')?></p>
<p id="NotOrintdge" class="translation"><?= L('not_orint_edge')?></p>
<p id="AdjacencyMatrixText" class="translation"><?= L('show_adjacency_matrix')?></p>
<p id="Save" class="translation"><?= L('save')?></p>
<p id="Cancel" class="translation"><?= L('cancel')?></p>
<p id="shortestDist" class="translation"><?= L('shortest_dist')?></p>
<p id="IncidenceMatrixText" class="translation"><?= L('show_incidence_matrix')?></p>
<p id="saveDialogTitle" class="translation"><?= L('save_dialog_title')?></p>
<p id="closeButton" class="translation"><?= L('close_button')?></p>
<p id="connectedComponentResult" class="translation"><?= L('connected_component_result')?></p>
<p id="sickConnectedComponentResult" class="translation"><?= L('sick_connected_component_result')?></p>
<p id="whatDoYouThink" class="translation"><?= L('what_do_you_think')?></p>
<p id="name" class="translation"><?= L('name')?></p>
<p id="feedback" class="translation"><?= L('feedback')?></p>
<p id="send" class="translation"><?= L('send')?></p>
<p id="writeToUs" class="translation"><?= L('write_to_us')?></p>
<p id="fixMatrixButton" class="translation"><?= L('fix_matrix_button')?></p>
<p id="matrixHelp" class="translation"><?= L('open_matrix_help')?></p>
<p id="wronMatrixTitle" class="translation"><?= L('wrong_matrix_title')?></p>
<p id="saveImageDialogTitle" class="translation"><?= L('save_image_dialog_title')?></p>
<p id="fullReport" class="translation"><?= L('full_report')?></p>
<p id="shortReport" class="translation"><?= L('short_report')?></p>
<p id="hasNotEulerianLoop" class="translation"><?= L('has_not_eulerian_loop')?></p>
<p id="hasEulerianLoop" class="translation"><?= L('has_eulerian_loop')?></p>
<p id="processing" class="translation"><?= L('processing')?></p>
<p id="customEnumVertex" class="translation"><?= L('custom')?></p>
<p id="addVertexText" class="translation"><?= L('add_node')?></p>
<p id="renameVertex" class="translation"><?= L('rename_vertex')?></p>
<p id="renameText" class="translation"><?= L('rename_text')?></p>
<p id="inputMatrix" class="translation"><?= isset($_POST["matrix"]) ? $_POST["matrix"] : ""?></p>
<p id="inputIncidenceMatrix" class="translation"><?= isset($_POST["incidenceMatrix"]) ? $_POST["incidenceMatrix"] : ""?></p>
<p id="currentLanguage" class="translation"><?= L('current_language')?></p>
<!--
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
-->
<script src="<?= Root("i/js/create_algorithm.js")?>" ></script>
Executable
+5
View File
@@ -0,0 +1,5 @@
<h1><?= L('title_notg')?></h1>
<?= L('text')?>
<?php IncludeCom('main_tpl/page_btns')?>
+57
View File
@@ -0,0 +1,57 @@
<?php IncludeCom('dev/bootstrap3')?>
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/admin/admin_menu.css')?>" />
</head>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" id="admin-menu">
<div class="container">
<!-- Логотип и кнопка открытия меню сгруппированы для лучшего отображения на мобильных устройствах -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-menu-collapse">
<span class="sr-only">Меню</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php if (!empty($logo)):?>
<a class="navbar-brand" href="<?= $logo['href']?>"><?= $logo['logo']?></a>
<?php endif?>
</div>
<!-- Содержит ссылки и прочий контент который можно будет показать/скрывать на мобильных устройствах -->
<div class="collapse navbar-collapse nav-menu-collapse">
<ul class="nav navbar-nav">
<?php foreach ($menu as $v):?>
<li class="<?= (isset($v['list']) && count($v['list'])) ? "dropdown" : ''?><?= isset($v['css']) ? " {$v['css']}" : ''?>">
<a href="<?= $v['link']?>" title="<?= $v['label']?>"<?= (isset($v['list']) && count($v['list'])) ?' class="dropdown-toggle" data-toggle="dropdown"' : ''?>>
<?= $v['name']?>
</a>
<?php if (isset($v['list']) && count($v['list'])):?>
<ul class="dropdown-menu">
<?php
foreach ($v['list'] as $v)
{
if ($v === 'divider')
{
?><li class="divider"></li><?php
}
elseif (isset($v['divider_name']))
{
?><li class="dropdown-header"><?= $v['divider_name']?></li><?php
}
else
{
?><li><a href="<?= $v['link']?>" title="<?= $v['label']?>"><?= $v['name']?></a></li><?php
}
}
?>
</ul>
<?php endif?>
</li>
<?php endforeach?>
</ul>
</div>
</div>
</nav>
+8
View File
@@ -0,0 +1,8 @@
<div class="jumbotron">
<div class="container">
<h1>Административный раздел</h1>
<p>Добро пожаловать в административный раздел сайта.</p>
<p><a class="btn btn-primary btn-lg" href="<?= SiteRoot("admin/logout")?>">Выйти из раздела</a></p>
</div>
</div>
+26
View File
@@ -0,0 +1,26 @@
<h1>Вход в административный раздел</h1>
<form action="<?= GetCurUrl()?>" method="post" class="form-horizontal" role="form">
<input type="hidden" name="is_login" value="1">
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<?= $msg?>
</div>
</div>
<div class="form-group">
<label for="inputLogin" class="col-lg-2 control-label">Логин</label>
<div class="col-lg-6">
<input type="text" class="form-control" id="inputLogin" autocomplete="on" name="login" value="<?= Post("login")?>" placeholder="Введите ваш логин">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-lg-2 control-label">Пароль</label>
<div class="col-lg-6">
<input type="password" class="form-control" id="inputPassword" autocomplete="on" name="pwd" placeholder="Введите ваш пароль">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<button type="submit" class="btn btn-primary">Войти</button>
</div>
</div>
</form>
+32
View File
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="<?= LANG?>" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= $g_config['charset']?>" />
<title><?= L('m_title')?></title>
<link rel="icon" href="<?= Root('favicon.ico')?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?= Root('favicon.ico')?>" type="image/x-icon" />
<meta http-equiv="cleartype" content="on">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="<?= Root("i/js/dev/jquery-2.0.3.js")?>" ></script>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/funcs.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/bootstrap.css')?>" />
<script src="<?= Root("i/js/dev/bootstrap3/bootstrap.min.js")?>" ></script>
<!-- extraPacker -->
<meta name="robots" content="noindex, nofollow">
</head>
<body>
<?php IncludeCom('admin/admin_menu', array('menu' => $menu, 'logo' => $logo))?>
<div class="container">
<div class="row">
<div class="col-xs-12">
<?= $content?>
</div>
</div>
</div>
</body>
</html>
+53
View File
@@ -0,0 +1,53 @@
<h1>Редактирование страниц сайта</h1>
<p>
Если кнопка редактирования страницы на нужном языке отсутствует,
то нужно выбрать редактирование этой страницы на языке по умолчанию (или другом доступном языке),
заполнить её нужным текстом и в выпадающем списке "Сохранять для языка" выбрать нужный язык.
</p>
<?= $msg?>
<form action="<?= GetCurUrl()?>" method="post">
<div class="table-responsive">
<table class="table table-bordered table-striped table-condensed">
<?php foreach($all as $path => $pageLangs):?>
<tr>
<td class="path">
<?php for ($i = 0; $i < substr_count(substr($path, 0, -1), '/'); ++$i):?>
&nbsp;&nbsp;&nbsp;&nbsp;
<?php endfor;?>
<?php if (substr($path, -1) == "/"):?>
<span class="glyphicon glyphicon-folder-open"></span> &nbsp;
<em><?= basename($path)?></em>
<?php else:?>
<span class="glyphicon glyphicon-file"></span> &nbsp;
<strong><?= str_replace(".php", "", basename($path))?></strong>
<?php endif;?>
<?php if (isset($g_config['page_editor']['labels'][$path])):?>
&nbsp; <span class="label label-default"><?= $g_config['page_editor']['labels'][$path]?></span>
<?php endif;?>
</td>
<?php foreach ($g_arrLangs as $lang => $langInfo):?>
<td width=1>
<nobr>
<?php if (substr($path, -1) != "/" && in_array($lang, $pageLangs)):?>
<a href="<?= SiteRoot("admin/page_editor_page&lang=" . $lang . "&page=" . urlencode($path))?>" class="btn btn-sm btn-primary" title="Редактировать страницу на этом языке">
<?= $langInfo['name']?>
</a>
<a target="_blank" href="<?= SiteRoot("{$lang}/" . str_replace(".php", "", $path))?>" class="btn btn-sm btn-default" title="Проверить страницу на этом языке">
<span class="glyphicon glyphicon-open"></span>
</a>
<?php endif;?>
</nobr>
</td>
<?php endforeach;?>
<td width=1> <!-- @todo Добавить защиту от дурака (запрет на удаление файлов в dev, autoload и т.д.) -->
<button class="btn btn-sm btn-danger" name="remove_page" value="<?= str_replace(".php", "", $path)?>" onclick="return confirm('Удалить данную страницу?')">
<span class="glyphicon glyphicon-trash"></span>
</button>
</td>
</tr>
<?php endforeach;?>
</table>
</div>
</form>
+25
View File
@@ -0,0 +1,25 @@
<?php IncludeCom('dev/bootstrap3')?>
<h1>Добавление страницы</h1>
<p>В названии страницы допускаются только маленькие латинские буквы и цифры.</p>
<form action="<?= GetCurUrl()?>" method="post" class="form-horizontal" role="form">
<input type="hidden" name="is_add_page" value="1">
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<?= $msg?>
</div>
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">Название страницы</label>
<div class="col-lg-6">
<input type="text" class="form-control" id="inputName" autocomplete="on" name="name" value="<?= Post("name")?>" placeholder="Только маленькие латинские буквы и цифры">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<button type="submit" class="btn btn-primary">Добавить</button>
</div>
</div>
</form>
+68
View File
@@ -0,0 +1,68 @@
<?php IncludeCom('dev/bootstrap3')?>
<?php IncludeCom("dev/ckeditor4_head")?>
<h1>Редактируем страницу <span class="label label-primary"><?= $file?></span> на языке <span class="label label-success"><?= $g_arrLangs[$lang]["name"]?></span></h1>
<form action="<?= GetCurUrl()?>" role="form" method="post" <?= Uploader::FORM_LOAD?>>
<?php if (count($g_arrLangs) > 1):?>
<div class="well">
<label for="inputLang">Сохранить для языка</label>
<select class="form-control" name="___lang" id="inputLang">
<?php foreach($g_arrLangs as $k => $v):?>
<option value="<?= $k?>" <?= Post("___lang", $lang) == $k ? "selected" : ""?> ><?= $g_arrLangs[$k]['name']?></option>
<?php endforeach;?>
</select>
</div>
<?php endif;?>
<h2>Задайте новые значения переменным:</h2>
<input type="hidden" name="___is_apply" value="1">
<?= $msg?>
<?php foreach ($curLang as $k => $v):?>
<?php if (!in_array($k, $seoVars)):?>
<div class="form-group">
<label for="input_<?= $k?>"><?= $k?>:</label>
<?php if (strlen($v) == strlen(strip_tags($v)) || substr($k, -strlen("_no_tags")) == "_no_tags" || substr($k, -strlen("_notg")) == "_notg"):?>
<textarea id="input_<?= $k?>" class="form-control" name="<?= $k?>"><?= Post($k, $v)?></textarea>
<?php else:?>
<?php IncludeCom("dev/richtext", array
(
"name" => $k,
"value" => Post($k, $v, M_HTML_FILTER_OFF | M_XSS_FILTER_OFF),
"mode" => "full"
));
?>
<?php endif;?>
</div>
<?php endif;?>
<?php endforeach;?>
<?php if ($showSEO):?>
<h3>Задайте новые значения для SEO параметров:</h3>
<p>
SEO параметры нужны для продвижения сайта в интернете. Если вы не знаете, что в них вписать, то просто оставьте эти поля нетронутыми.<br>
Помните, что если для страницы сайта не задан <em>title</em>, то он будет скопирован из тега <em>h1</em>.
</p>
<div class="form-group">
<label for="inputTitle">Title:</label>
<textarea id="inputTitle" class="form-control" name="m_title"><?= Post('m_title', @$curLang['m_title'])?></textarea>
</div>
<div class="form-group">
<label for="inputKeywords">Key words:</label>
<textarea id="inputKeywords" class="form-control" name="m_keyWords"><?= Post('m_keyWords', @$curLang['m_keyWords'])?></textarea>
</div>
<div class="form-group">
<label for="inputDesc">Description:</label>
<textarea id="inputDesc" class="form-control" name="m_description"><?= Post('m_description', @$curLang['m_description'])?></textarea>
</div>
<?php endif;?>
<button class="btn btn-primary">
<span class="glyphicon glyphicon-save"></span> Сохранить
</button>
<button class="btn btn-primary" name="___no_return" value="1">
<span class="glyphicon glyphicon-ok"></span> Сохранить и продолжить редактировать
</button>
<a class="btn btn-default" href="<?= SiteRoot("admin/page_editor")?>">
<span class="glyphicon glyphicon-ban-circle"></span> Отмена
</a>
</form>
+54
View File
@@ -0,0 +1,54 @@
<?php IncludeCom('dev/bootstrap3')?>
<h1>Примеры графов</h1>
<form action="<?= GetCurUrl()?>" method="post" class="form-horizontal" role="form" class="form-inline">
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<?= isset($msg) ? $msg : ""?>
</div>
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">ID graph исходного графа</label>
<input type="text" id="inputName" autocomplete="on" name="source_id" value="<?= Post("source_id")?>">
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">ID graph конечного графа</label>
<input type="text" id="inputName" autocomplete="on" name="dest_id" value="<?= Post("dest_id")?>">
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">Русское название</label>
<input type="text" id="inputName" autocomplete="on" name="title_ru" value="<?= Post("title_ru")?>">
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">Английское название</label>
<input type="text" id="inputName" autocomplete="on" name="title_en" value="<?= Post("title_en")?>">
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">Изображение</label>
<input type="text" id="inputName" autocomplete="on" name="image" value="<?= Post("image")?>">
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<button type="submit" class="btn btn-primary">Добавить</button>
</div>
</div>
</form>
<div>
<?php for ($i = 0; $i < count($examples); $i++): ?>
<p>
<?= $examples[$i]["title_ru"] ?> -
<?= $examples[$i]["title_en"] ?> -
<a href="/?graph=<?= $examples[$i]["id"] ?>" target="_blank">http://graphonline.ru/?graph=<?= $examples[$i]["id"] ?></a>
</p>
<?php endfor; ?>
</div>
+34
View File
@@ -0,0 +1,34 @@
<?php IncludeCom('dev/bootstrap3')?>
<h1>Сохранённые файлы</h1>
<div>
<h2>Сохранённые графы</h2>
<p>Всего сохранёных графов - <?= $totalGraphCount ?> шт</p>
<p>Общий размер сохранённых графов - <?= $totalGraphSize ?> Кб</p>
<p>За последние полгода сохранено - <?= $ageGraph / $totalGraphCount * 100 ?> %</p>
<h2>Сохранённые изображения</h2>
<p>Всего сохранёных изображений - <?= $totalImages ?> шт</p>
<p>Общий размер сохранённых изображений - <?= $totalImagesSize ?> Кб</p>
<p>За последние полгода сохранено - <?= $ageImage / $totalImages * 100 ?> %</p>
</div>
<form action="<?= GetCurUrl()?>" method="post" class="form-horizontal" role="form">
<input type="hidden" name="is_add_page" value="1">
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<?= $msg?>
</div>
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">Название страницы</label>
<div class="col-lg-6">
<input type="text" class="form-control" id="inputName" autocomplete="on" name="name" value="<?= Post("name")?>" placeholder="Только маленькие латинские буквы и цифры">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-6">
<button type="submit" class="btn btn-primary">Добавить</button>
</div>
</div>
</form>
+5
View File
@@ -0,0 +1,5 @@
<h1><?= L('title_notg')?></h1>
<?= L('text')?>
<?php IncludeCom('main_tpl/page_btns')?>
+6
View File
@@ -0,0 +1,6 @@
<?php
include ("home.php");
?>
<script src="<?= Root("i/js/create_algorithm.js")?>" ></script>
+265
View File
@@ -0,0 +1,265 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/create_graph_by_incidence_matrix.css')?>" />
<script src="<?= Root('script/Graph.js')?>"></script>
</head>
<script>
// Current matrix size
var g_MatrixWidth = 2;
var g_MatrixHeight = 3;
function PackMatrix()
{
var matrix = "";
for (i = 0; i < g_MatrixHeight; i++)
{
for (j = 0; j < g_MatrixWidth; j++)
{
var element = document.getElementsByName("field" + i + j)[0];
matrix = matrix + (element.value.length > 0 ? element.value : "0") + ", ";
}
matrix = matrix + "\n";
}
return matrix;
}
function CopyMatrixToTextInput()
{
document.getElementById("IncidenceMatrixFieldPage").value = PackMatrix();
}
function _ShowTextInput()
{
$( "#IncidenceMatrixFieldPage" ).show();
$( "#MatrixForm" ).hide();
$( "#TextDescription").show();
$( "#MatrixDescription").hide();
}
function _ShowMatrixInput()
{
$( "#MatrixForm" ).show();
$( "#IncidenceMatrixFieldPage" ).hide();
$( "#TextDescription").hide();
$( "#MatrixDescription").show();
}
function ShowTextInput()
{
_ShowTextInput();
document.getElementById("showMatrix").className = "btn btn-default";
document.getElementById("showText").className = "btn btn-default active";
}
function ShowMatrixInput()
{
_ShowMatrixInput();
document.getElementById("showMatrix").className = "btn btn-default active";
document.getElementById("showText").className = "btn btn-default";
}
function CopyMatrixToMatrixInput()
{
var graph = new Graph();
var colsObj = {};
var rowsObj = {};
if (graph.TestIncidenceMatrix($( "#IncidenceMatrixFieldPage" ).val(), rowsObj, colsObj))
{
var rows = rowsObj.rows;
var cols = colsObj.cols;
for (var i = g_MatrixWidth; i < cols[0].length; i++)
{
IncSizeW();
}
for (var i = g_MatrixHeight; i < cols.length; i++)
{
IncSizeH();
}
for (var i = 0; i < cols.length; i++)
{
for (var j = 0; j < cols[0].length; j++)
{
var element = document.getElementsByName("field" + i + j)[0];
element.value = cols[i][j];
}
}
}
else
{
ShowTextInput();
}
}
function CreateInputElement(col, row)
{
var input = document.createElement("input");
input.type = "text";
input.size = 3;
input.name = "field" + col + row;
input.value = 0;
input.onkeyup = function() {CopyMatrixToTextInput();};
return input;
}
function InsertBeforeElement(element, beforeName, space)
{
var parent = document.getElementsByName(beforeName)[0].parentNode;
var beforeElement = document.getElementsByName(beforeName)[0];
parent.insertBefore(element, beforeElement);
if (space)
{
// Insert space
parent.insertBefore(document.createTextNode( '\u00A0' ), beforeElement);
}
}
function IncSizeW()
{
// End one more line:
for (var i = 0; i < g_MatrixHeight; i ++)
{
var input = CreateInputElement(i, g_MatrixWidth);
InsertBeforeElement(input, "row" + i, true);
//InsertBeforeElement(input, "matrixEnd", true);
}
g_MatrixWidth++;
CopyMatrixToTextInput();
}
function IncSizeH()
{
var br = document.createElement("br");
br.setAttribute("name", "row" + g_MatrixHeight);
InsertBeforeElement(br, "matrixEnd", false);
for (var i = 0; i < g_MatrixWidth; i ++)
{
var input = CreateInputElement(g_MatrixHeight, i);
InsertBeforeElement(input, "row" + g_MatrixHeight, true);
}
g_MatrixHeight++;
CopyMatrixToTextInput();
}
window.onload = function ()
{
if (document.getElementById('CreateByIncidenceMatrix'))
{
document.getElementById('CreateByIncidenceMatrix').onclick = function ()
{
$("#matrixForm").submit();
//window.location = "./?incidenceMatrix=" + $( "#IncidenceMatrixFieldPage" ).val().replace(/\n/g,'%0A');
}
}
$( "#IncidenceMatrixFieldPage" ).on('keyup change', function (eventObject)
{
var graph = new Graph();
if (!graph.TestIncidenceMatrix($( "#IncidenceMatrixFieldPage" ).val(), [], []))
{
$( "#BadFormatMessage" ).show();
}
else
{
$( "#BadFormatMessage" ).hide();
}
});
$( "#BadFormatMessage" ).hide();
$( "#IncidenceMatrixFieldPage" ).hide();
$( "#showMatrix" ).on('click', function (eventObject)
{
_ShowMatrixInput();
});
$( "#showText" ).on('click', function (eventObject)
{
_ShowTextInput();
});
CopyMatrixToMatrixInput();
}
</script>
<h1><?= L('head_no_tags')?></h1>
<p><?= L('text')?></p>
<div>
<form>
<fieldset>
<div id="message" class="alert alert-success" role="alert" style="height:64px">
<p id="TextDescription" style="display: none;"><?= L('incidence_matrix_description') ?></p>
<p id="MatrixDescription"><?= L('incidence_matrix_description_matrix') ?></p>
</div>
<div class="row">
<div class="col-md-4">
<form>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active" id="showMatrix"><input type="radio" name="matrixInputType"> <?= L('matrix_matrix_input') ?></label>
<label class="btn btn-default" id="showText"><input type="radio" name="matrixInputType"> <?= L('text_matrix_input') ?></label>
</div>
</form>
<form action="./" method="post" id="matrixForm">
<textarea name="incidenceMatrix" id="IncidenceMatrixFieldPage" wrap="off" style="display: none;">
<? if (!isset($_GET["incidenceMatrix"])): ?>
1, 0
1, 1
0, -1
<? else: ?><?= $_GET["incidenceMatrix"] ?><? endif;?></textarea>
</form>
<div id="MatrixForm">
<form id="AdjacencyMatrixFieldInput" role="form">
<input type="text" name="field00" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field01" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<br name="row0">
<input type="text" name="field10" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field11" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<br name="row1">
<input type="text" name="field20" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field21" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<br name="row2">
<span name="matrixEnd"></span>
</form>
<button type="button" onclick="IncSizeW()" value="add" name="add" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span>
<?= L('add_edge_to_matrix') ?>
</button>
<button type="button" onclick="IncSizeH()" value="add" name="add" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span>
<?= L('add_node_to_matrix') ?>
</button>
</div>
</div>
<div class="col-md-4">
<button type="button" class="btn btn-default btn-lg" id="CreateByIncidenceMatrix"><span class="glyphicon glyphicon-th"></span> <?= L('plot_graph_button')?></button>
<div id="BadFormatMessage" class="alert alert-warning" role="alert">
<?= L('incidence_matrix_bad_format')?>
</div>
</div>
</div>
</fieldset>
</form>
</div>
+307
View File
@@ -0,0 +1,307 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/create_graph_by_matrix.css')?>" />
<script src="<?= Root('script/Graph.js')?>"></script>
</head>
<script>
// Current matrix size
var g_MatrixSize = 3;
function PackMatrix()
{
var matrix = "";
for (i = 0; i < g_MatrixSize; i++)
{
for (j = 0; j < g_MatrixSize; j++)
{
var element = document.getElementsByName("field" + i + j)[0];
matrix = matrix + (element.value.length > 0 ? element.value : "0") + ", ";
}
matrix = matrix + "\n";
}
return matrix;
}
function CopyMatrixToTextInput()
{
document.getElementById("AdjacencyMatrixFieldPage").value = PackMatrix();
}
function _ShowTextInput()
{
$( "#AdjacencyMatrixFieldPage" ).show();
$( "#MatrixForm" ).hide();
$( "#TextDescription").show();
$( "#MatrixDescription").hide();
$( "#idSeparatorList").show();
}
function _ShowMatrixInput()
{
$( "#MatrixForm" ).show();
$( "#AdjacencyMatrixFieldPage" ).hide();
$( "#TextDescription").hide();
$( "#MatrixDescription").show();
$( "#idSeparatorList").hide();
}
function ShowTextInput()
{
_ShowTextInput();
document.getElementById("showMatrix").className = "btn btn-default";
document.getElementById("showText").className = "btn btn-default active";
}
function ShowMatrixInput()
{
_ShowMatrixInput();
document.getElementById("showMatrix").className = "btn btn-default active";
document.getElementById("showText").className = "btn btn-default";
}
function CopyMatrixToMatrixInput()
{
var graph = new Graph();
var colsObj = {};
var rowsObj = {};
if (graph.TestAdjacencyMatrix($( "#AdjacencyMatrixFieldPage" ).val(), rowsObj, colsObj))
{
var rows = rowsObj.rows;
var cols = colsObj.cols;
for (var i = g_MatrixSize; i < rows.length; i++)
{
IncSize();
}
for (var i = 0; i < rows.length; i++)
{
for (var j = 0; j < rows.length; j++)
{
var element = document.getElementsByName("field" + i + j)[0];
element.value = cols[i][j];
}
}
}
else
{
ShowTextInput();
}
}
function CreateInputElement(col, row)
{
var input = document.createElement("input");
input.type = "text";
input.size = 3;
input.name = "field" + col + row;
input.value = 0;
input.onkeyup = function() {CopyMatrixToTextInput();};
return input;
}
function InsertBeforeElement(element, beforeName, space)
{
var parent = document.getElementsByName(beforeName)[0].parentNode;
var beforeElement = document.getElementsByName(beforeName)[0];
parent.insertBefore(element, beforeElement);
if (space)
{
// Insert space
parent.insertBefore(document.createTextNode( '\u00A0' ), beforeElement);
}
}
function IncSize()
{
// End one more line:
for (var i = 0; i < g_MatrixSize; i ++)
{
var input = CreateInputElement(g_MatrixSize, i);
InsertBeforeElement(input, "matrixEnd", true);
}
var br = document.createElement("br");
br.setAttribute("name", "row" + g_MatrixSize);
InsertBeforeElement(br, "matrixEnd", false);
for (var i = 0; i < g_MatrixSize + 1; i ++)
{
var input = CreateInputElement(i, g_MatrixSize);
InsertBeforeElement(input, "row" + i, g_MatrixSize);
}
g_MatrixSize++;
CopyMatrixToTextInput();
}
function checkFormat()
{
var graph = new Graph();
var separator = $("#spaceSep").is(':checked') ? " " : ",";
if (!graph.TestAdjacencyMatrix($( "#AdjacencyMatrixFieldPage" ).val(), [], [], separator))
{
$( "#BadFormatMessage" ).show();
}
else
{
$( "#BadFormatMessage" ).hide();
}
}
window.onload = function ()
{
if (document.getElementById('CreateByAdjacencyMatrix'))
{
document.getElementById('CreateByAdjacencyMatrix').onclick = function ()
{
$("#matrixForm").submit();
//window.location = "./?matrix=" + $( "#AdjacencyMatrixFieldPage" ).val().replace(/\n/g,'%0A');
}
}
$( "#AdjacencyMatrixFieldPage" ).on('keyup change', function (eventObject)
{
checkFormat();
});
$( "#BadFormatMessage" ).hide();
$( "#AdjacencyMatrixFieldPage" ).hide();
$( "#showMatrix" ).on('click', function (eventObject)
{
_ShowMatrixInput();
});
$( "#showText" ).on('click', function (eventObject)
{
_ShowTextInput();
});
$('input:radio[name="separator"]').change( function(){
checkFormat()
});
CopyMatrixToMatrixInput();
}
</script>
<h1><?= L('head_no_tags')?></h1>
<p><?= L('text')?></p>
<div>
<form>
<fieldset>
<div id="message" class="alert alert-success" role="alert" style="height:64px">
<p id="TextDescription" style="display: none;"><?= L('adjacency_matrix_description') ?></p>
<p id="MatrixDescription"><?= L('adjacency_matrix_description_matrix') ?></p>
</div>
<div class="row">
<div class="col-md-4">
<form>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active" id="showMatrix"><input type="radio" name="matrixInputType"> <?= L('matrix_matrix_input') ?></label>
<label class="btn btn-default" id="showText"><input type="radio" name="matrixInputType"> <?= L('text_matrix_input') ?></label>
</div>
</form>
<form action="./" method="post" id="matrixForm">
<textarea name="matrix" id="AdjacencyMatrixFieldPage" wrap="off" style="display: none;">
<? if (!isset($_GET["matrix"])): ?>
0, 1, 0
1, 0, 0
0, 1, 0
<? else: ?><?= $_GET["matrix"] ?><? endif;?></textarea>
<div id="idSeparatorList" style="display: none;">
<?= L('separator') ?>
<input type="radio" name="separator" value="commo" id="commoSep" checked> <label for="commoSep"><?= L('separator_commo') ?></label>
<input type="radio" name="separator" value="space" id="spaceSep"> <label for="spaceSep"><?= L('separator_space') ?></label>
</div>
</form>
<div id="MatrixForm">
<form id="AdjacencyMatrixFieldInput" role="form">
<input type="text" name="field00" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field01" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field02" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<br name="row0">
<input type="text" name="field10" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field11" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field12" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<br name="row1">
<input type="text" name="field20" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field21" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<input type="text" name="field22" size="3" value = "0" onkeyup="CopyMatrixToTextInput()">
<br name="row2">
<span name="matrixEnd"></span>
</form>
<button type="button" onclick="IncSize()" value="add" name="add" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span>
<?= L('add_node_to_matrix') ?>
</button>
</div>
</div>
<div class="col-md-4">
<button type="button" class="btn btn-default btn-lg" id="CreateByAdjacencyMatrix"><span class="glyphicon glyphicon-ok"></span> <?= L('plot_graph_button')?></button>
<div id="BadFormatMessage" class="alert alert-warning" role="alert">
<?= L('adjacency_matrix_bad_format')?>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<script>
CopyMatrixToMatrixInput();
</script>
<? if (L('current_language') == "ru"): ?>
<div id="videoHelp">
<a href="./create_graph_by_matrix_help">Видео справка</a>
<a href="./wiki/Справка/МатрицаСмежности">Wiki справка</a>
</div>
<? endif; ?>
<? if (L('current_language') == "ru"): ?>
<section style="height:90px;text-align: center;" id="adv" class="hidden-phone">
<!-- Yandex.RTB R-A-202319-1 -->
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://money.yandex.ru/embed/donate.xml?account=41001394497131&quickpay=donate&payment-type-choice=on&mobile-payment-type-choice=on&default-sum=30&targets=%D0%9F%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D1%82%D0%B5+%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82+%D0%93%D1%80%D0%B0%D1%84+%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD.&target-visibility=on&project-name=&project-site=&button-text=01&successURL=" width="522" height="90"></iframe>
<!--
<div style="text-align:center;">
<div id="yandex_rtb_R-A-202319-1" style="display: inline-block;"></div>
</div>
<script type="text/javascript">
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Context.AdvManager.render({
blockId: "R-A-202319-1",
renderTo: "yandex_rtb_R-A-202319-1",
async: true
});
});
t = d.getElementsByTagName("script")[0];
s = d.createElement("script");
s.type = "text/javascript";
s.src = "//an.yandex.ru/system/context.js";
s.async = true;
t.parentNode.insertBefore(s, t);
})(this, this.document, "yandexContextAsyncCallbacks");
</script>
-->
</section>
<? endif; ?>
+3
View File
@@ -0,0 +1,3 @@
<h1><?= L('head_no_tags')?></h1>
<p><?= L('text')?></p>
+61
View File
@@ -0,0 +1,61 @@
<?php IncludeCom("dev/jquery")?>
<!--
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/variables.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/mixins.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/normalize.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/print.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/scaffolding.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/type.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/code.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/grid.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/tables.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/forms.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/buttons.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/component-animations.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/glyphicons.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/dropdowns.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/button-groups.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/input-groups.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/navs.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/navbar.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/breadcrumbs.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/pagination.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/pager.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/labels.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/badges.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/jumbotron.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/thumbnails.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/alerts.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/progress-bars.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/media.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/list-group.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/panels.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/wells.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/close.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/modals.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/tooltip.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/popovers.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/carousel.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/utilities.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/bootstrap3/responsive-utilities.less')?>" />
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/transition.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/alert.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/button.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/carousel.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/collapse.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/dropdown.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/modal.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/tooltip.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/popover.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/scrollspy.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/tab.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/affix.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/assets/html5shiv.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/bootstrap3/assets/respond.min.js')?>"></script>
</head>
-->
+5
View File
@@ -0,0 +1,5 @@
<?php IncludeCom("dev/ckeditor4_head")?>
<textarea class="js-ckeditor4" name="<?= $name?>" id="edit_<?= mt_rand()?>" mode="<?= $mode?>"><?= $value?></textarea>
+8
View File
@@ -0,0 +1,8 @@
<?php IncludeCom("dev/jquery")?>
<head>
<script src="<?= Root('lib/ckeditor4/ckeditor.js')?>"></script>
<script type="text/javascript">
var g_ckeditor4_contentCss = "<?= $contentCss?>";
</script>
<script src="<?= Root('i/js/dev/init_ckeditor4.js')?>"></script>
</head>
+231
View File
@@ -0,0 +1,231 @@
<script type="text/javascript">
function DebugPanel_Toggle(id)
{
var e = document.getElementById(id);
e.style.display = (e.style.display == 'none' ? 'block' : 'none');
}
function DebugPanel_ShowHidePanel()
{
DebugPanel_Toggle('i-debug-panel-all-panels');
DebugPanel_Toggle('i-debug-panel-list');
DebugPanel_Toggle('i-show-profile');
}
function DebugPanel_ShowExtensionFuncs(id)
{
var e = document.getElementById(id);
document.getElementById('i-ext-show').innerHTML = e.innerHTML;
}
</script>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/debug_panel.css')?>" />
<div style="clear: both"></div>
<div id="i-debug-panel">
<span class="icon show-profile" id="i-show-profile" onclick="DebugPanel_ShowHidePanel()"></span>
<ul id="i-debug-panel-list" style="display: none">
<li class="show-hide-elem">
<span class="icon hide-profile" onclick="DebugPanel_ShowHidePanel()"></span>
</li>
<li>
<span class="icon time"></span>
<?= number_format(floatval(microtime(true) - $g_config['startExecTime']), 3);?> s
</li>
<li>
<span class="icon mem"></span>
<?= $debug->MemoryUsage()?>
</li>
<li>
<span class="icon db"></span>
<a href="javascript:DebugPanel_Toggle('i-databasa-log')">sql</a>
</li>
<li>
<span class="icon vars"></span>
<a href="javascript:DebugPanel_Toggle('i-vars-log')">vars <span class="small">(G: <?= count($_GET)?> / P: <?= count($_POST)?> / C: <?= count($_COOKIE)?> / F: <?= count($_FILES)?>)</span></a>
</li>
<li>
<span class="icon files"></span>
<a href="javascript:DebugPanel_Toggle('i-files')">files <span class="small">(<?= count($debug->Files())?>)</span></a>
</li>
<li>
<span class="icon engine"></span>
<a href="javascript:DebugPanel_Toggle('i-engine')">engine</a>
</li>
<li>
<span class="icon ini-values"></span>
<a href="javascript:DebugPanel_Toggle('i-ini-values')">ini + exts</a>
</li>
</ul>
<div id="i-debug-panel-all-panels" style="display: none">
<div id="i-databasa-log" class="panel" style="display: none">
<?= $debug->Db()?>
</div>
<div id="i-vars-log" class="panel" style="display: none">
<ul>
<li>
<?php IncludeCom('dev/debug_panel/var_panel', array('head' => '$_GET', 'link' => 'i-get-log', 'arr' => $_GET))?>
</li>
<li>
<?php IncludeCom('dev/debug_panel/var_panel', array('head' => '$_POST', 'link' => 'i-post-log', 'arr' => $_POST))?>
</li>
<li>
<?php IncludeCom('dev/debug_panel/var_panel', array('head' => '$_COOKIE', 'link' => 'i-cookie-log', 'arr' => $_COOKIE))?>
</li>
<?php if (session_id()):?>
<li>
<?php IncludeCom('dev/debug_panel/var_panel', array('head' => '$_SESSION', 'link' => 'i-session-log', 'arr' => $_SESSION))?>
</li>
<?php endif?>
<li>
<?php IncludeCom('dev/debug_panel/var_panel', array('head' => '$_SERVER', 'link' => 'i-server-log', 'arr' => $_SERVER))?>
</li>
<li>
<a href="javascript:DebugPanel_Toggle('i-files-log')">$_FILES <span>(<?= count($_FILES)?>)</span></a>
<div id="i-files-log" style="display: none">
<table cellpadding="0" cellspacing="0">
<tr>
<th>№</th>
<th>field name</th>
<th>name</th>
<th>type</th>
<th>tmp_name</th>
<th>error</th>
<th>size</th>
</tr>
<?php if (count($_FILES)):?>
<?php $i = 0; foreach ($_FILES as $k => $v):?>
<tr>
<td class="num"><?= ++$i?></td>
<td><?= $k?></td>
<td><?= $v['name']?></td>
<td><?= $v['type']?></td>
<td><?= $v['tmp_name']?></td>
<td><?= $v['error']?></td>
<td><?= $v['size']?></td>
</tr>
<?php endforeach?>
<?php else:?>
<tr>
<td colspan="7" class="center">Empty</td>
</tr>
<?php endif?>
</table>
</div>
</li>
</ul>
</div>
<div id="i-files" class="panel" style="display: none">
<table cellpadding="0" cellspacing="0">
<tr>
<th>№</th>
<th>file</th>
<th>size</th>
<th>lines</th>
</tr>
<?php $i = 0; foreach ($debug->Files() as $f):?>
<tr>
<td class="num"><?= ++$i?></td>
<td><?= str_replace(BASEPATH, '<span>' . BASEPATH . '</span>', $f['file'])?></td>
<td><?= $f['size']?></td>
<td><?= $f['lines']?></td>
</tr>
<?php endforeach?>
<tr class="total">
<td></td>
<td class="center"><span>Total</span> <?= count($debug->Files())?> <span>files</span></td>
<td><?= $debug->TotalFileSize()?></td>
<td><?= $debug->TotalFileLines()?></td>
</tr>
</table>
</div>
<div id="i-engine" class="panel" style="display: none">
<table cellpadding="0" cellspacing="0">
<tr>
<td>language</td>
<td><?= $g_arrLangs[LANG]['name']?> <strong>(<?= LANG?>)</strong></td>
</tr>
<tr>
<td>current url</td>
<td><?= GetCurUrl()?></td>
</tr>
<tr>
<td>query</td>
<td><?= GetQuery()?></td>
</tr>
<?php foreach ($g_config['phpIni'] as $k => $v):?>
<tr>
<td><?= $k?></td>
<td><?= VarDump($v)?></td>
</tr>
<?php endforeach?>
</table>
</div>
<div id="i-ini-values" class="panel" style="display: none">
<h3>Load extensions</h3>
<ul class="exts">
<?php foreach (get_loaded_extensions() as $v):?>
<li>
<a href="javascript:DebugPanel_ShowExtensionFuncs('i-ext-<?= md5($v)?>')">
<?= $v?>
</a>
<div style="display:none" id="i-ext-<?= md5($v)?>">
<h3>Function in extension: <?= $v?></h3>
<?php
$funcs = get_extension_funcs($v);
$funcs = empty($funcs) ? array() : $funcs;
if ($funcs):
?>
<table cellpadding="0" cellspacing="0">
<?php foreach (get_extension_funcs($v) as $k => $func):?>
<tr>
<td><?= $k++?></td>
<td><?= $func?></td>
</tr>
<?php endforeach?>
</table>
<?php
endif;
?>
</div>
</li>
<?php endforeach?>
</ul>
<div style="clear: both"></div>
<div id="i-ext-show"></div>
<h3>Php.ini</h3>
<table cellpadding='0' cellspacing='0'>
<tr>
<th>name </th>
<th>global val</th>
<th>local val</th>
<th>access</th>
</tr>
<?php
foreach (ini_get_all() as $k => $v)
{
?>
<tr>
<td><?= $k?></td>
<td><?= VarDump($v['global_value'])?></td>
<td><?= VarDump($v['local_value'])?></td>
<td><?= DebugPanel::ShowPhpIniAccess($v['access'])?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
<div style="clear: both"></div>
</div>
+25
View File
@@ -0,0 +1,25 @@
<a href="javascript:DebugPanel_Toggle('<?= $link?>')"><?= $head?> <span>(<?= count($arr)?>)</span></a>
<div id="<?= $link?>" style="display: none">
<table cellpadding="0" cellspacing="0">
<tr>
<th>#</th>
<th>key</th>
<th>value</th>
</tr>
<?php if (count($arr)):?>
<?php $i = 0; foreach ($arr as $k => $v):?>
<tr>
<td class="num"><?= ++$i?></td>
<td><?= $k?></td>
<td><?= VarDump($v)?></td>
</tr>
<?php endforeach?>
<?php else:?>
<tr>
<td colspan="3" class="center">Empty</td>
</tr>
<?php endif?>
</table>
</div>
+4
View File
@@ -0,0 +1,4 @@
<head>
<link media="screen" rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic&subset=latin,cyrillic" />
</head>
+15
View File
@@ -0,0 +1,15 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/bordered-pulled.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/core.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/fixed-width.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/icons.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/larger.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/list.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/mixins.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/path.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/rotated-flipped.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/spinning.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/stacked.less')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/fontawesome/variables.less')?>" />
</head>
+4
View File
@@ -0,0 +1,4 @@
<head>
<script type="text/javascript" src="<?= Root('i/js/dev/jquery-2.0.3.js')?>"></script>
<script type="text/javascript" src="<?= Root('i/js/dev/jquery.browser.js')?>"></script>
</head>
+9
View File
@@ -0,0 +1,9 @@
<?php IncludeCom('dev/jquery')?>
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/msg.css')?>" />
<script type="text/javascript" src="<?= Root('i/js/dev/msg.js')?>"></script>
</head>
<div class="<?= $css?>"><?= $message?></div>
+37
View File
@@ -0,0 +1,37 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/donate.css')?>" />
</head>
<h1><?= L('title_notg')?></h1>
<h2>Почему мы собираем средства</h2>
<p><img src="<?= Root('i/image/cat.jpg')?>" alt="Поддержите граф онлайн" style="float:left; padding: 12px"> <?= L('text')?></p>
<div>
<span ></span>
</div>
<h2>Безопасная форма для отправки средств от Яндекса</h2>
<div>
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://money.yandex.ru/embed/donate.xml?account=41001394497131&quickpay=donate&payment-type-choice=on&mobile-payment-type-choice=on&default-sum=30&targets=%D0%9F%D0%BE%D0%B4%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D1%82%D0%B5+%D0%BF%D1%80%D0%BE%D0%B5%D0%BA%D1%82+%D0%93%D1%80%D0%B0%D1%84+%D0%9E%D0%BD%D0%BB%D0%B0%D0%B9%D0%BD.&target-visibility=on&project-name=&project-site=&button-text=01&successURL=" width="522" height="90"></iframe>
</div>
<h2>Текущий прогресс</h2>
<div class="ProgressBar" style="height:96px">
<div class="ProgressBarFill" style="width:<?= intval($donates / $totalDonate * 100) ?>%;"></div>
<span class="ProgressBarText" style="top:-90px"><p>Cбор средств на продление хостинга и имени сайта на 1 год.</p><p>Осталось собрать- <?= max($totalDonate - $donates, 0) ?> руб</p><p>Последний перевод - <?= $lastDonate ?> руб.</p></span>
</div>
<h2>Расскажите про нас</h2>
<? $sharePageURL = $_SERVER['SERVER_NAME'] . "/donate";?>
<ul class="share-buttons">
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $sharePageURL ?>&text=<?= L('m_description') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $sharePageURL ?>&t=<?= L('m_description') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $sharePageURL ?>&text=<?= L('m_description') ?> http://<?= $sharePageURL ?>" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
<li><a href="https://plus.google.com/share?url=http://<?= $sharePageURL ?>" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $sharePageURL ?>&title=<?= L('m_description') ?>&summary=<?= L('m_description') ?> &source=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
<li><a href="mailto:?subject=<?= L('m_description') ?>&body=http://<?= $sharePageURL ?>" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
</ul>
<?php IncludeCom('main_tpl/page_btns')?>
+30
View File
@@ -0,0 +1,30 @@
<?php
include ("cgi-bin/saveGraphHelpers.php");
?>
<h1><?= L('head_no_tags')?></h1>
<p><?= L('text')?></p>
<div>
<?php for ($i = 0; $i < count($examples); $i++): ?>
<?php if ($i % 3 == 0): ?>
<div class="row">
<?php endif ?>
<div class="col-md-4">
<div class="thumbnail">
<a href="./?graph=<?= $examples[$i]["id"] ?>">
<img src="/<? echo (getImageFileName($examples[$i]["id"], true)); ?>" alt="<?= $examples[$i]["title_" . $g_lang["current_language"]] ?>" style="width:100%">
<div class="caption">
<p><?= $examples[$i]["title_" . $g_lang["current_language"]] ?></p>
</div>
</a>
</div>
</div>
<?php if ($i % 3 == 2): ?>
</div>
<?php endif ?>
<?php endfor; ?>
</div>
Executable
+5
View File
@@ -0,0 +1,5 @@
<h1><?= L('title_notg')?></h1>
<?= L('text')?>
<?php IncludeCom('main_tpl/page_btns')?>
Executable
+340
View File
@@ -0,0 +1,340 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/home.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery-ui.theme.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery-ui.css')?>" />
<!--
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery-ui.structure.css')?>" />
-->
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/jquery.feedback_me.css')?>" />
<script src="<?= Root('i/js/dev/jquery-ui.js')?>"></script>
<script src="<?= Root('i/js/dev/jquery.feedback_me.js')?>"></script>
<script src="<?= Root("script/example.js")?>" ></script>
</head>
<!--
<div class="pull-right">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:240px;height:100px"
data-ad-client="ca-pub-6777969915840976"
data-ad-slot="6397293847"></ins>
</div>
-->
<h1 style="display:inline;"><?= L('title_notg')?></h1>
<span class="hidden-xs"><?= L('text')?></span>
<section>
<ul class="nav nav-pills">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-cog fa-fw"></span><span class="hidden-phone"> <?= L('graph')?> </span><span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="NewGraph"><span class="glyphicon glyphicon-plus fa-fw"></span> <?= L('new_graph')?></button>
</li>
<li class="divider"></li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="SaveGraph"><span class="glyphicon glyphicon-floppy-disk fa-fw"></span> <?= L('save')?></button>
</li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="SaveGraphImage"><span class="glyphicon glyphicon-floppy-disk fa-fw"></span> <?= L('save_image')?></button>
</li>
<li class="divider"></li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="ShowAdjacencyMatrix"><span class="glyphicon glyphicon-th fa-fw"></span> <?= L('show_adjacency_matrix')?></button>
</li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="ShowIncidenceMatrix"><span class="glyphicon glyphicon-th fa-fw"></span> <?= L('show_incidence_matrix')?> </button>
</li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="GroupRename"><span class="glyphicon glyphicon-pencil fa-fw"></span> <?= L('group_rename')?> </button>
</li>
<li class="divider"></li>
<li>
<button type="button" class="btn btn-default btn-sm btn-submenu" id="DeleteAll"><span class="glyphicon glyphicon-remove fa-fw"></span> <?= L('delete_all')?></button>
</li>
</ul>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span class="glyphicon glyphicon-zoom-in fa-fw"></span><span class="hidden-phone"> <?= L('view')?> </span><span class="caret hidden-phone"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="Zoom100"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> 100% </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="Zoom50"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> 50% </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="Zoom25"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> 25% </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="ZoomFit"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('zoom_fit') ?></button> </li>
<li class="divider"></li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="ZoomIn"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('zoom_in') ?> </button> </li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="ZoomOut"><span class="glyphicon glyphicon-zoom-in fa-fw"></span> <?= L('zoom_out') ?> </button> </li>
<li class="divider"></li>
<li> <button type="button" class="btn btn-default btn-sm btn-submenu" id="MoveWorspace"><span class="glyphicon glyphicon-fullscreen fa-fw"></span> <?= L('move_workspace') ?> </button> </li>
</ul>
</div>
<button type="button" class="btn btn-default btn-sm" id="Default"><span class="glyphicon glyphicon-fullscreen fa-fw"></span><span class="hidden-phone"> <?= L('default')?></span></button>
<button type="button" class="btn btn-primary btn-sm" id="AddGraph"><span class="glyphicon glyphicon-plus fa-fw"></span><span class="hidden-phone"> <?= L('add_node')?></span></button>
<button type="button" class="btn btn-default btn-sm" id="ConnectGraphs"><span class="glyphicon glyphicon-road fa-fw"></span><span class="hidden-phone"> <?= L('connect_nodes')?></span></button>
<!-- Algorithms -->
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="glyphicon glyphicon-cog fa-fw "></span><span class="hidden-phone"> <?= L('algorithms') ?> </span><span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu" id="algorithmList">
<li>
<!--
<button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="FindPath"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('short_path')?></button></li>
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="ConnectedComponent"><span class="glyphicon glyphicon-search fa-fw"></span> <?= L('connected_component') ?> </button></li>
<li><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id="EulerianLoop"><span class="glyphicon glyphicon-refresh fa-fw"></span> <span><?= L('find_eulerian_loop')?></span></button></li>
-->
<li style="display: none;"><button type="button" class="btn btn-default btn-sm" style="width: 100%; text-align: left; border: none;" id=""><span class="glyphicon glyphicon-search fa-fw"></span> <span></span></button></li>
</ul>
</div>
<button type="button" class="btn btn-default btn-sm" id="DeleteObject"><span class="glyphicon glyphicon-remove fa-fw"></span><span class="hidden-phone"> <?= L('delete')?></span></button>
<!--
<button type="button" class="btn btn-default" id="Test"><span class="glyphicon glyphicon-remove"></span> Test repos</button>
-->
</ul>
</section>
<section>
<div id="message" class="alert alert-success" role="alert">Graph</div>
</section>
<section id="canvasSection">
<canvas id="canvas"><?= L('browser_no_support')?></canvas>
<div id="developerTools" class="well well-sm">
<h4><?= L('developer_tools_title')?></h4> <span class="glyphicon glyphicon-resize-full fa-fw leftTopPosition" id="devToolsZoom"></span>
<span><?= L('developer_tools_text')?></span>
<textarea id="userScript">
</textarea>
<input type="button" value="<?= L('developer_tools_run')?>" id="runUserScript" class="btn btn-success btn-sm"/>
<input type="button" value="<?= L('developer_tools_submit')?>" id="submitUserScript" class="btn btn-default btn-sm" style="float: right;"/>
</div>
</section>
<? if (L('current_language') == "ru"): ?>
<section style="height:32px;text-align: center;" id="adv" class="hidden-phone">
<a class="ProgresssBarLink" href="/donate" target="_blank">
<div class="ProgressBar" style="height:32px">
<div class="ProgressBarFill" style="width:<?= intval($donates / $totalDonate * 100) ?>%;"></div>
<span class="ProgressBarText" style="top:-28px"><p>Поддержите наш проект: сбор средств на продление хостинг на 1 год.</p></span>
</div>
</a>
<!-- Yandex.RTB R-A-202319-1 -->
<!--
<div style="text-align:center;">
<div id="yandex_rtb_R-A-202319-1" style="display: inline-block;"></div>
</div>
<script type="text/javascript">
(function(w, d, n, s, t) {
w[n] = w[n] || [];
w[n].push(function() {
Ya.Context.AdvManager.render({
blockId: "R-A-202319-1",
renderTo: "yandex_rtb_R-A-202319-1",
async: true
});
});
t = d.getElementsByTagName("script")[0];
s = d.createElement("script");
s.type = "text/javascript";
s.src = "//an.yandex.ru/system/context.js";
s.async = true;
t.parentNode.insertBefore(s, t);
})(this, this.document, "yandexContextAsyncCallbacks");
</script>
-->
</section>
<? endif; ?>
<section class="translation">
<div id="addEdge">
<form>
<fieldset>
<div>
<label id="WeightLabel"><?= L('edge_weight')?>&nbsp; </label> <input type="range" id="EdgeWeightSlider" min="0" max="29" value="0" oninput="document.getElementById('EdgeWeight').value = (this.value > 0 ? this.value : '<?= L('default_weight')?>');" onchange="document.getElementById('EdgeWeight').value = (this.value > 0 ? this.value : '<?= L('default_weight')?>');"> &nbsp; &nbsp;<input type="text" name="edgeWeight" value="<?= L('default_weight')?>" id="EdgeWeight" class="inputBox">
</div>
<div>
<span onClick="document.getElementById('EdgeWeight').value='<?= L('default_weight')?>'; document.getElementById('EdgeWeightSlider').value=0;" style="cursor: pointer" class="defaultWeigth"><?= L('default_weight')?></span>
<span onClick="document.getElementById('EdgeWeight').value='1'; document.getElementById('EdgeWeightSlider').value=1;" style="cursor: pointer" class="defaultWeigth">1</span>
<span onClick="document.getElementById('EdgeWeight').value='3'; document.getElementById('EdgeWeightSlider').value=3;" style="cursor: pointer" class="defaultWeigth">3</span>
<span onClick="document.getElementById('EdgeWeight').value='5'; document.getElementById('EdgeWeightSlider').value=5;" style="cursor: pointer" class="defaultWeigth">5</span>
<span onClick="document.getElementById('EdgeWeight').value='7'; document.getElementById('EdgeWeightSlider').value=7;" style="cursor: pointer" class="defaultWeigth">7</span>
<span onClick="document.getElementById('EdgeWeight').value='11'; document.getElementById('EdgeWeightSlider').value=11;" style="cursor: pointer" class="defaultWeigth">11</span>
</div>
</fieldset>
</form>
</div>
<div id="addVertex">
<form>
<fieldset>
<label id="VertexTitleLable">
<p><?= L('enter_vertex_title')?></p> <input type="text" name="VertextTitle" value="Title" id="VertexTitle" class="inputBox">
</label>
<br/><br/><button type="button" id="groupRenameButton" class="btn btn-default btn-xs hidden-phone"> <?= L('group_rename')?> </button>
</fieldset>
</form>
</div>
<div id="GroupRenameDialog">
<form>
<fieldset>
<p><?= L('enter_vertices_text_in_each_line')?></p> <textarea name="VertextTitleList" id="VertextTitleList" wrap="off" rows="8"></textarea>
</fieldset>
</form>
</div>
<div id="adjacencyMatrix">
<form>
<fieldset>
<p><?= L('adjacency_matrix_description')?></p>
<textarea name="adjacencyMatrixField" id="AdjacencyMatrixField" wrap="off"></textarea>
<p id="BadMatrixFormatMessage"><?= L('adjacency_matrix_bad_format')?></p>
</fieldset>
</form>
</div>
<div id="incidenceMatrix">
<form>
<fieldset>
<p><?= L('incidence_matrix_description')?></p>
<textarea name="incidenceMatrixField" id="IncidenceMatrixField" wrap="off"></textarea>
<p id="BadIncidenceMatrixFormatMessage"><?= L('incidence_matrix_bad_format')?></p>
</fieldset>
</form>
</div>
<div id="saveDialog">
<form>
<fieldset>
<p><?= L('this_is_graph_link')?> <br/>
<input type="text" name="graphName" id="GraphName" onClick="this.select();">
</p>
<p><?= L('share_graph_description') ?></p>
<? $sharePageURL = $_SERVER['SERVER_NAME'] . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);?>
<ul class="share-buttons" id="ShareSavedGraph">
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $sharePageURL ?>?graph=XXXX&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $sharePageURL ?>?graph=XXXX&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
<li><a href="https://plus.google.com/share?url=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $sharePageURL ?>?graph=XXXX&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $sharePageURL ?>?graph=XXXX" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
</ul>
</fieldset>
</form>
</div>
<div id="saveImageDialog">
<form>
<fieldset>
<? $shareImagePageURL = $_SERVER['SERVER_NAME'] . "/";?>
<p id="SaveImageLinks"><a href="http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank"><?= L('open_saved_image_browser')?></a> or <a href="http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" download><?= L('download_saved_image')?></a></p>
<p><?= L('share_graph_description') ?></p>
<ul class="share-buttons" id="ShareSavedImageGraph">
<li><a href="http://vkontakte.ru/share.php?url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?>" target="_blank" title="Share on Vkontate"><i class="fa fa-vk fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&t=<?= L('share_graph_text') ?>" target="_blank" title="Share on Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li>
<li><a href="https://twitter.com/intent/tweet?source=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&text=<?= L('share_graph_text') ?> http://<?= $sharePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Tweet"><i class="fa fa-twitter-square fa-2x"></i></a></li>
<li><a href="https://plus.google.com/share?url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li>
<li><a href="http://www.linkedin.com/shareArticle?mini=true&url=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png&title=<?= L('share_graph_text') ?>&summary=<?= L('share_graph_text') ?> &source=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Share on LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li>
<li><a href="mailto:?subject=<?= L('share_graph_text') ?>&body=http://<?= $shareImagePageURL ?>tmp/saved/XX/XXXXX.png" target="_blank" title="Email"><i class="fa fa-envelope fa-2x"></i></a></li>
</ul>
</fieldset>
</form>
</div>
<div id="sentAlgorithm" title="<?= L('algorithm_was_sent')?>">
<p><?= L('your_algorithm_was_sent')?></p>
</div>
<div id="matrixError" class="translation">
<div><span class="glyphicon glyphicon-remove-sign text-danger"></span> <?= L('bad_adj_matrix_message')?></div>
</div>
<div id="matrixErrorInc" class="translation">
<div><span class="glyphicon glyphicon-remove-sign text-danger"></span> <?= L('bad_inc_matrix_message')?></div>
</div>
<p id="SelectAndMoveObject" class="translation"><?= L('select_and_move_objects')?></p>
<p id="MoveCursorForMoving" class="translation"><?= L('move_cursor_for_moving')?></p>
<p id="SelectAndMoveObject" class="translation"><?= L('select_and_move_objects')?></p>
<p id="MoveCursorForMoving" class="translation"><?= L('move_cursor_for_moving')?></p>
<p id="clickToAddVertex" class="translation"><?= L('click_to_add_vertex')?></p>
<p id="selectFisrtVertextToConnect" class="translation"><?= L('select_first_vertext_to_connect')?></p>
<p id="selectSecondVertextToConnect" class="translation"><?= L('select_second_vertext_to_connect')?></p>
<p id="selectStartShortPathVertex" class="translation"><?= L('select_start_short_path_vertex')?></p>
<p id="selectFinishShortPathVertex" class="translation"><?= L('select_finish_short_path_vertex')?></p>
<p id="shortPathResult" class="translation"><?= L('short_path_result')?></p>
<p id="pathNotExists" class="translation"><?= L('path_not_exists')?></p>
<p id="selectObjectToDelete" class="translation"><?= L('select_object_to_delete')?></p>
<p id="AddEdge" class="translation"><?= L('add_graph')?></p>
<p id="OrintEdge" class="translation"><?= L('orint_edge')?></p>
<p id="NotOrintdge" class="translation"><?= L('not_orint_edge')?></p>
<p id="AdjacencyMatrixText" class="translation"><?= L('show_adjacency_matrix')?></p>
<p id="Save" class="translation"><?= L('save')?></p>
<p id="Cancel" class="translation"><?= L('cancel')?></p>
<p id="shortestDist" class="translation"><?= L('shortest_dist')?></p>
<p id="IncidenceMatrixText" class="translation"><?= L('show_incidence_matrix')?></p>
<p id="saveDialogTitle" class="translation"><?= L('save_dialog_title')?></p>
<p id="closeButton" class="translation"><?= L('close_button')?></p>
<p id="connectedComponentResult" class="translation"><?= L('connected_component_result')?></p>
<p id="sickConnectedComponentResult" class="translation"><?= L('sick_connected_component_result')?></p>
<p id="whatDoYouThink" class="translation"><?= L('what_do_you_think')?></p>
<p id="name" class="translation"><?= L('name')?></p>
<p id="feedback" class="translation"><?= L('feedback')?></p>
<p id="send" class="translation"><?= L('send')?></p>
<p id="writeToUs" class="translation"><?= L('write_to_us')?></p>
<p id="fixMatrixButton" class="translation"><?= L('fix_matrix_button')?></p>
<p id="matrixHelp" class="translation"><?= L('open_matrix_help')?></p>
<p id="wronMatrixTitle" class="translation"><?= L('wrong_matrix_title')?></p>
<p id="saveImageDialogTitle" class="translation"><?= L('save_image_dialog_title')?></p>
<p id="fullReport" class="translation"><?= L('full_report')?></p>
<p id="shortReport" class="translation"><?= L('short_report')?></p>
<p id="hasNotEulerianLoop" class="translation"><?= L('has_not_eulerian_loop')?></p>
<p id="hasEulerianLoop" class="translation"><?= L('has_eulerian_loop')?></p>
<p id="processing" class="translation"><?= L('processing')?></p>
<p id="customEnumVertex" class="translation"><?= L('custom')?></p>
<p id="addVertexText" class="translation"><?= L('add_node')?></p>
<p id="renameVertex" class="translation"><?= L('rename_vertex')?></p>
<p id="renameText" class="translation"><?= L('rename_text')?></p>
<p id="inputMatrix" class="translation"><?= isset($_POST["matrix"]) ? $_POST["matrix"] : ""?></p>
<p id="separator" class="translation"><?= isset($_POST["separator"]) ? $_POST["separator"] : ""?></p>
<p id="inputIncidenceMatrix" class="translation"><?= isset($_POST["incidenceMatrix"]) ? $_POST["incidenceMatrix"] : ""?></p>
<p id="currentLanguage" class="translation"><?= L('current_language')?></p>
<p id="editWeight" class="translation"><?= L('edit_weight')?></p>
<p id="noWeight" class="translation"><?= L('default_weight')?></p>
<p id="groupeRenameText" class="translation"><?= L('group_rename')?></p>
</section>
<!--
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
-->
+138
View File
@@ -0,0 +1,138 @@
<!DOCTYPE html>
<html lang="<?= LANG?>" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= $g_config['charset']?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= $title?></title>
<?php if (!empty($description)):?><meta name="description" content="<?= $description?>" /><?php endif?>
<?php if (!empty($keyWords)):?><meta name="keywords" content="<?= $keyWords?>" /><?php endif?>
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?= Root('i/image/touch_icon/favicon_144x144.png')?>" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?= Root('i/image/touch_icon/favicon_114x114.png')?>" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?= Root('i/image/touch_icon/favicon_72x72.png')?>" />
<link rel="apple-touch-icon-precomposed" href="<?= Root('i/image/touch_icon/favicon_57x57.png')?>" />
<link rel="icon" href="<?= Root('favicon.ico')?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?= Root('favicon.ico')?>" type="image/x-icon" />
<meta http-equiv="cleartype" content="on">
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/dev/funcs.css')?>" />
<script src="<?= Root("i/js/dev/jquery-2.0.3.js")?>" ></script>
<!-- <?php IncludeCom('dev/jquery')?> -->
<?php IncludeCom('dev/font_ptsans')?>
<?php IncludeCom('dev/fontawesome')?>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/bootstrap.css')?>" />
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/main_tpl.css')?>" />
<meta name="yandex-verification" content="66de0a468e59b81b" />
<!-- Следущая строчка нужна для обозначения места вставки объеденённых css/js файлов. Её не следует удалять.-->
<!-- extraPacker -->
</head>
<body>
<div class="container page-wrap">
<!-- <div class="header"> -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?= SiteRoot()?>"><span class="fa fa-sitemap fa-fw"></span> Graph Online</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<?php foreach ($menu as $m):?>
<?php if (!isset($m["list"])) { ?>
<li class="<?= $m["is_active"] ? "active" : ""?>"><a href="<?= $m["link"]?>"><?= $m["title"]?></a></li>
<?php } else { ?>
<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-expanded="false"> <?= $m["title"]?> <span class="caret"></span></a>
<ul class="dropdown-menu">
<?php foreach ($m["list"] as $subm):?>
<li><a href="<?= $subm["link"]?>"><?= $subm["title"]?></a></li>
<?php endforeach?>
</ul>
</li>
<?php } ?>
<?php endforeach?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><img src="<?= Root("i/image/flags/enru.png")?>" alt="<?= $langInfo["name"]?>"> <?= L('lang')?> <span class="caret"></span></a>
<ul class="dropdown-menu">
<?php foreach($g_arrLangs as $lang => $langInfo):?>
<li><a href="<?= ChangeLang($lang, GetCurUrl())?>" title="<?= $langInfo["name"]?>" class="<?= $lang == LANG ? "selected" : ""?>"><img src="<?= Root("i/image/flags/{$lang}.png")?>" alt="<?= $langInfo["name"]?>"> <?= $langInfo["name"]?></a></li>
<?php endforeach?>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="content">
<?= $content?>
</div>
<!-- Футер приходится обрамить в .container, потому что у него position:absolute и он занимает всю ширину игнорируя паддинги родителя -->
<footer class="footer" id="footer" >
<div class="container hidden-phone">
<p>© <?= L('footer_info')?> 2015 - <?= date("Y")?></p>
</div>
</footer>
</div>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter25827098 = new Ya.Metrika({id:25827098,
clickmap:true,
accurateTrackBounce:true});
} catch(e) { }
});
var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";
if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/25827098" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<script>
if (typeof preLoadPage == 'function')
{
preLoadPage();
}
</script>
<script src="<?= Root("i/js/dev/bootstrap3/bootstrap.min.js")?>" >
$('.dropdown-toggle').dropdown();
</script>
<script>
if (typeof postLoadPage == 'function')
{
postLoadPage();
}
</script>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
<head>
<link rel="stylesheet" type="text/css" href="<?= Root('i/css/main_tpl/page_btns.css')?>" />
</head>
<div class="page-btns">
<a class="btn btn-primary" href="<?= SiteRoot()?>"><i class="fa fa-lg fa-home"></i> <?= L('home_notg')?></a>
<a class="btn btn-default" onclick="window.history.back(); return false;" href="#"><i class="fa fa-lg fa-angle-left"></i> <?= L('back_notg')?></a>
</div>
+16
View File
@@ -0,0 +1,16 @@
<h1><?= L('head_no_tags')?></h1>
<p><?= L('text')?></p>
<div>
<?php $newsList = L('newsList'); ?>
<?php for ($i = 0; $i < count($newsList); $i++): ?>
<div>
<h2><?= $newsList[$i]["title"] ?></h2>
<p>
<?= $newsList[$i]["text"] ?>
</p>
<p style="text-align: right;">
<?= $newsList[$i]["autor"] ?> <small><?= $newsList[$i]["date"] ?></small>
</p>
</div>
<?php endfor; ?>