Update of /cvsroot/jaws-project/jaws/html/gadgets/Chatbox/languages/en
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16705/languages/en
Modified Files:
	Chatbox.php 
Log Message:
Done!, compatible with Jaws 0.5
 * Debug done
 * Translation done
 * Errors are handled by JawsError
Index: Chatbox.php
===================================================================
RCS file: /cvsroot/jaws-project/jaws/html/gadgets/Chatbox/languages/en/Chatbox.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Chatbox.php	17 Mar 2005 01:02:01 -0000	1.5
--- Chatbox.php	17 Mar 2005 07:26:45 -0000	1.6
***************
*** 34,58 ****
  define ("_EN_CHATBOX_ERROR_ENTRY_NOT_DELETED","There was a problem deleting the entry.");
  define ("_EN_CHATBOX_ERROR_SETTINGS_NOT_UPDATED","There was a problem saving your settings.");
- 
- function GetCustomers ()
- {
- 	$sql = "SELECT id, name, lastname FROM [[customer]]";
- 	$rs = $GLOBALS["app"]->DB->Execute ($sql);
- 	if ($rs)
- 		return true;
- 	else
- 		return new JawsError (_t("_GLOBALS_ERROR_QUERY_FAILED", "GetCustomers"));
- }
- 
- function UpdateCustomer ($id, $name, $lastname)
- {
-    $sql = "UPDATE [[customer]] SET name = {name}, lastname = {lastname} 
-            WHERE id = {id}";
-    $rs = $GLOBALS["app"]->DB->Execute ($sql, array ("name" => $name,
- 													"lastname" => $lastname));
-    if ($rs)
- 	   return $rs->GetRows ();
-    else
- 	   return new JawsError (_t("_CUSTOMER_ERROR_COULD_NOT_UPDATE_CUSTOMER"));
- }
  ?>
--- 34,36 ----
 |