iv> {{/dates}} {{#status}}
{{i18n.name}} | {{i18n.distance}} | {{i18n.when}} |
---|---|---|
{{name}} | {{length}} | {{light}} | {{/eventraces}}
{{i18n.eventor.desc}}
{{/eventor_connect}} {{#eventor_login}} {{i18n.isopen}} {{/eventor_login}} {{i18n.details}}%s", print_r($query, true)); exit; }elseif(!$this->FromActivity && intval($this->Group) !== 0){ $query = " SELECT `b`.`user_id`, CONCAT_WS(' ', `b`.`user_firstname`, `b`.`user_lastname`) `Name`, IF(`m6`.`MetaValue` = 1, `m1`.`MetaValue`, NULL) `Email`, IF(`m5`.`MetaValue` = 1, `m2`.`MetaValue`, NULL) `Phone`, `m3`.`MetaValue` `Desc`, `m4`.`MetaValue` `Title` FROM `site_organisation` a INNER JOIN `school_user` b ON a.`user_id` = b.`user_id` LEFT JOIN `school_user_meta` `m1` ON b.`user_id` = `m1`.`UserId` AND `m1`.`MetaKey` = 'Email' LEFT JOIN `school_user_meta` `m2` ON b.`user_id` = `m2`.`UserId` AND `m2`.`MetaKey` = 'Phone' LEFT JOIN `school_user_meta` `m3` ON b.`user_id` = `m3`.`UserId` AND `m3`.`MetaKey` = 'Desc' LEFT JOIN `school_user_meta` `m4` ON b.`user_id` = `m4`.`UserId` AND `m4`.`MetaKey` = 'Title' LEFT JOIN `school_user_meta` `m5` ON b.`user_id` = `m5`.`UserId` AND `m5`.`MetaKey` = 'ShowPhone' LEFT JOIN `school_user_meta` `m6` ON b.`user_id` = `m6`.`UserId` AND `m6`.`MetaKey` = 'ShowEmail' WHERE a.`group_id` = ? ORDER BY a.`post_order` ASC "; }else{ $query = " SELECT `user_id`, CONCAT_WS(' ', `user_firstname`, `user_lastname`) `Name`, IF(`m6`.`MetaValue` = 1, `m1`.`MetaValue`, NULL) `Email`, IF(`m5`.`MetaValue` = 1, `m2`.`MetaValue`, NULL) `Phone`, `m3`.`MetaValue` `Desc`, `m4`.`MetaValue` `Title` FROM `school_user` LEFT JOIN `school_user_meta` `m1` ON `user_id` = `m1`.`UserId` AND `m1`.`MetaKey` = 'Email' LEFT JOIN `school_user_meta` `m2` ON `user_id` = `m2`.`UserId` AND `m2`.`MetaKey` = 'Phone' LEFT JOIN `school_user_meta` `m3` ON `user_id` = `m3`.`UserId` AND `m3`.`MetaKey` = 'Desc' LEFT JOIN `school_user_meta` `m4` ON `user_id` = `m4`.`UserId` AND `m4`.`MetaKey` = 'Title' LEFT JOIN `school_user_meta` `m5` ON `user_id` = `m5`.`UserId` AND `m5`.`MetaKey` = 'ShowPhone' LEFT JOIN `school_user_meta` `m6` ON `user_id` = `m6`.`UserId` AND `m6`.`MetaKey` = 'ShowEmail' WHERE `user_id` = ? LIMIT 1 "; } // echo sprintf("
%s", $query); if((int)$this->Group !== 0){ $Id = $this->Group; }else{ $Id = $this->User; } $pst = $this->dbh->prepare($query); $pst->execute( [ $Id ] ); if($pst->rowCount() !== 0){ require_once(sprintf('%s%sCORE/inc/class.User.PDO.php', ROOTPATH, ADMPATH)); $i = 0; while($res = $pst->fetch(PDO::FETCH_ASSOC)){ // if(!isset($res['user_title'])) $res['user_title'] = $res['role']; $Title = null; if(!is_null($res['Title'])) $Title = $res['Title']; $Email = null; if(!is_null($res['Email'])){ $Email = $this->StaffEmail($res['Email']); }elseif(strlen($_GLOBAL_DEFAULT_EMAIL) !== 0){ $Email = $this->StaffEmail($_GLOBAL_DEFAULT_EMAIL); == true && console) console.log(jqXHR.responseText); $('#tblResults').DataTable().clear().draw(); }, data: function ( d ) { return $('#frmResults').serialize(); } }, initComplete: function () { $('[data-toggle="tooltip"]').tooltip(); }, drawCallback: function () { $('[data-toggle="tooltip"]').tooltip(); }, autoWidth: false, pageLength: 10, // order: [[ 3, "asc" ], [ 6, "desc" ]], columnDefs: [ // { orderable: false, targets: [ -1 ] }, { targets: 0, data: 'Position' }, { targets: 1, data: 'Name' }, { targets: 2, data: 'Born' }, { targets: 3, data: 'Date' }, { targets: 4, data: 'Time' } ] }); $('#Distance').on('change', function(){ Table.ajax.reload(); }); EOT; $Content .= <<
Placering | Namn | Född | Datum | Tid |
---|
%s', var_export($data, true)); // $Content .= sprintf('
%s', var_export($Competition, true)); }