-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathedit_task.aspx
More file actions
902 lines (778 loc) · 28.9 KB
/
edit_task.aspx
File metadata and controls
902 lines (778 loc) · 28.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
<%@ Page language="C#"%>
<%@ Import Namespace="System.Text.RegularExpressions" %>
<!--
Copyright 2002-2009 Corey Trager
Distributed under the terms of the GNU General Public License
-->
<!-- #include file = "inc.aspx" -->
<script language="C#" runat="server">
int tsk_id;
int bugid;
String sql;
Security security;
void Page_Init (object sender, EventArgs e) {ViewStateUserKey = Session.SessionID;}
///////////////////////////////////////////////////////////////////////
void Page_Load(Object sender, EventArgs e)
{
Util.do_not_cache(Response);
security = new Security();
security.check_security( HttpContext.Current, Security.ANY_USER_OK_EXCEPT_GUEST);
msg.InnerText = "";
string string_bugid = btnet.Util.sanitize_integer(Request["bugid"]);
bugid = Convert.ToInt32(string_bugid);
int permission_level = Bug.get_bug_permission_level(bugid, security);
if (permission_level != Security.PERMISSION_ALL)
{
Response.Write("You are not allowed to edit tasks for this item");
Response.End();
}
if (security.user.is_admin || security.user.can_edit_tasks)
{
// allowed
}
else
{
Response.Write("You are not allowed to edit tasks");
Response.End();
}
string string_tsk_id = btnet.Util.sanitize_integer(Request["id"]);
tsk_id_static.InnerHtml = string_tsk_id;
tsk_id = Convert.ToInt32(string_tsk_id);
if (!IsPostBack)
{
titl.InnerText = btnet.Util.get_setting("AppTitle","BugTracker.NET") + " - "
+ "edit task";
bugid_label.InnerHtml = btnet.Util.capitalize_first_letter(btnet.Util.get_setting("SingularBugLabel","bug")) + " ID:";
bugid_static.InnerHtml = Convert.ToString(bugid);
load_users_dropdowns(bugid);
if (btnet.Util.get_setting("ShowTaskAssignedTo","1") == "0")
{
assigned_to_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskPlannedStartDate","1") == "0")
{
planned_start_date_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskActualStartDate","1") == "0")
{
actual_start_date_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskPlannedEndDate","1") == "0")
{
planned_end_date_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskActualEndDate","1") == "0")
{
actual_end_date_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskPlannedDuration","1") == "0")
{
planned_duration_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskActualDuration","1") == "0")
{
actual_duration_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskDurationUnits","1") == "0")
{
duration_units_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskPercentComplete","1") == "0")
{
percent_complete_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskStatus","1") == "0")
{
status_tr.Visible = false;
}
if (btnet.Util.get_setting("ShowTaskSortSequence","1") == "0")
{
sort_sequence_tr.Visible = false;
}
// add or edit?
if (tsk_id == 0)
{
tsk_id_tr.Visible = false;
sub.Value = "Create";
string default_duration_units = btnet.Util.get_setting("TaskDefaultDurationUnits","hours");
duration_units.Items.FindByText(default_duration_units).Selected = true;
string default_hour = btnet.Util.get_setting("TaskDefaultHour","09");
planned_start_hour.Items.FindByText(default_hour).Selected = true;
actual_start_hour.Items.FindByText(default_hour).Selected = true;
planned_end_hour.Items.FindByText(default_hour).Selected = true;
actual_end_hour.Items.FindByText(default_hour).Selected = true;
string default_status = btnet.Util.get_setting("TaskDefaultStatus","[no status]");
status.Items.FindByText(default_status).Selected = true;
}
else
{
// Get this entry's data from the db and fill in the form
sql = @"select * from bug_tasks where tsk_id = $tsk_id and tsk_bug = $bugid";
sql = sql.Replace("$tsk_id", Convert.ToString(tsk_id));
sql = sql.Replace("$bugid", Convert.ToString(bugid));
DataRow dr = btnet.DbUtil.get_datarow(sql);
assigned_to.Items.FindByValue(Convert.ToString(dr["tsk_assigned_to_user"])).Selected = true;
duration_units.Items.FindByText(Convert.ToString(dr["tsk_duration_units"])).Selected = true;
status.Items.FindByValue(Convert.ToString(dr["tsk_status"])).Selected = true;
planned_duration.Value = btnet.Util.format_db_value(dr["tsk_planned_duration"]);
actual_duration.Value = btnet.Util.format_db_value(dr["tsk_actual_duration"]);
percent_complete.Value = Convert.ToString(dr["tsk_percent_complete"]);
sort_sequence.Value = Convert.ToString(dr["tsk_sort_sequence"]);
desc.Value = Convert.ToString(dr["tsk_description"]);
load_date_hour_min(
planned_start_date,
planned_start_hour,
planned_start_min,
dr["tsk_planned_start_date"]);
load_date_hour_min(
actual_start_date,
actual_start_hour,
actual_start_min,
dr["tsk_actual_start_date"]);
load_date_hour_min(
planned_end_date,
planned_end_hour,
planned_end_min,
dr["tsk_planned_end_date"]);
load_date_hour_min(
actual_end_date,
actual_end_hour,
actual_end_min,
dr["tsk_actual_end_date"]);
sub.Value = "Update";
}
}
else
{
on_update();
}
}
///////////////////////////////////////////////////////////////////////
void load_date_hour_min(
HtmlInputText date_control,
DropDownList hour_control,
DropDownList min_control,
object date)
{
if (Convert.IsDBNull(date))
{
date_control.Value = "";
}
else
{
DateTime dt = Convert.ToDateTime(date);
string temp_date = dt.Year.ToString("0000") + "-" + dt.Month.ToString("00") + "-" + dt.Day.ToString("00");
date_control.Value = btnet.Util.format_db_date_and_time(Convert.ToDateTime(temp_date));
hour_control.Items.FindByValue(dt.Hour.ToString("00")).Selected = true;
min_control.Items.FindByValue(dt.Minute.ToString("00")).Selected = true;
}
}
///////////////////////////////////////////////////////////////////////
void load_users_dropdowns(int bugid)
{
// What's selected now? Save it before we refresh the dropdown.
string current_value = "";
if (IsPostBack)
{
current_value = assigned_to.SelectedItem.Value;
}
sql = @"
declare @project int
declare @assigned_to int
select @project = bg_project, @assigned_to = bg_assigned_to_user from bugs where bg_id = $bg_id";
// Load the user dropdown, which changes per project
// Only users explicitly allowed will be listed
if (btnet.Util.get_setting("DefaultPermissionLevel", "2") == "0")
{
sql += @"
/* users this project */ select us_id, case when $fullnames then us_lastname + ', ' + us_firstname else us_username end us_username
from users
inner join orgs on us_org = og_id
where us_active = 1
and og_can_be_assigned_to = 1
and ($og_other_orgs_permission_level <> 0 or $og_id = og_id or og_external_user = 0)
and us_id in
(select pu_user from project_user_xref
where pu_project = @project
and pu_permission_level <> 0)
order by us_username; ";
}
// Only users explictly DISallowed will be omitted
else
{
sql += @"
/* users this project */ select us_id, case when $fullnames then us_lastname + ', ' + us_firstname else us_username end us_username
from users
inner join orgs on us_org = og_id
where us_active = 1
and og_can_be_assigned_to = 1
and ($og_other_orgs_permission_level <> 0 or $og_id = og_id or og_external_user = 0)
and us_id not in
(select pu_user from project_user_xref
where pu_project = @project
and pu_permission_level = 0)
order by us_username; ";
}
sql += "\nselect st_id, st_name from statuses order by st_sort_seq, st_name";
sql += "\nselect isnull(@assigned_to,0) ";
sql = sql.Replace("$og_id",Convert.ToString(security.user.org));
sql = sql.Replace("$og_other_orgs_permission_level", Convert.ToString(security.user.other_orgs_permission_level));
sql = sql.Replace("$bg_id",Convert.ToString(bugid));
if (Util.get_setting("UseFullNames","0") == "0")
{
// false condition
sql = sql.Replace("$fullnames","0 = 1");
}
else
{
// true condition
sql = sql.Replace("$fullnames","1 = 1");
}
assigned_to.DataSource = new DataView((DataTable)btnet.DbUtil.get_dataset(sql).Tables[0]);
assigned_to.DataTextField = "us_username";
assigned_to.DataValueField = "us_id";
assigned_to.DataBind();
assigned_to.Items.Insert(0, new ListItem("[not assigned]", "0"));
status.DataSource = new DataView((DataTable)btnet.DbUtil.get_dataset(sql).Tables[1]);
status.DataTextField = "st_name";
status.DataValueField = "st_id";
status.DataBind();
status.Items.Insert(0, new ListItem("[no status]", "0"));
// by default, assign the entry to the same user to whom the bug is assigned to?
// or should it be assigned to the logged in user?
if (tsk_id == 0)
{
int default_assigned_to_user = (int) btnet.DbUtil.get_dataset(sql).Tables[2].Rows[0][0];
ListItem li = assigned_to.Items.FindByValue(Convert.ToString(default_assigned_to_user));
if (li != null)
{
li.Selected = true;
}
}
}
///////////////////////////////////////////////////////////////////////
Boolean validate()
{
Boolean good = true;
if (sort_sequence.Value != "")
{
if (!Util.is_int(sort_sequence.Value))
{
good = false;
sort_sequence_err.InnerText = "Sort Sequence must be an integer.";
}
else
{
sort_sequence_err.InnerText = "";
}
}
else
{
sort_sequence_err.InnerText = "";
}
if (percent_complete.Value != "")
{
if (!Util.is_int(percent_complete.Value))
{
good = false;
percent_complete_err.InnerText = "Percent Complete must be from 0 to 100.";
}
else
{
int percent_complete_int = Convert.ToInt32(percent_complete.Value);
if (percent_complete_int >= 0 && percent_complete_int <= 100)
{
// good
percent_complete_err.InnerText = "";
}
else
{
good = false;
percent_complete_err.InnerText = "Percent Complete must be from 0 to 100.";
}
}
}
else
{
percent_complete_err.InnerText = "";
}
if (planned_duration.Value != "")
{
string err = btnet.Util.is_valid_decimal("Planned Duration", planned_duration.Value, 4, 2);
if (err != "")
{
good = false;
planned_duration_err.InnerText = err;
}
else
{
planned_duration_err.InnerText = "";
}
}
else
{
planned_duration_err.InnerText = "";
}
if (actual_duration.Value != "")
{
string err = btnet.Util.is_valid_decimal("Actual Duration", actual_duration.Value, 4, 2);
if (err != "")
{
good = false;
actual_duration_err.InnerText = err;
}
else
{
actual_duration_err.InnerText = "";
}
}
else
{
actual_duration_err.InnerText = "";
}
return good;
}
///////////////////////////////////////////////////////////////////////
// This might not be right. Maybe use the commented out version, from Sergey Vasiliev
string format_date_hour_min(string date, string hour, string min)
{
if (!string.IsNullOrEmpty(date))
{
return btnet.Util.format_local_date_into_db_format(
date
+ " "
+ hour
+ ":"
+ min
+ ":00");
}
else
{
return "";
}
}
///////////////////////////////////////////////////////////////////////
/*
// Version from Sergey Vasiliev
static string format_date_hour_min(string date, string hour, string min)
{
if (!string.IsNullOrEmpty(date))
{
DateTime wDate = DateTime.ParseExact(date,
Util.get_setting("JustDateFormat", "g"),
new System.Globalization.CultureInfo(System.Threading.Thread.CurrentThread.CurrentCulture.Name, true),
System.Globalization.DateTimeStyles.AllowWhiteSpaces);
return Util.format_local_date_into_db_format(
new DateTime(
wDate.Year,
wDate.Month,
wDate.Day,
Convert.ToInt32(hour),
Convert.ToInt32(min),0));
}
else
{
return "";
}
}
*/
///////////////////////////////////////////////////////////////////////
string format_decimal_for_db(string s)
{
if (s == "")
return "null";
else
return btnet.Util.format_local_decimal_into_db_format(s);
}
///////////////////////////////////////////////////////////////////////
string format_number_for_db(string s)
{
if (s == "")
return "null";
else
return s;
}
///////////////////////////////////////////////////////////////////////
void on_update()
{
Boolean good = validate();
if (good)
{
if (tsk_id == 0) // insert new
{
sql = @"
insert into bug_tasks (
tsk_bug,
tsk_created_user,
tsk_created_date,
tsk_last_updated_user,
tsk_last_updated_date,
tsk_assigned_to_user,
tsk_planned_start_date,
tsk_actual_start_date,
tsk_planned_end_date,
tsk_actual_end_date,
tsk_planned_duration,
tsk_actual_duration,
tsk_duration_units,
tsk_percent_complete,
tsk_status,
tsk_sort_sequence,
tsk_description
)
values (
$tsk_bug,
$tsk_created_user,
getdate(),
$tsk_last_updated_user,
getdate(),
$tsk_assigned_to_user,
'$tsk_planned_start_date',
'$tsk_actual_start_date',
'$tsk_planned_end_date',
'$tsk_actual_end_date',
$tsk_planned_duration,
$tsk_actual_duration,
N'$tsk_duration_units',
$tsk_percent_complete,
$tsk_status,
$tsk_sort_sequence,
N'$tsk_description'
)";
sql = sql.Replace("$tsk_bug", Convert.ToString(bugid));
sql = sql.Replace("$tsk_created_user", Convert.ToString(security.user.usid));
}
else // edit existing
{
sql = @"
update bug_tasks set
tsk_last_updated_user = $tsk_last_updated_user,
tsk_last_updated_date = getdate(),
tsk_assigned_to_user = $tsk_assigned_to_user,
tsk_planned_start_date = '$tsk_planned_start_date',
tsk_actual_start_date = '$tsk_actual_start_date',
tsk_planned_end_date = '$tsk_planned_end_date',
tsk_actual_end_date = '$tsk_actual_end_date',
tsk_planned_duration = $tsk_planned_duration,
tsk_actual_duration = $tsk_actual_duration,
tsk_duration_units = N'$tsk_duration_units',
tsk_percent_complete = $tsk_percent_complete,
tsk_status = $tsk_status,
tsk_sort_sequence = $tsk_sort_sequence,
tsk_description = N'$tsk_description'
where tsk_id = $tsk_id";
sql = sql.Replace("$tsk_id", Convert.ToString(tsk_id));
}
sql = sql.Replace("$tsk_last_updated_user", Convert.ToString(security.user.usid));
sql = sql.Replace("$tsk_planned_start_date", format_date_hour_min(
planned_start_date.Value,
planned_start_hour.SelectedItem.Value,
planned_start_min.SelectedItem.Value));
sql = sql.Replace("$tsk_actual_start_date", format_date_hour_min(
actual_start_date.Value,
actual_start_hour.SelectedItem.Value,
actual_start_min.SelectedItem.Value));
sql = sql.Replace("$tsk_planned_end_date", format_date_hour_min(
planned_end_date.Value,
planned_end_hour.SelectedItem.Value,
planned_end_min.SelectedItem.Value));
sql = sql.Replace("$tsk_actual_end_date", format_date_hour_min(
actual_end_date.Value,
actual_end_hour.SelectedItem.Value,
actual_end_min.SelectedItem.Value));
sql = sql.Replace("$tsk_planned_duration", format_decimal_for_db(planned_duration.Value));
sql = sql.Replace("$tsk_actual_duration", format_decimal_for_db(actual_duration.Value));
sql = sql.Replace("$tsk_percent_complete", format_number_for_db(percent_complete.Value));
sql = sql.Replace("$tsk_status", status.SelectedItem.Value);
sql = sql.Replace("$tsk_sort_sequence", format_number_for_db(sort_sequence.Value));
sql = sql.Replace("$tsk_assigned_to_user", assigned_to.SelectedItem.Value);
sql = sql.Replace("$tsk_description", desc.Value.Replace("'","''"));
sql = sql.Replace("$tsk_duration_units", duration_units.SelectedItem.Value.Replace("'","''"));
btnet.DbUtil.execute_nonquery(sql);
Response.Redirect ("tasks.aspx?bugid=" + Convert.ToString(bugid));
}
else
{
if (tsk_id == 0) // insert new
{
msg.InnerText = "Task was not created.";
}
else // edit existing
{
msg.InnerText = "Task was not updated.";
}
}
}
</script>
<html>
<head>
<title id="titl" runat="server">btnet edit task</title>
<link rel="StyleSheet" href="btnet.css" type="text/css">
<link rel="StyleSheet" href="jquery/ui.datepicker.css" type="text/css">
<script type="text/javascript" language="JavaScript" src="jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" language="JavaScript" src="jquery/jquery-ui-1.6rc2.min.js"></script>
<script type="text/javascript" language="JavaScript" src="datejs/date.js"></script>
<script>
$(document).ready(do_doc_ready);
function do_doc_ready()
{
date_format = '<% Response.Write(btnet.Util.get_setting("DatepickerDateFormat","yy-mm-dd")); %>'
$(".date").datepicker({dateFormat: date_format, duration: 'fast'})
}
function show_calendar(el)
{
$("#" + el).datepicker("show")
}
</script>
</head>
<body>
<div class=align><table border=0><tr><td>
<a href=tasks.aspx?bugid=<% Response.Write(Convert.ToString(bugid)); %>>back to tasks</a>
<p>
<form class=frm runat="server">
<table border=0>
<tr runat="server" id="bugid_tr">
<td class="lbl" id="bugid_label"></td>
<td class="lbl" id="bugid_static"></td>
<td> </td>
</tr>
<tr runat="server" id="tsk_id_tr">
<td class="lbl" id="tsk_id_label">Task ID:</td>
<td class="lbl" id="tsk_id_static"></td>
<td> </td>
</tr>
<tr runat="server" id="desc_tr">
<td class="lbl" id="desc_label">Description:</td>
<td><input runat="server" type="text" class="txt" id="desc" maxlength=200 size=100></td>
<td> </td>
</tr>
<tr runat="server" id="assigned_to_tr">
<td class="lbl" id="assigned_to_label">Assigned to:</td>
<td><asp:DropDownList id="assigned_to" runat="server"></asp:DropDownList></td>
<td> </td>
</tr>
<tr runat="server" id="planned_start_date_tr">
<td class="lbl" id="planned_start_date_lbl">Planned start date:</td>
<td><input runat="server" type=text class="txt date" id="planned_start_date" maxlength=10 size=10>
<a style="font-size: 8pt;"
href="javascript:show_calendar('planned_start_date')">
[?]
</a>
<span id="planned_start_hour_label"> hour:</span>
<asp:DropDownList id="planned_start_hour" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="01" Value="01" Selected="False" />
<asp:ListItem Text="02" Value="02" Selected="False" />
<asp:ListItem Text="03" Value="03" Selected="False" />
<asp:ListItem Text="04" Value="04" Selected="False" />
<asp:ListItem Text="05" Value="05" Selected="False" />
<asp:ListItem Text="06" Value="06" Selected="False" />
<asp:ListItem Text="07" Value="07" Selected="False" />
<asp:ListItem Text="08" Value="08" Selected="False" />
<asp:ListItem Text="09" Value="09" Selected="False" />
<asp:ListItem Text="10" Value="10" Selected="False" />
<asp:ListItem Text="11" Value="11" Selected="False" />
<asp:ListItem Text="12" Value="12" Selected="False" />
<asp:ListItem Text="13" Value="13" Selected="False" />
<asp:ListItem Text="14" Value="14" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="16" Value="16" Selected="False" />
<asp:ListItem Text="17" Value="17" Selected="False" />
<asp:ListItem Text="18" Value="18" Selected="False" />
<asp:ListItem Text="19" Value="19" Selected="False" />
<asp:ListItem Text="20" Value="20" Selected="False" />
<asp:ListItem Text="21" Value="21" Selected="False" />
<asp:ListItem Text="22" Value="22" Selected="False" />
<asp:ListItem Text="23" Value="23" Selected="False" />
</asp:DropDownList>
<span id="planned_start_min_label"> min:</span>
<asp:DropDownList id="planned_start_min" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="30" Value="30" Selected="False" />
<asp:ListItem Text="45" Value="45" Selected="False" />
</asp:DropDownList>
</td>
<td> </td>
</tr>
<tr runat="server" id="actual_start_date_tr">
<td class="lbl" id="actual_start_date_lbl">Actual start date:</td>
<td><input runat="server" type=text class="txt date" id="actual_start_date" maxlength=10 size=10>
<a style="font-size: 8pt;"
href="javascript:show_calendar('actual_start_date')">
[?]
</a>
<span id="actual_start_hour_label"> hour:</span>
<asp:DropDownList id="actual_start_hour" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="01" Value="01" Selected="False" />
<asp:ListItem Text="02" Value="02" Selected="False" />
<asp:ListItem Text="03" Value="03" Selected="False" />
<asp:ListItem Text="04" Value="04" Selected="False" />
<asp:ListItem Text="05" Value="05" Selected="False" />
<asp:ListItem Text="06" Value="06" Selected="False" />
<asp:ListItem Text="07" Value="07" Selected="False" />
<asp:ListItem Text="08" Value="08" Selected="False" />
<asp:ListItem Text="09" Value="09" Selected="False" />
<asp:ListItem Text="10" Value="10" Selected="False" />
<asp:ListItem Text="11" Value="11" Selected="False" />
<asp:ListItem Text="12" Value="12" Selected="False" />
<asp:ListItem Text="13" Value="13" Selected="False" />
<asp:ListItem Text="14" Value="14" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="16" Value="16" Selected="False" />
<asp:ListItem Text="17" Value="17" Selected="False" />
<asp:ListItem Text="18" Value="18" Selected="False" />
<asp:ListItem Text="19" Value="19" Selected="False" />
<asp:ListItem Text="20" Value="20" Selected="False" />
<asp:ListItem Text="21" Value="21" Selected="False" />
<asp:ListItem Text="22" Value="22" Selected="False" />
<asp:ListItem Text="23" Value="23" Selected="False" />
</asp:DropDownList>
<span id="actual_start_min_label"> min:</span>
<asp:DropDownList id="actual_start_min" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="30" Value="30" Selected="False" />
<asp:ListItem Text="45" Value="45" Selected="False" />
</asp:DropDownList>
</td>
<td> </td>
</tr>
<tr runat="server" id="planned_end_date_tr">
<td class="lbl" id="planned_end_date_lbl">Planned end date:</td>
<td><input runat="server" type=text class="txt date" id="planned_end_date" maxlength=10 size=10>
<a style="font-size: 8pt;"
href="javascript:show_calendar('planned_end_date')">
[?]
</a>
<span id="planned_end_hour_label"> hour:</span>
<asp:DropDownList id="planned_end_hour" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="01" Value="01" Selected="False" />
<asp:ListItem Text="02" Value="02" Selected="False" />
<asp:ListItem Text="03" Value="03" Selected="False" />
<asp:ListItem Text="04" Value="04" Selected="False" />
<asp:ListItem Text="05" Value="05" Selected="False" />
<asp:ListItem Text="06" Value="06" Selected="False" />
<asp:ListItem Text="07" Value="07" Selected="False" />
<asp:ListItem Text="08" Value="08" Selected="False" />
<asp:ListItem Text="09" Value="09" Selected="False" />
<asp:ListItem Text="10" Value="10" Selected="False" />
<asp:ListItem Text="11" Value="11" Selected="False" />
<asp:ListItem Text="12" Value="12" Selected="False" />
<asp:ListItem Text="13" Value="13" Selected="False" />
<asp:ListItem Text="14" Value="14" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="16" Value="16" Selected="False" />
<asp:ListItem Text="17" Value="17" Selected="False" />
<asp:ListItem Text="18" Value="18" Selected="False" />
<asp:ListItem Text="19" Value="19" Selected="False" />
<asp:ListItem Text="20" Value="20" Selected="False" />
<asp:ListItem Text="21" Value="21" Selected="False" />
<asp:ListItem Text="22" Value="22" Selected="False" />
<asp:ListItem Text="23" Value="23" Selected="False" />
</asp:DropDownList>
<span id="planned_end_min_label"> min:</span>
<asp:DropDownList id="planned_end_min" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="30" Value="30" Selected="False" />
<asp:ListItem Text="45" Value="45" Selected="False" />
</asp:DropDownList>
</td>
<td> </td>
</tr>
<tr runat="server" id="actual_end_date_tr">
<td class="lbl" id="actual_end_date_lbl">Actual end date:</td>
<td><input runat="server" type=text class="txt date" id="actual_end_date" maxlength=10 size=10>
<a style="font-size: 8pt;"
href="javascript:show_calendar('actual_end_date')">
[?]
</a>
<span id="actual_end_hour_label"> hour:</span>
<asp:DropDownList id="actual_end_hour" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="01" Value="01" Selected="False" />
<asp:ListItem Text="02" Value="02" Selected="False" />
<asp:ListItem Text="03" Value="03" Selected="False" />
<asp:ListItem Text="04" Value="04" Selected="False" />
<asp:ListItem Text="05" Value="05" Selected="False" />
<asp:ListItem Text="06" Value="06" Selected="False" />
<asp:ListItem Text="07" Value="07" Selected="False" />
<asp:ListItem Text="08" Value="08" Selected="False" />
<asp:ListItem Text="09" Value="09" Selected="False" />
<asp:ListItem Text="10" Value="10" Selected="False" />
<asp:ListItem Text="11" Value="11" Selected="False" />
<asp:ListItem Text="12" Value="12" Selected="False" />
<asp:ListItem Text="13" Value="13" Selected="False" />
<asp:ListItem Text="14" Value="14" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="16" Value="16" Selected="False" />
<asp:ListItem Text="17" Value="17" Selected="False" />
<asp:ListItem Text="18" Value="18" Selected="False" />
<asp:ListItem Text="19" Value="19" Selected="False" />
<asp:ListItem Text="20" Value="20" Selected="False" />
<asp:ListItem Text="21" Value="21" Selected="False" />
<asp:ListItem Text="22" Value="22" Selected="False" />
<asp:ListItem Text="23" Value="23" Selected="False" />
</asp:DropDownList>
<span id="actual_end_min_label"> min:</span>
<asp:DropDownList id="actual_end_min" runat="server">
<asp:ListItem Text="00" Value="00" Selected="False" />
<asp:ListItem Text="15" Value="15" Selected="False" />
<asp:ListItem Text="30" Value="30" Selected="False" />
<asp:ListItem Text="45" Value="45" Selected="False" />
</asp:DropDownList>
</td>
<td> </td>
</tr>
<tr runat="server" id="planned_duration_tr">
<td class="lbl" id="planned_duration_lbl">Planned duration:</td>
<td><input runat="server" type=text class="txt" id="planned_duration" maxlength=7 size=7></td>
<td runat="server" class="err" id="planned_duration_err"> </td>
</tr>
<tr runat="server" id="actual_duration_tr">
<td class="lbl" id="actual_duration_lbl">Actual duration:</td>
<td><input runat="server" type=text class="txt" id="actual_duration" maxlength=7 size=7></td>
<td runat="server" class="err" id="actual_duration_err"> </td>
</tr>
<tr runat="server" id="duration_units_tr">
<td class="lbl" id="duration_units_lbl">Duration units:</td>
<td>
<asp:DropDownList id="duration_units" runat="server">
<asp:ListItem Text="minutes" Value="minutes" Selected="False" />
<asp:ListItem Text="hours" Value="hours" Selected="False" />
<asp:ListItem Text="days" Value="days" Selected="False" />
</asp:DropDownList>
</td>
<td> </td>
</tr>
<tr runat="server" id="percent_complete_tr">
<td class="lbl" id="percent_complete_lbl">Percent complete:</td>
<td><input runat="server" type=text class="txt" id="percent_complete" maxlength=6 size=6></td>
<td runat="server" class="err" id="percent_complete_err"> </td>
</tr>
<tr runat="server" id="status_tr">
<td class="lbl" id="status_lbl">Status:</td>
<td><asp:DropDownList id="status" runat="server"></asp:DropDownList></td>
<td> </td>
</tr>
<tr runat="server" id="sort_sequence_tr">
<td class="lbl" id="sort_sequence_lbl">Sort Sequence:</td>
<td><input runat="server" type=text class="txt" id="sort_sequence" maxlength=3 size=3></td>
<td runat="server" class="err" id="sort_sequence_err"> </td>
</tr>
<tr>
<td colspan=3 align=left>
<span runat="server" class=err id="msg"> </span>
</td>
</tr>
<tr>
<td colspan=3 align=center>
<input runat="server" class=btn type=submit id="sub" value="Create or Edit">
</tr>
</table>
</form>
</td></tr></table></div>
</html>