[Vtigercrm-commits] [vtiger-commits] r5711 - /vtigercrm/trunk/modules/Users/add2db.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 3 08:20:06 EDT 2006
Author: saraj
Date: Wed May 3 06:20:01 2006
New Revision: 5711
Log:
Added Javascript validation in Mail Merge - Ahmed
Modified:
vtigercrm/trunk/modules/Users/add2db.php
Modified: vtigercrm/trunk/modules/Users/add2db.php
==============================================================================
--- vtigercrm/trunk/modules/Users/add2db.php (original)
+++ vtigercrm/trunk/modules/Users/add2db.php Wed May 3 06:20:01 2006
@@ -100,23 +100,25 @@
if($errorCode == 4)
{
include('themes/'.$theme.'/header.php');
- $errormessage = "<B><font color='red'>Kindly give a valid file for upload!</font></B> <br>" ;
- echo $errormessage;
include "upload.php";
+ // $errormessage = "<B><font color='red'>Kindly give a valid file for upload!</font></B> <br>" ;
+ echo "<script>alert('Please Specify a File to Merge')</script>";
}
else if($errorCode == 2)
{
- $errormessage = "<B><font color='red'>Sorry, the uploaded file exceeds the maximum filesize limit. Please try a smaller file</font></B> <br>";
include('themes/'.$theme.'/header.php');
- echo $errormessage;
include "upload.php";
+ //$errormessage = "<B><font color='red'>Sorry, the uploaded file exceeds the maximum filesize limit. Please try a smaller file</font></B> <br>";
+ echo "<script>alert('Sorry, the uploaded file exceeds the maximum filesize limit. Please try a smaller file')</script>";
+ //echo $errormessage;
//echo $errorCode;
}
else if($errorCode == 3)
{
include('themes/'.$theme.'/header.php');
- echo "Problems in file upload. Please try again! <br>";
include "upload.php";
+ echo "<script>alert('Problems in file upload. Please try again!')</script>";
+
}
}
More information about the vtigercrm-commits
mailing list