| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?php
- session_start();
- if (!isset($_SESSION['loggedin'])) {
- header('Location: pages-signin.html');
- exit;
- }
- ?>
- <!doctype html>
- <html class="fixed">
- <head>
- <?php include("bim-support-header.html"); ?>
- <script src="./script/js/global.js"></script>
- <script type="application/javascript">
- var rvtName = [];
- var categoryTable = [];
- var year = [];
- var type = "";
- var userName = '<?php echo $_SESSION['name']; ?>';
- var searchURL = window.location.search;
- searchURL = searchURL.substring(1, searchURL.length);
- type = searchURL.split("&")[0].split("=")[1];
- if (type === undefined) {
- window.location.href = "?type=CA";
- type = 'CA';
- }
- var $grid;
- pageHeader = "元件庫";
- </script>
- </head>
- <body>
- <canvas id="c"></canvas>
- <section class="body">
- <!-- start: header -->
- <header-menu></header-menu>
- <!-- end: header -->
- <div class="inner-wrapper">
- <!-- start: sidebar -->
- <side-bar></side-bar>
- <!-- end: sidebar -->
- <section role="main" class="content-body">
- <header class="page-header">
- <h2>{{pageHeader}}</h2>
- </header>
- <!-- start: page -->
- <section class="content-with-menu content-with-menu-has-toolbar media-gallery">
- <div class="content-with-menu-container">
- <inner-menu>
- <template v-slot:inner-upload>
- <upload-component></upload-component>
- <hr class="separator" />
- </template>
- <template v-slot:inner-equipment>
- <equipment-list></equipment-list>
- </template>
- </inner-menu>
- <div class="inner-body mg-main">
- <div class="inner-toolbar">
- <ul>
- <search-bar></search-bar>
- <filter-bar></filter-bar>
- </ul>
- </div>
- <filter-content></filter-content>
- <div class="row mg-files" data-sort-destination data-sort-id="media-gallery" id="content">
- </div>
- </div>
- </div>
- </section>
- <!-- end: page -->
- </section>
- </div>
- </section>
- <script>
- /*Vue */
- vm.mount('.body');
- </script>
- <?php include("bim-support-body.html"); ?>
- <script type="application/javascript">
- $(function() {
- $.ajax({
- url: "./script/php/equipment_group.php",
- type: "GET",
- data: {
- type: type
- },
- contentType: "application/json",
- dataType: "json"
- }).done(function(data) {
- year = data['year'];
- rvtName = data['rvtName'];
- categoryTable = data['categoryTable'];
- for (var i = 0; i < data["categoryList"].length; i++) {
- $("#filters").append('<li><a class="button" data-filter=".' + i + '">' + data['categoryList'][i] + '</a></li>');
- }
- initThreeJS();
- $grid = $("#content").isotope({
- itemSelector: ".isotope-item",
- layoutMode: 'fitRows'
- })
- setTimeout(() => {$grid.isotope()}, 100);
- }).error(function(error) {
- console.log(error);
- });
- $.ajax({
- url: "./script/php/equipment_revitVersion.php",
- type: "GET",
- data: {
- type: type
- },
- contentType: "application/json",
- dataType: "json"
- }).done(function(data) {
- for (var i = 0; i < data.length; i++) {
- $("#revitVersion").append('<label><input type="checkbox" value=".' + data[i] + '" /> ' + data[i] + '</label> ');
- }
- }).error(function(error) {
- console.log(error);
- });
- });
- </script>
- <script>
- //$grid.isotope({});
- </script>
- <script src="script/js/3Dpic.js" type="module"></script>
-
- </body>
- </html>
|