Exemple #1
0
echo '<div class="' . ColAllTypes(12) . '" align="center">';
require_once $link_to_public_menu_template;
echo '</div>';
echo '</div>';
?>

            <div style="height: 100%;">
                <div class="panel panel-default" style="margin-left: auto; margin-right: auto; width: 800px; padding: 5px; margin-top: -5px; margin-bottom: -5px;">
                    <div class="panel-body" style="padding: 0px; margin: 0px;">
                        <?php 
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
if (!isset($header_type)) {
    echo ToPageHeader($header);
} else {
    echo ToPageHeader($header, $header_type);
}
echo '</div>';
echo '</div>';
echo '<hr>';
echo '<div class="row">';
if ($no_content_center) {
    echo '<div class="' . ColAllTypes(12) . '">';
} else {
    echo '<div class="' . ColAllTypes(12) . '" align="center">';
}
echo $content;
echo '</div>';
echo '</div>';
?>
                    </div>
Exemple #2
0
$is_public = true;
include_once 'utility_lgmis_lib.php';
include_once $link_to_utility_authorization;
$header = Language::PublicMenu('contacts');
$content = '';
$footer = '';
$header_type = 'h4';
$title = Language::PublicMenu('contacts');
$content .= '<br><div class="row" align="center">';
$content .= '<div class="' . ColAllTypes(6) . ' vcenter">';
$content .= '<iframe class="google-map" src="https://www.google.com/maps/embed?pb=!1m24!1m8!1m3!1d8994.513616455022!2d37.532702!3d55.695448!3m2!1i1024!2i768!4f13.1!4m13!3e2!4m5!1s0x46b54cf533082589%3A0x402540c5efcc4157!2z0KHRgtCw0L3RhtC40Y8g0LzQtdGC0YDQviDCq9Cj0L3QuNCy0LXRgNGB0LjRgtC10YLCuywg0KDQvtGB0YHQuNGP!3m2!1d55.692679999999996!2d37.536882!4m5!1s0x46b54c6129ed4359%3A0xe03aa689c99f60f5!2z0KTQsNC60YPQu9GM0YLQtdGCINCS0JzQmiDQnNCT0KMsINGD0LvQuNGG0LAg0JvQtdCx0LXQtNC10LLQsCwg0KHRgtCw0YDQstC40LvRjCwg0JzQvtGB0LrQvtCy0YHQutCw0Y8g0L7QsdC70LDRgdGC0YwsINCg0L7RgdGB0LjRjw!3m2!1d55.698434999999996!2d37.530196!5e0!3m2!1sru!2sru!4v1432075564575"></iframe>';
$content .= '</div>';
$content .= '<div class="' . ColAllTypes(6) . ' vcenter">' . Language::Address() . '</div>';
$content .= '</div>';
$content .= '<br>';
$users = User::FetchAllEmployes();
$size = count($users);
if ($size > 0) {
    $content .= '<hr><div class="row" align="center">' . ToPageHeader(Language::Word('employees'), 'h4', 'grey') . '</div><hr>';
    require $link_to_pagination_init_template;
    for ($i = $from; $i <= $to; ++$i) {
        $content .= $users[$i]->ToHTMLAutoShortForTable(GetUserPrivileges());
        if ($i != $to) {
            $content .= '<hr>';
        }
    }
    require $link_to_pagination_show_template;
    $content .= $pagination;
}
$no_content_center = true;
include $link_to_public_template;
Exemple #3
0
                if ($size) {
                    require $link_to_pagination_init_template;
                    for ($i = $from; $i <= $to; ++$i) {
                        $project = $projects[$i];
                        if ($i === $from || $i > $from && $projects[$i - 1]->direction_id != $project->direction_id) {
                            if ($i != $from) {
                                $content .= '<hr>';
                            }
                            $content .= '<div align="left" style="padding: 15px; background-color: #eeeeee;">';
                            $content .= Language::Word('direction') . ': ' . Direction::FetchByID($project->direction_id)->LinkToThis();
                            $content .= '</div><hr>';
                        }
                        $content .= $project->ToHTMLAutoShortForTable(GetUserPrivileges());
                    }
                } else {
                    $content .= ToPageHeader(Language::Word('no projects'), 'h3', 'black');
                }
                $header .= Language::PublicMenu('projects');
            }
        }
    } else {
        //Manage articles
        $content .= MenuButton(Language::PublicMenu('articles'), $_SERVER['PHP_SELF'] . '?content_type=' . $content_types_short['articles']);
        //Manage directions
        $content .= MenuButton(Language::PublicMenu('directions'), $_SERVER['PHP_SELF'] . '?content_type=' . $content_types_short['directions']);
        //Manage projects
        $content .= MenuButton(Language::PublicMenu('projects'), $_SERVER['PHP_SELF'] . '?content_type=' . $content_types_short['projects']);
    }
}
$pagination = '';
if ($size) {
Exemple #4
0
 $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>';
 $content .= '</div>';
 $content .= '</div>';
 $content .= '</div>';
 $content .= '<hr>';
 $blocks = UserBlock::FetchAllByAuthorID($user->GetID());
 $size = count($blocks);
 if ($size) {
     require $link_to_pagination_init_template;
     for ($i = $from; $i <= $to; ++$i) {
         $content .= $blocks[$i]->ToHTMLAutoFull(GetUserPrivileges()) . '<hr>';
     }
     require $link_to_pagination_show_template;
Exemple #5
0
 public function ToHTMLUserPublicFull()
 {
     $res = '';
     $res .= '<div align="left">' . ToPageHeader($this->name, 'h4', 'grey') . '</div>';
     $res .= '<div class="row"><div class="' . ColAllTypes(12) . '">';
     $res .= $this->text_block;
     $res .= '</div></div>';
     return $res;
 }
                if ($content_type != 'all_reps') {
                    $ids = '';
                    for ($i = 0, $cnt = count($target); $i < $cnt; ++$i) {
                        $ids .= '(id = ' . $target[$i] . ')';
                        if ($i < $cnt - 1) {
                            $ids .= ' OR';
                        }
                    }
                    $reports = Report::FetchBy(['where_addition' => $ids, 'limit' => $limit, 'offset' => $from, 'order_by' => 'id DESC']);
                } else {
                    $reports = Report::FetchBy(['limit' => $limit, 'offset' => $from, 'order_by' => 'id DESC']);
                }
                for ($i = 0; $i < $limit; ++$i) {
                    $content .= $reports[$i]->ToHTMLAutoShortForTable(GetUserPrivileges());
                }
                $content .= '</tbody>';
                $content .= '</table>';
                $content .= '</div>';
                $content .= '</div>';
                require $link_to_pagination_show_template;
                $content .= $pagination;
            } else {
                $content .= ToPageHeader(Language::Word('absense'), "h3", "black");
            }
        default:
            break;
    }
} else {
    $content = MenuButton(Language::Word('reports'), $link_to_admin_bookkeeping . '?content_type=' . $content_types_short['reports'], 'btn-default', '', 'get');
}
include_once $link_to_admin_template;
Exemple #7
0
 public function ToHTMLUserPublicShortInTable()
 {
     $res = '<div class="row" style="color: grey;">';
     $res .= '<div class="' . ColAllTypes(4) . '" style="padding-right: 0px;">';
     $res .= '<img class="img-article-cover" src="' . Link::Get($this->GetPathToImage()) . '">';
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(8) . '">';
     $res .= '<div class="row">';
     $res .= '<div class="' . ColAllTypes(12) . '">';
     $res .= ToPageHeader($this->GetName(), 'h5', 'grey', 'normal');
     $res .= '</div>';
     $res .= '</div>';
     $res .= '<hr>';
     $res .= '<div class="row" align="left">';
     $res .= '<div class="' . ColAllTypes(12) . '">';
     $res .= htmlspecialchars($this->GetAnnotation());
     $res .= '</div>';
     $res .= '</div>';
     $res .= '</div>';
     $res .= '</div>';
     $author = User::FetchBy(['select_list' => 'id, name, surname', 'is_unique' => true, 'eq_conds' => ['id' => $this->GetAuthorID()]]);
     $res .= '<div class="row"><div class="' . ColAllTypes(12) . '"><hr></div></div>';
     $res .= '<div class="row" style="font-size: 11px">';
     $res .= '<div class="' . ColAllTypes(4) . '">';
     $res .= $this->GetCreatingDateStr();
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(4) . '" align="left">';
     $res .= '<font color="black">Автор:</font> ' . $author->LinkToThis('btn-sm');
     $res .= '</div>';
     $res .= '<div class="' . ColAllTypes(4) . '" align="right" style="padding-right: 30px;">';
     $res .= $this->ToHTMLFullVers();
     $res .= '</div>';
     $res .= '</div>';
     return $res;
 }
                        $content .= '<th class="text-center">' . Language::Word('author') . '</th>';
                        $content .= '<th class="text-center">' . Language::Word('date') . '</th>';
                        $content .= '<th class="text-center">' . Language::Word('role') . '</th>';
                        $content .= '<th class="text-center">' . Language::Word('actions') . '</th>';
                        $content .= '</tr>';
                        $content .= '</thead>';
                        $content .= '<tbody>';
                        for ($i = $from; $i <= $to; ++$i) {
                            $content .= $parts[$i]->ToHTMLAutoShortForTable(GetUserPrivileges());
                        }
                        $content .= '</tbody>';
                        $content .= '</table>';
                        $content .= '</div>';
                        $content .= '</div>';
                    } else {
                        $content .= ToPageHeader(Language::Word('absense'), 'h3', 'black');
                    }
                    $header .= ' :' . Language::PublicMenu('about_us');
                }
            }
        }
    }
    $prev_page = $link_to_admin_manage_content;
} else {
    //Manage articles
    $content .= MenuButton(Language::PublicMenu('articles'), $_SERVER['PHP_SELF'] . '?content_type=' . $content_types_short['articles'], 'btn-default', '', 'get');
    //Manage directions
    $content .= MenuButton(Language::PublicMenu('directions'), $_SERVER['PHP_SELF'] . '?content_type=' . $content_types_short['directions'], 'btn-default', '', 'get');
    //Manage projects
    $content .= MenuButton(Language::PublicMenu('projects'), $_SERVER['PHP_SELF'] . '?content_type=' . $content_types_short['projects'], 'btn-default', '', 'get');
    if (GetUserPrivileges() === admin_user_id) {
Exemple #9
0
    echo $head_addition;
}
?>
    </head>

    <body>
    	<?php 
//Вывод основной страницы
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
require_once $link_to_admin_menu_template;
echo '</div>';
echo '</div>';
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
echo ToPageHeader($header);
echo '</div>';
echo '</div>';
echo '<div class="row" style="height: 100%;">';
if ($no_content_center) {
    echo '<div class="' . ColAllTypes(12) . ' style="height: 100%;>';
} else {
    echo '<div class="' . ColAllTypes(12) . '" align="center" style="height: 100%;">';
}
echo $content;
echo '</div>';
echo '</div>';
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
echo $footer;
echo '</div>';
Exemple #10
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;
 }
?>
);
                } else {
                    unsetError(password_field);
                }

            	return error_flag != true;
            }
        </script>
    </head>

    <body>
    	<?php 
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
echo ToPageHeader(Language::Word('registration'));
echo '</div>';
echo '</div>';
echo '<div class="row">';
if ($no_content_center) {
    echo '<div class="' . ColAllTypes(12) . '">';
} else {
    echo '<div class="' . ColAllTypes(12) . '" align="center">';
}
echo RequestOnRegister::FormForCreating();
echo '</div>';
echo '</div>';
echo '<div class="row">';
echo '<div class="' . ColAllTypes(12) . '" align="center">';
echo $footer;
echo '</div>';
Exemple #12
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 #13
0
    if ($direction === NULL) {
        $title = Language::Word('error');
        $header = $title;
        $content = Language::Word('internal server error');
    } else {
        if ($direction === Error::no_translation) {
            $title = Language::Word('error');
            $header = Language::Word('sorry');
            $content = Language::Word('no translation for this direction');
        } else {
            $title = $direction->name;
            $header = htmlspecialchars($direction->name);
            $content .= '<div class="row"><div class="' . ColAllTypes(12) . '">' . $direction->text_block . '</div></div>';
            $projects = Project::FetchByDirectionID($direction->id);
            $size = count($projects);
            if ($size > 0) {
                $content .= '<hr><div class="row" align="center">' . ToPageHeader(Language::Word('linked projects'), 'h4', 'grey') . '</div><hr>';
                require $link_to_pagination_init_template;
                for ($i = $from; $i <= $to; ++$i) {
                    $content .= $projects[$i]->ToHTMLAutoShortForTable(GetUserPrivileges());
                    if ($i != $to) {
                        $content .= '<hr>';
                    }
                }
                require $link_to_pagination_show_template;
            }
            $no_content_center = true;
        }
    }
}
include $link_to_public_template;