forked from corretge/xdebug-trace-gui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
old.index.php
125 lines (89 loc) · 2.07 KB
/
old.index.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
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
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*
*/
/**
* include_path crtphpfwk
* @link http://code.google.com
*/
require_once 'crtml/crtml.www.class.php';
/**
* and forms
*/
require_once 'crtml/crtml.sform.php';
class www extends crtmlWWW
{
/**
* Construct a web object
*/
public function __construct()
{
/**
* standard construction
*/
parent::__construct();
/**
* Create basics elements
*/
$this->head = new crtmlHEAD();
$this->body = new crtmlBODY();
/**
* Draw title application
*/
$this->init('Xdebug Trace File Parser');
$this->drawForm();
$this->drawParse();
/**
* output its
*/
echo $this;
}
/**
* General Pourpose initialitation
*
* @param style $titol title
*/
protected function init($titol)
{
/**
* sets UTF8 as charset
*/
$this->setCharSet('utf-8');
/**
* add CSS
*/
$css = new crtmlLINK('trace.css');
$css->set_type('text/css');
$css->set_rel('stylesheet');
$this->head->addContingut($css);
$title = new crtmlTITLE($titol);
$this->head->addContingut($title);
$this->body->addContingut("<h1>{$titol}</h1>");
}
protected function drawForm()
{
$form = new sFormTable('Settings', 'xtrace');
$form->setMethod('GET');
$form->
$this->body->addContingut($form);
}
protected function drawParse()
{}
/**
* Renderize the web object
*
* @return string
*/
public function __toString()
{
$this->header();
return parent::__toString();
}
}
/**
* Instantiate the web object and print it.
*/
new www();
?>