forked from delpino73/Blue-Smiley-Organizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
show-notes-text.php
82 lines (48 loc) · 1.78 KB
/
show-notes-text.php
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
<?php
require 'class.base.php';
require 'class.html.php';
$base_instance=new base();
$html_instance=new html();
$userid=$base_instance->get_userid();
if (!empty($_GET['days_reminder_id'])) {
$days_reminder_id=(int)$_GET['days_reminder_id'];
$data=$base_instance->get_data("SELECT * FROM {$base_instance->entity['REMINDER']['DAYS']} WHERE ID=$days_reminder_id AND user=$userid");
$title=$data[1]->title;
$text=$data[1]->text;
$text=convert_square_bracket($text);
$text=nl2br($text);
$all_text="<strong>$title</strong><p>$text";
}
else if (!empty($_GET['weekday_reminder_id'])) {
$weekday_reminder_id=(int)$_GET['weekday_reminder_id'];
$data=$base_instance->get_data("SELECT * FROM {$base_instance->entity['REMINDER']['WEEKDAY']} WHERE ID=$weekday_reminder_id AND user=$userid");
$title=$data[1]->title;
$text=$data[1]->text;
$text=convert_square_bracket($text);
$text=nl2br($text);
$all_text="<strong>$title</strong><p>$text";
}
else if (!empty($_GET['hours_reminder_id'])) {
$hours_reminder_id=(int)$_GET['hours_reminder_id'];
$data=$base_instance->get_data("SELECT * FROM {$base_instance->entity['REMINDER']['HOURS']} WHERE ID=$hours_reminder_id AND user=$userid");
$title=$data[1]->title;
$text=$data[1]->text;
$text=convert_square_bracket($text);
$text=nl2br($text);
$all_text="<strong>$title</strong><p>$text";
}
else if (!empty($_GET['date_reminder_id'])) {
$date_reminder_id=(int)$_GET['date_reminder_id'];
$data=$base_instance->get_data("SELECT * FROM {$base_instance->entity['REMINDER']['DATE']} WHERE ID=$date_reminder_id AND user=$userid");
$title=$data[1]->title;
$text=$data[1]->text;
$text=convert_square_bracket($text);
$text=nl2br($text);
$all_text="<strong>$title</strong><p>$text";
}
$html_instance->add_parameter(
array(
'TEXT'=>$all_text
));
$html_instance->process();
?>