forked from loadmybowl/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ic_send_money.php
106 lines (88 loc) · 3.84 KB
/
ic_send_money.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
session_start();
ob_start();
require_once('check-login.php');
include_once 'header-logged-in.php';
?>
<script src="js/yourcoin.js" type="text/javascript"></script>
<script>
function myTimer() {
getNativeCurrencyBalance('txtMyAddress', 'pWalletBalance');
}
window.onload = function(){ myTimer(); setInterval(myTimer, 10000); };
</script>
<div class="container theme-showcase" role="main">
<h2>Account Overview:</h2>
<br>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-4">
<div class="row">
<label><strong>Your Wallet Address</strong></label>
</div>
<div class="row">
<input id="txtMyAddress" type="text" class="form-control" size=45 value="<?php echo $_SESSION['address'] ?>" readonly="readonly" />
</div>
</div>
<div class="col-md-1"></div>
<div class="col-md-2">
<div class="row">
<label><strong>Your User name</strong></label>
</div>
<div class="row">
<input id="txtMyUserName" type="text" class="form-control" size=45 value="<?php echo $_SESSION['user_name'] ?>" readonly="readonly" />
</div>
</div>
<div class="col-md-1"></div>
<div class="col-md-2">
<strong>Balance</strong> - <b><label id="pWalletBalance"></label></b>
</div>
</div><br/>
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<section class="panel panel-primary">
<header class="panel-heading">
<h2 class="panel-title">Send UniBit with Message</h2>
</header>
<div class="panel-body">
<form>
<div class="row form-group">
<label class="col-sm-3 control-label"><strong>Send to </strong></label>
<div class="col-sm-9">
<input id="txtToAddrSWM" type="text" placeholder="Enter recipient's address or user name" class="form-control" value="" size=50 />
</div>
</div>
<br/>
<div class="row form-group">
<label class="col-sm-3 control-label"><strong>Message </strong></label>
<div class="col-sm-9">
<textarea id="txtMessageSWM" name="txtMessageSWM" rows="5" class="form-control" placeholder="Send a message" required></textarea>
</div>
</div>
<br/>
<div class="row form-group">
<label class="col-sm-3 control-label"><strong>UniBit </strong></label>
<div class="col-sm-9">
<input id="txtUnitsSWM" type="number" step="any" placeholder="" class="form-control" value="1" width=30 />
</div>
</div>
<br/>
<div class="row form-group">
<div class="col-sm-9">
<input type="reset" class="mb-xs mt-xs mr-xs btn btn-primary" onclick="sendMetadataToAddress('txtMyAddress', 'txtToAddrSWM', 'txtMessageSWM', 'txtUnitsSWM', this, 'outputSWM');" value="Send">
</div>
</div><br/><br/>
<div id="outputSWM" class="appear-animation bounceIn appear-animation-visible">
</div>
</form>
</div>
</section>
</div>
<div class="col-md-1"></div>
</div>
</div>
<?php
include_once 'footer.php';
ob_end_flush();
?>