Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/05/19 in all areas

  1. Yes it look nice. It enough easy to make another one : Take this file IndexDashboardTopStockWarning and rename it : IndexDashboardTopTest Change inside the class and the request The file will be like this ! ........... must be removed and adapted at your needs. <?php /** * * @copyright 2008 - https://www.clicshopping.org * @Brand : ClicShopping(Tm) at Inpi all right Reserved * @Licence GPL 2 & MIT * @licence MIT - Portion of osCommerce 2.4 * @Info : https://www.clicshopping.org/forum/trademark/ * */ namespace ClicShopping\OM\Module\Hooks\ClicShoppingAdmin\Dashboard; use ClicShopping\OM\CLICSHOPPING; use ClicShopping\OM\Registry; use ClicShopping\OM\HTML; class IndexDashboardTopTest { protected $db; public function __construct() { if (CLICSHOPPING::getSite() != 'ClicShoppingAdmin') { CLICSHOPPING::redirect(); } $this->db = Registry::get('Db'); } public function execute() { $Qproducts = $this->db->prepare('select count(*) as count from :table_products where .......... '); $Qproducts->execute(); $number_products_test = $Qproducts->valueInt('count'); if ($number_products_test > 0) { $text = CLICSHOPPING::getDef('text_number_products_........'); $text_view = CLICSHOPPING::getDef('text_view'); $output = ' <div style="padding-right:0.5rem; padding-top:0.5rem"> <div class="card bg-warning"> <div class="card-body"> <div class="row"> <h5 class="card-title text-white"><i class="fas fa-bell-slash" aria-hidden="true"></i> ' . $text . '</h5> </div> <div class="col-md-12"> <span h5 class="text-white">' . $number_products_test . '</span> <span><small class="text-white">' . HTML::link(CLICSHOPPING::link(null, 'A&...........'), $text_view, 'class="text-white"') . '</small></span> </div> </div> </div> </div> ';
    4 points
  2. @Oka, You can add a new defintion with your administration, tools / Language / look the index admin and add your definition.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use