<h1>Notice messages</h1><?php  if (isset($errors)) : ?><?php  if (isset($errors)) : ?><div data-alert class="alert alert-danger alert-dismissible fade show p-2 ps-4" ng-non-bindable><?php  if (!isset($hideErrorButton)) : ?><button type="button" class="btn-close pt-1 pe-1" data-bs-dismiss="alert" aria-label="Close"></button><?php  endif;?><ul class="ps-1 m-0"><?php  foreach ($errors as $err) : ?><li><?php  echo $err?></li><?php  endforeach;?></ul></div><?php  endif;?><?php  endif; ?><?php  if (isset($updated)) : $msg = 'Settings updated'; ?><div role="alert" class="alert alert-success alert-dismissible fade show p-2 ps-2" ng-non-bindable><?php  if (!isset($hideSuccessButton)) : ?><button type="button" class="btn-close pt-1 pe-1" data-bs-dismiss="alert" aria-label="Close"></button><?php  endif; ?><?php  echo $msg?></div><?php  endif; ?><form action="/us/alphachat/index.php/site_admin/system/notice" method="post"><input type="hidden" name="csfr_token" value="<?php  echo erLhcoreClassUser::instance()->getCSFRToken()?>" /><h5>Generic notice message at the top bar</h5><div class="form-group"><label>Level of notice</label><select name="level" class="form-control form-control-sm"><option value="primary" <?php  if (isset($data['level']) && $data['level'] == 'primary') : ?>selected="selected"<?php  endif; ?> >Primary (blue)</option><option value="warning" <?php  if (isset($data['level']) && $data['level'] == 'warning') : ?>selected="selected"<?php  endif; ?>>Warning (yellow)</option><option value="danger" <?php  if (isset($data['level']) && $data['level'] == 'danger') : ?>selected="selected"<?php  endif; ?>>Danger (red)</option><option value="success" <?php  if (isset($data['level']) && $data['level'] == 'success') : ?>selected="selected"<?php  endif; ?>>Success (green)</option></select></div><div class="form-group"><label>Message</label><textarea rows="2" class="form-control form-control-sm" name="message"><?php  echo isset($data['message']) ? htmlspecialchars($data['message']) : '' ?></textarea></div><h5>Notice message in case of connection issues</h5><div class="form-group"><label class="pb-2">Message <button type="button" class="btn btn-secondary btn-xs" onclick="document.querySelector('textarea[name=message_connection]').value = '<div class=\'pt-1 text-danger fw-bold fs14\'><span class=\'material-icons\'>wifi_off</span>Connection problem detected. Please check your connectivity.</div>';">Set demo</button></label><textarea rows="10" class="form-control form-control-sm" name="message_connection"><?php  echo isset($data['message_connection']) ? htmlspecialchars($data['message_connection']) : '' ?></textarea></div><input type="submit" class="btn btn-secondary btn-sm" name="StoreUserSettingsAction" value="Save" /></form>