Passed
Branch master (465698)
by Michael
05:38
created
delete.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 // -------------------------------------------------------------------------
3 3
 
4
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
4
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
5 5
 $moduleDirName = basename(__DIR__);
6 6
 xoops_loadLanguage('main', $moduleDirName);
7 7
 // Include any common code for this module.
8
-require_once(XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/common.php');
8
+require_once(XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/include/common.php');
9 9
 
10 10
 $xoopsOption['template_main'] = 'pedigree_delete.tpl';
11 11
 
12
-include XOOPS_ROOT_PATH . '/header.php';
12
+include XOOPS_ROOT_PATH.'/header.php';
13 13
 
14 14
 //get module configuration
15 15
 $moduleHandler = xoops_getHandler('module');
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 //check for access
21 21
 $xoopsModule = XoopsModule::getByDirname('pedigree');
22 22
 if (empty($xoopsUser)) {
23
-    redirect_header('javascript:history.go(-1)', 3, _NOPERM . '<br />' . _MA_PEDIGREE_REGIST);
23
+    redirect_header('javascript:history.go(-1)', 3, _NOPERM.'<br />'._MA_PEDIGREE_REGIST);
24 24
 }
25 25
 
26 26
 global $xoopsTpl;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 $id = XoopsRequest::getInt('Id', 0, 'GET');
31 31
 //query (find values for this dog (and format them))
32
-$queryString = 'SELECT NAAM, user, roft FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' WHERE Id=' . $id;
32
+$queryString = 'SELECT NAAM, user, roft FROM '.$GLOBALS['xoopsDB']->prefix('pedigree_tree').' WHERE Id='.$id;
33 33
 $result      = $GLOBALS['xoopsDB']->query($queryString);
34 34
 
35 35
 while (false !== ($row = $GLOBALS['xoopsDB']->fetchArray($result))) {
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
 //    $id = $row['Id'];
38 38
     //name
39 39
     $naam     = htmlentities(stripslashes($row['NAAM']), ENT_QUOTES);
40
-    $namelink = "<a href=\"dog.php?Id=" . $row['Id'] . "\">" . stripslashes($row['NAAM']) . '</a>';
40
+    $namelink = "<a href=\"dog.php?Id=".$row['Id']."\">".stripslashes($row['NAAM']).'</a>';
41 41
     //user who entered the info
42 42
     $dbuser = $row['user'];
43 43
     $roft   = $row['roft'];
44 44
 }
45 45
 
46 46
 //create form
47
-include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
47
+include XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
48 48
 $form = new XoopsThemeForm($naam, 'deletedata', 'deletepage.php', 'POST');
49 49
 //hidden value current record owner
50 50
 $form->addElement(new XoopsFormHidden('dbuser', $dbuser));
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 $form->addElement(new XoopsFormHidden('dogid', $id));
53 53
 $form->addElement(new XoopsFormHidden('curname', $naam));
54 54
 $form->addElement(new XoopsFormHiddenToken($name = 'XOOPS_TOKEN_REQUEST', $timeout = 360));
55
-$form->addElement(new XoopsFormLabel(_MA_PEDIGREE_DELE_SURE, _MA_PEDIGREE_DEL_MSG . $moduleConfig['animalType'] . ' : <b>' . $naam . '</b>?'));
55
+$form->addElement(new XoopsFormLabel(_MA_PEDIGREE_DELE_SURE, _MA_PEDIGREE_DEL_MSG.$moduleConfig['animalType'].' : <b>'.$naam.'</b>?'));
56 56
 $pups = pups($id, $roft);
57
-$form->addElement(new XoopsFormLabel(_MA_PEDIGREE_DELE_WARN, _MA_PEDIGREE_ALL . $moduleConfig['children'] . _MA_PEDIGREE_ALL_ORPH . $pups));
57
+$form->addElement(new XoopsFormLabel(_MA_PEDIGREE_DELE_WARN, _MA_PEDIGREE_ALL.$moduleConfig['children']._MA_PEDIGREE_ALL_ORPH.$pups));
58 58
 $form->addElement(new XoopsFormButton('', 'button_id', _MA_PEDIGREE_BTN_DELE, 'submit'));
59 59
 //add data (form) to smarty template
60 60
 $xoopsTpl->assign('form', $form->render());
61 61
 
62 62
 //footer
63
-include XOOPS_ROOT_PATH . '/footer.php';
63
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
mpedigree.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 // -------------------------------------------------------------------------
3 3
 
4
-require_once dirname(dirname(__DIR__)) . '/mainfile.php';
4
+require_once dirname(dirname(__DIR__)).'/mainfile.php';
5 5
 
6 6
 $moduleDirName = basename(__DIR__);
7 7
 xoops_loadLanguage('main', $moduleDirName);
8 8
 
9 9
 // Include any common code for this module.
10
-require_once(XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/common.php');
10
+require_once(XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/include/common.php');
11 11
 xoops_load('XoopsRequest');
12 12
 
13 13
 $xoopsOption['template_main'] = 'pedigree_mpedigree.tpl';
@@ -89,37 +89,37 @@  discard block
 block discarded – undo
89 89
 mfmm.NAAM as mfmm_naam,
90 90
 mmmm.Id as mmmm_id,
91 91
 mmmm.NAAM as mmmm_naam
92
-FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' d
93
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' f ON d.father = f.Id
94
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' m ON d.mother = m.Id
95
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' ff ON f.father = ff.Id
96
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fff ON ff.father = fff.Id
97
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' ffm ON ff.mother = ffm.Id
98
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mf ON m.father = mf.Id
99
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mff ON mf.father = mff.Id
100
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mfm ON mf.mother = mfm.Id
101
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fm ON f.mother = fm.Id
102
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fmf ON fm.father = fmf.Id
103
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fmm ON fm.mother = fmm.Id
104
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mm ON m.mother = mm.Id
105
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mmf ON mm.father = mmf.Id
106
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mmm ON mm.mother = mmm.Id
107
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' ffff ON fff.father = ffff.Id
108
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' ffmf ON ffm.father = ffmf.Id
109
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fmff ON fmf.father = fmff.Id
110
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fmmf ON fmm.father = fmmf.Id
111
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mmff ON mmf.father = mmff.Id
112
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mfff ON mff.father = mfff.Id
113
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mfmf ON mfm.father = mfmf.Id
114
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mmmf ON mmm.father = mmmf.Id
115
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fffm ON fff.mother = fffm.Id
116
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' ffmm ON ffm.mother = ffmm.Id
117
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fmfm ON fmf.mother = fmfm.Id
118
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' fmmm ON fmm.mother = fmmm.Id
119
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mmfm ON mmf.mother = mmfm.Id
120
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mffm ON mff.mother = mffm.Id
121
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mfmm ON mfm.mother = mfmm.Id
122
-LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . ' mmmm ON mmm.mother = mmmm.Id
92
+FROM ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' d
93
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' f ON d.father = f.Id
94
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' m ON d.mother = m.Id
95
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' ff ON f.father = ff.Id
96
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fff ON ff.father = fff.Id
97
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' ffm ON ff.mother = ffm.Id
98
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mf ON m.father = mf.Id
99
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mff ON mf.father = mff.Id
100
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mfm ON mf.mother = mfm.Id
101
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fm ON f.mother = fm.Id
102
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fmf ON fm.father = fmf.Id
103
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fmm ON fm.mother = fmm.Id
104
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mm ON m.mother = mm.Id
105
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mmf ON mm.father = mmf.Id
106
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mmm ON mm.mother = mmm.Id
107
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' ffff ON fff.father = ffff.Id
108
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' ffmf ON ffm.father = ffmf.Id
109
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fmff ON fmf.father = fmff.Id
110
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fmmf ON fmm.father = fmmf.Id
111
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mmff ON mmf.father = mmff.Id
112
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mfff ON mff.father = mfff.Id
113
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mfmf ON mfm.father = mfmf.Id
114
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mmmf ON mmm.father = mmmf.Id
115
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fffm ON fff.mother = fffm.Id
116
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' ffmm ON ffm.mother = ffmm.Id
117
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fmfm ON fmf.mother = fmfm.Id
118
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' fmmm ON fmm.mother = fmmm.Id
119
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mmfm ON mmf.mother = mmfm.Id
120
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mffm ON mff.mother = mffm.Id
121
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mfmm ON mfm.mother = mfmm.Id
122
+LEFT JOIN ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree').' mmmm ON mmm.mother = mmmm.Id
123 123
 WHERE d.Id=' . $pedId;
124 124
 
125 125
 $result = $GLOBALS['xoopsDB']->query($queryString);
@@ -291,11 +291,11 @@  discard block
 block discarded – undo
291 291
 }
292 292
 
293 293
 //add data to smarty template
294
-$GLOBALS['xoopsTpl']->assign('xoops_pagetitle', $d['d']['name'] . ' -- mega pedigree');
294
+$GLOBALS['xoopsTpl']->assign('xoops_pagetitle', $d['d']['name'].' -- mega pedigree');
295 295
 //assign dog(s)
296 296
 $GLOBALS['xoopsTpl']->assign('d', $d);
297
-$GLOBALS['xoopsTpl']->assign('male', "<img src=\"assets/images/male.gif\" alt=\"" . ucfirst(_MA_PEDIGREE_MALE) . "\">");
298
-$GLOBALS['xoopsTpl']->assign('female', "<img src=\"assets/images/female.gif\"> alt=\"" . ucfirst(_MA_PEDIGREE_FEMALE) . "\"");
297
+$GLOBALS['xoopsTpl']->assign('male', "<img src=\"assets/images/male.gif\" alt=\"".ucfirst(_MA_PEDIGREE_MALE)."\">");
298
+$GLOBALS['xoopsTpl']->assign('female', "<img src=\"assets/images/female.gif\"> alt=\"".ucfirst(_MA_PEDIGREE_FEMALE)."\"");
299 299
 //assign extra display options
300 300
 $GLOBALS['xoopsTpl']->assign('unknown', _MA_PEDIGREE_UNKNOWN);
301 301
 $GLOBALS['xoopsTpl']->assign('f2', strtr(_MA_PEDIGREE_MPED_F2, array('[animalType]' => $pedigree->getConfig('animalType'))));
Please login to merge, or discard this patch.
blocks/menu_block.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 // Include any common code for this module.
12 12
 //require_once(XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->dirname() . "/include/class_field.php");
13 13
 //require_once(XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->dirname() . "/include/functions.php");
14
-require_once $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/class/field.php');
15
-require_once XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/include/common.php';
14
+require_once $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/class/field.php');
15
+require_once XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/include/common.php';
16 16
 
17 17
 /**
18 18
  * @todo: move hard coded language strings to language file
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
         }
95 95
     }
96 96
     if ($curpage === '/index.php' || $curpage === '/result.php') {
97
-        $title = '<b>View/Search ' . $pedigree->getConfig('animalTypes') . '</b>';
97
+        $title = '<b>View/Search '.$pedigree->getConfig('animalTypes').'</b>';
98 98
     } else {
99
-        $title = 'View/Search ' . $pedigree->getConfig('animalTypes');
99
+        $title = 'View/Search '.$pedigree->getConfig('animalTypes');
100 100
     }
101 101
     $menuarray[] = array('title' => $title, 'link' => 'index.php', 'counter' => $counter);
102 102
     ++$counter;
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
         $counter = 1;
105 105
     }
106 106
     if ($curpage === '/add_dog.php') {
107
-        $title = '<b>Add a ' . $pedigree->getConfig('animalType') . '</b>';
107
+        $title = '<b>Add a '.$pedigree->getConfig('animalType').'</b>';
108 108
     } else {
109
-        $title = 'Add a ' . $pedigree->getConfig('animalType');
109
+        $title = 'Add a '.$pedigree->getConfig('animalType');
110 110
     }
111 111
     $menuarray[] = array('title' => $title, 'link' => 'add_dog.php', 'counter' => $counter);
112 112
     ++$counter;
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     }
116 116
     if ('1' == $pedigree->getConfig('uselitter')) {
117 117
         if ($curpage === '/add_litter.php') {
118
-            $title = '<b>Add a ' . $pedigree->getConfig('litter') . '</b>';
118
+            $title = '<b>Add a '.$pedigree->getConfig('litter').'</b>';
119 119
         } else {
120
-            $title = 'Add a ' . $pedigree->getConfig('litter');
120
+            $title = 'Add a '.$pedigree->getConfig('litter');
121 121
         }
122 122
         $menuarray[] = array('title' => $title, 'link' => 'add_litter.php', 'counter' => $counter);
123 123
         ++$counter;
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 $modversion['config'][] = array(
86 86
     'name'        => 'proversion',
87 87
     'title'       => '_MI_PEDIGREE_PROVERSION',
88
-    'description' => '_MI_PEDIGREE_PROVERSION_DESC',//'is this the pro version ?',
88
+    'description' => '_MI_PEDIGREE_PROVERSION_DESC', //'is this the pro version ?',
89 89
     'formtype'    => 'yesno',
90 90
     'valuetype'   => 'int',
91 91
     'default'     => 1
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 $modversion['config'][] = array(
95 95
     'name'        => 'ownerbreeder',
96 96
     'title'       => '_MI_PEDIGREE_OWNERBREEDER',
97
-    'description' => '_MI_PEDIGREE_OWNERBREEDER_DESC',//'should the owner/breeder fields be used ?',
97
+    'description' => '_MI_PEDIGREE_OWNERBREEDER_DESC', //'should the owner/breeder fields be used ?',
98 98
     'formtype'    => 'yesno',
99 99
     'valuetype'   => 'int',
100 100
     'default'     => 1
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 $modversion['config'][] = array(
104 104
     'name'        => 'brothers',
105 105
     'title'       => '_MI_PEDIGREE_BROTHERS',
106
-    'description' => '_MI_PEDIGREE_BROTHERS_DESC',//'should the brothers & sisters field be shown ?',
106
+    'description' => '_MI_PEDIGREE_BROTHERS_DESC', //'should the brothers & sisters field be shown ?',
107 107
     'formtype'    => 'yesno',
108 108
     'valuetype'   => 'int',
109 109
     'default'     => 1
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 $modversion['config'][] = array(
113 113
     'name'        => 'pups',
114 114
     'title'       => '_MI_PEDIGREE_PUPS',
115
-    'description' => '_MI_PEDIGREE_PUPS_DESC',//'should the pups/children field be shown ?',
115
+    'description' => '_MI_PEDIGREE_PUPS_DESC', //'should the pups/children field be shown ?',
116 116
     'formtype'    => 'yesno',
117 117
     'valuetype'   => 'int',
118 118
     'default'     => 1
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
 
158 158
 $modversion['config'][] = array(
159 159
     'name'        => 'children',
160
-    'title'       => '_MI_PEDIGREE_CHILDREN',//'language option children',
161
-    'description' => '_MI_PEDIGREE_CHILDREN_DESC',//'language option children',
160
+    'title'       => '_MI_PEDIGREE_CHILDREN', //'language option children',
161
+    'description' => '_MI_PEDIGREE_CHILDREN_DESC', //'language option children',
162 162
     'formtype'    => 'textbox',
163 163
     'valuetype'   => 'textarea',
164 164
     'default'     => 'children'
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 $modversion['config'][] = array(
168 168
     'name'        => 'welcome',
169 169
     'title'       => '_MI_PEDIGREE_WELCOME',
170
-    'description' => '_MI_PEDIGREE_WELCOME_DESC',//'language option children',
170
+    'description' => '_MI_PEDIGREE_WELCOME_DESC', //'language option children',
171 171
     'formtype'    => 'textarea',
172 172
     'valuetype'   => 'text',
173 173
     'default'     => ' Welcome to the online pedigree database.
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 $modversion['config'][] = array(
188 188
     'name'        => 'mother',
189 189
     'title'       => '_MI_PEDIGREE_MOTHER',
190
-    'description' => '_MI_PEDIGREE_MOTHER_DESC',//'language option mother',
190
+    'description' => '_MI_PEDIGREE_MOTHER_DESC', //'language option mother',
191 191
     'formtype'    => 'textbox',
192 192
     'valuetype'   => 'textarea',
193 193
     'default'     => 'mother'
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 $modversion['config'][] = array(
197 197
     'name'        => 'father',
198 198
     'title'       => '_MI_PEDIGREE_FATHER',
199
-    'description' => '_MI_PEDIGREE_FATHER_DESC',//'language option father',
199
+    'description' => '_MI_PEDIGREE_FATHER_DESC', //'language option father',
200 200
     'formtype'    => 'textbox',
201 201
     'valuetype'   => 'textarea',
202 202
     'default'     => 'father'
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 $modversion['config'][] = array(
206 206
     'name'        => 'female',
207 207
     'title'       => '_MI_PEDIGREE_FEMALE',
208
-    'description' => '_MI_PEDIGREE_FEMALE_DESC',//'language option female',
208
+    'description' => '_MI_PEDIGREE_FEMALE_DESC', //'language option female',
209 209
     'formtype'    => 'textbox',
210 210
     'valuetype'   => 'textarea',
211 211
     'default'     => 'female'
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 $modversion['config'][] = array(
215 215
     'name'        => 'male',
216 216
     'title'       => '_MI_PEDIGREE_MALE',
217
-    'description' => '_MI_PEDIGREE_MALE_DESC',//'language option male',
217
+    'description' => '_MI_PEDIGREE_MALE_DESC', //'language option male',
218 218
     'formtype'    => 'textbox',
219 219
     'valuetype'   => 'textarea',
220 220
     'default'     => 'male'
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 $modversion['config'][] = array(
224 224
     'name'        => 'litter',
225 225
     'title'       => '_MI_PEDIGREE_LITTER',
226
-    'description' => '_MI_PEDIGREE_LITTER_DESC',//'language option litter',
226
+    'description' => '_MI_PEDIGREE_LITTER_DESC', //'language option litter',
227 227
     'formtype'    => 'textbox',
228 228
     'valuetype'   => 'textbox',
229 229
     'default'     => 'litter'
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 $modversion['config'][] = array(
233 233
     'name'        => 'uselitter',
234 234
     'title'       => '_MI_PEDIGREE_USELITTER',
235
-    'description' => '_MI_PEDIGREE_USELITTER_DESC',//'should the litter feature be used ?',
235
+    'description' => '_MI_PEDIGREE_USELITTER_DESC', //'should the litter feature be used ?',
236 236
     'formtype'    => 'yesno',
237 237
     'valuetype'   => 'int',
238 238
     'default'     => 1
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 $modversion['config'][] = array(
242 242
     'name'        => 'colourscheme',
243 243
     'title'       => '_MI_PEDIGREE_COLOR',
244
-    'description' => '_MI_PEDIGREE_COLOR_DESC',//'The colour scheme to be used',
244
+    'description' => '_MI_PEDIGREE_COLOR_DESC', //'The colour scheme to be used',
245 245
     'formtype'    => 'textbox',
246 246
     'valuetype'   => 'textbox',
247 247
     'default'     => '#663300,#999966,#B2B27F,#333333,#020000,#80804D,#999999,#663300'
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 $modversion['config'][] = array(
251 251
     'name'        => 'showwelcome',
252 252
     'title'       => '_MI_PEDIGREE_SHOWELCOME',
253
-    'description' => '_MI_PEDIGREE_SHOWELCOME_DESC',//'Show the welcome screen',
253
+    'description' => '_MI_PEDIGREE_SHOWELCOME_DESC', //'Show the welcome screen',
254 254
     'formtype'    => 'yesno',
255 255
     'valuetype'   => 'int',
256 256
     'default'     => 1
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     'description' => '_MI_PEDIGREE_UPLOADDIRDSC',
273 273
     'formtype'    => 'textbox',
274 274
     'valuetype'   => 'text',
275
-    'default'     => XOOPS_ROOT_PATH . '/uploads/' . $modversion['dirname']
275
+    'default'     => XOOPS_ROOT_PATH.'/uploads/'.$modversion['dirname']
276 276
 );
277 277
 
278 278
 $modversion['config'][] = array(
@@ -309,31 +309,31 @@  discard block
 block discarded – undo
309 309
     'name' => _MI_PEDIGREE_VIEW_SEARCH,
310 310
     'url'  => 'index.php'
311 311
 );
312
-$modversion['sub'][]   = array(
312
+$modversion['sub'][] = array(
313 313
     'name' => _MI_PEDIGREE_ADD_ANIMAL,
314 314
     'url'  => 'add_dog.php'
315 315
 );
316
-$modversion['sub'][]   = array(
316
+$modversion['sub'][] = array(
317 317
     'name' => _MI_PEDIGREE_ADD_LITTER,
318 318
     'url'  => 'add_litter.php'
319 319
 );
320
-$modversion['sub'][]   = array(
320
+$modversion['sub'][] = array(
321 321
     'name' => _MI_PEDIGREE_VIEW_OWNERS,
322 322
     'url'  => 'breeder.php'
323 323
 );
324
-$modversion['sub'][]   = array(
324
+$modversion['sub'][] = array(
325 325
     'name' => _MI_PEDIGREE_ADD_OWNER,
326 326
     'url'  => 'add_breeder.php'
327 327
 );
328
-$modversion['sub'][]   = array(
328
+$modversion['sub'][] = array(
329 329
     'name' => _MI_PEDIGREE_ADVANCED_INFO,
330 330
     'url'  => 'advanced.php'
331 331
 );
332
-$modversion['sub'][]   = array(
332
+$modversion['sub'][] = array(
333 333
     'name' => _MI_PEDIGREE_VIRTUAL_MATING,
334 334
     'url'  => 'virtual.php'
335 335
 );
336
-$modversion['sub'][]   = array(
336
+$modversion['sub'][] = array(
337 337
     'name' => _MI_PEDIGREE_LATEST_ADDITIONS,
338 338
     'url'  => 'latest.php'
339 339
 );
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
     'item_name'      => 'id',
515 515
     'allow_bookmark' => 1
516 516
 );
517
-$modversion['notification']['event'][]    = array(
517
+$modversion['notification']['event'][] = array(
518 518
     'name'          => 'change_data',
519 519
     'category'      => 'dog',
520 520
     'title'         => _MI_PEDIGREE_DATA_NOTIFY,
Please login to merge, or discard this patch.
admin/pedigree_trash.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * @author          XOOPS Module Dev Team (http://xoops.org)
19 19
  */
20 20
 
21
-include_once __DIR__ . '/admin_header.php';
21
+include_once __DIR__.'/admin_header.php';
22 22
 
23 23
 xoops_cp_header();
24 24
 $adminMenu = new ModuleAdmin();
@@ -42,17 +42,17 @@  discard block
 block discarded – undo
42 42
             echo "<table cellspacing='1' class='outer width100'>
43 43
                 <thead>
44 44
                 <tr>
45
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_NAAM . "</th>
46
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_ID_OWNER . "</th>
47
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_ID_BREEDER . "</th>
48
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_USER . "</th>
49
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_ROFT . "</th>
50
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_MOTHER . "</th>
51
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_FATHER . "</th>
52
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_FOTO . "</th>
53
-                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_COI . "</th>
54
-
55
-                    <th align='center' width='10%'>" . _AM_PEDIGREE_FORMACTION . '</th>
45
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_NAAM."</th>
46
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_ID_OWNER."</th>
47
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_ID_BREEDER."</th>
48
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_USER."</th>
49
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_ROFT."</th>
50
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_MOTHER."</th>
51
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_FATHER."</th>
52
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_FOTO."</th>
53
+                        <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_TRASH_COI."</th>
54
+
55
+                    <th align='center' width='10%'>" . _AM_PEDIGREE_FORMACTION.'</th>
56 56
                 </tr>
57 57
                 </thead>
58 58
                 <tbody>';
@@ -63,18 +63,18 @@  discard block
 block discarded – undo
63 63
                 if (0 == $pedigree_trash_arr[$i]->getVar('pedigree_trash_pid')) {
64 64
                     echo "<tr class='{$class}'>";
65 65
                     $class = ($class === 'even') ? 'odd' : 'even';
66
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('NAAM') . '</td>';
67
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('id_owner') . '</td>';
68
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('id_breeder') . '</td>';
69
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('user') . '</td>';
70
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('roft') . '</td>';
71
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('mother') . '</td>';
72
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('father') . '</td>';
73
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('foto') . '</td>';
74
-                    echo "<td class='txtcenter'>" . $pedigree_trash_arr[$i]->getVar('coi') . '</td>';
66
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('NAAM').'</td>';
67
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('id_owner').'</td>';
68
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('id_breeder').'</td>';
69
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('user').'</td>';
70
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('roft').'</td>';
71
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('mother').'</td>';
72
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('father').'</td>';
73
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('foto').'</td>';
74
+                    echo "<td class='txtcenter'>".$pedigree_trash_arr[$i]->getVar('coi').'</td>';
75 75
                     echo "<td class'txtcenter width10'>
76
-                        <a href='pedigree_trash.php?op=edit_pedigree_trash&Id=" . $pedigree_trash_arr[$i]->getVar('Id') . "'><img src='{$pathIcon16}/edit.png' alt='" . _EDIT . "' title='" . _EDIT . "'></a>
77
-                        <a href='pedigree_trash.php?op=delete_pedigree_trash&Id=" . $pedigree_trash_arr[$i]->getVar('Id') . "'><img src='{$pathIcon16}/delete.png' alt='" . _DELETE . "' title='" . _DELETE . "'></a>
76
+                        <a href='pedigree_trash.php?op=edit_pedigree_trash&Id=" . $pedigree_trash_arr[$i]->getVar('Id')."'><img src='{$pathIcon16}/edit.png' alt='"._EDIT."' title='"._EDIT."'></a>
77
+                        <a href='pedigree_trash.php?op=delete_pedigree_trash&Id=" . $pedigree_trash_arr[$i]->getVar('Id')."'><img src='{$pathIcon16}/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>
78 78
                         </td>";
79 79
                     echo '</tr>';
80 80
                 }
@@ -160,4 +160,4 @@  discard block
 block discarded – undo
160 160
         }
161 161
         break;
162 162
 }
163
-include_once __DIR__ . '/admin_footer.php';
163
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
 
43 43
 */
44 44
 
45
-include_once dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
45
+include_once dirname(dirname(dirname(__DIR__))).'/mainfile.php';
46 46
 include_once $GLOBALS['xoops']->path('/include/cp_header.php');
47
-include_once dirname(__DIR__) . '/include/common.php';
48
-include_once dirname(__DIR__) . '/include/config.php';
47
+include_once dirname(__DIR__).'/include/common.php';
48
+include_once dirname(__DIR__).'/include/config.php';
49 49
 xoops_load('XoopsRequest');
50 50
 
51 51
 $moduleDirName = $GLOBALS['xoopsModule']->getVar('dirname');
52 52
 
53
-$pathIcon16      = '../' . $GLOBALS['xoopsModule']->getInfo('icons16');
54
-$pathIcon32      = '../' . $GLOBALS['xoopsModule']->getInfo('icons32');
53
+$pathIcon16      = '../'.$GLOBALS['xoopsModule']->getInfo('icons16');
54
+$pathIcon32      = '../'.$GLOBALS['xoopsModule']->getInfo('icons32');
55 55
 $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
56 56
 
57 57
 //load handlers
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 xoops_loadLanguage('modinfo', $moduleDirName);
75 75
 xoops_loadLanguage('main', $moduleDirName);
76 76
 // Locad admin menu class
77
-include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
77
+include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
78 78
 
79 79
 //xoops_cp_header();
80 80
 //$adminMenu = new ModuleAdmin();
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 //require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
21
-require_once __DIR__ . '/admin_header.php';
21
+require_once __DIR__.'/admin_header.php';
22 22
 if (!class_exists('PedigreeUtilities')) {
23 23
     xoops_load('utilities', $moduleDirName);
24 24
 }
@@ -34,4 +34,4 @@  discard block
 block discarded – undo
34 34
 echo $indexAdmin->addNavigation(basename(__FILE__));
35 35
 echo $indexAdmin->renderIndex();
36 36
 
37
-include_once __DIR__ . '/admin_footer.php';
37
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/pedigree_config.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * @author          XOOPS Module Dev Team (http://xoops.org)
19 19
  */
20 20
 
21
-include_once __DIR__ . '/admin_header.php';
21
+include_once __DIR__.'/admin_header.php';
22 22
 
23 23
 xoops_cp_header();
24 24
 $adminMenu = new ModuleAdmin();
@@ -42,22 +42,22 @@  discard block
 block discarded – undo
42 42
             echo "<table cellspacing='1' class='outer width100'>
43 43
                 <thead>
44 44
                 <tr>
45
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_ISACTIVE . "</th>
46
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_FIELDNAME . "</th>
47
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_FIELDTYPE . "</th>
48
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_LOOKUPTABLE . "</th>
49
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_DEFAULTVALUE . "</th>
50
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_FIELDEXPLANATION . "</th>
51
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_HASSEARCH . "</th>
52
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_LITTER . "</th>
53
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_GENERALLITTER . "</th>
54
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_SEARCHNAME . "</th>
55
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_SEARCHEXPLANATION . "</th>
56
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINPEDIGREE . "</th>
57
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINADVANCED . "</th>
58
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINPIE . "</th>
59
-                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINLIST . "</th>
60
-                    <th class='txtcenter width10'>" . _AM_PEDIGREE_FORMACTION . '</th>
45
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_ISACTIVE."</th>
46
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_FIELDNAME."</th>
47
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_FIELDTYPE."</th>
48
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_LOOKUPTABLE."</th>
49
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_DEFAULTVALUE."</th>
50
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_FIELDEXPLANATION."</th>
51
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_HASSEARCH."</th>
52
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_LITTER."</th>
53
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_GENERALLITTER."</th>
54
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_SEARCHNAME."</th>
55
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_SEARCHEXPLANATION."</th>
56
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINPEDIGREE."</th>
57
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINADVANCED."</th>
58
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINPIE."</th>
59
+                    <th class='txtcenter'>" . _AM_PEDIGREE_PEDIGREE_CONFIG_VIEWINLIST."</th>
60
+                    <th class='txtcenter width10'>" . _AM_PEDIGREE_FORMACTION.'</th>
61 61
                 </tr>
62 62
                 </thead>
63 63
                 <tbody>';
@@ -68,24 +68,24 @@  discard block
 block discarded – undo
68 68
                 if (0 == $pedigree_config_arr[$i]->getVar('pedigree_config_pid')) {
69 69
                     echo "<tr class='{$class}'>";
70 70
                     $class = ($class === 'even') ? 'odd' : 'even';
71
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('isactive') . '</td>';
72
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('fieldname') . '</td>';
73
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('fieldtype') . '</td>';
74
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('lookuptable') . '</td>';
75
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('defaultvalue') . '</td>';
76
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('fieldexplanation') . '</td>';
77
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('hassearch') . '</td>';
78
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('litter') . '</td>';
79
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('generallitter') . '</td>';
80
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('searchname') . '</td>';
81
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('searchexplanation') . '</td>';
82
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('viewinpedigree') . '</td>';
83
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('viewinadvanced') . '</td>';
84
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('viewinpie') . '</td>';
85
-                    echo "<td class='txtcenter'>" . $pedigree_config_arr[$i]->getVar('viewinlist') . '</td>';
71
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('isactive').'</td>';
72
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('fieldname').'</td>';
73
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('fieldtype').'</td>';
74
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('lookuptable').'</td>';
75
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('defaultvalue').'</td>';
76
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('fieldexplanation').'</td>';
77
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('hassearch').'</td>';
78
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('litter').'</td>';
79
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('generallitter').'</td>';
80
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('searchname').'</td>';
81
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('searchexplanation').'</td>';
82
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('viewinpedigree').'</td>';
83
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('viewinadvanced').'</td>';
84
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('viewinpie').'</td>';
85
+                    echo "<td class='txtcenter'>".$pedigree_config_arr[$i]->getVar('viewinlist').'</td>';
86 86
                     echo "<td class='txtcenter width10'>
87
-                        <a href='pedigree_config.php?op=edit_pedigree_config&Id=" . $pedigree_config_arr[$i]->getVar('Id') . "'><img src='{$pathIcon16}/edit.png' alt='" . _EDIT . "' title='" . _EDIT . "'></a>
88
-                        <a href='pedigree_config.php?op=delete_pedigree_config&Id=" . $pedigree_config_arr[$i]->getVar('Id') . "'><img src='{$pathIcon16}/delete.png' alt='" . _DELETE . "' title='" . _DELETE . "'></a>
87
+                        <a href='pedigree_config.php?op=edit_pedigree_config&Id=" . $pedigree_config_arr[$i]->getVar('Id')."'><img src='{$pathIcon16}/edit.png' alt='"._EDIT."' title='"._EDIT."'></a>
88
+                        <a href='pedigree_config.php?op=delete_pedigree_config&Id=" . $pedigree_config_arr[$i]->getVar('Id')."'><img src='{$pathIcon16}/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>
89 89
                         </td>";
90 90
                     echo '</tr>';
91 91
                 }
@@ -195,4 +195,4 @@  discard block
 block discarded – undo
195 195
         }
196 196
         break;
197 197
 }
198
-include_once __DIR__ . '/admin_footer.php';
198
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/pedigree.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * @author          XOOPS Module Dev Team (http://xoops.org)
19 19
  */
20 20
 
21
-include_once __DIR__ . '/admin_header.php';
21
+include_once __DIR__.'/admin_header.php';
22 22
 
23 23
 xoops_cp_header();
24 24
 $adminMenu = new ModuleAdmin();
@@ -41,38 +41,38 @@  discard block
 block discarded – undo
41 41
         if ($numrows > 0) {
42 42
             echo "<table width='100%' cellspacing='1' class='outer'>
43 43
                 <tr>
44
-                    <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_NAAM . "</th>
45
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_ID_OWNER . "</th>
46
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_ID_BREEDER . "</th>
47
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_USER . "</th>
48
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_ROFT . "</th>
49
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_MOTHER . "</th>
50
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_FATHER . "</th>
51
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_FOTO . "</th>
52
-                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_COI . "</th>
53
-
54
-                    <th align='center' width='10%'>" . _AM_PEDIGREE_FORMACTION . '</th>
44
+                    <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_NAAM."</th>
45
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_ID_OWNER."</th>
46
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_ID_BREEDER."</th>
47
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_USER."</th>
48
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_ROFT."</th>
49
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_MOTHER."</th>
50
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_FATHER."</th>
51
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_FOTO."</th>
52
+                        <th align=\"center\">" . _AM_PEDIGREE_PEDIGREE_COI."</th>
53
+
54
+                    <th align='center' width='10%'>" . _AM_PEDIGREE_FORMACTION.'</th>
55 55
                 </tr>';
56 56
 
57 57
             $class = 'odd';
58 58
 
59 59
             foreach (array_keys($pedigree_arr) as $i) {
60 60
                 if ($pedigree_arr[$i]->getVar('pedigree_pid') == 0) {
61
-                    echo "<tr class='" . $class . "'>";
61
+                    echo "<tr class='".$class."'>";
62 62
                     $class = ($class === 'even') ? 'odd' : 'even';
63
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('NAAM') . '</td>';
64
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('id_owner') . '</td>';
65
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('id_breeder') . '</td>';
66
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('user') . '</td>';
67
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('roft') . '</td>';
68
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('mother') . '</td>';
69
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('father') . '</td>';
70
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('foto') . '</td>';
71
-                    echo "<td align=\"center\">" . $pedigree_arr[$i]->getVar('coi') . '</td>';
63
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('NAAM').'</td>';
64
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('id_owner').'</td>';
65
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('id_breeder').'</td>';
66
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('user').'</td>';
67
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('roft').'</td>';
68
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('mother').'</td>';
69
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('father').'</td>';
70
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('foto').'</td>';
71
+                    echo "<td align=\"center\">".$pedigree_arr[$i]->getVar('coi').'</td>';
72 72
 
73 73
                     echo "<td align='center' width='10%'>
74
-                        <a href='pedigree.php?op=edit_pedigree&Id=" . $pedigree_arr[$i]->getVar('Id') . "'><img src='{$pathIcon16}/edit.png' alt='" . _EDIT . "' title='" . _EDIT . "'></a>
75
-                        <a href='" . PEDIGREE_URL . "/delete.php?Id=" . $pedigree_arr[$i]->getVar('Id') . "'><img src='{$pathIcon16}/delete.png' alt='" . _DELETE . "' title='" . _DELETE . "'></a>
74
+                        <a href='pedigree.php?op=edit_pedigree&Id=" . $pedigree_arr[$i]->getVar('Id')."'><img src='{$pathIcon16}/edit.png' alt='"._EDIT."' title='"._EDIT."'></a>
75
+                        <a href='" . PEDIGREE_URL."/delete.php?Id=".$pedigree_arr[$i]->getVar('Id')."'><img src='{$pathIcon16}/delete.png' alt='"._DELETE."' title='"._DELETE."'></a>
76 76
                         </td>";
77 77
                     echo '</tr>';
78 78
                 }
@@ -156,4 +156,4 @@  discard block
 block discarded – undo
156 156
         }
157 157
         break;
158 158
 }
159
-include_once __DIR__ . '/admin_footer.php';
159
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.