(MVC) MVC (2021)

(<< Back) LeftMenu

   1:  <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="~/Controls/LeftMenu.ascx.cs" Inherits="UUEfgv.LeftMenu" %>
   2:  <style>
   3:      .sidebar {
   4:          margin: 0;
   5:          padding: 0;
   6:          background: #002B4F;
   7:          position: fixed;
   8:          overflow: auto;
   9:          width: 191px;
  10:          height: 100%;
  11:      }
  12:   
  13:          .sidebar a {
  14:              display: block;
  15:              color: white;
  16:              padding: 16px;
  17:              text-decoration: none;
  18:                          padding: 10px;
  19:              margin: 10px;
  20:          }
  21:   
  22:              .sidebar a.active {
  23:                  background-color: #1c53b0;
  24:                  color: white;
  25:              }
  26:   
  27:              .sidebar a:hover:not(.active) {
  28:                  background-color: #1c53b0;
  29:                  color: white;
  30:              }
  31:   
  32:      .sidebarcollapsed {
  33:          margin: 0;
  34:          padding: 0;
  35:          background: #002B4F;
  36:          position: fixed;
  37:          overflow: auto;
  38:          width: 60px;
  39:          height: 100%;
  40:      }
  41:   
  42:          .sidebarcollapsed a {
  43:              display: block;
  44:              color: white;
  45:              padding: 16px;
  46:              text-decoration: none;
  47:              padding: 10px;
  48:              margin: 10px;
  49:          }
  50:   
  51:              .sidebarcollapsed a.active {
  52:                  background-color: #1c53b0;
  53:                  color: white;
  54:              }
  55:   
  56:              .sidebarcollapsed a:hover:not(.active) {
  57:                  background-color: #1c53b0;
  58:                  color: white;
  59:              }
  60:   
  61:      .current {
  62:          background-color: #0072CE;
  63:          color: white;
  64:          border-radius: 10px;
  65:      }
  66:  </style>
  67:   
  68:   
  69:  <div id="widepanel" class="sidebar  " style="z-index: 2000">
  70:      <a href="/" id="lfmain" class="lfmenu1"><i class="fa fa-fw fa-home" style="margin-right: 10px;"></i><span class="lang" data-key='1175'>Головна сторінка</span></a>
  71:      <a href="/Member_Card.aspx?" id="lfprofile" class="lfmenu1"><i class="fa fa-fw fa-user" style="margin-right: 10px;"></i><span class="lang" data-key='1176'>Мій профіль</span></a>
  72:      <a href="/SelectedLots.aspx" id="lfselectedlots" class="lfmenu1"><i class="fa fa-fw fa-star" style="margin-right: 10px;"></i><span class="lang" data-key='1177' >Обрані лоти</span></a>
  73:      <a href="/MyAuction.aspx" id="lfmyauct" class="lfmenu1"><i class="fa fa-fw fa-gavel" style="margin-right: 10px;"></i><span class="lang" data-key='1178' >Мої аукціони</span></a>
  74:      <a href="/Subscription.aspx" id="lfsubscript" class="lfmenu1"><i class="fa fa-fw fa-pen" style="margin-right: 10px;"></i><span class="lang" data-key='1179'>Запити</span></a>
  75:      <hr style="border: 1px solid white; margin-left: 20px; margin-right: 40px;" />
  76:      <a href="/MessageList.aspx?&id__" id="lfmessage" class="lfmenu1"><i class="fa fa-fw fa-bell" style="margin-right: 10px;"></i><span class="lang" data-key='1180'>Повідомлення</span></a>
  77:      <a href="/tarifs.aspx" id="lftax" class="lfmenu1"><i class="fa fa-fw fa-money-bill" style="margin-right: 10px;"></i><span class="lang" data-key='1181'>Тарифи</span></a>
  78:      <a href="/Reglament.aspx" id="lfrules" class="lfmenu1"><i class="fa fa-fw fa-sticky-note" style="margin-right: 10px;"></i><span class="lang" data-key='1182'>Регламент</span></a>
  79:       <% if (Boolean.Parse(System.Configuration.ConfigurationManager.AppSettings["DebugOutput"])) %>
  80:       <% { %>
  81:      <hr style="border: 1px solid white; margin-left: 20px; margin-right: 40px;" />
  82:      <a href="/Test1.aspx" id="lftest" class="lfmenu1"><i class="fa fa-fw fa-check-circle" style="margin-right: 10px;"></i><span>Test</span></a>
  83:      <% } %>
  84:      <button id="widebut" type="button" class="btn btn-primary" style="margin-left: 10px; position: absolute; bottom: 50px"><i class="fa fa-angle-double-left"></i></button>
  85:  </div>
  86:   
  87:  <div id="strictpanel" class="sidebarcollapsed collapse" style="z-index: 2000">
  88:      <a href="/" id="lsmain" class="lfmenu1"><i class="fa fa-fw fa-home" style="margin-right: 10px;"></i></a>
  89:      <a href="/Member_Card.aspx?" id="lsprofile" class="lfmenu1"><i class="fa fa-fw fa-user" style="margin-right: 10px;"></i></a>
  90:      <a href="/SelectedLots.aspx" id="lsselectedlots" class="lfmenu1"><i class="fa fa-fw fa-star" style="margin-right: 10px;" ></i></a>
  91:      <a href="/MyAuction.aspx" id="lsmyauct" class="lfmenu1"><i class="fa fa-fw fa-gavel" style="margin-right: 10px;"></i></a>
  92:      <a href="/Subscription.aspx" id="lssubscript" class="lfmenu1"><i class="fa fa-fw fa-pen" style="margin-right: 10px;"></i></a>
  93:      <hr style="border: 1px solid white; margin-left: 15px; margin-right: 20px;" />
  94:      <a href="MessageList.aspx?&id__" id="lsmessage" class="lfmenu1"><i class="fa fa-fw fa-bell" style="margin-right: 10px;"></i></a>
  95:      <a href="/tarifs.aspx" id="lstax" class="lfmenu1"><i class="fa fa-fw fa-money-bill" style="margin-right: 10px;"></i></a>
  96:      <a href="/Reglament.aspx" id="lsrules" class="lfmenu1"><i class="fa fa-fw fa-sticky-note" style="margin-right: 10px;"></i></a>
  97:      <% if (Boolean.Parse(System.Configuration.ConfigurationManager.AppSettings["DebugOutput"])) %>
  98:      <% { %>
  99:      <hr style="border: 1px solid white; margin-left: 15px; margin-right: 20px;" />
 100:      <a href="/Test1.aspx" id="lstest" class="lfmenu1"><i class="fa fa-fw fa-check-circle" style="margin-right: 10px;"></i><span></span></a>
 101:      <% } %>
 102:      <button id="strictbut" type="button" class="btn btn-primary" style="margin-left: 10px; position: absolute; bottom: 50px"><i class="fa fa-angle-double-right"></i></button>
 103:  </div>
 104:   
 105:   
 106:  <script type="text/javascript">
 107:   
 108:   
 109:      function checkcurrenturl() {
 110:          if (window.location.href.includes("Member_Card.aspx") || window.location.href.includes("Member_User.aspx")) {
 111:              if (Cookies.get('lm') == '1') {
 112:                  $("#lfprofile").addClass("current");
 113:              }
 114:              else if (Cookies.get('lm') == '0') {
 115:                  $("#lsprofile").addClass("current");
 116:              }
 117:          }
 118:          else if (window.location.href.includes("Subscription.aspx")) {
 119:              if (Cookies.get('lm') == '1') {
 120:                  $("#lfsubscript").addClass("current");
 121:              }
 122:              else if (Cookies.get('lm') == '0') {
 123:                  $("#lssubscript").addClass("current");
 124:              }
 125:          }
 126:          else if (window.location.href.includes("MessageList.aspx")) {
 127:              if (Cookies.get('lm') == '1') {
 128:                  $("#lfmessage").addClass("current");
 129:              }
 130:              else if (Cookies.get('lm') == '0') {
 131:                  $("#lsmessage").addClass("current");
 132:              }
 133:          }
 134:          else if (window.location.href.includes("tarifs.aspx")) {
 135:              if (Cookies.get('lm') == '1') {
 136:                  $("#lftax").addClass("current");
 137:              }
 138:              else if (Cookies.get('lm') == '0') {
 139:                  $("#lstax").addClass("current");
 140:              }
 141:          }
 142:          else if (window.location.href.includes("Reglament.aspx")) {
 143:              if (Cookies.get('lm') == '1') {
 144:                  $("#lfrules").addClass("current");
 145:              }
 146:              else if (Cookies.get('lm') == '0') {
 147:                  $("#lsrules").addClass("current");
 148:              }
 149:          }
 150:          else if (window.location.href.includes("MemberList.aspx")) {
 151:              if (Cookies.get('lm') == '1') {
 152:                  $("#lfmemlist").addClass("current");
 153:              }
 154:              else if (Cookies.get('lm') == '0') {
 155:                  $("#lsmemlist").addClass("current");
 156:              }
 157:          }
 158:          else if (window.location.href.includes("BidsList.aspx")) {
 159:              if (Cookies.get('lm') == '1') {
 160:                  $("#lfbidlist").addClass("current");
 161:              }
 162:              else if (Cookies.get('lm') == '0') {
 163:                  $("#lsbidlist").addClass("current");
 164:              }
 165:          }
 166:          else if (window.location.href.includes("PositionList.aspx")) {
 167:              if (Cookies.get('lm') == '1') {
 168:                  $("#lfposlist").addClass("current");
 169:              }
 170:              else if (Cookies.get('lm') == '0') {
 171:                  $("#lsposlist").addClass("current");
 172:              }
 173:          }
 174:          else if (window.location.href.includes("AssetsList.aspx")) {
 175:              if (Cookies.get('lm') == '1') {
 176:                  $("#lfassertlist").addClass("current");
 177:              }
 178:              else if (Cookies.get('lm') == '0') {
 179:                  $("#lsassertlist").addClass("current");
 180:              }
 181:          }
 182:          else if (window.location.href.includes("LotsList.aspx")) {
 183:              if (Cookies.get('lm') == '1') {
 184:                  $("#lflotlist").addClass("current");
 185:              }
 186:              else if (Cookies.get('lm') == '0') {
 187:                  $("#lslotlist").addClass("current");
 188:              }
 189:          }
 190:          else if (window.location.href.includes("AssetsRentList.aspx")) {
 191:              if (Cookies.get('lm') == '1') {
 192:                  $("#lfrentlist").addClass("current");
 193:              }
 194:              else if (Cookies.get('lm') == '0') {
 195:                  $("#lsrentlist").addClass("current");
 196:              }
 197:          }
 198:          <% if (Boolean.Parse(System.Configuration.ConfigurationManager.AppSettings["DebugOutput"])) %>
 199:          <% { %>
 200:          else if (window.location.href.includes("Test1.aspx")) {
 201:              if (Cookies.get('lm') == '1') {
 202:                  $("#lftest").addClass("current");
 203:              }
 204:              else if (Cookies.get('lm') == '0') {
 205:                  $("#lstest").addClass("current");
 206:              }
 207:          }
 208:          <% } %>
 209:          else {
 210:              if (Cookies.get('lm') == '1') {
 211:                  $("#lfmain").addClass("current");
 212:              }
 213:              else if (Cookies.get('lm') == '0') {
 214:                  $("#lsmain").addClass("current");
 215:              }
 216:          }
 217:      }
 218:   
 219:      $("#widebut").click(function () {
 220:          $("#widepanel").addClass("collapse");
 221:          $("#strictpanel").removeClass("collapse");
 222:          Cookies.set('lm', '0');
 223:          $(".lfmenu1").removeClass("current");
 224:          checkcurrenturl();
 225:      });
 226:      $("#strictbut").click(function () {
 227:          $("#widepanel").removeClass("collapse");
 228:          $("#strictpanel").addClass("collapse");
 229:          Cookies.set('lm', '1');
 230:          $(".lfmenu1").removeClass("current");
 231:          checkcurrenturl();
 232:      });
 233:   
 234:      //checkpanelsize();
 235:   
 236:      $(".lfmenu1").removeClass("current");
 237:      if (window.location.href.includes("Member_Card.aspx") || window.location.href.includes("Member_User.aspx")) {
 238:          checkpanelsize();
 239:          if (Cookies.get('lm') == '1') {
 240:              $("#lfprofile").addClass("current");
 241:          }
 242:          else if (Cookies.get('lm') == '0') {
 243:              $("#lsprofile").addClass("current");
 244:          }
 245:      }
 246:      else if (window.location.href.includes("Subscription.aspx")) {
 247:          checkpanelsize();
 248:          if (Cookies.get('lm') == '1') {
 249:              $("#lfsubscript").addClass("current");
 250:          }
 251:          else if (Cookies.get('lm') == '0') {
 252:              $("#lssubscript").addClass("current");
 253:          }
 254:      }
 255:      else if (window.location.href.includes("MessageList.aspx")) {
 256:          checkpanelsize();
 257:          if (Cookies.get('lm') == '1') {
 258:              $("#lfmessage").addClass("current");
 259:          }
 260:          else if (Cookies.get('lm') == '0') {
 261:              $("#lsmessage").addClass("current");
 262:          }
 263:      }
 264:      else if (window.location.href.includes("tarifs.aspx")) {
 265:          checkpanelsize();
 266:          if (Cookies.get('lm') == '1') {
 267:              $("#lftax").addClass("current");
 268:          }
 269:          else if (Cookies.get('lm') == '0') {
 270:              $("#lstax").addClass("current");
 271:          }
 272:      }
 273:      else if (window.location.href.includes("Reglament.aspx")) {
 274:          checkpanelsize();
 275:          if (Cookies.get('lm') == '1') {
 276:              $("#lfrules").addClass("current");
 277:          }
 278:          else if (Cookies.get('lm') == '0') {
 279:              $("#lsrules").addClass("current");
 280:          }
 281:      }
 282:      else if (window.location.href.includes("MemberList.aspx")) {
 283:          checkpanelsize();
 284:          if (Cookies.get('lm') == '1') {
 285:              $("#lfmemlist").addClass("current");
 286:          }
 287:          else if (Cookies.get('lm') == '0') {
 288:              $("#lsmemlist").addClass("current");
 289:          }
 290:      }
 291:      else if (window.location.href.includes("BidsList.aspx")) {
 292:          checkpanelsize();
 293:          if (Cookies.get('lm') == '1') {
 294:              $("#lfbidlist").addClass("current");
 295:          }
 296:          else if (Cookies.get('lm') == '0') {
 297:              $("#lsbidlist").addClass("current");
 298:          }
 299:      }
 300:      else if (window.location.href.includes("PositionList.aspx")) {
 301:          checkpanelsize();
 302:          if (Cookies.get('lm') == '1') {
 303:              $("#lfposlist").addClass("current");
 304:          }
 305:          else if (Cookies.get('lm') == '0') {
 306:              $("#lsposlist").addClass("current");
 307:          }
 308:      }
 309:      else if (window.location.href.includes("AssetsList.aspx")) {
 310:          checkpanelsize();
 311:          if (Cookies.get('lm') == '1') {
 312:              $("#lfassertlist").addClass("current");
 313:          }
 314:          else if (Cookies.get('lm') == '0') {
 315:              $("#lsassertlist").addClass("current");
 316:          }
 317:      }
 318:      else if (window.location.href.includes("LotsList.aspx")) {
 319:          checkpanelsize();
 320:          if (Cookies.get('lm') == '1') {
 321:              $("#lflotlist").addClass("current");
 322:          }
 323:          else if (Cookies.get('lm') == '0') {
 324:              $("#lslotlist").addClass("current");
 325:          }
 326:      }
 327:      else if (window.location.href.includes("AssetsRentList.aspx")) {
 328:          checkpanelsize(); if (Cookies.get('lm') == '1') {
 329:              $("#lfrentlist").addClass("current");
 330:          }
 331:          else if (Cookies.get('lm') == '0') {
 332:              $("#lsrentlist").addClass("current");
 333:          }
 334:      }
 335:      <% if (Boolean.Parse(System.Configuration.ConfigurationManager.AppSettings["DebugOutput"])) %>
 336:      <% { %>
 337:      else if (window.location.href.includes("Test1.aspx")) {
 338:          checkpanelsize();
 339:          if (Cookies.get('lm') == '1') {
 340:              $("#lftest").addClass("current");
 341:          }
 342:          else if (Cookies.get('lm') == '0') {
 343:              $("#lstest").addClass("current");
 344:          }
 345:      }
 346:      <% } %>
 347:      else {
 348:          checkpanelsize();
 349:          if (Cookies.get('lm') == '1') {
 350:              $("#lfmain").addClass("current");
 351:          }
 352:          else if (Cookies.get('lm') == '0') {
 353:              $("#lsmain").addClass("current");
 354:          }
 355:      }
 356:   
 357:  </script>


Comments ( )
Link to this page: http://www.vb-net.com/ProzorroFuture/Index.htm
< THANKS ME>