Changeset 40
- Timestamp:
- Aug 27, 2007, 11:06:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/pi1/class.tx_wseevents_pi1.php ¶
r38 r40 104 104 } 105 105 } 106 107 108 109 110 106 111 107 112 /** … … 214 219 $label = $this->getFieldContent('name'); // the link text 215 220 $overrulePIvars = '';//array('session' => $this->getFieldContent('uid')); 216 $overrulePIvars = array('showSessionUid' => $this->internal['currentRow']['uid'], 'backUid' => $GLOBALS['TSFE']->id );221 $overrulePIvars = array('showSessionUid' => $this->internal['currentRow']['uid'], 'backUid' => $GLOBALS['TSFE']->id, 'back2list' => '1'); 217 222 $clearAnyway=1; // the current values of piVars will NOT be preserved 218 223 $altPageId=$this->conf['singleSession']; // ID of the target page, if not on the same page … … 244 249 return $content; 245 250 } 251 252 253 254 255 256 257 258 259 246 260 247 261 /** … … 382 396 if (!empty($this->conf['singleSession'])) { 383 397 $overrulePIvars = '';//array('session' => $this->getFieldContent('uid')); 384 $overrulePIvars = array('showSessionUid' => $k, 'backUid' => $GLOBALS['TSFE']->id );398 $overrulePIvars = array('showSessionUid' => $k, 'backUid' => $GLOBALS['TSFE']->id, 'back2list' => '1'); 385 399 $clearAnyway=1; // the current values of piVars will NOT be preserved 386 400 $altPageId=$this->conf['singleSession']; // ID of the target page, if not on the same page … … 415 429 } 416 430 431 432 433 434 435 436 437 438 417 439 /** 418 440 * Display the details of a single session … … 442 464 // Link for back to list view 443 465 $label = $this->pi_getLL('back','Back'); // the link text 444 $overrulePIvars = array ('showSessionUid' => $this->piVars['showSessionUid']); 466 if ($this->piVars['back2list']<>1) { 467 # Back to single view 468 $overrulePIvars = array ('showSessionUid' => $this->piVars['showSessionUid']); 469 } 445 470 $clearAnyway=1; // the current values of piVars will NOT be preserved 446 471 $altPageId=$this->piVars['backUid']; // ID of the view page … … 463 488 } 464 489 490 491 492 493 494 495 496 497 465 498 /** 466 499 * Display the details of a single speaker … … 566 599 } 567 600 601 602 603 604 605 606 607 568 608 /** 569 609 * Get content of one field … … 733 773 } 734 774 775 776 777 778 779 780 781 735 782 /** 736 783 * Get the translated content of a field … … 739 786 function getTranslatedField($dbname, $fN, $fUid=-1) { 740 787 $index = $GLOBALS['TSFE']->sys_language_uid; 788 if ($fUid<0) { 789 $fUid = $this->internal['currentRow']['uid']; 790 } 741 791 if ($index<>0) { 742 792 // for the name of a session, check if a translation is there 743 if ($fUid<0) {744 $fUid = $this->internal['currentRow']['uid'];745 }746 793 $where = 'deleted=0 AND hidden=0 AND l18n_parent='.$fUid.' AND sys_language_uid='.$index; 747 794 $res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery($fN, $dbname, $where); … … 760 807 } else { 761 808 //show default language 762 return $this->internal['currentRow'][$fN]; 809 // return $this->internal['currentRow'][$fN]; 810 $where = 'deleted=0 AND hidden=0 AND uid='.$fUid; 811 $res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery($fN, $dbname, $where); 812 $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res); 813 $datacount = $row[$fN]; 814 return $datacount; 763 815 } 764 816 } 817 818 819 820 821 822 823 765 824 766 825 /** … … 787 846 } 788 847 848 849 850 851 852 853 789 854 /** 790 855 * Get list of session UIDs for the speaker 791 856 */ 792 857 function getSpeakerSessionList($speakerid,$eventPid) { 793 $where = ' ';858 $where = 'deleted=0 AND hidden=0 AND sys_language_uid=0'; 794 859 $this->conf['pidList'] = $eventPid; 795 $res = $this->pi_exec_query('tx_wseevents_sessions',0,$where); 860 # $res = $this->pi_exec_query('tx_wseevents_sessions',0,$where); 861 $res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery('speaker, uid', 'tx_wseevents_sessions', $where); 796 862 while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { 797 863 foreach(explode(',',$row['speaker']) as $k){ … … 807 873 return $sessions; 808 874 } 875 876 877 878 879 809 880 810 881 /**
Note:
See TracChangeset
for help on using the changeset viewer.