-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·103 lines (102 loc) · 5.12 KB
/
index.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
<?php
/**
* @version 1.0.0
* @package mobileid-helper
* @copyright Copyright (C) 2012. All rights reserved.
* @license Licensed under the Apache License, Version 2.0 or later; see LICENSE.md
* @author Swisscom (Schweiz) AG
*/
define('__ROOT__', dirname(__FILE__));
require_once(__ROOT__.'/helpers/app.php');
require_once(__ROOT__.'/helpers/mobileid-helper.php');
$app = new mobileid_app();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo $app->getText('TITLE'); ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="assets/css/bootstrap-responsive.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="assets/css/custom.css" type="text/css" media="screen" />
</head>
<body>
<div id="container">
<h1><img src="./assets/img/mobileid-logo-square.png" hight="40" width="40" style="vertical-align:bottom"> <font><?php echo $app->getText('APP_TITLE'); ?></font></h1>
<form id="mid_form" class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="mid_phone"><strong><?php echo $app->getText('APP_PHONE'); ?></strong></label>
<div class="controls">
<input type="tel" id="mid_phone" required />
</div>
</div>
<div class="control-group">
<label class="control-label" for="mid_profile"><strong><?php echo $app->getText('APP_PROFILE'); ?></strong></label>
<div class="controls" id="mid_profile_zone">
<label class="radio">
<input type="radio" name="mid_profile" id="mid_profile_authprofile1" value="http://mid.swisscom.ch/MID/v1/AuthProfile1" checked/>
<?php echo $app->getText('APP_PROFILE_1'); ?>
</label>
<label class="radio">
<input type="radio" name="mid_profile" id="mid_profile_stk" value="http://mid.swisscom.ch/STK-LoA4"/>
<?php echo $app->getText('APP_PROFILE_2'); ?>
</label>
<label class="radio">
<input type="radio" name="mid_profile" id="mid_profile_device" value="http://mid.swisscom.ch/Device-LoA4"/>
<?php echo $app->getText('APP_PROFILE_3'); ?>
</label>
<label class="radio">
<input type="radio" name="mid_profile" id="mid_profile_any" value="http://mid.swisscom.ch/Any-LoA4"/>
<?php echo $app->getText('APP_PROFILE_4'); ?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="mid_lang"><strong><?php echo $app->getText('APP_LANG'); ?></strong></label>
<div class="controls" id="mid_lang_zone">
<label class="radio">
<input type="radio" name="mid_lang" id="mid_lang_de" value="de" <?php if ($app->language == 'de') { ?>checked<?php } ?> />
<?php echo $app->getText('APP_LANG_1'); ?>
</label>
<label class="radio">
<input type="radio" name="mid_lang" id="mid_lang_fr" value="fr" <?php if ($app->language == 'fr') { ?>checked<?php } ?> />
<?php echo $app->getText('APP_LANG_2'); ?>
</label>
<label class="radio">
<input type="radio" name="mid_lang" id="mid_lang_it" value="it" <?php if ($app->language == 'it') { ?>checked<?php } ?> />
<?php echo $app->getText('APP_LANG_3'); ?>
</label>
<label class="radio">
<input type="radio" name="mid_lang" id="mid_lang_en" value="en" <?php if ($app->language == 'en') { ?>checked<?php } ?> />
<?php echo $app->getText('APP_LANG_4'); ?>
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="mid_msg"><strong><?php echo $app->getText('APP_MESSAGE'); ?></strong></label>
<div class="controls controls-row">
<?php echo mobileid_helper::getServiceProvider(); ?>:
<input type="text" id="mid_msg" class="input-xxlarge" maxsize="150" placeholder="<?php echo mobileid_helper::getDefaultMsg($app->language); ?>"<?php if (!mobileid_helper::getMsgAllowEdit()) { ?> enabled<?php } ?>>
</div>
</div>
<div class="form-actions">
<input type="button" value="<?php echo $app->getText('APP_SUBMIT_BTN_REMOVE'); ?>" class="btn" id="submit_btn_remove" />
<input type="button" value="<?php echo $app->getText('APP_SUBMIT_BTN_SEND'); ?>" class="btn" id="submit_btn_send" />
</div>
<input type="hidden" value="<?php echo $app->language; ?>" id="mid_lang_default" />
</fieldset>
</form>
<div id="msg_wait" class="alert alert-block"><img src="assets/img/ajax-loader.gif" alt="<?php echo $app->getText('APP_SUBMIT_WAIT_ALT'); ?>" title="<?php echo $app->getText('APP_SUBMIT_WAIT_ALT'); ?>" /> <?php echo $app->getText('APP_SUBMIT_WAIT_MSG'); ?></div>
<div id="msg_error" class="error"><?php echo $app->getText('APP_ERROR_MOBILE_INVALID'); ?></div>
<div id="msg_result"></div>
</div>
<script type="text/javascript" src="assets/js/jquery/jquery-1.8.3.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="assets/js/jquery/html5placeholder.jquery.js"></script>
<![endif]-->
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/mobileid.js"></script>
</body>
</html>