-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree.test.php
More file actions
141 lines (125 loc) · 4.13 KB
/
Copy pathtree.test.php
File metadata and controls
141 lines (125 loc) · 4.13 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
<?php
require("tree.class.php");
$test_row1 = array (
"task_log_cost_code" => "Coding",
"task_log_summary" => "Programmed a bit",
"company_name" => "Internet Exposure",
"project_name" => "Timesheet",
"task_name" => "Main Page",
"department_name" => "Programmers",
"employee_name" => "Alex"
);
$test_row2 = array (
"task_log_cost_code" => "Coding",
"task_log_summary" => "Some more programming",
"company_name" => "Internet Exposure",
"project_name" => "Timesheet",
"task_name" => "Main Page",
"department_name" => "Programmers",
"employee_name" => "Alex"
);
$test_row3 = array (
"task_log_cost_code" => "Coding",
"task_log_summary" => "Programmed very cool questions",
"company_name" => "Hart-Shegos",
"project_name" => "The Big Hart-Shegos Thing",
"task_name" => "Questions",
"department_name" => "Programmers",
"employee_name" => "Joe"
);
$test_row4 = array (
"task_log_cost_code" => "Coding",
"task_log_summary" => "Programmed some more cool questions",
"company_name" => "Hart-Shegos",
"project_name" => "The Big Hart-Shegos Thing",
"task_name" => "Questions",
"department_name" => "Programmers",
"employee_name" => "Chuck"
);
$test_row5 = array (
"task_log_cost_code" => "Coding",
"task_log_summary" => "Also some more programming",
"company_name" => "Internet Exposure",
"project_name" => "Timesheet",
"task_name" => "Main Page",
"department_name" => "Programmers",
"employee_name" => "Dan"
);
$test_row6 = array (
"task_log_cost_code" => "HTML Production",
"task_log_summary" => "Added some links from other pages to this new page",
"company_name" => "Internet Exposure",
"project_name" => "Timesheet",
"task_name" => "Main Page",
"department_name" => "Programmers",
"employee_name" => "Dan"
);
$test_row7 = array (
"task_log_cost_code" => "HTML Production",
"task_log_summary" => "Created the HTML layout for this page",
"company_name" => "Internet Exposure",
"project_name" => "Timesheet",
"task_name" => "Main Page",
"department_name" => "Design",
"employee_name" => "Ricky"
);
$test_row8 = array (
"task_log_cost_code" => "Testing",
"task_log_summary" => "Tested some of the new pages made by the programmers",
"company_name" => "Internet Exposure",
"project_name" => "Timesheet",
"task_name" => "Tickets",
"department_name" => "Tech",
"employee_name" => "Nick"
);
$test_row9 = array (
"task_log_cost_code" => "Coding",
"task_log_summary" => "Speed up message sending",
"company_name" => "Internet Exposure",
"project_name" => "i-Email",
"task_name" => "Optimize Message Sending/Receiving",
"department_name" => "Programmers",
"employee_name" => "Alex"
);
$test_row10 = array (
"task_log_cost_code" => "Testing",
"task_log_summary" => "Tested sending messages through iEmail",
"company_name" => "Internet Exposure",
"project_name" => "i-Email",
"task_name" => "Beta-Testing",
"department_name" => "Administrative",
"employee_name" => "Scott"
);
$hours1 = array ( "Billable Hours" => 2,
"Unbillable Hours" => 0);
$hours2 = array ( "Billable Hours" => 0,
"Unbillable Hours" => 2);
$hours3 = array ( "Billable Hours" => 6,
"Unbillable Hours" => 1);
$hours4 = array ( "Billable Hours" => 3,
"Unbillable Hours" => 0);
$hours5 = array ( "Billable Hours" => 2,
"Unbillable Hours" => 0);
$hours6 = array ( "Billable Hours" => 3,
"Unbillable Hours" => 0);
$hours7 = array ( "Billable Hours" => 1,
"Unbillable Hours" => 0);
$hours8 = array ( "Billable Hours" => 3,
"Unbillable Hours" => 0);
$hours9 = array ( "Billable Hours" => 4,
"Unbillable Hours" => 0);
$hours10 = array ( "Billable Hours" => 2,
"Unbillable Hours" => 0);
$tree = make_new_tree();
add_task_log( $tree, $test_row1, $hours1);
add_task_log( $tree, $test_row2, $hours2 );
add_task_log( $tree, $test_row3, $hours3 );
add_task_log( $tree, $test_row4, $hours4 );
add_task_log( $tree, $test_row5, $hours5 );
add_task_log( $tree, $test_row6, $hours6 );
add_task_log( $tree, $test_row7, $hours7 );
add_task_log( $tree, $test_row8, $hours8 );
add_task_log( $tree, $test_row9, $hours9 );
add_task_log( $tree, $test_row10, $hours10 );
print_tree( $tree, array(1) );
?>