/
supportpage.php
74 lines (65 loc) · 2.94 KB
/
supportpage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
require_once("PortalConfig.php");
require_once("include/utils/utils.php");
include("language/$default_language.lang.php");
function GetForgotPasswordUI($mail_send_message='')
{
$list .= '<br><br>';
$list .= '<link rel="stylesheet" type="text/css" href="css/style.css">';
$list .= '<form name="forgot_password" action="index.php" method="post">';
$list .= '<input type="hidden" name="email_id">';
$list .= '<input type="hidden" name="param" value="forgot_password">';
$list .= '<table width="50%" border="0" cellspacing="2" cellpadding="2" align="center">';
$list .= '<tr><td class="detailedViewHeader" nowrap colspan=2 ><b>'.getTranslatedString('LBL_FORGOT_LOGIN').'</b></td></tr>';
$list .= '<tr><td colspan=2 class="dvtCellInfo"> </td></tr>';
if($mail_send_message != '')
{
$list .= '<tr><td nowrap colspan=2 class="dvtCellInfo">'.$mail_send_message.'</td></tr>';
}
$list .= '<tr><td nowrap class="dvtCellLabel" align="right">'.getTranslatedString('LBL_YOUR_EMAIL').'</td>';
$list .= '<td class="dvtCellInfo"><input class="detailedViewTextBox" type="text" name="email_id" STYLE="width:185px;" MAXLENGTH="80" VALUE=""/></td>';
$list .= '<tr><td> </td><td><input class="crmbutton small cancel" type="submit" value="'.getTranslatedString('LBL_SEND_PASSWORD').'"></td></tr>';
$list .= '</table></form>';
return $list;
}
if($_REQUEST['mail_send_message'] != '')
{
$mail_send_message = explode("@@@",$_REQUEST['mail_send_message']);
if($mail_send_message[0] == 'true')
{
$list = '<link rel="stylesheet" type="text/css" href="css/style.css">';
$list .= '<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center">';
$list .= '<tr><td class="detailedViewHeader" nowrap colspan=2 align="center"><b>';
$list .= getTranslatedString('LBL_FORGOT_LOGIN').'</b></td></tr>';
$list .= '<br><tr><td> </td></tr>';
$list .= '<tr><td class="dvtCellInfo">'.$mail_send_message[1].'</td></tr>';
$list .= '<br><tr><td> </td></tr>';
$list .= '<tr><td align="right"><a href="login.php?close_window=true"> '.getTranslatedString('LBL_CLOSE').'</a>';
$list .= '</td></tr></table>';
echo $list;
}
elseif($mail_send_message[0] == 'false')
{
$list = GetForgotPasswordUI($mail_send_message[1]);
echo $list;
}
}
elseif($_REQUEST['param'] == 'forgot_password')
{
$list = GetForgotPasswordUI();
echo $list;
}
elseif($_REQUEST['param'] == 'sign_up')
{
echo 'Sign Up..........';
}
?>