<!DOCTYPE html>

<html>
    <head>
        <title>eStratopedo Calendar</title>
        <meta charset="utf-8">
        <link href="css/fullcalendar.css" rel="stylesheet" />
        <link href="css/ui-lightness/jquery-ui-1.10.4.custom.css" rel="stylesheet" />
        <script src="lib/jquery.min.js"></script>
        <script src="lib/jquery-ui.custom.min.js"></script>
        <script src="lib/jquery-ui.dialog.custom.min.js"></script>
        <script src="lib/fullcalendar.min.js"></script>
        <script src="lib/estratopedo.js"></script>



        <style>
            body {
                margin-top: 40px;
                text-align: center;
                font-size: 14px;
                font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif;
            }
            #calendar {
                width: 900px;
                margin: 0 auto;
            }

            #dialog-insert{
                display: none;
            }
            #dialog-delete{
                display: none;
            }
        </style>
    </head>
    <body>

        <div id='calendar'></div>
        <div id="dialog-delete" title="Διαγραφή υπηρεσίας">
            Είστε σίγουροι ότι θέλετε να διαγράψετε τη συγκεκριμένη υπηρεσία?
        </div>
        <div id="dialog-insert" title="Εισαγωγή νέας υπηρεσίας">
            Στέλεχος: 
            <select id="stelexos">
                <?php
                require '../../../mysqli_connect.php';
                $q1 = "SELECT  concat_ws(' ',r.rankname,s.surname,s.name) as name,s.id as id
       from ranks r,oplo o,stelexi s where r.rankid=s.rankid and s.oploid=o.oploid  ";
                $r1 = @mysqli_query($dbc, $q1);
                while ($row = mysqli_fetch_array($r1, MYSQLI_ASSOC)) {



                    echo '<option value=' . $row['id'] . '>' . $row['name'] . ' </option>';
                }
                ?>    

            </select></br>
            Υπηρεσίας:
            <select id="yphresia"> 
            <?php
            $q = "SELECT name,id from yphresies ";
            $r = @mysqli_query($dbc, $q);
            while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) {



                echo '<option value=' . $row['id'] . '>' . $row['name'] . ' </option>';
            }
            ?>
            
               
            </select>
        </div>
    </body>
</html>