<?php

include('views/_header.tpl.php');

?>

<style>
	.form .row-item .lbl {
		width: 70px;
	}
	#mmen { display:none; }
	.spacer { padding-top:57px; }
	.form .row-item .val { margin-bottom:10px; }
	.form .row-item .lbl { min-width:70px; margin-top:5px; }
	.form .txt { font-weight:300; }
	.btn { padding: 15px 25px; font-size:15px;  font-weight:300; margin-right:10px; }
	.saved  {
		background:#cd1000; margin-top:2px; color:#fff; text-align:center; padding:10px; font-size:15px;
	}
	.saved a, .saved a:active, .saved a:visited { background:#fff;  color:#28d52d; border-radius:50px; padding:3px 10px; font-weight:800; }
	.saved a:hover { color:#fff;  background:#28d52d; }

	.rounded { border-radius: 50px; -moz-border-radius: 50px; -webkit-border-radius: 50px; padding-left:20px; padding-right:20px; }	
</style>

<link rel="stylesheet" href="/static/css/jquery.datetimepicker.css"/>
<script src='/static/js/jquery.datetimepicker.js'></script>

<script type="text/javascript">
$(document).ready(function()
{
    $(".datepicker").datetimepicker({
        hours24: true,
        format: 'Y-m-d',
        formatTime: 'H:i',
        datepicker: true,
        timepicker: false,
        timepickerScrollbar: true,
        step: 30        
    });
    
        //hours12: true,
        //format: 'Y-m-d hh:mm A',
        //formatDate: 'Y-m-d hh:mm A',
        //datepicker: true,
        //timepicker: true,
        //step: 30,
        //showMeridian:true    

    $(".timepicker").datetimepicker({
        hours12: true,
        format: 'm-d-Y h:i A',
        formatTime: 'h:i',
        timepicker: true,
        datepicker: true,
        timepickerScrollbar: true,
        step: 30
    });
});
</script>

 <div class="home-feature-category" style="background:none; border:none;">
        <div class="container_12 clearfix">
        <div class="grid_12 marked-category">

        <h1 style="margin-bottom:0px;"><a href="/admin/dash">&laquo; Back</a> | <?php
        
        if ($reminder) {
            echo "Edit";
        } else {
            echo "Add"; 
        }
        
        ?> Reminder</h1>

        <form method="post" class="form form-profile" enctype="multipart/form-data" style="padding:25px 0px 25px;">
            <div class="row-item clearfix" style="padding-bottom:10px;">         
                        <label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">For:</label>
                        <div class="val" style="margin-left:0px;">
                            <input class="txt" type="text" name="text" value="<?= $reminder['text'] ?>" >
							<p class="rs description-input" style="margin-left:74px; color:#777;">What is this reminder for?</p>
                        </div>        
        
                        <label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">Target:</label>
                        <div class="val" style="margin-left:0px;">
                            <input class="txt datepicker" type="text" name="date" value="<?= $reminder['date'] ?>" >
							<p class="rs description-input" style="margin-left:74px; color:#777;">The target date this is for</p>
                        </div>              
        
                        <label class="lbl" for="txt_name1" style="text-align:left; width:auto; margin-right:5px;">ReMe:</label>
                        <div class="val" style="margin-left:0px;">
                            <input class="txt timepicker" type="text" name="remindme" value="<?= $reminder['remindme'] ?>" >
							<p class="rs description-input" style="margin-left:74px; color:#777;">When do you want the actual reminder?</p>
                        </div>      
                            
            </div>
            <br />
            <input type="submit" style="font-weight:300" class="btn btn-black" /> 
            <input type="button" value="Cancel" class="btn btn-black" onclick="location = '/admin/reminders'" />
        </form>
        <br /><br /><br /><br />
        </div>
    </div>
</div>
<br /><br /><br /><br />
<?php

include('views/_footer.tpl.php');

?>