Exemple #1
0
        </div>
        <?php 
echo '<div id="footer" align="center">';
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
require_once $link_to_public_footer_template;
echo '</div>';
echo '</div>';
echo '</div>';
?>
    </div>
    <div style="position: absolute; top: 20px; right: 50px;">
        <a onclick="changeLanguage('rus');"><img class="lang_flag" src=<?php 
echo '"' . Link::Get($link_to_service_images) . 'rus_flag.png"';
?>
 ></a><a onclick="changeLanguage('eng');"><img class="lang_flag" src=<?php 
echo '"' . Link::Get($link_to_service_images) . 'eng_flag.png"';
?>
 ></a>
    </div>
    <div style="position: fixed; top: 20px; left: 50px;">
        <a class="btn btn" href=<?php 
echo '"' . Link::Get($link_to_admin) . '"';
?>
 ><?php 
echo Language::Word('private office');
?>
</a>
    </div>
    </body>
</html>
Exemple #2
0
$is_public = true;
include_once 'utility_lgmis_lib.php';
include_once $link_to_utility_authorization;
if (isset($_POST['id']) && isset($_GET['id']) && $_POST['id'] !== $_GET['id']) {
    $content = AlertMessage('alert-danger', 'Неоднозначные id');
} else {
    $user = User::FetchBy(['eq_conds' => ['id' => $_REQUEST['id']], 'is_unique' => true]);
    $header = '';
    $content = '';
    $footer = '';
    $header_type = 'h3';
    $title = Language::Translit($user->GetSurname() . ' ' . $user->GetName() . ' ' . $user->GetFathername());
    $header = htmlspecialchars(Language::Translit($user->GetSurname() . ' ' . $user->GetName() . ' ' . $user->GetFathername()));
    $content .= '<div class="row" align="center">';
    $content .= '<div class="' . ColAllTypes(4) . '"><img src="' . Link::Get($user->GetPathToPhoto()) . '" class="img-avatar"></div>';
    $content .= '<div class="' . ColAllTypes(8) . '">';
    $content .= '<br><div class="row" align="center">';
    $content .= '<div class="' . ColAllTypes(6) . '" align="right"><font color="grey">' . Language::Word('position') . ':</font></div>';
    $content .= '<div class="' . ColAllTypes(6) . '" align="left">' . $user->GetPosition() . '</div>';
    $content .= '</div>';
    $articles = Article::FetchCountOf(['where' => 'author_id = ' . $user->GetID()]);
    $content .= '<div class="row" align="center">';
    $content .= '<div class="' . ColAllTypes(6) . '" align="right"><font color="grey">' . Language::Word('news published') . ':</font></div>';
    $content .= '<div class="' . ColAllTypes(6) . '" align="left">' . $articles . '</div>';
    $content .= '</div>';
    $content .= '<hr>';
    $content .= ToPageHeader(Language::PublicMenu('contacts'), 'h4', 'grey');
    $content .= '<div class="row" align="center">';
    $content .= '<div class="' . ColAllTypes(6) . '" align="right"><font color="grey">' . Language::Word('mail') . ':</font></div>';
    $content .= '<div class="' . ColAllTypes(6) . '" align="left"><a href="mailto:' . $user->GetEmail() . '">' . $user->GetEmail() . '</a></div>';
<div class="image-container" style="width: 850px">
	<img class="menu-img-down" src=<?php 
echo '"' . Link::Get($link_to_service_images) . 'menu_image_down.jpg"';
?>
 >
	<div class="image-content" style="top: 10px; width: 100%; color: white;" align="center">
		<a href="http://lgmis.cs.msu.ru/user/25" style="color: black;"><?php 
echo Language::Translit('Владислав Шпилевой');
?>
</a>
	</div>
</div>
<?php

include_once 'utility_lgmis_lib.php';
require_once $link_to_utility_authorization;
//----------------------------------------------------------------A U X I L I A R Y   F U N C T I O N S----------------------------------------------------------------
if (isset($_REQUEST['lang'])) {
    $lang = $_REQUEST['lang'];
    if (CheckLanguage($lang) === false) {
        echo AlertMessage('danger', 'Язык ' . $lang . ' не найден');
        exit;
    }
    $_SESSION['lang'] = $lang;
    header('Location: ' . Link::Get($link_to_admin));
}
//------------------------------------------------D E L E T I N G------------------------------------------------
if (isset($_REQUEST['del'])) {
    //if action is deleting
    if (isset($_REQUEST['type'])) {
        if (isset($_REQUEST['id'])) {
            $header = '';
            if (!isset($_REQUEST['info'])) {
                if ($_REQUEST['type'] === RequestOnRegister::$type) {
                    $_REQUEST['info'] = 'Вы уверены, что хотите отклонить запрос пользователя ' . RequestOnRegister::FetchByID($_REQUEST['id'])->name . '?';
                } else {
                    if ($_REQUEST['type'] === Article::$type) {
                        $ob = Article::FetchBy(['eq_conds' => array('id' => $_REQUEST['id']), 'is_unique' => true]);
                        $_REQUEST['info'] = 'Вы уверены, что хотите удалить новость с заголовком ' . $ob->GetName() . '?';
                    }
                }
            }
            if (!isset($_REQUEST['info'])) {
			<a href=<?php 
echo '"' . Link::Get($link_to_contacts_mod) . '"';
?>
 class="btn btn-default btn-sm" role="button"><?php 
echo Language::PublicMenu('contacts');
?>
</a>
			<a href=<?php 
echo '"' . Link::Get($link_to_directions_mod) . '"';
?>
 class="btn btn-default btn-sm" role="button"><?php 
echo Language::PublicMenu('directions');
?>
</a>
			<a href=<?php 
echo '"' . Link::Get($link_to_projects_mod) . '"';
?>
 class="btn btn-default btn-sm" role="button"><?php 
echo Language::PublicMenu('projects');
?>
</a>
		</div>
		<a href="http://lgmis.cs.msu.ru/redmine" border="0" target="_blank" style="z-index: 200;"><img border="0" style="z-index: 200;" src=<?php 
echo '"' . Link::Get($link_to_service_images) . 'Rocket.png"';
?>
 height="120px" class="rocket"></a>

	</div>
</div>

Exemple #6
0
        <script type="text/javascript" src="js/bootstrap.min.js"></script>
        <script type="text/javascript" src="ckeditor/ckeditor.js"></script>
        <link rel="stylesheet" type="text/css" href=<?php 
echo '"' . $link_to_bootstrap_styles . '"';
?>
>
        <link rel="stylesheet" type="text/css" href=<?php 
echo '"' . $link_to_styles . '"';
?>
>
        <link rel="stylesheet" type="text/css" href=<?php 
echo '"' . $link_to_files_styles . '"';
?>
 >
        <link rel="stylesheet" type="text/css" href=<?php 
echo '"' . Link::Get($link_to_animations_styles) . '"';
?>
>
        <script type="text/javascript">

            $(function () {
              $('[data-toggle="tooltip"]').tooltip()
            })

            function lookForMessages() {
                var data = 'look_for=true';
                server = getXmlHttp();
                server.open("POST", "/lgmis2/lgmis/test2.php", true);
                server.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                server.onreadystatechange = updatePage;
                server.send(data);
Exemple #7
0
 public function LinkToThis()
 {
     if (IsSessionPublic()) {
         return Link::Get(Article::$type) . '/' . $this->GetID();
     } else {
         return Link::Get('private_' . Article::$type) . '/' . $this->GetID();
     }
 }
Exemple #8
0
 public function ToHTMLUserPublicShortInTable()
 {
     $res = '';
     $res .= '<div class="row">';
     $res .= ToPageHeader($this->name, 'h4', 'black');
     $res .= '<img class="img-direction-cover" src="' . Link::Get($this->path_to_image) . '">';
     $res .= $this->ToHTMLFullVers();
     $res .= '</div>';
     return $res;
 }
Exemple #9
0
 public function ToHTMLUserPublicShortInTable()
 {
     global $positions;
     $res = '';
     $res .= '<div class="row" style="display: table; width: 100%;" align="center">';
     $res .= '<div class="' . ColAllTypes(4) . '" style="float: none; display: table-cell; vertical-align: middle;">';
     $res .= '<img src="' . Link::Get($this->path_to_photo) . '" class="img-rounded img-avatar-sm">';
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(5) . '" style="float: none; display: table-cell; vertical-align: middle;">';
     $res .= ToPageHeader(Language::Translit($this->surname . ' ' . $this->name), 'h4', 'black');
     $res .= '<u>' . Language::Position($this->position) . '</u><br>';
     $res .= '<a href="mailto:' . $this->email . '">' . $this->email . '</a><br>';
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(3) . '" style="float: none; display: table-cell; vertical-align: middle;">';
     $res .= $this->ToHTMLFullVers();
     $res .= '</div>';
     $res .= '</div>';
     return $res;
 }
Exemple #10
0
function ActionLink($args)
{
    //Errors cheking
    if (!isset($args['action_link'])) {
        return "<font color=" . 'red' . ">Error: action_link isn't set</font>";
    }
    if (!isset($args['action_type'])) {
        return "<font color=" . 'red' . ">Error: action_type isn't set</font>";
    }
    if (!isset($args['obj_type'])) {
        return "<font color=" . 'red' . ">Error: obj_type isn't set</font>";
    }
    if (!isset($args['id'])) {
        return "<font color=" . 'red' . ">Error: id isn't set</font>";
    }
    //Add other fields
    if (!isset($args['lnk_text'])) {
        global $act_type_to_text;
        $args['lnk_text'] = $act_type_to_text[$args['action_type']];
    }
    if (!isset($args['prev_page'])) {
        $args['prev_page'] = $_SERVER['REQUEST_URI'];
    }
    $method = 'post';
    if (isset($args['method'])) {
        $method = $args['method'];
    }
    $style = '';
    if (isset($args['style'])) {
        $style = 'style="' . $args['style'] . '"';
    }
    global $act_type_to_css_class;
    $res = '';
    if ($method === 'post') {
        $res .= '<form class="form-inline" action="' . $args['action_link'] . '" method="post" style="display: inline !important;">';
        $res .= '	<input class="btn btn-link ' . $args['lnk_size'] . '" style="margin: 0; padding: 0; white-space: normal !important;" name="' . $args['action_type'] . '" type="submit" value="' . $args['lnk_text'] . '">';
        $res .= WrapToHiddenInputs(array('type' => $args['obj_type'], 'id' => $args['id'], 'prev_page' => $args['prev_page']));
        if (isset($args['info'])) {
            $res .= '<input type="hidden" name="info" value="' . $args['info'] . '">';
        }
        $res .= '</form>';
    } else {
        if ($method === 'get') {
            if (isset($args['mod_rewrite']) && $args['mod_rewrite'] === 1) {
                $res .= '<a ' . $style . ' href="' . Link::Get($args['obj_type']) . '/' . $args['id'] . '" class="btn btn-link ' . $args['lnk_size'] . '">' . $args['lnk_text'] . '</a>';
            } else {
                $res .= '<a ' . $style . ' href="' . $args['action_link'] . '?' . WrapToGetVariables(array('type' => $args['obj_type'], 'id' => $args['id'], $args['action_type'] => '1')) . '" class="btn btn-link ' . $args['lnk_size'] . '">' . $args['lnk_text'] . '</a>';
            }
        }
    }
    return $res;
}