@ -3,7 +3,19 @@ require_once __DIR__ . '/../required.php';
redirectifnotloggedin();
?>
< h1 class = "page-header" > <?php lang ( "edit task" ) ?> </ h1 >
< div class = "panel panel-blue" >
< div class = "panel-heading" >
< h3 class = "panel-title" >
< i class = "fa fa-pencil-square-o" ></ i > <?php
if (is_empty($VARS['taskid'])) {
lang("add task");
} else {
lang("edit task");
}
?>
< / h3 >
< / div >
<?php
include_once __DIR__ . "/../lib/userinfo.php";
include_once __DIR__ . "/../lib/manage.php";
@ -45,6 +57,7 @@ if (!is_empty($taskid) && $database->has('assigned_tasks', ['taskid' => $taskid]
}
?>
< form action = "action.php" method = "GET" onsubmit = "prettysave();" >
< div class = "panel-body" >
< input type = "hidden" name = "action" value = "edittask" / >
<?php if ( ! is_empty ( $taskid )) { ?>
< input type = "hidden" name = "taskid" value = " <?php echo $taskid ; ?> " />
@ -61,7 +74,10 @@ if (!is_empty($taskid) && $database->has('assigned_tasks', ['taskid' => $taskid]
<!--<p><i class="fa fa-info-circle"></i> <?php lang ( "use now tip" ) ?> </p>-->
< br / >
<?php lang ( "due by 2" ) ?> : < input type = "datetime-local" class = "form-control" id = "due-by-box" name = "taskdueby" value = " <?php echo ( is_empty ( $task [ 'taskdueby' ]) ? "" : date ( 'o-m-d\TH:i:s' , strtotime ( $task [ 'taskdueby' ]))); ?> " />
< br / >
< / div >
< div class = "panel-footer" >
< button id = "savebtn" type = "submit" class = "btn btn-success" >< i class = "fa fa-floppy-o" ></ i > <?php lang ( "save task" ) ?> </ button >
< a class = "btn btn-warning" href = "app.php?page=taskman" >< i class = "fa fa-times" ></ i > <?php lang ( "exit" ) ?> </ a >
< a class = "btn btn-warning pull-right" href = "app.php?page=taskman" >< i class = "fa fa-times" ></ i > <?php lang ( "exit" ) ?> </ a >
< / div >
< / form >
< / div >