-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewquote.tpl
More file actions
206 lines (185 loc) · 6.43 KB
/
viewquote.tpl
File metadata and controls
206 lines (185 loc) · 6.43 KB
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="includes/jscript/css/ui.all.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="includes/jscript/jquery.js"></script>
<script type="text/javascript" src="includes/jscript/jqueryui.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="./templates/{$template}/static/css/select2.css">
<link rel="stylesheet" href="./templates/{$template}/static/css/bootwhmcs.css">
<link rel="stylesheet" type="text/css" href="templates/{$template}/css/quote.css">
<title>Quote #{$id} for {$clientsdetails.companyname} from {$companyname}</title>
{literal}<script>
$(document).ready(function(){
$("#quoteaccept").dialog({
autoOpen: false,
resizable: false,
width: 500,
modal: true,
buttons: {'Agree & Accept': function() {
$("#quoteacceptfrm").submit();
}}
});
});
</script>{/literal}
</head>
<body bgcolor="#efefef">
{if $error}
<p style="color:#cc0000;">{$LANG.invoiceserror}</p>
{else}
<div class="container">
<div class="row">
<div class="col-sm-6">{if $logo}<p><img src="{$logo}"></p>{else}<h1>{$companyname}</h1>{/if}</div>
<div class="col-sm-6">
{if $stage eq "Delivered"}
<font class="unpaid">{$LANG.quotestagedelivered}</font><br />
<form style="display:inline;"><input type="button" class="btn btn-default" value="{$LANG.quoteacceptbtn}" {if $accepttos}onclick="$('#quoteaccept').dialog('open')"{else}onclick="location.href='viewquote.php?id={$quoteid}&action=accept'" {/if} /></form>
<form style="display:inline;" method="post" action="dl.php?type=q&id={$quoteid}"><input type="submit" class="btn btn-default" value="{$LANG.quotedlpdfbtn}" /></form>
{elseif $stage eq "Accepted"}
<font class="paid">{$LANG.quotestageaccepted}</font><br />
{elseif $stage eq "On Hold"}
<font class="refunded">{$LANG.quotestageonhold}</font>
<form style="display:inline;"><input type="button" class="btn btn-default" value="{$LANG.quoteacceptbtn}" {if $accepttos}onclick="$('#quoteaccept').dialog('open')"{else}onclick="location.href='viewquote.php?id={$quoteid}&action=accept'" {/if} /></form>
<form style="display:inline;" method="post" action="dl.php?type=q&id={$quoteid}"><input type="submit" class="btn btn-default" value="{$LANG.quotedlpdfbtn}" /></form>
{elseif $stage eq "Lost"}
<font class="cancelled">{$LANG.quotestagelost}</font>
{elseif $stage eq "Dead"}
<font class="collections">{$LANG.quotestagedead}</font>
{/if}
</div>
</div>
{if $agreetosrequired}<p align="center" class="unpaid">{$LANG.ordererroraccepttos}</p>{/if}
<div class="row">
<div class="col-sm-6">
<strong>{$LANG.quoterecipient}</strong><br />
{if $clientsdetails.companyname}{$clientsdetails.companyname}<br />{/if}
{$clientsdetails.firstname} {$clientsdetails.lastname}<br />
{$clientsdetails.address1}, {$clientsdetails.address2}<br />
{$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br />
{$clientsdetails.country}</br></br>
</div>
<div class="col-sm-6">
<strong>{$LANG.invoicespayto}</strong><br />
{$payto}</br></br>
</div>
</div>
<div class="row">
<div class="col-sm-2 col-xs-6">
<strong>{$LANG.quotenumber}:</strong>
</div>
<div class="col-xs-6">
{$id}
</div>
</div>
<div class="row">
<div class="col-sm-2 col-xs-6">
<strong>{$LANG.quotedatecreated}:</strong>
</div>
<div class="col-xs-6">
{$datecreated}
</div>
</div>
<div class="row">
<div class="col-sm-2 col-xs-6">
<strong>{$LANG.quotevaliduntil}:</strong>
</div>
<div class="col-xs-6">
{$validuntil}
</div>
</div></br></br>
<div class="row">
<div class="col-sm-12">
<p>{$proposal}</p>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<strong>{$LANG.invoicesdescription}</strong>
</div>
<div class="col-xs-3">
<strong>{$LANG.quotediscountheading}</strong>
</div>
<div class="col-xs-3">
<strong>{$LANG.invoicesamount}</strong>
</div>
</div>
{foreach key=num item=quoteitem from=$quoteitems}
<div class="row">
<div class="col-xs-6">
{$quoteitem.description}{if $quoteitem.taxed eq "true"} *{/if}
</div>
<div class="col-xs-3">
{if $quoteitem.discount>0}{$quoteitem.discount} ({$quoteitem.discountpc}%){else} - {/if}
</div>
<div class="col-xs-3">
{$quoteitem.amount}
</div>
</div>
{/foreach}
<div class="row">
<div class="col-xs-6">
<strong><div align="right">{$LANG.invoicessubtotal}: </div></strong>
</div>
<div class="col-xs-3">
<strong> </strong>
</div>
<div class="col-xs-3">
<strong>{$subtotal}</strong>
</div>
</div>
{if $taxrate}
<div class="row">
<div class="col-xs-6">
<strong><div align="right">{$taxrate}% {$taxname}: </div></strong>
</div>
<div class="col-xs-3">
<strong> </strong>
</div>
<div class="col-xs-3">
<strong>{$tax}</strong>
</div>
</div>
{/if}
{if $taxrate2}
<div class="row">
<div class="col-xs-6">
<strong><div align="right">{$taxrate2}% {$taxname2}: </div></strong>
</div>
<div class="col-xs-3">
<strong> </strong>
</div>
<div class="col-xs-3">
<strong>{$tax2}</strong>
</div>
</div>
{/if}
<div class="row">
<div class="col-xs-6">
<strong><div align="right">{$LANG.quotelinetotal}: </div></strong>
</div>
<div class="col-xs-3">
<strong> </strong>
</div>
<div class="col-xs-3">
<strong>{$total}</strong>
</div>
</div>
{if $taxrate}<p>* {$LANG.invoicestaxindicator}</p>{/if}
{if $notes}
<p>{$LANG.invoicesnotes}: {$notes}</p>
{/if}
<br /><br /><br /><br /><br />
{/if}
</div>
<p align="center"><a href="clientarea.php">{$LANG.invoicesbacktoclientarea}</a> | <a href="dl.php?type=q&id={$quoteid}">{$LANG.quotedlpdfbtn}</a> | <a href="javascript:window.close()">{$LANG.closewindow}</a></p>
<div id="quoteaccept" title="{$LANG.quoteacceptancetitle}" style="display:none;">
<form method="post" action="{$smarty.server.PHP_SELF}?id={$quoteid}&action=accept" id="quoteacceptfrm">
<p>{$LANG.quoteacceptancehowto} <a href="{$tosurl}" target="_blank">{$tosurl}</a></p>
<p align="center"><label><input type="checkbox" name="agreetos" /> {$LANG.ordertosagreement} <a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a></label></p>
<p>{$LANG.quoteacceptancewarning}</p>
</form>
</div>
</body>
</html>