-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstore_select.php
More file actions
156 lines (128 loc) · 8.67 KB
/
Copy pathstore_select.php
File metadata and controls
156 lines (128 loc) · 8.67 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
<?php
ob_start();
session_start();
include ("_init.php");
// Redirect, If User Not Logged In
if (!$user->isLogged()) {
redirect(root_url() . '/index.php?redirect_to=' . url());
}?>
<!DOCTYPE html>
<html lang="<?php echo $document->langTag($active_lang);?>">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Select Store<?php echo store('name') ? ' | ' . store('name') : null; ?></title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!--Set Favicon-->
<?php if ($store->get('favicon')): ?>
<link rel="shortcut icon" href="assets/zaintechnologyinc/img/logo-favicons/<?php echo $store->get('favicon'); ?>">
<?php else: ?>
<link rel="shortcut icon" href="assets/zaintechnologyinc/img/logo-favicons/nofavicon.png">
<?php endif; ?>
<!-- All CSS -->
<?php if (DEMO || USECOMPILEDASSET) : ?>
<!-- Login Combined CSS -->
<link type="text/css" href="assets/zaintechnologyinc/cssmin/login.css" rel="stylesheet">
<?php else : ?>
<!-- Bootstrap CSS -->
<link type="text/css" href="assets/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Perfect Scroll CSS -->
<link type="text/css" href="assets/perfectScroll/css/perfect-scrollbar.css" rel="stylesheet">
<!-- Toastr CSS -->
<link type="text/css" href="assets/toastr/toastr.min.css" rel="stylesheet">
<!-- Theme CSS -->
<link type="text/css" href="assets/zaintechnologyinc/css/theme.css" rel="stylesheet">
<!-- Login CSS -->
<link type="text/css" href="assets/zaintechnologyinc/css/login.css" rel="stylesheet">
<?php endif; ?>
<!-- All JS -->
<script type="text/javascript">
var baseUrl = "<?php echo root_url(); ?>";
var adminDir = "<?php echo ADMINDIRNAME; ?>";
var refUrl = "<?php echo isset($session->data['ref_url']) ? $session->data['ref_url'] : ''?>";
</script>
<?php if (DEMO || USECOMPILEDASSET) : ?>
<!-- Login Combined JS -->
<script src="assets/zaintechnologyinc/jsmin/login.js"></script>
<?php else : ?>
<!-- jQuery JS -->
<script src="assets/jquery/jquery.min.js" type="text/javascript"></script>
<!-- Bootstrap JS -->
<script src="assets/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Perfect Scroll JS -->
<script src="assets/perfectScroll/js/perfect-scrollbar.jquery.min.js" type="text/javascript"></script>
<!-- Toastr JS -->
<script src="assets/toastr/toastr.min.js" type="text/javascript"></script>
<!-- Common JS -->
<script src="assets/zaintechnologyinc/js/common.js"></script>
<!-- Login JS -->
<script src="assets/zaintechnologyinc/js/login.js"></script>
<?php endif; ?>
</head>
<body class="login-page">
<div class="hidden"><?php include('assets/zaintechnologyinc/img/iconmin/membership/membership.svg');?></div>
<section class="login-box">
<div class="login-logo">
<div class="text">
<p>
<strong>
<?php echo trans('text_select_store'); ?>
</strong>
</p>
</div>
</div>
<?php if (isset($error_message)) { ?>
<!--begin::Alert-->
<div class="alert alert-danger d-flex align-items-center p-5">
<!--begin::Icon-->
<span class="svg-icon svg-icon-2hx svg-icon-danger me-3">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path opacity="0.3" d="M22.9558 10.2848L21.3341 8.6398C21.221 8.52901 21.1317 8.39637 21.0715 8.24996C21.0114 8.10354 20.9816 7.94641 20.9841 7.78814V5.4548C20.9826 5.13514 20.9179 4.81893 20.7938 4.52433C20.6697 4.22973 20.4887 3.96255 20.261 3.73814C20.0333 3.51374 19.7636 3.33652 19.4672 3.21668C19.1709 3.09684 18.8538 3.03673 18.5341 3.0398H16.2008C16.0425 3.04229 15.8854 3.01255 15.739 2.95238C15.5925 2.89221 15.4599 2.80287 15.3491 2.6898L13.7158 1.0448C13.2608 0.590273 12.6439 0.334961 12.0008 0.334961C11.3576 0.334961 10.7408 0.590273 10.2858 1.0448L8.64078 2.66647C8.52999 2.77954 8.39735 2.86887 8.25094 2.92904C8.10452 2.98922 7.94739 3.01896 7.78911 3.01647H5.45578C5.13612 3.01799 4.8199 3.08266 4.5253 3.20675C4.23071 3.33085 3.96353 3.51193 3.73912 3.73959C3.51471 3.96724 3.3375 4.237 3.21766 4.53335C3.09781 4.82971 3.0377 5.14682 3.04078 5.46647V7.7998C3.04327 7.95808 3.01353 8.11521 2.95335 8.26163C2.89318 8.40804 2.80385 8.54068 2.69078 8.65147L1.04578 10.2848C0.591249 10.7398 0.335938 11.3567 0.335938 11.9998C0.335938 12.6429 0.591249 13.2598 1.04578 13.7148L2.66745 15.3598C2.78051 15.4706 2.86985 15.6032 2.93002 15.7496C2.99019 15.8961 3.01994 16.0532 3.01745 16.2115V18.5448C3.01897 18.8645 3.08363 19.1807 3.20773 19.4753C3.33182 19.7699 3.5129 20.0371 3.74056 20.2615C3.96822 20.4859 4.23798 20.6631 4.53433 20.7829C4.83068 20.9028 5.14779 20.9629 5.46745 20.9598H7.80078C7.95906 20.9573 8.11619 20.9871 8.2626 21.0472C8.40902 21.1074 8.54166 21.1967 8.65245 21.3098L10.2974 22.9548C10.7525 23.4093 11.3693 23.6646 12.0124 23.6646C12.6556 23.6646 13.2724 23.4093 13.7274 22.9548L15.3608 21.3331C15.4716 21.2201 15.6042 21.1307 15.7506 21.0706C15.897 21.0104 16.0542 20.9806 16.2124 20.9831H18.5458C19.1894 20.9831 19.8066 20.7275 20.2617 20.2724C20.7168 19.8173 20.9724 19.2001 20.9724 18.5565V16.2231C20.97 16.0649 20.9997 15.9077 21.0599 15.7613C21.12 15.6149 21.2094 15.4823 21.3224 15.3715L22.9674 13.7265C23.1935 13.5002 23.3726 13.2314 23.4944 12.9357C23.6162 12.64 23.6784 12.3231 23.6773 12.0032C23.6762 11.6834 23.6119 11.3669 23.4881 11.072C23.3643 10.7771 23.1834 10.5095 22.9558 10.2848Z" fill="currentColor"/>
<path d="M12.0039 15.4998C11.7012 15.4998 11.4109 15.38 11.1969 15.1668C10.9829 14.9535 10.8626 14.6643 10.8626 14.3627V13.9382C10.8467 13.2884 10.9994 12.6456 11.306 12.0718C11.6126 11.4981 12.0627 11.013 12.6126 10.6634C12.7969 10.561 12.9505 10.4114 13.0575 10.2302C13.1645 10.049 13.221 9.84266 13.2213 9.63242C13.2213 9.31073 13.0931 9.00223 12.8648 8.77476C12.6365 8.5473 12.3268 8.41951 12.0039 8.41951C11.6811 8.41951 11.3714 8.5473 11.1431 8.77476C10.9148 9.00223 10.7865 9.31073 10.7865 9.63242C10.7865 9.93399 10.6663 10.2232 10.4523 10.4365C10.2382 10.6497 9.94792 10.7695 9.64522 10.7695C9.34253 10.7695 9.05223 10.6497 8.83819 10.4365C8.62415 10.2232 8.50391 9.93399 8.50391 9.63242C8.50763 9.02196 8.67214 8.42317 8.98099 7.89592C9.28984 7.36868 9.7322 6.93145 10.2639 6.62796C10.7955 6.32447 11.3978 6.16535 12.0105 6.16651C12.6233 6.16767 13.225 6.32908 13.7554 6.63458C14.2859 6.94009 14.7266 7.37899 15.0335 7.9074C15.3403 8.43582 15.5025 9.03522 15.5039 9.64569C15.5053 10.2562 15.3458 10.8563 15.0414 11.3861C14.7369 11.9159 14.2983 12.3568 13.7692 12.6647C13.5645 12.8132 13.4003 13.0101 13.2913 13.2378C13.1824 13.4655 13.1322 13.7167 13.1453 13.9685V14.3931C13.1373 14.6894 13.0136 14.9708 12.8004 15.1776C12.5872 15.3843 12.3014 15.4999 12.0039 15.4998Z" fill="currentColor"/>
<path d="M12.0026 18.9998C12.6469 18.9998 13.1693 18.4775 13.1693 17.8332C13.1693 17.1888 12.6469 16.6665 12.0026 16.6665C11.3583 16.6665 10.8359 17.1888 10.8359 17.8332C10.8359 18.4775 11.3583 18.9998 12.0026 18.9998Z" fill="currentColor"/>
</svg>
</span>
<!--end::Icon-->
<!--begin::Wrapper-->
<div class="d-flex flex-column">
<!--begin::Title-->
<h4 class="mb-1">Alert</h4>
<!--end::Title-->
<!--begin::Content-->
<span> <?php echo $error_message ; ?></span>
<!--end::Content-->
</div>
<!--end::Wrapper-->
</div>
<!--end::Alert-->
<br>
<?php } ?>
<div id="store-launcher" class="login-box-body" ng-controller="StoreController">
<ul class="list-unstyled list-group store-list">
<?php foreach (get_stores() as $the_store): ?>
<li class="list-group-item">
<a class="activate-store" href="<?php echo root_url();?>/<?php echo ADMINDIRNAME;?>/store.php?active_store_id=<?php echo $the_store['store_id']; ?>">
<div class="store-icon">
<svg class="svg-icon"><use href="#icon-store"></svg>
</div>
<div class="store-name">
<?php echo $the_store['name']; ?>
<span class="pull-right">→</span>
</div>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="copyright text-center">
<p>© <a href="https://sultans.group">Sultan Technologies</a>, v<?php echo settings('version'); ?></p>
</div>
</section>
<script type="text/javascript">
$(document).ready(function() {
$(".store-list").perfectScrollbar();
});
</script>
<noscript>You need to have javascript enabled in order to use <strong><?php echo store('name');?></strong>.</noscript>
</body>
</html>