MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
msuccess.class
Ir para a documentação deste ficheiro.
1<?php
7{
11 var $msg;
12
16 var $info;
17
21 var $href;
22
26 var $label;
27
40 function Success($info = null, $msg = null, $href = null, $label = 'Continuar')
41 {
42 $this->msg = $msg;
43 $this->info = $info;
44 $this->href = $href;
45 $this->label = $label;
46
47 if (!$this->msg)
48 $this->msg = "Success";
49
50 if (!$this->info)
51 $this->info = "Causa desconhecida";
52
53 if (!$this->href)
54 {
55 $this->href = getenv("HTTP_REFERER");
56
57 if (!$this->href)
58 $this->href = "/index.php";
59 }
60 }
61
69 function Generate()
70 {
71 echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"8\" align=\"center\" height=\"50%\">\n";
72 echo " <tr>\n";
73 echo " <td class=\"boxTitle\" colspan=\"2\">$this->msg</td>\n";
74 echo " </tr>\n";
75 echo " <tr>\n";
76 echo " <td valign=\"top\" width=\"60\"><img src=\"images/information.gif\" hspace=\"20\"></td>\n";
77 echo " <td class=\"errorText\">";
78
79 if (is_array($this->info))
80 {
81 echo "<ul>\n";
82
83 foreach ($this->info as $i)
84 echo "<li>$i</li>";
85
86 echo "</ul>\n";
87 }
88 else
89 echo $this->info;
90
91 echo "</td>\n";
92 echo " </tr>\n";
93 echo " <tr>\n";
94 echo " <td colspan=\"2\" align=\"center\">\n";
95 echo " <form><input type=\"button\" onClick=\"GotoURL('$this->href')\" value=\"$this->label\"></form>\n";
96 echo " </td>\n";
97 echo " </tr>\n";
98 echo "</table>\n";
99 }
100}
101?>
Success($info=null, $msg=null, $href=null, $label='Continuar')
Definição msuccess.class:40