|
31 | 31 | <!-- BEGIN PHP TEMPLATE dashboard.tpl.php --> |
32 | 32 | <?php |
33 | 33 |
|
34 | | - print ' |
| 34 | +print ' |
35 | 35 | <div class="page-content-wrapper"> |
36 | 36 | <div class="page-content"> |
37 | 37 |
|
38 | | - <!-- BEGIN PAGE HEADER--> |
| 38 | + <!-- BEGIN PAGE HEADER--> |
39 | 39 | <!-- BEGIN PAGE HEAD --> |
40 | 40 | <div class="page-head"> |
41 | | - <!-- BEGIN PAGE TITLE --> |
42 | | - <div class="page-title"> |
43 | | - <h1>'.$langs->trans("Dashboard").'</h1> |
44 | | - </div> |
45 | | - <!-- END PAGE TITLE --> |
46 | | -
|
47 | | -
|
| 41 | + <!-- BEGIN PAGE TITLE --> |
| 42 | + <div class="page-title"> |
| 43 | + <h1>'.$langs->trans("Dashboard").'</h1> |
| 44 | + </div> |
| 45 | + <!-- END PAGE TITLE --> |
48 | 46 | </div> |
49 | 47 | <!-- END PAGE HEAD --> |
50 | 48 | <!-- END PAGE HEADER--> |
51 | 49 |
|
52 | 50 |
|
53 | | - <div class="row">'; |
54 | | - |
| 51 | + <div class="row">'; |
55 | 52 |
|
56 | | -if ($mythirdpartyaccount->client > 0) { |
57 | | - print '<div class="col-md-6"> |
58 | 53 |
|
59 | | - <div class="portlet light" id="planSection"> |
| 54 | + print ' |
| 55 | + <!-- BEGIN COL MY INSTANCES --> |
| 56 | + <div class="col-md-6"> |
| 57 | + <!-- BEGIN PORTLET id=planSection --> |
| 58 | + <div class="portlet light" id="planSection">'; |
60 | 59 |
|
| 60 | + if ($mythirdpartyaccount->client > 0) { |
| 61 | + print ' |
61 | 62 | <div class="portlet-title"> |
62 | 63 | <div class="caption"> |
63 | 64 | <i class="fa fa-server font-green-sharp paddingright"></i><span class="caption-subject font-green-sharp bold uppercase">'.$langs->trans("MyInstances").'</span> |
|
73 | 74 | <div class="col-md-4 right"> |
74 | 75 | <h2>'.$nbofinstancesdone.'</h2> |
75 | 76 | </div> |
76 | | - </div> <!-- END ROW --> |
| 77 | + </div> |
77 | 78 |
|
78 | 79 | '; |
79 | | - if ($nbofinstancessuspended) { |
80 | | - print ' |
81 | | - <div class="row"> |
82 | | - <div class="col-md-8"> |
83 | | - '.$langs->trans("NbOfSuspendedInstances").' |
84 | | - </div> |
85 | | - <div class="col-md-4 right"> |
86 | | - <h2 style="color:orange">'.$nbofinstancessuspended.'</h2> |
87 | | - </div> |
88 | | - </div> <!-- END ROW --> |
89 | | - '; |
90 | | - } |
| 80 | + if ($nbofinstancessuspended) { |
| 81 | + print ' |
| 82 | + <div class="row"> |
| 83 | + <div class="col-md-8"> |
| 84 | + '.$langs->trans("NbOfSuspendedInstances").' |
| 85 | + </div> |
| 86 | + <div class="col-md-4 right"> |
| 87 | + <h2 style="color:orange">'.$nbofinstancessuspended.'</h2> |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + '; |
| 91 | + } |
91 | 92 |
|
92 | | - print ' |
| 93 | + print ' |
93 | 94 | <div class="row"> |
94 | 95 | <div class="center col-md-12"> |
95 | 96 | <br> |
96 | 97 | <a class="wordbreak btn" href="'.$_SERVER["PHP_SELF"].'?mode=instances" class="btn default btn-xs green-stripe">'.$langs->trans("SeeDetailsAndOptions").'</a> |
97 | | - </div></div>'; |
| 98 | + </div> |
| 99 | + </div>'; |
98 | 100 |
|
99 | | - print ' |
| 101 | + print ' |
100 | 102 | </div>'; // end protlet-body |
| 103 | + } |
101 | 104 |
|
102 | 105 | if ($mythirdpartyaccount->isareseller) { |
103 | 106 | print ' |
|
116 | 119 | <div class="col-md-4 right"> |
117 | 120 | <h2>'.$nbofinstancesdonereseller.'</h2> |
118 | 121 | </div> |
119 | | - </div> <!-- END ROW --> |
| 122 | + </div> |
120 | 123 |
|
121 | 124 | '; |
122 | 125 | if ($nbofinstancessuspendedreseller) { |
|
128 | 131 | <div class="col-md-4 right"> |
129 | 132 | <h2 style="color:orange">'.$nbofinstancessuspendedreseller.'</h2> |
130 | 133 | </div> |
131 | | - </div> <!-- END ROW --> |
| 134 | + </div> |
132 | 135 | '; |
133 | 136 | } |
134 | 137 |
|
|
137 | 140 | <div class="center col-md-12"> |
138 | 141 | <br> |
139 | 142 | <a class="wordbreak btn" href="'.$_SERVER["PHP_SELF"].'?mode=mycustomerinstances" class="btn default btn-xs green-stripe">'.$langs->trans("SeeDetailsAndOptionsOfMyCustomers").'</a> |
140 | | - </div></div>'; |
| 143 | + </div> |
| 144 | + </div>'; |
141 | 145 |
|
142 | 146 | print '</div>'; // end portlet-body |
143 | 147 | } |
144 | 148 |
|
145 | | - print ' |
146 | 149 |
|
147 | | - </div> <!-- END PORTLET --> |
| 150 | + if (!empty($mythirdpartyaccount->context['isamoduleprovider'])) { |
| 151 | + print ' |
| 152 | + <div class="portlet-title"> |
| 153 | + <div class="caption"><br><br> |
| 154 | + <i class="fa fa-server font-green-sharp paddingright"></i><span class="caption-subject font-green-sharp bold uppercase">'.$langs->trans("InstancesWithMyModules").'</span> |
| 155 | + </div> |
| 156 | + </div> |
148 | 157 |
|
149 | | - </div> <!-- END COL MY INSTANCES-->'; |
150 | | -} |
| 158 | + <div class="portlet-body"> |
| 159 | +
|
| 160 | + <div class="row"> |
| 161 | + <div class="col-md-8"> |
| 162 | + '.$langs->trans("NbOfActiveInstances").' |
| 163 | + </div> |
| 164 | + <div class="col-md-4 right"> |
| 165 | + <h2>'.$nbofinstancesdonemodules.'</h2> |
| 166 | + </div> |
| 167 | + </div> |
| 168 | +
|
| 169 | + '; |
| 170 | + if ($nbofinstancessuspendedmodules) { |
| 171 | + print ' |
| 172 | + <div class="row"> |
| 173 | + <div class="col-md-8"> |
| 174 | + '.$langs->trans("NbOfSuspendedInstances").' |
| 175 | + </div> |
| 176 | + <div class="col-md-4 right"> |
| 177 | + <h2 style="color:orange">'.$nbofinstancessuspendedmodules.'</h2> |
| 178 | + </div> |
| 179 | + </div> |
| 180 | + '; |
| 181 | + } |
| 182 | + |
| 183 | + print ' |
| 184 | + <div class="row"> |
| 185 | + <div class="center col-md-12"> |
| 186 | + <br> |
| 187 | + <a class="wordbreak btn" href="'.$_SERVER["PHP_SELF"].'?mode=mymodulecustomerinstances" class="btn default btn-xs green-stripe">'.$langs->trans("SeeDetailsOfInstancesWithMyModules").'</a> |
| 188 | + </div> |
| 189 | + </div>'; |
| 190 | + |
| 191 | + print '</div>'; // end portlet-body |
| 192 | + } |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | +print ' |
| 197 | +
|
| 198 | + </div> <!-- END PORTLET id=planSection --> |
| 199 | + </div> <!-- END COL MY INSTANCES-->'; |
151 | 200 |
|
152 | 201 |
|
153 | 202 | print ' |
|
0 commit comments