]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/external_packages/phplot/examples/test_setup.php
commit changes
[bacula/bacula] / gui / bacula-web / external_packages / phplot / examples / test_setup.php
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <!-- $Id$ -->
3 <html>
4 <head>
5    <title>PHPlot graphic formats test</title>
6    <link type="text/css" rel="stylesheet" href="../doc/style.css" />
7 </head>
8 <body>
9
10 <div class="nav"> [ <a href="../doc/index.html">Go to the index</a> ] </div>
11
12 <h2>PHPlot test graph form</h2>
13
14 <p>Use this form to test many different options of PHPlot. You can test
15 every graph type supported for any of four different data types. You can
16 tweak as you like or you can leave everything as is and press "Submit" for
17 <h2>PHPlot graphic formats test</h2>
18
19 <p>
20 This page will test which graphic formats are supported by the version of GD 
21 linked into PHP. You should see at least one of the four images below. 
22 </p>
23
24 <center>
25 <table>
26 <tr><td class="hdr">PNG graphics</td></tr>
27 <tr><td>
28 <?php
29     if (! imagetypes() & IMG_PNG )  
30         echo "PNG NOT ENABLED";
31     else
32             echo "<img src=\"inline_image.php?which_format=png&which_title=YES_PNG_IS_ENABLED\" />";
33     
34 ?>
35 </td></tr>
36 <tr><td class="hdr">JPEG graphics</td></tr>
37 <tr><td>
38 <?php
39     if (! imagetypes() & IMG_JPG )
40         echo "JPEG NOT ENABLED";
41     else
42             echo "<img src=\"inline_image.php?which_format=jpg&which_title=YES_JPG_IS_ENABLED\" />";
43 ?>
44 </td></tr>
45 <tr><td class="hdr">GIF graphics</td></tr>
46 <tr><td>
47 <?php
48     if (! imagetypes() & IMG_GIF)
49             echo "GIF NOT ENABLED";
50     else
51             echo "<img src=\"inline_image.php?which_format=gif&which_title=YES_GIF_IS_ENABLED\" />";
52 ?>
53 </td></tr>
54 <tr><td class="hdr">BMP graphics</td></tr>
55 <tr><td>
56 <?php
57     if (! imagetypes() & IMG_WBMP)
58             echo "BMP NOT ENABLED";
59     else
60             echo "<img src=\"inline_image.php?which_format=wbmp&which_title=YES_WBMP_IS_ENABLED\" />";
61 ?>
62 </td></tr>
63 </table>
64 </center>
65
66 </body>
67 </html>