<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
    </head>
    <body >
        <link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
        <script src="//code.jquery.com/jquery-1.10.2.js"></script>
        <script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
        <?php
        if ($notify_nextcheckupinfo != NULL) {
            ?>
            <?php if ($this->session->userdata('notify') == "1") {
                ?>
                <script>
                    $(function() {
                        $('dialog-confirm').show();
                        $("#dialog-confirm").dialog({
                            resizable: false,
                            autoOpen: true,
                            height: 140,
                            modal: true,
                            buttons: {
                                نعم: function() {
                                    window.location = "<?= base_url() ?>patient/admin_checkupinfo/print_notify/<?= $notify_nextcheckupinfo[0]['chx_days'] ?>";

                                                        $(this).dialog("close");
                                                    },
                                                    لا: function() {

                                                        $(this).dialog("close");
                                                 <?php $this->session->unset_userdata('notify') ?>
                                                    }
                                                }
                                            });
                                        });
                </script>
                <div id="dialog-confirm" style="  display: none;">
                    <p>هل تريد طباعة المعاينات القادمة؟</p>
                </div>


                <?php
            }
        } else {
            
        }
        ?>


    </body>
</html>