iv> {{/dates}} {{#status}}
{{i18n.status}}
{{status}}
{{/status}} {{#validfrom}}
{{i18n.validfrom}}
{{date}} {{#time}}
{{/time}}
{{/validfrom}} {{#validto}}
{{i18n.validto}}
{{date}} {{#time}}
{{time}} {{/time}}
{{/validto}} {{#class}}
{{i18n.class}}
{{class}}
{{/class}} {{#singleevent}} {{#eventraces}}
{{i18n.distance}}
{{length}}
{{i18n.when}}
{{light}}
{{/eventraces}} {{/singleevent}} {{#discipline}}
{{i18n.discipline}}
{{discipline}}
{{/discipline}} {{#results}}
{{i18n.results}}
{{i18n.results_club}} |  {{i18n.results_all}}
{{/results}} {{#haseventraces}} {{^singleevent}}
Etapper
{{#eventraces}} {{/eventraces}}
{{i18n.name}} {{i18n.distance}} {{i18n.when}}
{{name}} {{length}} {{light}}
{{/singleevent}} {{/haseventraces}}
{{#eventor_connect}}

{{i18n.eventor.login}}

{{i18n.eventor.desc}}

{{i18n.eventor.passwd_hlp}}
{{/eventor_connect}} {{#eventor_login}} {{i18n.isopen}} {{/eventor_login}} {{i18n.details}}
{{#isopen}} {{/isopen}} {{/data}} EOT; $paging_template = << {{#prev}}
Föreg
{{/prev}} {{#next}}
Nästa
{{/next}}
{{/data}} EOT; if($paging['prev'] !== falue` = 1, `m1`.`MetaValue`, NULL) `Email`, IF(`m5`.`MetaValue` = 1, `m2`.`MetaValue`, NULL) `Phone`, `m3`.`MetaValue` `Desc`, `b`.`Name` `Title`, `b`.`Props` FROM `school_notifies` INNER JOIN `school_user` ON `not_user_id` = `user_id` 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' INNER JOIN `roles` b ON `not_role` = b.`ID` WHERE `not_group_id` = ? AND `not_type` = 1 AND `Staff` = 1 ORDER BY b.`Order`, `Name` "; // echo sprintf("
%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 .= <<Föreningsresultat
Placering Namn Född Datum Tid
EOT; } } // $Content .= sprintf('
%s
', var_export($data, true)); // $Content .= sprintf('
%s
', var_export($Competition, true)); }