Skip to content

Commit

Permalink
charities3
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaa9 committed Sep 27, 2015
1 parent 250d7c1 commit 71a0a7e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 130 deletions.
4 changes: 1 addition & 3 deletions charities.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@
$scope.fire2 = function(input) {
var check = $scope.selection.indexOf(input);
console.log(check);
if ($scope.result == '' || check > -1) {
alert('invalid input');
} else if (check == -1 && input.name != '') {
if (check == -1 && input.name != '') {
$scope.selection.push(input);
//$scope.result = '';
} else {
Expand Down
6 changes: 3 additions & 3 deletions lib/mastercard-api-python-master/Common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from . import connector
from . import oauthparameters
from . import oauthconstants
from . import Connector
from . import OAuthParameters
from . import OAuthConstants
11 changes: 9 additions & 2 deletions lostStolenCardCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@
'''
'''
import urllib2
import sys
import httplib
xml = '''<?xml version='1.0' encoding='utf-8'?>'''
body = '''<AccountInquiry><AccountNumber>5343434343434343</AccountNumber></AccountInquiry>'''
headers = {'content-type': 'application/xml', 'content-length': '{length}'}
path = '/fraud/loststolen/v1/account-inquiry?Format=XML'
opener = urllib2.build_opener(urllib2.HTTPHandler)
request = urllib2.Request('http://dmartin.org:8026/fraud/loststolen/v1/account-inquiry?Format=XML', data=body)
request.add_header('Content-Type', 'application/xml')
request.add_header('Content-length', 1) #'{length}')
request.add_header('content-Type', 'application/xml')
#request.add_header('content-length', 8) #'{length}')
request.get_method = lambda: 'PUT'
#url = opener.open(request)
response = urllib2.urlopen(request)
Expand Down
132 changes: 10 additions & 122 deletions recommendations.html
Original file line number Diff line number Diff line change
@@ -1,122 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Charity Settings</title>

<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="css/masterStyles.css" type="text/css">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="./lib/angular-strap-master/dist/angular-strap.min.js"></script>
<script src="./lib/angular-strap-master/dist/angular-strap.tpl.min.js"></script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script>

var myApp = angular.module("myApp", ['mgcrea.ngStrap']);
myApp.controller('ctrl', function($scope, $http) {
$scope.result = '';
$scope.history = '';
$scope.category = '';
$scope.browse = ['c1','c2','c3'];
$scope.catData = ['category1', 'cat2', 'ca3'];
$scope.hisData = ['history1', 'nohistory', 'no'];


});

</script>
</head>
<body ng-app='myApp'>
<nav class="navbar navbar-default navbar-inverse" style="border-radius:0px;">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<div class="proj-name"><img src="img/mc.png" height="25px"/> Spend to Save</div>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li ><a href="index.html">Home </a> </li>
<li><a href="donations.html">Donation Manager</a> </li>
<li class="active"><a href="#">Charity Settings <span class="sr-only">(current)</span></a> </li>
</ul>
<!--<ul class="nav navbar-nav navbar-right">
<li><a href="#profile">Profile</a> </li>
<li><a href="#">Logout</a> </li>
</ul>-->
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12 intro-pic">

</div>
</div>
</div>

<form class="form-horizontal" ng-controller='ctrl'>
<div class="input-group input-group-sm">
<label>Search:</label>
<input class="form-control form-control-sm" type="text" ng-model='result' bs-options="b for b in browse" bs-typeahead>
</div>
<div class="input-group input-group-sm">
<labe>Categories</label>
<input class="form-control form-control-sm" type="text" ng-model='category' bs-options='c for c in catData' bs-typeahead>
</div>
<div class="input-group input-group-sm">
<labal>History </label>
<input class="form-control form-control-sm" type="text" ng-model='history' bs-options='d for d in hisData' bs-typeahead>
</div>
</form>

<form style="visibility: hidden">
</form>
<form>
<label>Recommendations:</label>
<div>
<iframe src="recommendations.html"></iframe>
</div>



<label>Selections: </label>

<button class="btn-default btn-sm bottomright">Save</button>
<button class="btn-default btn-sm bottomright">Cancel</button>
</form>






<hr>
<footer class="text-center">
<div class="container">
<div class="row">
<div class="col-xs-12">
<p>Copyright © 2015 BXT SENC. All rights reserved.</p>
</div>
</div>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery-1.11.2.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<script type="text/javascript"
src="https://www.simplify.com/commerce/simplify.pay.js"></script>
<button data-sc-key="YOUR_HOSTED_PAYMENTS_ENABLED_PUBLIC_KEY"
data-name="Jasmine Green Tea"
data-description="Smooth tea with a rich jasmine bouquet"
data-reference="99999"
data-amount="3000"
data-color="#12B830">
Buy Now
</button>

0 comments on commit 71a0a7e

Please sign in to comment.