Как вставить рисунок в стартовую страницу | Ubiquiti форум UBNT: инструкции, настройка

Как вставить рисунок в стартовую страницу

intra-yes

новичок
4 Окт 2016
3
0
3
56
UniFi 5.2.7 Settings ►Guest Control►Portal Customization►Template Engine► стоит точка на Legacy JSP
Есть файл рисунка : D:\pic.jpg
Контроллер установлен на том же компе, где находится pic.jpg .
Как вставить рисунок pic.jpg на гостевую страницу ввода кода ваучера?
Насколько понимаю надо редактировать файл index.html
Куда прописать путь D:\pic.jpg в файле index.html ?
Вот index.html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title><unifi txt="WelcomePage.Title" /></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<unifi url="reset-min.css"/>" />
<link rel="stylesheet" type="text/css" href="<unifi url="styles.css"/>" />
<script type="text/javascript" src="<unifi url="js/jquery.min.js"/>"></script>
<script type="text/javascript" src="<unifi url="js/guest.js"/>"></script>
</head>
<body class="login-page">
<!-- see README.txt for HTML customization instructions -->
<div class="page-content" style="padding-top:100px;">
<div class="login-content content-box">
<unifi if="auth_hotspot">
<unifi if="payment_enabled">
<form name="input" method="post" action="">
<h2>Please select the package of your choice</h2>
<div class="options-box">
<input type="radio" value="1" name="package" id="package-1" checked="checked" /><label for="package-1">8-Hour Pass - $5.99</label>
<input type="radio" value="2" name="package" id="package-2" /><label for="package-2">Day Pass $8.99</label>
</div>
<div class="form-controls">
<!-- for Paypal, we go straight to /guest/login to initiate the paypal process -->
<!--
if Pay-by-Paypal or Paypal Standard is desired
1. see http://wiki.ubnt.com/UniFi_and_Paypal_Integration
2. make the necessary changes to allow access to Paypal subnets
3. uncomment this section

<input type="hidden" name="by" value="paypal" />
<input type="submit" value="Pay by PayPal" class="button requires-tou" name="bypaypal" onclick="form.action='/guest/login';" />
-->
<!--
for credit card payment, we'll ask for more information in a separate page
Two more things:
- we pass the "package" information along using a post
- we also make sure it's using HTTPS
-->
<input type="submit" value="Pay by credit card" class="button requires-tou" name="bycredit" onclick="form.action='<unifi url="payment.html" https="true"/>';" />
</div>
</form>
</unifi>

<unifi if="voucher_enabled">
<form name="input" method="post" action="login">
<input type="hidden" name="by" value="voucher" />
<input type="hidden" name="page_error" value="index.html" />
<div class="voucher-box">
<!-- Title or Error -->
<unifi if="has_error">
<h2 class="error"><unifi error="error" /></h2>
<unifi else="has_error" />
<h2><unifi txt="UseVoucher" /></h2>
</unifi>
<fieldset class="large-text">
<p class="form-element">
<label for="voucher" class="fieldname">Voucher</label>
<input id="voucher" name="voucher" type="text" class="textInput" value="" autocomplete="off" />
</p>
</fieldset>
</div>
<div class="form-controls">
<input type="submit" value="Use Voucher" class="button requires-tou" />
</div>
</form>
</unifi>
<unifi if="payment_enabled">
<form name="input" method="post" action="login">
<h2>or try it out for free</h2>
<div class="form-controls">
<input type="hidden" name="package" value="3" />
<!--
<input type="hidden" name="landing_url" value="http://www.yourdomain.com/?ap=<unifi var="ap_mac" />" />
-->
<input type="submit" value="2-hour Free Trial" class="button requires-tou" name="byfree" />
</div>
</form>
</unifi>
</unifi>

<unifi if="auth_password">
<form name="input" method="post" action="login">
<input type="hidden" name="page_error" value="index.html" />
<div class="password-box">
<!-- Title or Error -->
<unifi if="has_error">
<h2 class="error"><unifi error="error" /></h2>
<unifi else="has_error" />
<h2><unifi txt="PasswordRequiredForWirelessAccess" /></h2>
</unifi>

<!-- password input -->
<fieldset class="large-text">
<p class="form-element">
<label for="Password" class="fieldname">Guest Password</label>
<input id="Password" name="password" type="password" class="textInput" value="" autocomplete="off" />
</p>
</fieldset>

<!-- submit -->
<div class="form-controls">
<input name="connect" type="submit" value="Connect" id="connect" class="button requires-tou" />
</div>
</div>
</form>
</unifi>
</div>

<div class="login-content content-box">
<form name="input" method="post" action="login">
<div class="tou-box">
<h2>Terms of Use</h2>
<div class="tou-wrapper" id="tou">
<div class="tou">
<p>Terms of Use</p>
<p>By accessing the wireless network, you acknowledge that you're of legal age, you have read and understood and agree to be bound by this agreement</p>
<ul>
<li>The wireless network service is provided by the property owners and is completely at their discretion. Your access to the network may be blocked, suspended, or terminated at any time for any reason.</li>
<li>You agree not to use the wireless network for any purpose that is unlawful and take full responsibility of your acts.</li>
<li>The wireless network is provided &quot;as is&quot; without warranties of any kind, either expressed or implied. </li>
</ul>
</div>
</div>
<fieldset class="accept-tou">
<input id="accept-tou" type="checkbox" checked="checked" name="accept-tou" value="yes" />
<label class="normal" >I accept the <a href="javascript:void(0)" id="show-tou">Terms of Use</a></label>
</fieldset>
<div class="form-controls">
<!-- submit (only for no authentication) -->
<unifi if="auth_none">
<input name="connect" type="submit" value="Connect" id="connect" class="button requires-tou" />
</unifi>
</div>
</div>
</form>
</div>
</div>

<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('input').keypress(function(e) {
var code = (e.keyCode ? e.keyCode : e.which);
if ( (code==13) || (code==10)) {
jQuery(this).blur();
return false;
}
});
});

$(function() {
$('#tou').hide();
$('#show-tou').click(function() {
$('#tou').show();
});
$('#accept-tou').click(function() {
if (!$('#accept-tou').checked()) {
$('input.requires-tou').disable();
}
else {
$('input.requires-tou').enable();
}
})
});
</script>

</body>
</html>
 
Автор
I

intra-yes

новичок
4 Окт 2016
3
0
3
56
Всё оказалось очень просто. Тема закрыта.