-
Notifications
You must be signed in to change notification settings - Fork 1
/
list.php
583 lines (546 loc) · 22.8 KB
/
list.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
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
<?php
/*
Copyright (c) 2007 Dave Menconi
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* $Id: list.php,v 1.20 2007/12/04 06:16:50 dmenconi Exp $ */
/**
* ListData
* PARAMETERS
* $link: active link to a database
* $fieldinfo array of field data
Each field has 2 variables, "title" and "field".
"field" is the field name in the database (and, also, in the form)
"title" is the name it's to be displayed by
* $dbinfo This has several pieces of information in it.
-- collectively the filter information is so that the user can select one field in the data to filter on
- filter = is the name of the field that the user can filter on (a field in the filtertable table)
- filtertable = is the table that has the possible values in this field
- filterfield = is the field in the table that contains the names we're going to filter on
- filtertableidfield = is the name of the field in the table that contains the unique unary index
- index = is the unary index that we're going to use for editing a specific record -- it must be unique!
-- collectively = the next few things are for doing a mysql select; necessary because the logic of the list will need to change the select
- fieldnames: = the fields we want to extract from the database
- tablenames = the tables that we want to get
- where = the pieces of the where clause; these will all be put together by ands
- order = the order you want in the select by default -- this will be overridden by the sort so I'm not sure it's useful
* $displayinfo
- mastertitle = the title that the page should have SHOULD NOT contain "list"
- actionkeyword = the name of the parameter that causes this page to be displayed
- listname = the value of the keyword that causes this to be displayed
- addname = the value of the action url variable that will result in an add
- editname = the keyword to use to get something to be editd
- editfield = one of the columns in the displayed table will have links to edit the field; this is the name of the field we want to put the edit link on
- editindexkeyword = the name of the url keyword that we will use for the index (how about "indexno")
- editindexfield = the name of the field whose value is the index
- menu = a menu string (in html) that we'll display at the top of the page to allow people to find other parts of the system
- css = the url of the css file
thus <a href=$self?$actionkeyword=$editname&$editindexkeyword=$database[$editindexfield]> {editname}</a>
- color: the background color of the page
* $PARAMS the get and post parameters
* $PageLengths a list of the possible page lengths that you want; it has good defaults
*/
/*
********* BUGS TODO ********
no alpha menu (?)
//TODO gamesname and typename are sometimes undefined so they need to be isset checked
//TODO at one point $pagelenidx had a value of 25 which it should never have
//TODO alphamenu is used so it needs to be defined or removed
*/
function ListData($link,$fieldinfo,$dbinfo,$displayinfo,$PARAMS,$PageLengths=""){
debug_string("==== ListData() ====");
//================= Define Some Constant Tables ======================
// define table headings and field names
if ($PageLengths=="")$PageLengths = array(25,50,75,100,200,300);
$listkeywords = array("first","page","sort","filtervalue");
$listdefaults = array("first"=>"0","page"=>"25", "sort"=>"0", "filtervalue"=>"0");
//================= Get the display parameters ========================
debug_string("================= Get the display parameters ========================");
$mastertitle = $displayinfo['mastertitle'];
$color = $displayinfo['color'];
$listname = $displayinfo['listname'];
$actionkeyword = $displayinfo['actionkeyword'];
$addname = $displayinfo['addname'];
$self=$_SERVER['PHP_SELF'];
$url = $self."?".$actionkeyword."=".$listname;
$editname = $displayinfo['editname'];
$editfield = $displayinfo['editfield'];
$editindexkeyword = $displayinfo['editindexkeyword'];
$editindexfield = $displayinfo['editindexfield'];
$menu = '<b><center>'. "<a href=\"$self?$actionkeyword=$addname\">Add Record</a> ". '</center></b>';
//debug_string("actionkeyword",$actionkeyword);
//debug_string("listname",$listname);
if (isset($displayinfo['menu'])) $menu = $displayinfo['menu'];
if (isset($displayinfo['css'])) $css = $displayinfo['css'];
//================= get the list parameters =======================
//debug_string("//================= get the list parameters =======================");
$cookiename = $dbinfo['tablenames'][0]."ListParams";
//debug_string("cookiename",$cookiename);
//debug_array("listkeywords",$listkeywords);
foreach ($listkeywords as $i => $keyword){
if(isset($PARAMS[$keyword])) {
$listparams[$keyword]=$PARAMS[$keyword];
//debug_string("$keyword",$listparams[$keyword]);
}
else if(isset($_COOKIE[$cookiename])){
//debug_string("cookie set ");
$listparams[$keyword]=$_COOKIE[$cookiename][$i];
//debug_string("$keyword",$listparams[$keyword]);
}else{
//debug_string("default ");
$listparams[$keyword]=$listdefaults[$keyword];
//debug_string("$keyword",$listparams[$keyword]);
}
$thiscookie = $cookiename."[".$i."]";
//debug_string("thiscookie",$thiscookie);
setcookie($thiscookie,$listparams[$keyword],0);
}
//debug_array("listparams",$listparams);
//debug_string("end of list parameters");
// get the list of filternames
//================= Get Data From filter Table ====================
$filterflag = true;
if (!isset($dbinfo['filtertable'])) $filterflag=false;
if ($filterflag){
$filtersql = "select * from ". $dbinfo['filtertable'];
// debug_string("filtersql",$filtersql);
$data = MYSQLGetData($link,$filtersql);
$idfield = $dbinfo['filtertableidfield'];
$filterfield = $dbinfo['filterfield'];
foreach($data as $value){
// debug_array("value",$value);
$filterdata[$value[$idfield]] = $value[$filterfield];
}
}
// debug_array("data",$data);
// debug_string("idfield",$idfield);
// debug_string("filterfield",$filterfield);
// debug_array("filterdata",$filterdata);
//================= Get Data From Database =======================
$order = $dbinfo['order'];
$order[] = $fieldinfo[$listparams['sort']]['field'];
$where = $dbinfo['where'];
$filtervalue = $listparams['filtervalue'];
if (isset($filterdata[$filtervalue])){//if we're looking for a value that exists...
$where[] = $dbinfo['filter'].'='.$listparams['filtervalue'];
}
$records = MYSQLComplexSelect($link, $dbinfo['fieldnames'],$dbinfo['tablenames'],$where,$order,0);
$recordcount = count($records);
if ($recordcount<1){
foreach ($listkeywords as $i => $keyword){
$thiscookie = $cookiename."[".$i."]";
setcookie($thiscookie,"",time()-60);
}
Display_Generic_Header("$mastertitle List",$color,$css);
print " <div class=\"listpage\"><center>\n<h1>$mastertitle Display Page</h1></center>\n <center><b>No Records Found</b></center>\n<center><a href=\"$self?$actionkeyword=$listname\">Return to List</a></div>\n";
return;
}
//TODO alphamenu is used so it needs to be defined or removed
//$alphamenu = alphalist($records);
//================= Calculate paging information ======================
// $end -- we're at the end of the file, there is no next
// $start -- we're at the start of the file, there is no start
// $pagelen -- how many line show on a page
// $firstline -- the first lines to show on the page
// $lastline -- the last line to show on the page
// $prevline -- if the user clicks on "previous", what's the first line going to be?
// $nextline -- if the user clicks on "next" what's the first line going to be?
// $pagelist -- array of line starts and ends for page menu
// $pagemenu -- actual page menu in HTML
// $startline -- first line of the firt page
// $endline -- first line of thelast page
$firstline = $listparams['first'];
$pagelenidx = $listparams['page'];
//TODO at one point $pagelenidx had a value of 25 which is should never have
$pagelen = $PageLengths[$pagelenidx];
$end = false;
$start = false;
if ($pagelen<=25) $pagelen=25;
if ($firstline<0) $firstline=0;
if ($pagelen>$recordcount) $pagelen=$recordcount;
$lastline = $firstline+$pagelen-1;
if ($lastline>$recordcount) $lastline=$recordcount;
if ($lastline >= $recordcount-$pagelen)$end=true;
if ($firstline == 0) $start = true;
$prevline = $firstline-$pagelen;
if ($prevline<0) $prevline=0;
$nextline = $firstline+$pagelen;
if ($nextline>$recordcount)$nextline=$recordcount;
$endline = $recordcount-$pagelen+1;
$startline = 0;
$previousparams = "first=$prevline";
$firstparams = "first=$startline";
if (!$start){
$prevhtml = "<a href=\"$url&".$previousparams."\">Previous</a>";
$firsthtml = "<a href=\"$url&".$firstparams."\">First</a>";
} else {
$prevhtml = " ";
$firsthtml = " ";
}
$nextparams = "first=$nextline";
$lastparams = "first=$endline";
if (!$end) {
$nexthtml = "<a href=\"$url&".$nextparams."\">Next</a>";
$lasthtml = "<a href=\"$url&".$lastparams."\">Last</a><br>";
} else {
$nexthtml = " ";
$lasthtml = " <br>";
}
// page menu calculations
$totalpages = intval($recordcount/$pagelen)+1;
$p=1;
//$pagemenu ="Pages: ";
$pagemenu = "";
for($l=0;$l<$recordcount;$l+=$pagelen){
$pagelist[$p]['start'] = $l;
$pagelist[$p]['end']= $l+$pagelen-1;
if($firstline>=$l && $firstline<=$l+$pagelen-1){
$currentpage=$p;
$pagemenu .= " $p ";
}else{
$pagemenu .= " <a href=\"$url&first=$l\">$p</a> ";
}
$p++;
}
//======================== Draw Screen ===========================
Display_Generic_Header("$mastertitle List",$color,$css);
print " \n<div class=\"listpage\"> \n";
//WriteBody($firstline,$lastline);
//debug_string("listparams[filtervalue]",$listparams['filtervalue']);
if ($filterflag){
//debug_string("filterflag set");
//create filter pulldown menu
$filteroption = " <b>Filter by:</b> <select name=\"filtervalue\"><option value=\"0\">All";
foreach($filterdata as $id=>$name){
//debug_string("id $id",$name);
$optionname = $name;
$optionvalue = $id;
$filteroption .= "<option value=\"".$optionvalue."\"";
if($listparams['filtervalue']==$id)$filteroption .= " selected ";
$filteroption .= ">".$optionname;
}
$filteroption .= '</select>';
$filteroption .= '<input type="hidden" name="first" value="0">';
}
//create sort pulldown menu
$sortoption = " <b>Sort by:</b> <select name=\"sort\">";
for ($i=0;$i<count($fieldinfo);$i++){
$sortoption .= "<option value=\"".$i."\"";
if($listparams['sort']==$i)$sortoption .= " selected ";
$sortoption .=">" . $fieldinfo[$i]['title'];
}
$sortoption .= '</select>';
// create heading
$headings = "";
for ($i=0;$i<count($fieldinfo);$i++){
$headings .= "<td><center><b><a href=\"$url&sort=" . $i . "\">" . $fieldinfo[$i]['title'] . "</b></font></a></td>";
}
//create page length pulldown menu
$pageoption = " <b>Page Size:</b> <select name=\"page\">";
foreach ($PageLengths as $index => $lines){
$pageoption .= "<option value=\"".$index."\"";
if($listparams['page']==$index)$pageoption .= " selected ";
$pageoption .= ">" . $lines;
}
$pageoption .= '</select>';
//TODO gamesname and typename are sometimes undefined so they need to be isset checked
$usermayedit = true;
// create record list html
$datalist = "";
for($i=$firstline;$i<=$lastline;$i++){
if (fmod($i,2)==0)$class=" class=\"odd\" ";
else $class=" class=\"even\" ";
// modify the record information before we try to output it (hey, that's cheating!)
//$records[$i]['rawname'] = $records[$i]['gamesname'];
if($records[$i][$editfield]=="")$records[$i][$editfield]=" ";
$records[$i][$editfield] = "</center><a href=\"$self?$actionkeyword=$editname&$editindexkeyword=" . $records[$i][$editindexfield] . "\">" . $records[$i][$editfield]. "</a>";
if ($usermayedit)$records[$i]['gamesname'] .= "<font size=-2><i>Edit</font></i></a>";
//$records[$i]['gamesname'] .= "</i></a>";
/*if (isset($records[$i]['description'])){
$records[$i]['description'] = substr($records[$i]['description'],0,60);
} else {
$records[$i]['description'] = " ";
}
*/
// now step through the fields and output information
$datalist .= "<tr $class>\n";
for($j=0;$j<count($fieldinfo);$j++){
if(!isset( $records[$i][$fieldinfo[$j]['field']])){
$records[$i][$fieldinfo[$j]['field']]=" ";
}
$datalist .= "\t<td>" . $records[$i][$fieldinfo[$j]['field']] . " </td>\n";
}
if($records[$i]['typename']=="Raw"){
$datalist .= "\t<td><a href=\"http://clusty.com/search?tb=firefox-1.0.3&query=".$records[$i]['rawname']."\"><font size=-2><i>Web Search</i></font></a></td>";
}
$datalist .= "</tr>\n\n";
} //for($i)
//debug_string("actionkeyword",$actionkeyword);
//debug_string("listname",$listname);
echo <<< EOF
<center><h1>$mastertitle Display Page</h1></center>
<div class="listmenu">
$menu
</div>
<center><h2>Display Settings</h2></center>
<div class="listpagecontrols">
<center> <FORM action="$self" method="get">
<input type="hidden" name="$actionkeyword" value="$listname">
$sortoption
$filteroption
$pageoption
<input type="submit" value="Display">
</form>
</div>
</center>
<center>
<div class="listsubtitle">
<center><font size=+2><b>$mastertitle List </b></font></center>
<center><font size=+1> <i>($recordcount lines)</i></font></h2></center>
</div>
</center>
<center>
<div class="listpagemenu">
$alphamenu<br>
<center>$firsthtml $prevhtml $pagemenu $nexthtml $lasthtml</center>
</div>
</center>
<center><table border=1>
<tr>
$headings
</tr>
$datalist
</table>
</center>
<center>$firsthtml $prevhtml $nexthtml $lasthtml</center>
<br><br>
EOF;
}
function alphalist($companies){
$alpha=array();
for ($i=count($companies)-1;$i>=0;$i--){
$name=ucfirst($companies[$i]['name']);
$initial = substr($name,0,1);
$alpha[$initial] = $i;
}
asort($alpha);
$alphamenu = "";
foreach ($alpha as $initial=>$count){
$alphamenu .= "<a href=\"$url&first=$count\">$initial</a> ";
}
return($alphamenu);
}
/**
*
*/
function ParseAddRecord($link,$tablename,$params,$defaults=array()){
// set up empty lists, start as first
$valuelist = "";
$fieldlist = "";
$first = true;
// step through defaulst and add them to params as necessary
foreach($defaults as $name=>$value){
if(!isset($params[$name])) $params[$name]=$value;
}
// step through params and build sql field list and valuelist for insert
foreach($params as $name=>$value){
if($name=="mode")continue;//skip mode param
// after first time we need commas for the SQL statement
if (!$first){
$valuelist.=",";
$fieldlist.=",";
} else {
$first =false;
}
//add the name/value pair to the value list and field list for SQL statement
$valuelist .= "'".$value."'";
$fieldlist .= $name;
}//foreach
// create insert statement
$sql = "insert $tablename ($fieldlist) values ($valuelist)";
// do it.
mysql_insert($link,$sql,true);
}//function Parse...
/**
*
*/
function AddRecord($link,$tablename,$datanames,$mode){
$fieldnames = array_keys($datanames);
$result .= "<center><h2>Add Record</h2></center>\n";
$result .= " <FORM action=\"index.php\" method=\"post\">\n";
$result .= " <input type=\"hidden\" name=\"mode\" value=\"$mode\">\n";
$result .= " <input type=\"submit\" value=\"Add\">\n";
$result .= " <table border=0>\n";
foreach($datanames as $name=>$title){
$result .= " <tr><td><b>$title</b></td><td> <input type=\"text\" name=\"$name\" size=\"50\"></td></tr>\n";
}// foreach
$result .= " </table>\n";
$result .= " <input type=\"submit\" value=\"Add\">\n";
$result .= " </form>\n";
return $result;
}
/**
*
* $link - a live link to a mysql database
* $tablename - the name of the table we're editing
* $idname - field name of the record id
* $params - get/put params from the web field
*/
function ParseEditRecord($link,$tablename,$idname,$params,$defaults=array()){
//debug_string("ParseEditRecord($tablename,$idname)");
$valuelist = "";
$first = true;
// step through defaulst and add them to params as necessary
foreach($defaults as $name=>$value){
if(!isset($params[$name])) $params[$name]=$value;
}
foreach($params as $name=>$value){
if($name=="mode")continue;//skip mode param // TODO: change this to a variable
if($name==$idname){
$recordid=$value;
continue;
}//if
if (!$first) $valuelist.=",";
else $first =false;
$valuelist .= $name."='".$value."'";
}//foreach
$sql = "update $tablename set $valuelist where $idname='$recordid'";
mysql_update($link,$sql,true);
}//function Parse...
/**
* EditRecord - returns a form to edit a record
* This routine creates a string that contains a form that will allow the user to edit the data in the record
* and then pass the data back to the calling program via post;
* that program must look for mode=$mode in the post data
* and then pass that data on to the ParseEditRecord() routine so the data can be updated.
* $link - connection to the mysql database
* $tablename - name of the table we're getting the record from.
* $idname - field name of the unique identifiyer of this records
* $recordid - id value of the record we're to edit
* $datanames - associative array: the keys are the names of fields in the database, the data are the titles you want shown in the form
* $mode - what to set the mode variable to get to the code to parse the results
*/
function EditRecord($link,$tablename,$idname,$recordid,$datanames,$mode){
$self=$_SERVER['PHP_SELF'];
//debug_string("Editrecord()");
$fieldnames = array_keys($datanames);
$record = MYSQLComplexSelect($link,$fieldnames,array($tablename),array($idname."='".$recordid."' "),array(),0);
$record = $record[0];
$result .= "<center><h2>Edit Record</h2></center>\n";
$result .= " <FORM action=\"$self\" method=\"post\">\n";
$result .= " <input type=\"hidden\" name=\"mode\" value=\"$mode\">\n";
$result .= " <input type=\"hidden\" name=\"$idname\" value=\"$recordid\">\n";
$result .= " <input type=\"submit\" value=\"Update\">\n";
$result .= " <table border=0>\n";
foreach($record as $name=>$default){
$title = $datanames[$name];
$size = strlen($default)*2;
if ($size<10)$size = 10;
if ($size<50){
$result .= " <tr><td><b>$title</b></td><td> <input type=\"text\" name=\"$name\" value=\"$default\" size=\"$size\"></td></tr>\n";
} else {
$result .= " <tr><td valign=top><b>$title </b></td><td> <textarea name=\"$name\" rows=\"8\" cols=\"80\">$default</textarea></td></tr>\n";
}//else
}// foreach
$result .= " </table>\n";
$result .= " <input type=\"submit\" value=\"Update\">\n";
$result .= " </form>\n";
return $result;
}
/**
* createmenu
* This function creates a form menu based the values in a database table.
* There are two fields in the table that are relevant: the index field and the name field
* $link - a valid connection to a database
* $table - the name of the table
* $namefld - the field that has the names that will appear in the menu -- this willb e the name
* $indexfld - the unique unary index to the table; this will be the value (well, x+this number is the value)
* $selected - optional param to identify which entry is shown by default; this number must match the value in the indexfld
*/
function createmenu($link,$table,$namefld,$indexfld,$selected=-1){
//debug_string("createmenu(link,$table,$namefld,$indexfld)");
$sql = "select $namefld,$indexfld from $table order by $namefld";
$data = MYSQLGetData($link,$sql);
$menu = "<select name=\"$table\">";
foreach ($data as $rec){
$index=$rec[$indexfld];
$name = $rec[$namefld];
$menu .= '<option ';
if($selected == $index)$menu .=" selected ";
$menu .='value="x'.$index.'">'.$name.'</option>';
}
$menu.="</select>";
return $menu;
}
/*
* $Log: list.php,v $
* Revision 1.20 2007/12/04 06:16:50 dmenconi
* moved menu below title
*
* Revision 1.19 2007/12/04 05:54:57 dmenconi
* more css class tags added
*
* Revision 1.18 2007/12/03 20:09:35 dmenconi
* fixed a bug with the paging menu going wayward
*
* Revision 1.17 2007/12/03 19:18:24 dmenconi
* add odd and even classes to the list
*
* Revision 1.16 2007/12/03 01:05:41 dmenconi
* now with CSS
*
* Revision 1.15 2007/12/02 04:44:16 dmenconi
* added a description of a crucial field for filtering (the filteridfield)
*
* Revision 1.14 2007/10/08 15:44:01 dmenconi
* added code to parseedit and parseadd to handle defaults
*
* Revision 1.13 2007/07/10 15:51:11 dmenconi
* made display pulldown menus persistent & removed debug stuff
*
* Revision 1.12 2007/07/09 06:45:33 dmenconi
* added to createmenu the ability to have a default
*
* Revision 1.11 2007/06/24 00:49:14 dmenconi
* added a link to the no record page; fixed a naming problem
*
* Revision 1.10 2007/06/24 00:00:18 dmenconi
* check point
*
* Revision 1.9 2007/06/23 23:39:24 dmenconi
* fixed zero record problem, added menus
*
* Revision 1.8 2007/06/23 23:10:32 dmenconi
* checkpoint
*
* Revision 1.7 2007/06/12 21:44:28 dmenconi
* fixed numbering problem (the count was defined as count($records)-1 -- go figure!)
*
* Revision 1.6 2007/06/12 19:58:04 dmenconi
* removed another debug statement
*
* Revision 1.5 2007/06/12 18:28:43 dmenconi
* fixed case where filed we put the edit link has no characters in it.
*
* Revision 1.4 2007/06/12 00:42:20 dmenconi
* removed all comments
*
* Revision 1.3 2007/06/12 00:36:05 dmenconi
* removed $type from list.php
*
* Revision 1.2 2007/06/10 16:00:17 dmenconi
* removed all debug_ calls
*
* Revision 1.1 2007/05/11 15:51:31 dmenconi
* Initial revision
*
*/
?>