| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/usagrantapplications.org/abot/js/ |
Upload File : |
app.controller('bodyController', function($rootScope, $scope, $http) {
$scope.setLoginForm = function ()
{
if($('#loginContainer').is(":visible"))
{
$('#loginContainer').fadeOut(200);
$rootScope.isForgot = false;
}
else
{
$('#loginContainer').fadeIn(200);
$rootScope.isForgot = false;
}
}
$scope.gsearch = {};
$scope.searchGrants = function() {
alert($scope.gsearch.keyword);
console.log($scope.gsearch);
};
});
app.controller('loginController', function($rootScope, $scope, $http) {
$scope.login = {};
$rootScope.isForgot = false;
$scope.logMeIn = function(){
$http({
method : 'POST',
url : '/layout/functions/process_login.php',
data : $.param($scope.login),
headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(function successCallback(response) {
var result = response.data.result;
if(result == "success")
{
window.location.reload();
}
else
{
$rootScope.loginError = true;
$rootScope.loginErrors = response.data.errors;
}
}, function errorCallback(response) {
//console.log(response.data.errors);
});
};
});