TopMenu.html 13.4 KB
<div class="collapse navbar-collapse" id="topMenuBar" ng-if="!isCAlink" style="height:50px !important;margin-left:-15px;width:103%">
    <ul class="nav navbar-nav" style="float:left" id="topul1">
        <li class="dropdown navbarDropdownItem disableFileMenu" id="fileMenuAnchor" style="float:left">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">File<span class="caret"></span></a>
            <ul class="dropdown-menu">
                <li id="openResourceId"><a href="#" ng-click="openResource()">Open Resources</a></li>
                <li id="openPictureId"><a href="#" ng-click="OpenMyPicture()">Open My Pictures</a></li>
                <li id="openAnimationId"><a href="#" ng-click="OpenMyAnimation()">Open My Animations</a></li>
                <li role="separator" class="divider"></li>
                <!-- <li ng-class="disableMenuoption"><a href="#">Test Creator</a></li>
                <li ng-class="disableMenuoption"><a href="#">Open Test</a></li>
                <li ng-class="disableMenuoption"><a href="#">Save Test As</a></li>
                <li role="separator" class="divider"></li> -->
                <li ng-class="ConvertCurriculum" ng-click="ConvertCurriculum()"><a href="#">Convert Curriculum (.sldshw to .json)</a></li>
                <li id="newCurriculumid"><a href="#" ng-click="CreateNewCurriculum()">New Curriculum</a></li>
                <li ng-class="openCurriculum" ng-click="OpenExistingCurriculum($event)"><a href="#">Open Existing Curriculum</a></li>
                <li ng-class="saveCurriculam" ng-click="saveCurricullam(false)"><a href="curriculum-builder-detail">Save Curriculum As</a></li>
                <li role="separator" class="divider"></li>
                <li id="exportImageAnchor"><a href="" data-toggle="modal" ng-click="ShowExportImageWindow()">Export Image</a></li>
                <li id="printAVAnchor"><a href="" data-toggle="modal" ng-click="ShowPrintWindow()">Print Active Viewer</a></li>
                <li id="printAllAVAnchor"><a href="#" data-toggle="modal" ng-click="ShowAllPrintWindow()">Print All Open Viewers</a></li>
                <li id="printPreviewAnchor"><a href="" data-toggle="modal" ng-click="ShowPrintPreviewWindow()">Print Preview</a></li>
                <li role="separator" class="divider"></li>
                <li id="arragePannel">
                    <a href="#" role="button" aria-haspopup="true" aria-expanded="false"> Arrange Window <span class="caret"></span></a>
                    <ul class="dropdown-content">
                        <li><a href="#" ng-click="arrangeCascadePanel()">Cascade View</a></li>
                        <li><a href="#" ng-click="arrangeTiledPanel()">Tiled View</a></li>
                    </ul>
                </li>
            </ul>
        </li>
        <!--#7904-->
        <li id="annotationButton" class="navbarItem disableMenuoption" style="float:left"><a href="#" data-toggle="modal" data-target=".bs-example-modal-sm" ng-click="ShowAnnotationWindow()">Annotation</a></li>

        <li id="Menuoptionid" class="dropdown navbarDropdownItem disableMenuoption" style="float:left">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Options<span class="caret"></span></a>
            <ul class="dropdown-menu">
                <li id="optionsListManagerTab"><a href="#" ng-click="ShowListManager()">List Manager</a></li>
                <!--#7904-->
                <li id="annotationToolBarOptions"><a href="#" ng-click="ShowAnnotationWindow()">Annotation Toolbar</a></li>

                <!-- <li id="optionsCurriculum"><a href="#">Add to Existing Curriculum</a></li> -->
                <li id="optiontSetting"><a ng-click="ShowSettingWindow()" class="cursor-pointer">Settings</a></li>
                <li role="separator" class="divider"></li>
                <li id="labExPdfOption"><a href="../../content/quiz/pdf/Instructor.html" target="_blank">Lab Exercises PDF</a></li>

            </ul>
        </li>
        <li class="dropdown navbarDropdownItem" style="float:left">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Help<span class="caret"></span></a>
            <ul class="dropdown-menu" id="helplinkId"></ul>
        </li>
        <!--redirecting to Admin-->
        <li class="navbarItem" style="float:left"><a ng-click="reDirectURLToAdmin()" ng-show="haveRoleAdmin" style="cursor: pointer;">Admin</a></li>
        <!-- <li id="legacymenu" class="navbarItem" style="float:left" title="This version will be discontinued 12/31/20">
            <a href="anatomy-test" ng-click="LegacyLoginClick()" title="This version will be discontinued 12/31/20"  style="cursor: pointer;">Legacy Curriculum Builder </a>
        </li> -->
    </ul>
    <ul class="nav navbar-nav navbar-right" style="float: right;" id="topul2">
        <li id="userNameoption" class="navbarItem" style="pointer-events:none ;"><a href="#">{{userName}}</a></li>
        <li data-toggle="tooltip" data-placement="top" title="Logout"><a href="" ng-click="LogoutUser()"><i class="fa fa-power-off"></i></a></li>
    </ul>

    <!---------------------------------------start:for Global Search------------------------------------------------>
    <div id="imaginary_container">
        <div class="input-group stylish-input-group paddTop5">

            <select class="form-control width120 GlobalSearch" ng-model="txtSearchModuleId" id="ddlSearchModule" ng-change="GlobalSearch(txtSearchValue,txtSearchModuleId)">
                <option value="">All</option>
                <option ng-repeat="mn in FilteredModulesForSearch" value="{{mn.id}}">{{mn.name}}</option>
            </select>

            <input type="text" autocomplete="off" ng-model='txtSearchValue' ng-change="GlobalSearch(txtSearchValue,txtSearchModuleId)" id="txtSearchText" class="form-control width120 GlobalSearch" placeholder="Search">

            <select class="form-control width120 GlobalSearch" ng-model="SearchLanguageId" id="ddlSearchLang" ng-change="changeGSLanguage(SearchLanguageId)">
                <option value="">English</option>
                <option ng-repeat="li in lexiconLanguageArray" ng-if="li.id != '1'" value="{{li.id}}">{{li.language}}</option>
            </select>

            <span class="input-group-addon">
                <button ng-click="GlobalSearch(txtSearchValue,txtSearchModuleId);redirectToGlobalSearch(txtSearchValue)">
                    <span class="fa fa-search color-green"></span>
                </button>
            </span>
        </div>

        <!------------------start:bind global search result-------------------------->
        <div id="dvSearchResult" class="GlobalSearch">

            <div class="gsResultList" ng-hide="GlobalSearchFilteredListAll.length == 0">
                <div style="display:none;" ng-controller="3dAController" ng-init="loadAIModuleById(3);GetTDAData()" ng-hide="ThreeDAsubModuleDataFiltered.length == 0"></div>
                <div style="display:none;" ng-controller="AIController" ng-init="loadAIModuleByIdForSearch(13)"></div>
                <div style="display:none;" ng-controller="AODController" ng-init="loadAIModuleByIdForSearch(13);GetAODCoursesForSearch()"></div>
                <div style="display:none;" ng-controller="TileViewListController" ng-init="loadForModuleById(1)"></div>
                <div style="display:none;" ng-controller="CAController" ng-init="loadAIModuleByIdForSearch(5)"></div>
                <div style="display:none;" ng-controller="CIController" ng-init="loadAIModuleByIdForSearch(4)"></div>
                <div style="display:none;" ng-controller="DAController" ng-init="loadDissectibleAnatomyData()"></div>
                <div style="display:none;" ng-controller="DAController" ng-init="loadDissectibleAnatomyData()"></div>
                <div style="display:none;" ng-controller="LabExercController" ng-init="loadAIModuleById(10)"></div>

                <ul>
                    <li ng-repeat="item in GlobalSearchFilteredListAll | orderBy : '_title'">
                        <!---------------for main modules--------------->
                        <div ng-if="item.moduleId=='0'">
                            <a id="{{item._data.slug}}" href="{{item._data.slug}}" ng-click="StoreModuleName(item._data.name);getModuleScrollPosition();closeSearchDiv();" data-ng-bind="item._title" ng-class="HightLightModuleSelection('{{item._data.slug}}')"></a>
                        </div>
                        <!---------------for DA sub modules--------------->
                        <div ng-if="item.moduleId=='1'">
                            <a id="{{item._data._id}}" data-gender="{{item._data._gender}}" data-ng-click="closeSearchDiv()" onclick="openDAElementsFromGS(event)" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for DA terms--------------->
                        <div ng-if="item.moduleId=='1-T'">
                            <a id="{{item._data._ActualTermNumber}}" data-ng-click="OpenDAWithTermsFromSearch($event, item._data._bodyViewDetails);closeSearchDiv()" data-bodyViewDetails="{{item._data._bodyViewDetails._id}}||{{item._data._bodyViewDetails._title}}||{{item._data._bodyViewDetails._gender}}" data-ng-bind="item._title +' -'+ item._data._bodyViewDetails._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for AA sub modules--------------->
                        <div ng-if="item.moduleId=='2'">
                            <a id="{{item._data._Id}}" data-ng-click="closeSearchDiv()" onclick="openAAElementsFromGS(event)" data-title="{{item._data._Title}}" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for 3D sub modules--------------->
                        <div ng-if="item.moduleId=='3'">
                            <a id="{{item._data._id}}" data-ng-click="closeSearchDiv();" onclick="open3DAStructureFromGS(event)" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for CI sub modules--------------->
                        <div ng-if="item.moduleId=='4'">
                            <a id="{{item._data._id}}" data-ng-click="closeSearchDiv()" onclick="openCIElementsFromGS(event)" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for CA sub modules--------------->
                        <div ng-if="item.moduleId=='5'">
                            <a id="{{item._data._id}}" data-ng-click="closeSearchDiv()" onclick="openCAElementsFromGS(event)" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for CB sub modules--------------->
                        <div ng-if="item.moduleId=='7'">
                            <a id="curriculum-builder" href="curriculum-builder" ng-click="OpenCBViewFromSearch($event,item._data._filename);closeSearchDiv();" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for LE sub modules--------------->
                        <div ng-if="item.moduleId=='10'">
                            <a data-ng-click="getLabExerciseTitleFromSearch(item._data);closeSearchDiv();" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for AI sub modules--------------->
                        <div ng-if="item.moduleId=='13'">
                            <a id="{{item._data._id}}" data-ng-click="closeSearchDiv();" onclick="openAIElementsFromGS(event)" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>
                        <!---------------for AOD sub modules--------------->
                        <div ng-if="item.moduleId=='17'">
                            <a id="{{item._data.CourseId}}" data-ng-click="closeSearchDiv()" onclick="openAODElementsFromGS(event)" data-ng-bind="item._title"></a>
                            <span class="moduleName">{{item.moduleName}}</span>
                        </div>


                    </li>
                </ul>
            </div>

        <!-------------------end:bind global search result--------------------------->


    </div>
    <!---------------------------------------end:for Global Search------------------------------------------------>

    <input type="file" id="xmltojsonfile" accept=".sldshw" style="display: none" />
    <input type="file" id="openCBJsonFile" accept=".json,.sldshw" style="display: none" />
    <input type="file" id="myPictureFile" accept="image/png, image/jpeg" style="display: none" />
    <input type="file" id="myAnimationFile" accept=".mp4" style="display: none" />
    <!-- <input type="file" id="myAnimationFile" accept="video/mp4,video/x-m4v,video/*" style="display: none" /> -->

</div>