Update of /cvsroot/openbash-org/openbash-org/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13020/openbash-org/modules
Modified Files:
View.php
Log Message:
Añadido método para mostrar errores.
Index: View.php
===================================================================
RCS file: /cvsroot/openbash-org/openbash-org/modules/View.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** View.php 20 Nov 2004 10:20:42 -0000 1.13
--- View.php 21 Nov 2004 11:04:36 -0000 1.14
***************
*** 6,10 ****
*/
! class view
{
/*
--- 6,10 ----
*/
! class View
{
/*
***************
*** 123,130 ****
<tr class="textoficha">
<td><?=$login_language['login']?></td>
! <td><input type="text" name="login" class="textfield" maxlength="20"></td>
<td><?=$login_language['passwd']?></td>
! <td><input type="password" name="passwd" class="textfield" maxlength="20"><td>
! <td><input type="submit" name="submit" class="submit" value="<?=$login_language['submit']?>"></td>
</tr>
</table>
--- 123,130 ----
<tr class="textoficha">
<td><?=$login_language['login']?></td>
! <td><input type="text" name="login" class="textfield" maxlength="20" /></td>
<td><?=$login_language['passwd']?></td>
! <td><input type="password" name="passwd" class="textfield" maxlength="20" /><td>
! <td><input type="submit" name="submit" class="submit" value="<?=$login_language['submit']?>" /></td>
</tr>
</table>
***************
*** 134,136 ****
--- 134,149 ----
}
+
+ /*
+ * function related to errors
+ */
+
+ function show_error($msg)
+ {
+ global $errors;
+ ?>
+ <span style="error"><?=$errors['$msg']?></span>
+ <?php
+
+ }
}
|