page.list.dashboard.php 556 B

1234567891011121314151617181920
  1. <?php
  2. global $myUser,$conf;
  3. if(!$myUser->can('dashboard','read')) return;
  4. require_once(__DIR__.SLASH.'Dashboard.class.php');
  5. if(Dashboard::rowCount(array('scope'=>'home','uid'=>$myUser->login))==0){
  6. $dashboard = new Dashboard();
  7. $dashboard->uid = $myUser->login;
  8. $dashboard->scope = "home";
  9. $dashboard->save();
  10. }
  11. ?>
  12. <div class="plugin-dashboard">
  13. <div class="row">
  14. <div class="col-md-12">
  15. <div data-type="dashboard" data-scope="home" data-uid="<?php echo $myUser->login ?>"></div>
  16. </div>
  17. </div>
  18. </div>