File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
site/views/memberships/tmpl Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 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+ ?>
File renamed without changes.
You can’t perform that action at this time.
0 commit comments