fixed admin_search_lead to allow for more than 10 digit phone numbers
added web_form_forward.php script to help with forwarding agents to other pages with custom variables git-svn-id: svn://192.168.202.10@899 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -109,7 +109,7 @@ if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
|
||||
echo "<form method=post name=search action=\"$PHP_SELF\">\n";
|
||||
echo "<input type=hidden name=DB value=\"$DB\">\n";
|
||||
echo "<b>Please enter a:<br> Vendor ID(vendor lead code): <input type=text name=vendor_id size=10 maxlength=10> or \n";
|
||||
echo "<br><b>a Home Phone Number: <input type=text name=phone size=10 maxlength=10> or\n";
|
||||
echo "<br><b>a Home Phone Number: <input type=text name=phone size=20 maxlength=16> or\n";
|
||||
echo "<br><b>a lead ID: <input type=text name=lead_id size=10 maxlength=10> <br><br>\n";
|
||||
echo "<input type=submit name=submit value=SUBMIT></b>\n";
|
||||
echo "</form>\n</center>\n";
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?
|
||||
# web_form_forward.php - custom script forward agent to web page and alter vars
|
||||
#
|
||||
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# You will need to customize this to your needs
|
||||
#
|
||||
# CHANGELOG:
|
||||
# 80626-1121 - First Build
|
||||
#
|
||||
|
||||
if (isset($_GET["phone_number"])) {$phone_number=$_GET["phone_number"];}
|
||||
if (isset($_GET["source_id"])) {$source_id=$_GET["source_id"];}
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
$stmt="SELECT full_name from vicidial_users where user='$user';";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$fullname=$row[0];
|
||||
|
||||
$URL = "http://astguiclient.sf.net/test.php?userid=$user&phone=$phone_number&Rep=$fullname&source_id=$source_id";
|
||||
|
||||
header("Location: $URL");
|
||||
#exit;
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>Group1</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$URL\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo"<BODY BGCOLOR=#FFFFFF marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo"<a href=\"$URL\">click here to continue. . .</a>\n";
|
||||
echo"</BODY></HTML>\n";
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user