index.html 18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
<!DOCTYPE html>
<html>
  <head>
    <title>Articonf Bank Demo</title>
    <link rel="shortcut icon" type="image/png" href="images/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css" />
    <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
    />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
    <script
      src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.2/jquery.form.min.js"
      integrity="sha384-FzT3vTVGXqf7wRfy8k4BiyzvbNfeYjK+frTVqZeNDFl8woCbF0CYG6g2fMEFFo/i"
      crossorigin="anonymous"
    ></script>

    <link rel="stylesheet" href="css/app.css" />
  </head>
  <body>
    <div class="w3-top">
      <div
        class="w3-bar w3-large w3-collapse"
        style="background-color: #f8f8f8; color: #666;"
      >
        <button
          onclick="check_session();"
          class="w3-bar-item w3-left w3-hover-opacity"
          style="
            cursor: pointer;
            color: #666;
            background-color: #f8f8f8;
          "
          title="Home"
        >
        <i class="fa fa-bank"></i> Articonf Bank
        <!-- <img src="images/p2p-3.gif" alt="Avatar" class="w3-image" width="80" height="50" /> Articonf Bank -->
        </button>
        <!-- <button class="w3-bar-item w3-left  w3-hover-opacity" style="padding: 0px; cursor: pointer;color: #666; background-color: #f8f8f8;" title="Home"><img src="images/bityoga4.png" height="56" width="200" alt="Avatar" ></button> -->
        <!-- <span id = "welcome_user_span"  style="width:auto;display: none;" class="w3-bar-item w3-right w3-hide-small" ><i class="fa fa-user-circle-o" aria-hidden="true"></i> Welcome, <strong><span id="session_user_name">Anand </span></strong></span> -->
        <!-- <a
          style="display: none;"
          href="#"
          onclick="notification_function()"
          class="notification_button w3-bar-item w3-button tablink w3-hover-blue w3-right"
          ><i class="fa fa-bell" aria-hidden="true"></i>
          <span class="w3-hide-small w3-hide-medium">Notification(s)</span></a
        > -->
        <a
          href="#"
          onclick="logout()"
          style="width: auto; display: none;"
          class="logout_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a
        >
        <!-- <a
          href="#"
          onclick="openLink(event, 'my_profile')"
          style="display: none;"
          class="my_profile_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-sign-in" aria-hidden="true"></i> My Profile</a
        > -->
        <a
          href="#"
          onclick="openLink(event, 'login_check')"
          style="display: none;"
          class="login_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-sign-in" aria-hidden="true"></i> Login</a
        >
        <a
          href="#"
          onclick="openLink(event, 'register_check')"
          style="display: none;"
          class="register_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-user-plus" aria-hidden="true"></i> Register</a
        >

        <!-- <a
          href="#"
          onclick="openLink(event, 'buy')"
          style="display: none;"
          class="buy_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-shopping-cart" aria-hidden="true"></i> Buy</a
        > -->
        <a
          href="#"
          onclick="document.getElementById('sell').style.display='block'"
          style="width: auto; display: none;"
          class="query_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-pencil" aria-hidden="true"></i> Asset History</a
        >
        <a
          href="#"
          onclick="document.getElementById('query_chain_code_div').style.display='block'"
          style="width: auto; display: none;"
          class="invoke_button w3-bar-item w3-button w3-hide-small w3-hide-medium tablink w3-hover-blue w3-right"
          ><i class="fa fa-question-circle" aria-hidden="true"></i> Query All
          Assets</a
        >

        <a
          href="javascript:void(0)"
          class="w3-bar-item w3-button w3-right w3-hide-large w3-right w3-hover-blue"
          onclick="myFunction()"
          >&#9776;</a
        >
      </div>
    </div>
    <div
      id="demo"
      class="w3-sidebar w3-bar-block w3-white w3-hide w3-hide-large w3-animate-right"
      style="right: 0;"
    >
      <button onclick="myFunction()" class="w3-bar-item w3-button w3-large">
        Close &times;
      </button>
      <a
        href="#"
        onclick="document.getElementById('sell').style.display='block'"
        style="width: auto; display: none;"
        class="query_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-pencil" aria-hidden="true"></i> Asset History</a
      >
      <a
        href="#"
        onclick="document.getElementById('query_chain_code_div').style.display='block'"
        style="width: auto; display: none;"
        class="invoke_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-question-circle" aria-hidden="true"></i> Query All
        Assets</a
      >
      <a
        href="#"
        onclick="logout()"
        style="display: none;"
        class="logout_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a
      >

      <!-- <a
        href="#"
        onclick="openLink(event, 'my_profile')"
        style="display: none;"
        class="my_profile_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-shopping-cart" aria-hidden="true"></i> My Profile</a
      > -->
      <a
        href="#"
        onclick="openLink(event, 'login_check')"
        style="display: none;"
        class="login_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-sign-in" aria-hidden="true"></i> Login</a
      >
      <a
        href="#"
        onclick="openLink(event, 'register_check')"
        style="display: none;"
        class="register_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-user-plus" aria-hidden="true"></i> Register</a
      >
      <!-- <a
        href="#"
        onclick="openLink(event, 'buy')"
        style="display: none;"
        class="buy_button w3-bar-item w3-button w3-hover-blue tablink"
        ><i class="fa fa-shopping-cart" aria-hidden="true"></i> Buy</a
      > -->
      <!-- <a href="#" onclick="document.getElementById('sell').style.display='block'" style="width:auto;display: none;" class="invoke_button w3-bar-item w3-button w3-hover-blue tablink "><i class="fa fa-pencil" aria-hidden="true"></i> Invoke</a>
    <a  href="#" onclick="document.getElementById('query_chain_code_div').style.display='block'" style="width:auto; display: none;" class="query_button w3-bar-item w3-button w3-hover-blue tablink "><i class="fa fa-question-circle" aria-hidden="true"></i> Query</a> -->
    </div>

    <div
      id="my_profile"
      class="iframe_holder"
      style="background-color: white; display: none;"
    >
      <iframe
        id="my_profile_iframe"
        src="my_profile.html"
        width="100%"
        height="100%"
        marginwidth="0"
        marginheight="0"
        frameborder="0"
      ></iframe>
    </div>

    <div id="sell" class="modal" style="overflow: visible;">
      <form
        id="sell_form"
        action="/sell"
        enctype="multipart/form-data"
        method="POST"
        class="modal-content animate"
      >
        <div class="imgcontainer">
          <span
            onclick="document.getElementById('sell').style.display='none'"
            class="close"
            title="Close Modal"
            style="top: -17px;"
            >&times;</span
          >
          <strong><span>Asset History</span></strong>
          <!-- <img src="images/avatar2.png" alt="Avatar" class="avatar"> -->
        </div>
        <hr />
        <div class="container">
          <label for="Chain_Code_Name"><b>Chaincode Name</b></label>
          <input
            type="text"
            placeholder="Enter Chaincode Name"
            name="Chain_Code_Name"
            id="Chain_Code_Name"
            value="bank"
            required
          />

          <label for="Chain_Code_Function_Name"
            ><b>Chain Code Function Name</b></label
          >
          <input
            type="text"
            placeholder="Enter Chain_Code_Function_Name"
            name="Chain_Code_Function_Name"
            id="Chain_Code_Function_Name"
            value="GetAssetHistory"
            required
          />

          <label for="car_license_plate"><b>User Name</b></label>
          <!-- <input
            type="text"
            placeholder="Enter Car_License_Plate"
            name="User_Name"
            id="User_Name"
            required
          /> -->

          <select
            class="w3-select w3-border w3-center"
            name="History_User_Name"
            id="History_User_Name"
            name="option"
            style="font-weight: bold; color: black; background-color: white;"
          >
          </select>

          <div
            id="sell_loader"
            class="loader w3-center"
            style="
              display: none;
              width: 50px;
              height: 50px;
              margin-left: 45%;
              margin-right: 45%;
            "
          ></div>
          <button type="submit">Get Assset History</button>
        </div>

        <div class="container" style="background-color: #f1f1f1;">
          <button
            type="button"
            onclick="document.getElementById('sell').style.display='none'"
            class="cancelbtn"
          >
            Cancel
          </button>
        </div>
      </form>
    </div>

    <div id="buy" class="iframe_holder" style="display: none;">
      <iframe
        src="buy_page.html"
        width="100%"
        height="100%"
        marginwidth="0"
        marginheight="0"
        frameborder="0"
      ></iframe>
    </div>

    <div id="login_check" class="iframe_holder" style="display: none;">
      <iframe
        src="login_check.html"
        width="100%"
        height="100%"
        marginwidth="0"
        marginheight="0"
        frameborder="0"
      ></iframe>
    </div>
    <div id="register_check" class="iframe_holder" style="display: none;">
      <iframe
        src="register_check.html"
        width="100%"
        height="100%"
        marginwidth="0"
        marginheight="0"
        frameborder="0"
      ></iframe>
    </div>

    <div id="login" class="modal" style="overflow: visible;">
      <form
        id="login_form"
        action="/login"
        enctype="multipart/form-data"
        method="POST"
        class="modal-content animate"
      >
        <div class="imgcontainer">
          <span
            onclick="document.getElementById('login').style.display='none'"
            class="close"
            title="Close Modal"
            style="top: -17px;"
            >&times;</span
          >
          <strong><span>Login</span></strong>
        </div>
        <hr />
        <div class="container">
          <label for="Login_User_Name"><b>Username</b></label>
          <input
            type="text"
            placeholder="Enter Username"
            name="Login_User_Name"
            id="Login_User_Name"
            required
          />

          <label for="Login_Password"><b>Password</b></label>
          <input
            type="password"
            placeholder="Enter Password"
            name="Login_Password"
            id="Login_Password"
            required
          />

          <button type="submit">Login</button>
          <div
            id="login_loader"
            class="loader w3-center"
            style="
              display: none;
              width: 50px;
              height: 50px;
              margin-left: 45%;
              margin-right: 45%;
            "
          ></div>
          <label>
            <input type="checkbox" checked="checked" name="remember" /> Remember
            me
          </label>
        </div>

        <div class="container" style="background-color: #f1f1f1;">
          <button
            type="button"
            onclick="document.getElementById('login').style.display='none'"
            class="cancelbtn"
          >
            Cancel
          </button>
          <span class="psw">Forgot <a href="#">password?</a></span>
        </div>
      </form>
    </div>

    <div id="query_chain_code_div" class="modal" style="overflow: visible;">
      <form
        id="query_chain_code"
        action="/query_chain_code"
        enctype="multipart/form-data"
        method="POST"
        class="modal-content animate"
      >
        <div class="imgcontainer">
          <span
            onclick="document.getElementById('query_chain_code_div').style.display='none'"
            class="close"
            title="Close Modal"
            style="top: -17px;"
            >&times;</span
          >
          <strong><span>Get All Assets</span></strong>
        </div>
        <hr />
        <div class="container">
          <label for="Chain_Code_Name"><b>Chaincode Name</b></label>
          <input
            type="text"
            placeholder="Enter Chaincode Name"
            name="Chain_Code_Name"
            id="Chain_Code_Name"
            value="bank"
            required
          />

          <label for="Chain_Code_Function_Name"
            ><b>Chain Code Function Name</b></label
          >
          <input
            type="text"
            placeholder="Enter Password"
            name="Chain_Code_Function_Name"
            id="Chain_Code_Function_Name"
            value="GetAllAssets"
            required
          />

          <div
            id="query_chain_code_loader"
            class="loader w3-center"
            style="
              display: none;
              width: 50px;
              height: 50px;
              margin-left: 45%;
              margin-right: 45%;
            "
          ></div>
          <button type="submit">Get All Assets</button>
        </div>

        <div class="container" style="background-color: #f1f1f1;">
          <button
            type="button"
            onclick="document.getElementById('query_chain_code_div').style.display='none'"
            class="cancelbtn"
          >
            Cancel
          </button>
        </div>
      </form>
    </div>

    <div id="register" class="modal" style="overflow: visible;">
      <form
        id="register_form"
        action="/register"
        enctype="multipart/form-data"
        method="POST"
        class="modal-content animate"
      >
        <div class="imgcontainer">
          <span
            onclick="document.getElementById('register').style.display='none'"
            class="close"
            title="Close Modal"
            >&times;</span
          >
          <img src="images/avatar2.png" alt="Avatar" class="avatar" />
        </div>

        <div class="container">
          <label for="User_Name"><b>Username</b></label>
          <input
            type="text"
            placeholder="Enter Username"
            id="User_Name"
            name="User_Name"
            required
          />

          <label for="User_Password"><b>Password</b></label>
          <input
            type="password"
            placeholder="Enter Password"
            id="User_Password"
            name="User_Password"
            required
          />

          <label for="User_House_Number"><b>House_Numeber</b></label>
          <input
            type="text"
            placeholder="Enter House Number"
            id="User_House_Number"
            name="User_House_Number"
            required
          />

          <button type="submit">Register</button>
          <div
            id="register_loader"
            class="loader w3-center"
            style="
              display: none;
              width: 50px;
              height: 50px;
              margin-left: 45%;
              margin-right: 45%;
            "
          ></div>
          <label>
            <input type="checkbox" checked="checked" name="remember" /> Remember
            me
          </label>
        </div>

        <div class="container" style="background-color: #f1f1f1;">
          <button
            type="button"
            onclick="document.getElementById('register').style.display='none'"
            class="cancelbtn"
          >
            Cancel
          </button>
          <span class="psw">Forgot <a href="#">password?</a></span>
        </div>
      </form>
    </div>

    <div class="footer" style="background-color: #f8f8f8; color: #666;">
      <img
        class="w3-left"
        style="padding: 5px; margin-left: 5px;"
        src="images/articonf4.png"
        height="52"
        alt="Avatar"
      />
      <img
        class="w3-right"
        style="padding: 5px;"
        src="images/eu.png"
        height="52"
        alt="Avatar"
      />
      <img
        class="w3-right"
        style="padding: 5px;"
        src="images/bityoga5.png"
        height="52"
        alt="Avatar"
      />
      <span class="w3-hide-small w3-right" style="margin-top: 16px;"
        >Powered by :</span
      >
    </div>
    <script type="text/javascript" src="js/send_ajax_request.js"></script>
    <script type="text/javascript" src="js/double_menu.js"></script>
    <script type="text/javascript">
      //$("#home").load("home_page.html");
      //$("#login").load("login.html");
    </script>
    <script type="text/javascript" src="js/modal.js"></script>

    <script type="text/javascript">
      check_session();
    </script>
  </body>
</html>