Skip to content

Commit 8b3c8c6

Browse files
committed
Rename for address label
1 parent 68099a7 commit 8b3c8c6

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
/**
3+
* @version $Id$
4+
* @package Joomla
5+
* @subpackage ClubManagement-Membership
6+
* @copyright Copyright (c) 2012 Norbert Kuemin. All rights reserved.
7+
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE
8+
* @author Norbert Kuemin
9+
* @authorEmail momo_102@bluemail.ch
10+
*/
11+
12+
// Check to ensure this file is included in Joomla!
13+
defined('_JEXEC') or die('Restricted access');
14+
15+
function showError($msg) {
16+
echo $msg;
17+
}
18+
19+
$task = JRequest::getVar('task');
20+
switch ($task) {
21+
case 'input':
22+
echo $this->loadTemplate('save');
23+
break;
24+
case 'create_pdf':
25+
default:
26+
$uri = JFactory::getURI();
27+
$id = $uri->getVar('id');
28+
if (!$id) $id = JRequest::getVar('id');
29+
if (!$id) {
30+
$id_list = $this->getModel()->getPersonIdListForCurrentUser();
31+
} else {
32+
$id_list = array($id);
33+
}
34+
if (count($this->idList) < 1) showError(JText::_('COM_CLUBMANAGEMENT_ERROR_PERSON_EDIT_NO_RECORD'));
35+
if (count($this->idList) == 1) echo $this->loadTemplate('edit');
36+
if (count($this->idList) > 1) echo $this->loadTemplate('list');
37+
break;
38+
}
39+
?>

0 commit comments

Comments
 (0)