<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../css/all.css" rel="stylesheet" type="text/css" />
    <link href="../css/bootstrap.css" rel="stylesheet" id="bootstrap-css">
    <link href="../css/alert.css" rel="stylesheet" id="alert-css">
    <title>SMS Configuration Details</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../css/all.css" rel="stylesheet" type="text/css" />
    <link href="../css/bootstrap.css" rel="stylesheet" id="bootstrap-css">
    <link href="../css/alert.css" rel="stylesheet" id="alert-css">
    <link href="../css/custom.css" rel="stylesheet" id="custom-css">
    <link href="../css/master.css" rel="stylesheet" id="master-css">
    <title>SMS Mailer</title>
</head>
<body>
    <input type="checkbox" name="nav-toggle" id="nav-toggle">
    <div class="sidebar">
        <div class="sidebar-brand">
            <h2>
                <i class="fas fa-warehouse"></i><span>Tornson</span>
            </h2>
        </div>

        <?php require_once("sidebar.txt"); ?>
    </div>

    <div class="main-content">
        <div class="header">
            <h2>
                <label for="nav-toggle">
                    <i class="fas fa-bars"></i>
                </label>
                Settings
            </h2>

            <div class="search-wrapper">
               <i class="fas fa-search"></i>
                <input type="text" name="search" id="search" placeholder="Search here ...">
            </div>

            <div class="user-wrapper">
                <img src="../images/user_profiles/1.jpg"  hieight="40px" width="40px"alt="">
                <div>
                    <h4>Jozibeck Properties Ltd</h4>
                    <small>Super Admin</small>
                </div>
            </div>
        </div>
        <main>
            <div class="row mt-2">
                <div class="col smsconfig">   
                    <h4>SMS Configuration Settings</h4>
                    <div id="configurationerrordiv"></div>
                    <div class="form-group">
                        <label for="clientid">Client Id</label>
                        <input type="text" name="clientdid" id="clientid" class="form-control form-control-sm">
                    </div>
                    <div class="form-group">
                        <label for="senderid">Sender Id:</label>
                        <input type="text" name="senderid" id="senderid" class="form-control form-control-sm">
                    </div>
                    <div class="form-group">
                        <label for="apikey">API Key:</label>
                        <input type="text" name="apikey" id="apikey" class="form-control form-control-sm">
                    </div>
                    <div class="form-group">
                        <label for="url">URL:</label>
                        <input type="text" name="url" id="url" class="form-control form-control-sm">
                    </div>
                    <button class="btn btn-success btn-sm" id="savesmsconfiguration">Save Configuration</button>
                </div>

                <div class="col testsendmessage">
                    <h4>Test SMS API</h4>
                    <div id="testsmssenderrors"></div>
                    <div class="form-group">
                        <label for="sendto">Mobile Number</label>
                        <input type="text" name="sendto" id="sendto" class="form-control form-control-sm">
                    </div>
                    
                    <div class="form-group">
                        <label for="message">Message</label>
                        <textarea name="message" id="message" cols="30" rows="8" class="form-control form-control-sm"></textarea>
                    </div>
                    
                    <button class="btn btn-success btn-sm" id="sendsms">Send Text Message</button>
                </div>
            </div>
        </main>
    </div>
</body>
<script src="../js/jquery-2.2.4.js"></script>
<script src="../js/alert.js"></script>
<script src="../js/functions.js"></script>
<script src="../js/smsconfiguration.js"></script>
</html>