-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentry.php
More file actions
403 lines (352 loc) · 18.7 KB
/
Copy pathentry.php
File metadata and controls
403 lines (352 loc) · 18.7 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
<?php
mysqli_report(MYSQLI_REPORT_OFF);
require("mysql_connect.php");
$clientID = $_REQUEST['clientID'];
$fill = "";
// $jid = "";
// $clientID = $_POST['clientID'];
$staffID = ($admin==false || empty($_REQUEST['staffID'])?$userinfo['id']:$_REQUEST['staffID']);
if ($_GET['jid'] ?? null) {
$jid = $_GET['jid'] ?? null;
$query = "SELECT * FROM journal WHERE id = ".$jid;
$result = mysqli_query($dbc, $query);
$fill = mysqli_fetch_assoc($result);
$clientID = $fill['ClientID'];
}
if (!empty($clientID)){
$query = "SELECT *, c.id as ClientID, c.total_hours AS totalhours FROM clients c LEFT JOIN journal j ON c.id = j.ClientID WHERE c.id = " . $clientID . " ORDER BY created DESC LIMIT 1";
// echo "$query";
$result = mysqli_query($dbc, $query);
$row=mysqli_fetch_assoc($result);
if (!$row['ClientID']) {
empty($clientID); echo "No client found.";
// header('Location: entry.php');
} else {
$thisQ = $_GET['thisQ'] ?? null;
$hoursq = "SELECT SUM(Hours) FROM journal WHERE ClientID = " . $clientID . " AND YEAR(created) = YEAR(curdate()) AND (MONTH(created) >= (".(3*($thisQ-1)+1).") AND MONTH(created)<=(".(3*$thisQ)."))";
$hoursr = mysqli_query($dbc, $hoursq);
$hours = mysqli_fetch_row($hoursr);
$hoursTotal = $hours['0'];
if ($hoursTotal >= ($row['q_hours']/3) && $hoursTotal < (2*$row['q_hours']/3)) { $fcolor = '#ff9900'; }
if ($hoursTotal >= (2*$row['q_hours']/3)) { $fcolor = '#cc0033'; }
}
}
?>
<head>
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8"></link>
<!--<link rel="stylesheet" href="css/tablesort.css" type="text/css" charset="utf-8">-->
<link rel="stylesheet" href="css/jquery-ui.css" type="text/css" charset="utf-8"></link>
<!-- <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js" type="text/javascript"></script> -->
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery-ui.js" type="text/javascript" charset="utf-8"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script>
<script>
$(function() {
$( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
});
var c=0;
var t;
var timer_is_on= false;
function timedCount()
{
document.getElementById('timer').value=numeral(c).format('00:00:00');
c++;
if (timer_is_on) {
t= setTimeout(timedCount,1000);
}
}
function doTimer()
{
if (!timer_is_on) {
timer_is_on=true;
timedCount();
} else {
clearTimeout(t);
timer_is_on=false;
}
}
function popOut() {
var myWindow = window.open(document.URL, "CHART Track", "width=1060,height=650");
}
// $('textarea').autoResize();
</script>
<style>
#last {
display:none;
}
</style>
<body>
<?php
include_once('topbar.php');
echo "<br /><br />";
if ( ( $_POST['submit'] ?? null ) || ( $_POST['addnew'] ?? null ) ) {
foreach ($_POST AS $key => $value) {
if(!empty($value) && !isset($$key))
$$key = $value;
}
$Flags = $Flags ?? null;
$TeamNote = $TeamNote ?? null;
$RetreatDate1 = $RetreatDate1 ?? null;
$RetreatDate2 = $RetreatDate2 ?? null;
$RetreatNote = $RetreatNote ?? null;
$ClientNote = $ClientNote ?? null;
$Hours = $Hours ?? null;
$Billable = $Billable ?? null;
$Quarterly = $Quarterly ?? null;
$QtrInc = $QtrInc ?? null;
$clientID = (!$clientID) ? $_POST['clientID'] : $clientID;
$reportR = mysqli_query($dbc, "SELECT * FROM report_content");
$report = mysqli_fetch_row($reportR);
$Billable = ($Billable == 'on') ? 1 : 0;
if (strpos($Hours,':')) {
$str_time = preg_replace("/^([\d]{1,2})\:([\d]{2})$/", "00:$1:$2", $Hours);
sscanf($str_time, "%d:%d:%d", $hours, $minutes, $seconds);
$time_seconds = $hours * 3600 + $minutes * 60 + $seconds;
$Hours = number_format(($time_seconds / 60) / 60, 2);
}
if ($_GET['jid'] ?? null) {
$update = "UPDATE journal SET Hours = '$Hours',
Billable = '$Billable',
TeamNote = '".mysqli_real_escape_string($dbc, $TeamNote ?? null)."',
ClientNote = '".mysqli_real_escape_string($dbc, $ClientNote ?? null). "',
RetreatNote = '".mysqli_real_escape_string($dbc, $RetreatNote ?? null). "',
RetreatDate1 = '$RetreatDate1',
RetreatDate2 = '$RetreatDate2',
QtrInc = '$QtrInc',
Quarterly = '".mysqli_real_escape_string($dbc, $Quarterly ?? null)."',
Intro = '".mysqli_real_escape_string($dbc, $Intro ?? null)."',
Date = '$Date',
Category = '$Category',
created = NOW()
WHERE id = $jid";
} else {
$update = "INSERT INTO journal (ClientID, StaffID, Flags, Hours, Billable, TeamNote, ClientNote, RetreatNote, RetreatDate1, RetreatDate2, QtrInc, Quarterly, Intro, Date, Category, created) VALUES ($clientID, '$staffID', '$Flags', '$Hours', '$Billable', '". mysqli_real_escape_string($dbc, $TeamNote ?? null) . "', '". mysqli_real_escape_string($dbc, $ClientNote ?? null)."', '". mysqli_real_escape_string($dbc, $RetreatNote ?? null)."', '$RetreatDate1', '$RetreatDate2', '$QtrInc', '".mysqli_real_escape_string($dbc, $Quarterly ?? null)."', '".mysqli_real_escape_string($dbc, $Intro ?? null)."', '$Date', '$Category', NOW())";
// $upQ = "INSERT INTO journal (ClientID, StaffID, Flags, Hours, Billable, TeamNote, ClientNote, RetreatNote, RetreatDate1, RetreatDate2, QtrInc, Quarterly, Intro, Date, Category, created) VALUES (?, ?, '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?', NOW())";
// $update = mysqli_prepare($dbc,$upQ, array($clientID, $staffID, $Flags, $Hours, $Billable,mysqli_real_escape_string($dbc, $TeamNote ?? null), mysqli_real_escape_string($dbc, $ClientNote ?? null), mysqli_real_escape_string($dbc, $RetreatNote ?? null), $RetreatDate1, $RetreatDate2, $QtrInc, mysqli_real_escape_string($dbc, $Quarterly ?? null), mysqli_real_escape_string($dbc, $Intro ?? null), $Date, $Category));
// $update = mysqli_execute($dbc, $upR);
}
//echo $update;
if (!mysqli_query($dbc, $update)) {
die('Error: ' . mysqli_error($update).$update);
}
$thisid=mysqli_insert_id($dbc);
//TAGS
$csv_flags=array();
$tags=explode(',',$Flags);
$i=0;
while(!empty($tags[$i])){
$tag=trim($tags[$i]);
$chk=mysqli_query($dbc, "SELECT * FROM flags WHERE flag_title='$tag'");
if(mysqli_num_rows($chk)==0){
$cols=array("flag_title");$vals=array("$tag");
$ins=db_send($cols,$vals,"flags",'insert');
$tagID=mysqli_insert_id();
} else {
$row_t=mysqli_fetch_array($chk);
$tagID=$row_t['flag_id'];
}
$csv_flags[]=$tagID;
$chk=mysqli_query($dbc, "SELECT * FROM journal_flags WHERE flag_id='$tagID' AND journal_id='$thisid'");
if(mysqli_num_rows($chk)==0){
$cols=array('flag_id','journal_id');$vals=array("$tagID","$thisid");
$ins=db_send($cols,$vals,'journal_flags','insert');
}
$i++;
}
$csv_flags=implode(',',$csv_flags);
if(empty($csv_flags)) $csv_flags="''";
$del=mysqli_query($dbc, "DELETE FROM journal_flags WHERE journal_id='$thisid' AND flag_id NOT IN ($csv_flags)");
echo "<div class='add_entry aligncenter'><h1>1 record added</h1>";
echo "<p><a href='".$_SERVER['PHP_SELF'] ."?clientID=".$clientID." '>Add another entry for ".$row['name']."</a></p>";
// echo "<p><a href='".$PHP_SELF."'>Add an entry for another client</a></p>";
echo "<p><a href='dashboard.php?staffID=".$staffID."'>View all your clients entries</a></p>";
echo "</div>";
// debug_p($_REQUEST, "all the data coming in");
// } elseif ($_GET['addFirst'] == 1) {
// echo "<br /><br /><br /><br />" . $clientID;
} elseif (empty($_POST['clientID']) && empty($_GET['clientID'])) {
$staffr = mysqli_query($dbc, "SELECT * FROM staff");
$codeq = "SELECT * FROM clients".($userinfo['admin']!='1'?" LEFT JOIN staff_clients ON clients.id=staff_clients.clientID WHERE staff_clients.staffID='{$userinfo['id']}' AND clients.active = 1":'')." ORDER BY clients.name";
// echo $codeq;
$coder = mysqli_query($dbc, $codeq);
if(mysqli_num_rows($coder)==0) echo "<div id='journal_output'><div class='empty'><br /><h2>You have not been assigned to a client.</h2></div></div>";
else {
echo "<form method='POST' action='$PHP_SELF'>\n";
echo "<br /><br /><br /> ";
// -- CODEMENU START
echo "<div class='aligncenter' style='width:400px;'><select name=\"clientID\">\n";
while ($code = (mysqli_fetch_assoc($coder))) {
echo "<option value=\"" . $code['id'] . "\" ".($_REQUEST['clientID']==$code['id']?"selected='selected'":'').">";
if ($code['code']) { echo $code['code'] . " — "; }
echo $code['name'];
echo "</option>\n";
}
echo "</select>\n";
// -- CODEMENU ENDS
echo "<input type=\"submit\" name=\"next\" value=\"Next >>\">\n";
echo "</div></form>";
}
// debug_p($_REQUEST, "all the data coming in");
}
elseif (!empty($_POST['clientID']) || !empty($_GET['clientID'])) {
// else {
$clientID = ($_POST['clientID'] ?? null) ? $_POST['clientID'] : $_GET['clientID'];
// echo "<br /><br /><br /><br />ClientID: " . $clientID;
// $c = mysqli_query($dbc, "SELECT * FROM clients WHERE id='".$clientID."'") or die(mysql_error());
// if(mysqli_num_rows($c)>0)$client=mysqli_fetch_array($c);
// // $hoursq = "SELECT SUM(Hours) FROM journal WHERE ClientID = " . $clientID . " AND YEAR(created) = YEAR(curdate())";
// // echo $hoursq;
// $hoursr = @mysqli_query($dbc, $hoursq);
// if(mysqli_num_rows($hoursr)>0)$hours = mysqli_fetch_row($hoursr);
//
// $hoursTotal = $hours['0'];
// if ($hoursTotal >= 15 && $hoursTotal < 18) { $fcolor = '#ff9900'; }
// if ($hoursTotal >= 18) { $fcolor = '#cc0033'; }
//
// $hoursleft = $row['totalhours'] - $hoursTotal;
$staffq = "SELECT * FROM staff s, staff_clients c WHERE s.id = c.staffID AND c.clientID = " . $clientID;
$staffr = mysqli_query($dbc, $staffq);
$clientq = "SELECT * FROM clients WHERE id = " . $clientID;
$clientr = mysqli_query($dbc, $clientq);
// echo $clientq;
// echo $staffq;
$staff = mysqli_fetch_assoc($staffr);
$fcolor = client_health_color($clientID);
echo "<div id='wrapper'><div id='client_profile'>";
// $jid = (isset($_GET['jid'])) ? $_GET['jid'] : 0;
echo "<form method='POST' action='" . $_SERVER['PHP_SELF'];
echo (isset($_GET['jid'])) ? '?jid=' . $_GET['jid'] : '';
echo "'>\n";
echo "<table border=0 cellspacing=0 id='track' class='aligncenter'><tr>";
$code = (!$row['code']) ? '' : $row['code'];
$page_head = ($code=='') ? $row['name'] : $code . " — " . $row['name'];
echo "<td colspan=2 valign='bottom'><span class='cname'>$page_head</span> " . client_health_dots($clientID,20);
echo "<a href='#' class='glyphicon glyphicon-new-window' onclick='popOut()' style='float:right;font-size: 14px;'>↑ pop-out</a>";
echo "</td></tr><tr><td colspan=2>";
echo "<table border=0 width=360 align='left' valign='top'><tr><td>";
echo "<p class='info'><span class='label'>Consultant:</span>";
if(mysqli_num_rows($staffr)>>1) {
while ($staff = mysqli_fetch_assoc($staffr)) {
echo $staff['firstname'] . " " . $staff['lastname'] . " & ";
}
} else {
echo $staff['firstname'] . " " . $staff['lastname'];
}
echo "</p>";
$client = mysqli_fetch_assoc($clientr) or DIE (mysqli_error($clientr));
$url = (!$client['url']) ? '#' : $client['url'];
if ($url == '#') {
echo "<p class='label'>Co-op Homepage</p>";
} else {
echo "<p class='label'><a href='" . $url . "' target='_BLANK'>Co-op Homepage</a></p>";
}
echo "<p class='info'><span class='label'>GM: </span>".$client['gm_name']." / <a href='tel:".$client['gm_contact']."'>" . $client['gm_contact'] . "</a> / <a href='mailto:".$client['gm_email']."'>".$client['gm_email']."</a></p>";
echo "<p class='info'><span class='label'>Chair: </span>".$client['chair_name']." / ".$client['chair_contact']." / <a href='mailto:".$client['chair_email']."'>".$client['chair_email']."</a></p>";
echo "<p class='info'><span class='label'>Board: </span>".$client['board_name']." / ".$client['board_contact']." / <a href='mailto:".$client['board_email']."'>".$client['board_email']."</a></p>";
echo "</td></tr></table>";
mini_dash($clientID,'right');
// $align = 'right';
// $hoursq = "SELECT SUM(Hours) FROM journal WHERE ClientID = " . $clientID . " AND YEAR(created) = YEAR(curdate()) AND (MONTH(created) >= (".(3*($thisQ-1)+1).") AND MONTH(created)<=(".(3*$thisQ)."))";
// $hoursr = mysqli_query($dbc, $hoursq);
// $hours = mysqli_fetch_row($hoursr);
// $hoursTotal = $hours['0'];
// // if ($hoursTotal >= ($row['q_hours']/3) && $hoursTotal < (2*$row['q_hours']/3)) { $fcolor = '#ff9900'; }
// // if ($hoursTotal >= (2*$row['q_hours']/3)) { $fcolor = '#cc0033'; }
// $fcolor = client_health_color($clientID);
// $totr = mysqli_query($dbc, "SELECT * FROM clients WHERE ID = $clientID");
// $client = mysqli_fetch_assoc($totr);
// $tot = $client['total_hours'];
// $hoursleft = $tot - $hoursTotal;
// echo "<table border=0 align='$align' width=280 valign='top'><tr>";
// echo "<td align='$align'><span class='label'>Hrs. Used (Q".$thisQ."): </span><span class='resp' style='color: $fcolor;'><b>" . round($hoursTotal,2) . "</b></span><span class='label'> of </span><span class='resp'><b>" . round($tot,2) . "</b></span> / <span class='resp' style='color: $fcolor;'><b>" . round($hoursleft,2) . "</b></span> <span class='label'>remain</span></td>";
// echo "</tr><tr>";
// echo "<td align='$align'><span class='label'>Contact pattern: </span><span class='resp'><b>" . contact_pattern_dots($clientID,15) . "</b></span></td>";
// echo "</tr></table>";
?>
</td></tr>
<tr><td colspan=2><span class='label'>Date: </span><input type='text' name='Date' class='datepicker' value='
<?php
echo isset($fill['Date']) ? $fill['Date'] : date("Y-m-d");
$fillCat = empty($fill['Category']) ? "" : $fill['Category'];
?>
' size=14 />
<span class='label'>Log Time (Hours): </span><input name='Hours' id="timer" value='<?php echo isset($jid) ? $fill['Hours'] : 0; ?>' />
<input type="button" value="Start/Stop Timer" onclick="doTimer();" />
</td>
</tr>
<tr>
<td class='label'>Category: </td><td>
<table class="tbl" border="0" style='height: 25px; padding:0; margin:0; border:none;'>
<tr>
<td style='border:none;'><select name='Category' onchange='switchType(this.value)'>
<option value='call' <?php echo ($fillCat == 'call') ? "SELECTED" : ""; ?>>Call *</option>
<option value='quarterly' <?php echo ($fillCat == 'quarterly') ? "SELECTED" : ""; ?>>Quarterly *</option>
<option value='retreat' <?php echo ($fillCat == 'retreat') ? "SELECTED" : ""; ?>>Retreat *</option>
<option value='research' <?php echo ($fillCat == 'research') ? "SELECTED" : ""; ?>>Research</option>
<option value='email' <?php echo ($fillCat == 'email') ? "SELECTED" : ""; ?>>Email</option>
<option value='consult' <?php echo ($fillCat == 'consult') ? "SELECTED" : ""; ?>>Consult/Meeting</option>
<option value='internal' <?php echo ($fillCat == 'internal') ? "SELECTED" : ""; ?>>Internal</option>
<option value='adjust' <?php echo ($fillCat == 'adjust') ? "SELECTED" : ""; ?>>Hours Adjustment</option>
</select></td>
<td style='border:none;'>
<input type='hidden' name='Billable' value='0' />
<input type='checkbox' id='Billable' name='Billable' <?php echo (empty($fill['Billable']) && isset($jid)) ? "" : "CHECKED"; ?> /></td>
<td class='label' style='border:none;'><label for='Billable'>Billable</label>
<?php //echo $fill['Billable']; ?>
</td>
</tr>
</table>
</td>
</tr>
<!--<tr><td class='label'>Flags: </td><td><textarea rows=1 cols=110 name='Flags'></textarea></td></tr> -->
<tr id='row_nts'><td class='label'>Notes to Self/Team: </td><td><textarea rows=3 cols=80 name='TeamNote'><?php echo isset($jid) ? $fill['TeamNote'] : ''; ?></textarea></td></tr>
<tr id='row_ntc'><td class='label'>Notes to Client: </td><td><textarea rows=6 cols=80 name='ClientNote'><?php echo isset($jid) ? $fill['ClientNote'] : ''; ?></textarea>
<div id='QtrInc_cont'><input type='checkbox' name='QtrInc' id='QtrInc' value='1' <?php echo (isset($fill['QtrInc']) && $fill['QtrInc'] == '1') ? "checked" : ""; ?> />
<label for='QtrInc'>Include notes on Quarterly Report?</label></div></td></tr>
<tr id='row_nq' style='display:none;'><td class='label'>Quarterly Notes: </td><td><textarea rows=6 cols=80 name='Quarterly'><?php echo (isset($jid) && $fillCat == "quarterly") ? $fill['Quarterly'] : ''; ?></textarea></td></tr>
<tr id='row_ni' style='display:none;'><td class='label'>Personal intro note: </td><td><textarea rows=3 cols=80 name='Intro'><?php echo isset($jid) ? $fill['Intro'] : ''; ?></textarea></td></tr>
<tr id='row_nr' style='display:none;'><td class='label'>Retreat Notes: </td><td><textarea rows=6 cols=80 name='RetreatNote'><?php echo isset($jid) ? $fill['RetreatNote'] : ''; ?></textarea></td></td></tr>
<tr id='row_rd' style='display:none;'><td colspan=2><span class='label'>Retreat Date Start: </span><input type='text' name='RetreatDate1' class='datepicker' value="<?php echo isset($fill['RetreatDate1']) ? $fill['RetreatDate1'] : '' ?>" size=12 />
<span class='label'>Retreat Date End: </span><input type='text' name='RetreatDate2' class='datepicker' value="<?php echo isset($fill['RetreatDate2']) ? $fill['RetreatDate2'] : '' ?>" size=12 /></tr>
<input type='hidden' name='staffID' value='<?php echo $row['StaffID']?>' />
<input type='hidden' name='clientID' value='<?php echo $clientID?>' />
<tr><td colspan=2 align='center'><input class='aligncenter' type="submit" name="submit" value="Submit" /><br /></td></tr>
</table>
<div id='unfold' class='aligncenter'>See Last Entry</div><br />
<div id='last'>
<table border=0 cellspacing=0 id='track' class='aligncenter'><tr>
<?php
echo "<tr><td colspan=2><span class='label'>Last entry: </span><span class='resp'>" . date('Y-m-d', strtotime($row['created'])) . "</span></td></tr>";
// echo "<tr><td colspan=2><span class='label'>Flags: </span><span class='resptxt'>" . substr($row['Flags'], 0, 120) . "... </span></td></tr>";
echo "<tr><td colspan=2><span class='label'>Team Notes: </span><span class='resptxt'>" . $row['TeamNote'] /* substr($row['TeamNote'], 0, 120) */ . "... </span></td></tr>";
echo "<tr><td colspan=2><span class='label'>Client Notes: </span><span class='resptxt'>" . substr($row['ClientNote'], 0, 120) . "... </span></td></tr>";
echo "</table>";
echo "</div> <!-- /last -->";
echo "</form>";
echo "</div></div>";
}
// echo "<input type=\"submit\" name=\"submit\" value=\"Add\">\n";
// print_r($row);
// debug_p($_REQUEST, "all the data coming in");
?>
<script>
$("#unfold").click(function () {
$("#last").slideToggle("slow");
});
function switchType(type){
if(type=='quarterly'){
$('#row_nts, #row_ntc, #row_nr').hide();
$('#row_nq, #row_ni').show();
}else if(type=='retreat'){
$('#row_nq,#row_ntc, #row_ni').hide();
$('#row_nr, #row_rd').show();
}else{
$('#row_nts, #row_ntc').show();
$('#row_nq, #row_ni, #row_nr, #row_rd').hide();
}
}
$(function(){
switchType('<?php echo isset($fill['Category']) ? $fill['Category'] : "Call *"; ?>');
});
</script>
</body>