$bInfo = new objectInfo($Qbanner->toArray()); if ($action == 'delete') { $heading[] = array('text' => $bInfo->banners_title); $contents = array('form' => HTML::form('banners', OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $bInfo->banners_id . '&action=deleteconfirm'))); $contents[] = array('text' => OSCOM::getDef('text_info_delete_intro')); $contents[] = array('text' => '<strong>' . $bInfo->banners_title . '</strong>'); if ($bInfo->banners_image) { $contents[] = array('text' => HTML::checkboxField('delete_image', 'on', true) . ' ' . OSCOM::getDef('text_info_delete_image')); } $contents[] = array('text' => HTML::button(OSCOM::getDef('image_delete'), 'fa fa-trash', null, null, 'btn-danger') . HTML::button(OSCOM::getDef('image_cancel'), null, OSCOM::link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']), null, 'btn-link')); } } } if (tep_not_null($heading) && tep_not_null($contents)) { $show_listing = false; echo HTML::panel($heading, $contents, ['type' => 'info']); } } } if ($show_listing === true) { ?> <table class="oscom-table table table-hover"> <thead> <tr class="info"> <th><?php echo OSCOM::getDef('table_heading_banners'); ?> </th> <th class="text-right"><?php echo OSCOM::getDef('table_heading_groups');
require $oscTemplate->getFile('template_top.php'); ?> <h2><i class="fa fa-home"></i> <a href="<?php echo OSCOM::link('login.php'); ?> "><?php echo STORE_NAME; ?> </a></h3> <?php $heading = array(); $contents = array(); if ($Qcheck->check()) { $heading[] = array('text' => OSCOM::getDef('heading_title')); $contents = array('form' => HTML::form('login', OSCOM::link(FILENAME_LOGIN, 'action=process'))); $contents[] = array('text' => OSCOM::getDef('text_username') . '<br />' . HTML::inputField('username')); $contents[] = array('text' => OSCOM::getDef('text_password') . '<br />' . HTML::passwordField('password')); $contents[] = array('text' => HTML::button(OSCOM::getDef('button_login'), 'fa fa-sign-in', null, null, 'btn-primary')); } else { $heading[] = array('text' => OSCOM::getDef('heading_title')); $contents = array('form' => HTML::form('login', OSCOM::link(FILENAME_LOGIN, 'action=create'))); $contents[] = array('text' => OSCOM::getDef('text_create_first_administrator')); $contents[] = array('text' => OSCOM::getDef('text_username') . '<br />' . HTML::inputField('username')); $contents[] = array('text' => OSCOM::getDef('text_password') . '<br />' . HTML::passwordField('password')); $contents[] = array('text' => HTML::button(OSCOM::getDef('button_create_administrator'), 'fa fa-sign-in', null, null, 'btn-primary')); } echo HTML::panel($heading, $contents); require $oscTemplate->getFile('template_bottom.php'); require 'includes/application_bottom.php';