Passed
Push — master ( 48d769...5ccf6e )
by Michael
07:14
created
class/Fields.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,9 +96,9 @@
 block discarded – undo
96 96
         $currentType = $this->getVar('litter') ? 'litter' : 'generallitter';
97 97
         $litterRadio = new \XoopsFormRadio(_AM_PEDIGREE_PEDIGREE_CONFIG_LITTER_TYPE, 'litterType', $currentType);
98 98
         $litterRadio->addOptionArray([
99
-                                         'litter'        => _AM_PEDIGREE_PEDIGREE_CONFIG_LITTER,
100
-                                         'generallitter' => _AM_PEDIGREE_PEDIGREE_CONFIG_GENERALLITTER
101
-                                     ]);
99
+                                            'litter'        => _AM_PEDIGREE_PEDIGREE_CONFIG_LITTER,
100
+                                            'generallitter' => _AM_PEDIGREE_PEDIGREE_CONFIG_GENERALLITTER
101
+                                        ]);
102 102
         $form->addElement($litterRadio, false);
103 103
         //        $form->addElement(new \XoopsFormRadioYN(_AM_PEDIGREE_PEDIGREE_CONFIG_LITTER, "Litter", $this->getVar("Litter")), false);
104 104
         //        $form->addElement(new \XoopsFormRadioYN(_AM_PEDIGREE_PEDIGREE_CONFIG_GENERALLITTER, "Generallitter", $this->getVar("Generallitter")), false);
Please login to merge, or discard this patch.
class/Helper.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
     public function __construct($debug = false)
35 35
     {
36 36
         $this->debug   = $debug;
37
-       $moduleDirName = basename(dirname(__DIR__));
38
-       parent::__construct($moduleDirName);
37
+        $moduleDirName = basename(dirname(__DIR__));
38
+        parent::__construct($moduleDirName);
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
admin/colors.php 1 patch
Indentation   +304 added lines, -304 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
 <script language="JavaScript" src="colors.js"></script>';
45 45
 echo '
46 46
 <table width="90%" id="background" cellspacing="0" style=" background-color: #'
47
-     . $mainBackColour
48
-     . ';">
47
+        . $mainBackColour
48
+        . ';">
49 49
 <tr>
50 50
 <td align="center">
51 51
 <br>
@@ -58,329 +58,329 @@  discard block
 block discarded – undo
58 58
 <td>
59 59
 
60 60
 <table width="100%" id="maintable" cellspacing="0" style=" background-color: #'
61
-     . $mainBackColour
62
-     . ';">
61
+        . $mainBackColour
62
+        . ';">
63 63
     <!-- header (dog name) -->
64 64
     <tr>
65 65
         <th colspan="4" style="text-align:center; background-color: #'
66
-     . $selectedBackColour
67
-     . ';" id="selected1">
66
+        . $selectedBackColour
67
+        . ';" id="selected1">
68 68
             Pedigree Database
69 69
         </th>
70 70
     </tr>
71 71
     <tr>
72 72
         <!-- selected dog -->
73 73
         <td width="25%" rowspan="8" style=" background-color: #'
74
-     . $selectedBackColour
75
-     . '; border-style: '
76
-     . $borderStyle
77
-     . '; border-color: #'
78
-     . $borderColour
79
-     . '; border-width: '
80
-     . $borderWidth
81
-     . 'px; color: #'
82
-     . $selectedTextColour
83
-     . '; font-family: '
84
-     . $selectedTextFont
85
-     . '; font-size: '
86
-     . $selectedTextSize
87
-     . '; font-style: '
88
-     . $selectedTextStyle
89
-     . ';" id="selected2">
74
+        . $selectedBackColour
75
+        . '; border-style: '
76
+        . $borderStyle
77
+        . '; border-color: #'
78
+        . $borderColour
79
+        . '; border-width: '
80
+        . $borderWidth
81
+        . 'px; color: #'
82
+        . $selectedTextColour
83
+        . '; font-family: '
84
+        . $selectedTextFont
85
+        . '; font-size: '
86
+        . $selectedTextSize
87
+        . '; font-style: '
88
+        . $selectedTextStyle
89
+        . ';" id="selected2">
90 90
             Selected animal
91 91
         </td>
92 92
         <!-- father -->
93 93
         <td width="25%" rowspan="4" style=" background-color: #'
94
-     . $maleBackColour
95
-     . '; color: #'
96
-     . $maleTextColour
97
-     . '; font-family: '
98
-     . $maleTextFont
99
-     . '; font-size: '
100
-     . $maleTextSize
101
-     . '; font-style: '
102
-     . $maleTextStyle
103
-     . '; border-style: '
104
-     . $borderStyle
105
-     . '; border-color: #'
106
-     . $borderColour
107
-     . '; border-width: '
108
-     . $borderWidth
109
-     . 'px;" id="fathercell1">
94
+        . $maleBackColour
95
+        . '; color: #'
96
+        . $maleTextColour
97
+        . '; font-family: '
98
+        . $maleTextFont
99
+        . '; font-size: '
100
+        . $maleTextSize
101
+        . '; font-style: '
102
+        . $maleTextStyle
103
+        . '; border-style: '
104
+        . $borderStyle
105
+        . '; border-color: #'
106
+        . $borderColour
107
+        . '; border-width: '
108
+        . $borderWidth
109
+        . 'px;" id="fathercell1">
110 110
             Father
111 111
         </td>
112 112
         <!-- father father -->
113 113
         <td width="25%" rowspan="2" style=" background-color: #'
114
-     . $maleBackColour
115
-     . '; color: #'
116
-     . $maleTextColour
117
-     . '; font-family: '
118
-     . $maleTextFont
119
-     . '; font-size: '
120
-     . $maleTextSize
121
-     . '; font-style: '
122
-     . $maleTextStyle
123
-     . '; border-style: '
124
-     . $borderStyle
125
-     . '; border-color: #'
126
-     . $borderColour
127
-     . '; border-width: '
128
-     . $borderWidth
129
-     . 'px;" id="fathercell2">
114
+        . $maleBackColour
115
+        . '; color: #'
116
+        . $maleTextColour
117
+        . '; font-family: '
118
+        . $maleTextFont
119
+        . '; font-size: '
120
+        . $maleTextSize
121
+        . '; font-style: '
122
+        . $maleTextStyle
123
+        . '; border-style: '
124
+        . $borderStyle
125
+        . '; border-color: #'
126
+        . $borderColour
127
+        . '; border-width: '
128
+        . $borderWidth
129
+        . 'px;" id="fathercell2">
130 130
             Father Father
131 131
         </td>
132 132
         <!-- father father father -->
133 133
         <td width="25%" style=" background-color: #'
134
-     . $maleBackColour
135
-     . '; color: #'
136
-     . $maleTextColour
137
-     . '; font-family: '
138
-     . $maleTextFont
139
-     . '; font-size: '
140
-     . $maleTextSize
141
-     . '; font-style: '
142
-     . $maleTextStyle
143
-     . '; border-style: '
144
-     . $borderStyle
145
-     . '; border-color: #'
146
-     . $borderColour
147
-     . '; border-width: '
148
-     . $borderWidth
149
-     . 'px;" id="fathercell3">
134
+        . $maleBackColour
135
+        . '; color: #'
136
+        . $maleTextColour
137
+        . '; font-family: '
138
+        . $maleTextFont
139
+        . '; font-size: '
140
+        . $maleTextSize
141
+        . '; font-style: '
142
+        . $maleTextStyle
143
+        . '; border-style: '
144
+        . $borderStyle
145
+        . '; border-color: #'
146
+        . $borderColour
147
+        . '; border-width: '
148
+        . $borderWidth
149
+        . 'px;" id="fathercell3">
150 150
             Father Father Father
151 151
         </td>
152 152
     </tr>
153 153
     <tr>
154 154
         <!-- father father mother -->
155 155
         <td width="25%" style=" background-color: #'
156
-     . $femaleBackColour
157
-     . '; color: #'
158
-     . $femaleTextColour
159
-     . '; font-family: '
160
-     . $femaleTextFont
161
-     . '; font-size: '
162
-     . $femaleTextSize
163
-     . '; font-style: '
164
-     . $femaleTextStyle
165
-     . '; border-style: '
166
-     . $borderStyle
167
-     . '; border-color: #'
168
-     . $borderColour
169
-     . '; border-width: '
170
-     . $borderWidth
171
-     . 'px;" id="mothercell1">
156
+        . $femaleBackColour
157
+        . '; color: #'
158
+        . $femaleTextColour
159
+        . '; font-family: '
160
+        . $femaleTextFont
161
+        . '; font-size: '
162
+        . $femaleTextSize
163
+        . '; font-style: '
164
+        . $femaleTextStyle
165
+        . '; border-style: '
166
+        . $borderStyle
167
+        . '; border-color: #'
168
+        . $borderColour
169
+        . '; border-width: '
170
+        . $borderWidth
171
+        . 'px;" id="mothercell1">
172 172
             Father Father Mother
173 173
         </td>
174 174
     </tr>
175 175
     <tr>
176 176
         <!-- father mother -->
177 177
         <td width="25%" rowspan="2" style=" background-color: #'
178
-     . $femaleBackColour
179
-     . '; color: #'
180
-     . $femaleTextColour
181
-     . ';  font-family: '
182
-     . $femaleTextFont
183
-     . '; font-size: '
184
-     . $femaleTextSize
185
-     . '; font-style: '
186
-     . $femaleTextStyle
187
-     . '; border-style: '
188
-     . $borderStyle
189
-     . '; border-color: #'
190
-     . $borderColour
191
-     . '; border-width: '
192
-     . $borderWidth
193
-     . 'px;" id="mothercell2">
178
+        . $femaleBackColour
179
+        . '; color: #'
180
+        . $femaleTextColour
181
+        . ';  font-family: '
182
+        . $femaleTextFont
183
+        . '; font-size: '
184
+        . $femaleTextSize
185
+        . '; font-style: '
186
+        . $femaleTextStyle
187
+        . '; border-style: '
188
+        . $borderStyle
189
+        . '; border-color: #'
190
+        . $borderColour
191
+        . '; border-width: '
192
+        . $borderWidth
193
+        . 'px;" id="mothercell2">
194 194
             Father Mother
195 195
         </td>
196 196
         <!-- father mother father -->
197 197
         <td width="25%" style=" background-color: #'
198
-     . $maleBackColour
199
-     . '; color: #'
200
-     . $maleTextColour
201
-     . '; font-family: '
202
-     . $maleTextFont
203
-     . '; font-size: '
204
-     . $maleTextSize
205
-     . '; font-style: '
206
-     . $maleTextStyle
207
-     . '; border-style: '
208
-     . $borderStyle
209
-     . '; border-color: #'
210
-     . $borderColour
211
-     . '; border-width: '
212
-     . $borderWidth
213
-     . 'px;" id="fathercell4">
198
+        . $maleBackColour
199
+        . '; color: #'
200
+        . $maleTextColour
201
+        . '; font-family: '
202
+        . $maleTextFont
203
+        . '; font-size: '
204
+        . $maleTextSize
205
+        . '; font-style: '
206
+        . $maleTextStyle
207
+        . '; border-style: '
208
+        . $borderStyle
209
+        . '; border-color: #'
210
+        . $borderColour
211
+        . '; border-width: '
212
+        . $borderWidth
213
+        . 'px;" id="fathercell4">
214 214
             Father Mother Father
215 215
         </td>
216 216
     </tr>
217 217
     <tr>
218 218
         <!-- father mother mother -->
219 219
         <td width="25%" style=" background-color: #'
220
-     . $femaleBackColour
221
-     . '; color: #'
222
-     . $femaleTextColour
223
-     . ';  font-family: '
224
-     . $femaleTextFont
225
-     . '; font-size: '
226
-     . $femaleTextSize
227
-     . '; font-style: '
228
-     . $femaleTextStyle
229
-     . '; border-style: '
230
-     . $borderStyle
231
-     . '; border-color: #'
232
-     . $borderColour
233
-     . '; border-width: '
234
-     . $borderWidth
235
-     . 'px;" id="mothercell3">
220
+        . $femaleBackColour
221
+        . '; color: #'
222
+        . $femaleTextColour
223
+        . ';  font-family: '
224
+        . $femaleTextFont
225
+        . '; font-size: '
226
+        . $femaleTextSize
227
+        . '; font-style: '
228
+        . $femaleTextStyle
229
+        . '; border-style: '
230
+        . $borderStyle
231
+        . '; border-color: #'
232
+        . $borderColour
233
+        . '; border-width: '
234
+        . $borderWidth
235
+        . 'px;" id="mothercell3">
236 236
             Father Mother Mother
237 237
         </td>
238 238
     </tr>
239 239
     <tr>
240 240
         <!-- mother -->
241 241
         <td width="25%" rowspan="4" style=" background-color: #'
242
-     . $femaleBackColour
243
-     . '; color: #'
244
-     . $femaleTextColour
245
-     . '; font-family: '
246
-     . $femaleTextFont
247
-     . '; font-size: '
248
-     . $femaleTextSize
249
-     . '; font-style: '
250
-     . $femaleTextStyle
251
-     . '; border-style: '
252
-     . $borderStyle
253
-     . '; border-color: #'
254
-     . $borderColour
255
-     . '; border-width: '
256
-     . $borderWidth
257
-     . 'px;" id="mothercell4">
242
+        . $femaleBackColour
243
+        . '; color: #'
244
+        . $femaleTextColour
245
+        . '; font-family: '
246
+        . $femaleTextFont
247
+        . '; font-size: '
248
+        . $femaleTextSize
249
+        . '; font-style: '
250
+        . $femaleTextStyle
251
+        . '; border-style: '
252
+        . $borderStyle
253
+        . '; border-color: #'
254
+        . $borderColour
255
+        . '; border-width: '
256
+        . $borderWidth
257
+        . 'px;" id="mothercell4">
258 258
             Mother
259 259
         </td>
260 260
         <!-- mother father -->
261 261
         <td width="25%" rowspan="2" style=" background-color: #'
262
-     . $maleBackColour
263
-     . '; color: #'
264
-     . $maleTextColour
265
-     . '; font-family: '
266
-     . $maleTextFont
267
-     . '; font-size: '
268
-     . $maleTextSize
269
-     . '; font-style: '
270
-     . $maleTextStyle
271
-     . '; border-style: '
272
-     . $borderStyle
273
-     . '; border-color: #'
274
-     . $borderColour
275
-     . '; border-width: '
276
-     . $borderWidth
277
-     . 'px;" id="fathercell5">
262
+        . $maleBackColour
263
+        . '; color: #'
264
+        . $maleTextColour
265
+        . '; font-family: '
266
+        . $maleTextFont
267
+        . '; font-size: '
268
+        . $maleTextSize
269
+        . '; font-style: '
270
+        . $maleTextStyle
271
+        . '; border-style: '
272
+        . $borderStyle
273
+        . '; border-color: #'
274
+        . $borderColour
275
+        . '; border-width: '
276
+        . $borderWidth
277
+        . 'px;" id="fathercell5">
278 278
             Mother Father
279 279
         </td>
280 280
         <!-- mother father father -->
281 281
         <td width="25%" style=" background-color: #'
282
-     . $maleBackColour
283
-     . '; color: #'
284
-     . $maleTextColour
285
-     . '; font-family: '
286
-     . $maleTextFont
287
-     . '; font-size: '
288
-     . $maleTextSize
289
-     . '; font-style: '
290
-     . $maleTextStyle
291
-     . '; border-style: '
292
-     . $borderStyle
293
-     . '; border-color: #'
294
-     . $borderColour
295
-     . '; border-width: '
296
-     . $borderWidth
297
-     . 'px;" id="fathercell6">
282
+        . $maleBackColour
283
+        . '; color: #'
284
+        . $maleTextColour
285
+        . '; font-family: '
286
+        . $maleTextFont
287
+        . '; font-size: '
288
+        . $maleTextSize
289
+        . '; font-style: '
290
+        . $maleTextStyle
291
+        . '; border-style: '
292
+        . $borderStyle
293
+        . '; border-color: #'
294
+        . $borderColour
295
+        . '; border-width: '
296
+        . $borderWidth
297
+        . 'px;" id="fathercell6">
298 298
             Mother Father Father
299 299
         </td>
300 300
     </tr>
301 301
     <tr>
302 302
         <!-- mother father mother -->
303 303
         <td width="25%" style=" background-color: #'
304
-     . $femaleBackColour
305
-     . '; color: #'
306
-     . $femaleTextColour
307
-     . ';  font-family: '
308
-     . $femaleTextFont
309
-     . '; font-size: '
310
-     . $femaleTextSize
311
-     . '; font-style: '
312
-     . $femaleTextStyle
313
-     . '; border-style: '
314
-     . $borderStyle
315
-     . '; border-color: #'
316
-     . $borderColour
317
-     . '; border-width: '
318
-     . $borderWidth
319
-     . 'px;" id="mothercell5">
304
+        . $femaleBackColour
305
+        . '; color: #'
306
+        . $femaleTextColour
307
+        . ';  font-family: '
308
+        . $femaleTextFont
309
+        . '; font-size: '
310
+        . $femaleTextSize
311
+        . '; font-style: '
312
+        . $femaleTextStyle
313
+        . '; border-style: '
314
+        . $borderStyle
315
+        . '; border-color: #'
316
+        . $borderColour
317
+        . '; border-width: '
318
+        . $borderWidth
319
+        . 'px;" id="mothercell5">
320 320
             Mother Father Mother
321 321
         </td>
322 322
     </tr>
323 323
     <tr>
324 324
         <!-- mother mother -->
325 325
         <td width="25%" rowspan="2" style=" background-color: #'
326
-     . $femaleBackColour
327
-     . '; color: #'
328
-     . $femaleTextColour
329
-     . '; font-family: '
330
-     . $femaleTextFont
331
-     . '; font-size: '
332
-     . $femaleTextSize
333
-     . '; font-style: '
334
-     . $femaleTextStyle
335
-     . '; border-style: '
336
-     . $borderStyle
337
-     . '; border-color: #'
338
-     . $borderColour
339
-     . '; border-width: '
340
-     . $borderWidth
341
-     . 'px;" id="mothercell6">
326
+        . $femaleBackColour
327
+        . '; color: #'
328
+        . $femaleTextColour
329
+        . '; font-family: '
330
+        . $femaleTextFont
331
+        . '; font-size: '
332
+        . $femaleTextSize
333
+        . '; font-style: '
334
+        . $femaleTextStyle
335
+        . '; border-style: '
336
+        . $borderStyle
337
+        . '; border-color: #'
338
+        . $borderColour
339
+        . '; border-width: '
340
+        . $borderWidth
341
+        . 'px;" id="mothercell6">
342 342
             Mother Mother
343 343
         </td>
344 344
         <!-- mother mother father -->
345 345
         <td width="25%" style=" background-color: #'
346
-     . $maleBackColour
347
-     . '; color: #'
348
-     . $maleTextColour
349
-     . '; font-family: '
350
-     . $maleTextFont
351
-     . '; font-size: '
352
-     . $maleTextSize
353
-     . '; font-style: '
354
-     . $maleTextStyle
355
-     . '; border-style: '
356
-     . $borderStyle
357
-     . '; border-color: #'
358
-     . $borderColour
359
-     . '; border-width: '
360
-     . $borderWidth
361
-     . 'px;" id="fathercell7">
346
+        . $maleBackColour
347
+        . '; color: #'
348
+        . $maleTextColour
349
+        . '; font-family: '
350
+        . $maleTextFont
351
+        . '; font-size: '
352
+        . $maleTextSize
353
+        . '; font-style: '
354
+        . $maleTextStyle
355
+        . '; border-style: '
356
+        . $borderStyle
357
+        . '; border-color: #'
358
+        . $borderColour
359
+        . '; border-width: '
360
+        . $borderWidth
361
+        . 'px;" id="fathercell7">
362 362
             Mother Mother Father
363 363
         </td>
364 364
     </tr>
365 365
     <tr>
366 366
         <!-- mother mother mother -->
367 367
         <td width="25%" style=" background-color: #'
368
-     . $femaleBackColour
369
-     . '; color: #'
370
-     . $femaleTextColour
371
-     . '; font-family: '
372
-     . $femaleTextFont
373
-     . '; font-size: '
374
-     . $femaleTextSize
375
-     . '; font-style: '
376
-     . $femaleTextStyle
377
-     . '; border-style: '
378
-     . $borderStyle
379
-     . '; border-color: #'
380
-     . $borderColour
381
-     . '; border-width: '
382
-     . $borderWidth
383
-     . 'px;" id="mothercell7">
368
+        . $femaleBackColour
369
+        . '; color: #'
370
+        . $femaleTextColour
371
+        . '; font-family: '
372
+        . $femaleTextFont
373
+        . '; font-size: '
374
+        . $femaleTextSize
375
+        . '; font-style: '
376
+        . $femaleTextStyle
377
+        . '; border-style: '
378
+        . $borderStyle
379
+        . '; border-color: #'
380
+        . $borderColour
381
+        . '; border-width: '
382
+        . $borderWidth
383
+        . 'px;" id="mothercell7">
384 384
             Mother Mother Mother
385 385
         </td>
386 386
     </tr>
@@ -410,8 +410,8 @@  discard block
 block discarded – undo
410 410
                     <td width="50%">Background colour</td>
411 411
                     <td>
412 412
                         <INPUT TYPE="text" id="sbgcolor" name="sbgcolor" value="#'
413
-     . $selectedBackColour
414
-     . '" size="11" maxlength="7">
413
+        . $selectedBackColour
414
+        . '" size="11" maxlength="7">
415 415
                         <!-- Color Picker initialization and ancor icon to call a picker -->
416 416
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'sbgcolor\'])">
417 417
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -421,8 +421,8 @@  discard block
 block discarded – undo
421 421
                     <td>Text colour</td>
422 422
                     <td>
423 423
                         <INPUT TYPE="text" id="stxtcolor" name="stxtcolor" value="#'
424
-     . $selectedTextColour
425
-     . '" size="11" maxlength="7">
424
+        . $selectedTextColour
425
+        . '" size="11" maxlength="7">
426 426
                         <!-- Color Picker initialization and ancor icon to call a picker -->
427 427
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'stxtcolor\'])">
428 428
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -433,10 +433,10 @@  discard block
 block discarded – undo
433 433
                     <td>
434 434
                         <select id=\'sfont\' name="sfont" onchange="changeCol()">
435 435
                         <option value=\''
436
-     . $selectedTextFont
437
-     . '\' selected>'
438
-     . $selectedTextFont
439
-     . '</option>
436
+        . $selectedTextFont
437
+        . '\' selected>'
438
+        . $selectedTextFont
439
+        . '</option>
440 440
                         <option value=\'Arial\'>Arial</option>
441 441
                         <option value=\'Courier\'>Courier</option>
442 442
                         <option value=\'Georgia\'>Georgia</option>
@@ -451,10 +451,10 @@  discard block
 block discarded – undo
451 451
                     <td>
452 452
                         <select id=\'sfontsize\' name="sfontsize" onchange="changeCol()">
453 453
                         <option value=\''
454
-     . $selectedTextSize
455
-     . '\' selected>'
456
-     . $selectedTextSize
457
-     . '</option>
454
+        . $selectedTextSize
455
+        . '\' selected>'
456
+        . $selectedTextSize
457
+        . '</option>
458 458
                         <option value=\'xx-small\'>xx-small</option>
459 459
                         <option value=\'x-small\'>x-small</option>
460 460
                         <option value=\'small\'>small</option>
@@ -470,10 +470,10 @@  discard block
 block discarded – undo
470 470
                     <td>
471 471
                         <select id=\'sfontstyle\' name="sfontstyle" onchange="changeCol()">
472 472
                         <option value=\''
473
-     . $selectedTextStyle
474
-     . '\' selected>'
475
-     . $selectedTextStyle
476
-     . '</option>
473
+        . $selectedTextStyle
474
+        . '\' selected>'
475
+        . $selectedTextStyle
476
+        . '</option>
477 477
                         <option value=\'italic\'>Italic</option>
478 478
                         <option value=\'normal\'>Normal</option>
479 479
                         </select>
@@ -489,8 +489,8 @@  discard block
 block discarded – undo
489 489
                     <td width="50%">Background colour</td>
490 490
                     <td>
491 491
                         <INPUT TYPE="text" id="mbgcolor" name="mbgcolor" value="#'
492
-     . $maleBackColour
493
-     . '" size="11" maxlength="7">
492
+        . $maleBackColour
493
+        . '" size="11" maxlength="7">
494 494
                         <!-- Color Picker initialization and ancor icon to call a picker -->
495 495
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'mbgcolor\'])">
496 496
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -500,8 +500,8 @@  discard block
 block discarded – undo
500 500
                     <td>Text colour</td>
501 501
                     <td>
502 502
                         <INPUT TYPE="text" id="mtxtcolor" name="mtxtcolor" value="#'
503
-     . $maleTextColour
504
-     . '" size="11" maxlength="7">
503
+        . $maleTextColour
504
+        . '" size="11" maxlength="7">
505 505
                         <!-- Color Picker initialization and ancor icon to call a picker -->
506 506
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'mtxtcolor\'])">
507 507
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -512,10 +512,10 @@  discard block
 block discarded – undo
512 512
                     <td>
513 513
                         <select id=\'mfont\' name="mfont" onchange="changeCol()">
514 514
                         <option value=\''
515
-     . $maleTextFont
516
-     . '\' selected>'
517
-     . $maleTextFont
518
-     . '</option>
515
+        . $maleTextFont
516
+        . '\' selected>'
517
+        . $maleTextFont
518
+        . '</option>
519 519
                         <option value=\'Arial\'>Arial</option>
520 520
                         <option value=\'Courier\'>Courier</option>
521 521
                         <option value=\'Georgia\'>Georgia</option>
@@ -530,10 +530,10 @@  discard block
 block discarded – undo
530 530
                     <td>
531 531
                         <select id=\'mfontsize\' name="mfontsize" onchange="changeCol()">
532 532
                         <option value=\''
533
-     . $maleTextSize
534
-     . '\' selected>'
535
-     . $maleTextSize
536
-     . '</option>
533
+        . $maleTextSize
534
+        . '\' selected>'
535
+        . $maleTextSize
536
+        . '</option>
537 537
                         <option value=\'xx-small\'>xx-small</option>
538 538
                         <option value=\'x-small\'>x-small</option>
539 539
                         <option value=\'small\'>small</option>
@@ -549,10 +549,10 @@  discard block
 block discarded – undo
549 549
                     <td>
550 550
                         <select id=\'mfontstyle\' name="mfontstyle" onchange="changeCol()">
551 551
                         <option value=\''
552
-     . $maleTextStyle
553
-     . '\' selected>'
554
-     . $maleTextStyle
555
-     . '</option>
552
+        . $maleTextStyle
553
+        . '\' selected>'
554
+        . $maleTextStyle
555
+        . '</option>
556 556
                         <option value=\'italic\'>Italic</option>
557 557
                         <option value=\'normal\'>Normal</option>
558 558
                         </select>
@@ -568,8 +568,8 @@  discard block
 block discarded – undo
568 568
                     <td width="50%">Background colour</td>
569 569
                     <td>
570 570
                         <INPUT TYPE="text" id="fbgcolor" name="fbgcolor" value="#'
571
-     . $femaleBackColour
572
-     . '" size="11" maxlength="7">
571
+        . $femaleBackColour
572
+        . '" size="11" maxlength="7">
573 573
                         <!-- Color Picker initialization and ancor icon to call a picker -->
574 574
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'fbgcolor\'])">
575 575
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -579,8 +579,8 @@  discard block
 block discarded – undo
579 579
                     <td>Text colour</td>
580 580
                     <td>
581 581
                         <INPUT TYPE="text" id="ftxtcolor" name="ftxtcolor" value="#'
582
-     . $femaleTextColour
583
-     . '" size="11" maxlength="7">
582
+        . $femaleTextColour
583
+        . '" size="11" maxlength="7">
584 584
                         <!-- Color Picker initialization and ancor icon to call a picker -->
585 585
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'ftxtcolor\'])">
586 586
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -591,10 +591,10 @@  discard block
 block discarded – undo
591 591
                     <td>
592 592
                         <select id=\'ffont\' name="ffont" onchange="changeCol()">
593 593
                         <option value=\''
594
-     . $femaleTextFont
595
-     . '\' selected>'
596
-     . $femaleTextFont
597
-     . '</option>
594
+        . $femaleTextFont
595
+        . '\' selected>'
596
+        . $femaleTextFont
597
+        . '</option>
598 598
                         <option value=\'Arial\'>Arial</option>
599 599
                         <option value=\'Courier\'>Courier</option>
600 600
                         <option value=\'Georgia\'>Georgia</option>
@@ -609,10 +609,10 @@  discard block
 block discarded – undo
609 609
                     <td>
610 610
                         <select id=\'ffontsize\' name="ffontsize" onchange="changeCol()">
611 611
                         <option value=\''
612
-     . $femaleTextSize
613
-     . '\' selected>'
614
-     . $femaleTextSize
615
-     . '</option>
612
+        . $femaleTextSize
613
+        . '\' selected>'
614
+        . $femaleTextSize
615
+        . '</option>
616 616
                         <option value=\'xx-small\'>xx-small</option>
617 617
                         <option value=\'x-small\'>x-small</option>
618 618
                         <option value=\'small\'>small</option>
@@ -628,10 +628,10 @@  discard block
 block discarded – undo
628 628
                     <td>
629 629
                         <select id=\'ffontstyle\' name="ffontstyle" onchange="changeCol()">
630 630
                         <option value=\''
631
-     . $femaleTextStyle
632
-     . '\' selected>'
633
-     . $femaleTextStyle
634
-     . '</option>
631
+        . $femaleTextStyle
632
+        . '\' selected>'
633
+        . $femaleTextStyle
634
+        . '</option>
635 635
                         <option value=\'italic\'>Italic</option>
636 636
                         <option value=\'normal\'>Normal</option>
637 637
                         </select>
@@ -649,10 +649,10 @@  discard block
 block discarded – undo
649 649
                     <td>
650 650
                         <select id=\'bstyle\' name="bstyle" onchange="changeCol()">
651 651
                         <option value=\''
652
-     . $borderStyle
653
-     . '\' selected>'
654
-     . $borderStyle
655
-     . '</option>
652
+        . $borderStyle
653
+        . '\' selected>'
654
+        . $borderStyle
655
+        . '</option>
656 656
                         <option value=\'dotted\'>Dotted</option>
657 657
                         <option value=\'solid\'>Solid</option>
658 658
                         <option value=\'dashed\'>Dashed</option>
@@ -664,16 +664,16 @@  discard block
 block discarded – undo
664 664
                     <td>Width</td>
665 665
                     <td>
666 666
                         <INPUT TYPE="text" id="bwidth" name="bwidth" value="'
667
-     . $borderWidth
668
-     . 'px" size="11" maxlength="7">
667
+        . $borderWidth
668
+        . 'px" size="11" maxlength="7">
669 669
                     </td>
670 670
                 </tr>
671 671
                 <tr>
672 672
                     <td>Colour</td>
673 673
                     <td>
674 674
                         <INPUT TYPE="text" id="bcolor" name="bcolor" value="#'
675
-     . $borderColour
676
-     . '" size="11" maxlength="7">
675
+        . $borderColour
676
+        . '" size="11" maxlength="7">
677 677
                         <!-- Color Picker initialization and ancor icon to call a picker -->
678 678
                         <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'bcolor\'])">
679 679
                         <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
@@ -687,8 +687,8 @@  discard block
 block discarded – undo
687 687
 <hr>
688 688
 main background color :
689 689
 <INPUT TYPE="text" id="mainbgcolor" name="mainbgcolor" value="#'
690
-     . $mainBackColour
691
-     . '">
690
+        . $mainBackColour
691
+        . '">
692 692
 <!-- Color Picker initialization and ancor icon to call a picker -->
693 693
 <a href="javascript:TCP.popup(document.forms[\'myForm\'].elements[\'mainbgcolor\'])">
694 694
 <img width="15" height="13" border="0" alt="Click Here to Pick up the color" src="img/sel.gif"></a>
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 $pathIcon32      = Xmf\Module\Admin::iconUrl('', 32);
20 20
 
21 21
 echo "<div class='adminfooter'>\n"
22
-     ."  <div style='text-align: center;'>\n"
23
-     ."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
24
-     ."  </div>\n"
25
-     .'  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
26
-     .'</div>';
22
+        ."  <div style='text-align: center;'>\n"
23
+        ."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
24
+        ."  </div>\n"
25
+        .'  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n"
26
+        .'</div>';
27 27
 
28 28
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/tools.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
     $form->addElement($select);
354 354
     $form->addElement(new \XoopsFormLabel(
355 355
         _MA_PEDIGREE_EXPLAIN,
356
-                                         'This field is used to set the number of results a page will return from a search. If more results are returned extra pages will be created for easy browsing.<br>Set this number higher as your database grows and the number of pages increase.'
356
+                                            'This field is used to set the number of results a page will return from a search. If more results are returned extra pages will be created for easy browsing.<br>Set this number higher as your database grows and the number of pages increase.'
357 357
     ));
358 358
     $radio = new \XoopsFormRadio('<b>Use owner/breeder fields</b>', 'ownerbreeder', $value = $moduleConfig['ownerbreeder']);
359 359
     $radio->addOption(1, $name = 'yes');
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
     $form->addElement($radio);
362 362
     $form->addElement(new \XoopsFormLabel(
363 363
         _MA_PEDIGREE_EXPLAIN,
364
-                                         'Use this field to set if you would like to use the owner/breeder fields of the database.<br>As the name suggests the owner/breeder fields let you record and display information about the owner and or breeder.<br>The owner/breeder menu items will also be affected by this setting.'
364
+                                            'Use this field to set if you would like to use the owner/breeder fields of the database.<br>As the name suggests the owner/breeder fields let you record and display information about the owner and or breeder.<br>The owner/breeder menu items will also be affected by this setting.'
365 365
     ));
366 366
     $radiobr = new \XoopsFormRadio('<b>Show brother & sister field</b>', 'brothers', $value = $moduleConfig['brothers']);
367 367
     $radiobr->addOption(1, $name = 'yes');
@@ -416,14 +416,14 @@  discard block
 block discarded – undo
416 416
     $form->addElement(new \XoopsFormHiddenToken($name = 'XOOPS_TOKEN_REQUEST', $timeout = 360));
417 417
     $form->addElement(new \XoopsFormText('<b>type of animal</b>', 'animalType', $size = 50, $maxsize = 255, $value = $moduleConfig['animalType']));
418 418
     $form->addElement(new \XoopsFormLabel(_MA_PEDIGREE_EXPLAIN, 'Use this field to set the animal type which will be used in the application.<br><i>example : </i>snake, pigeon, dog, owl<br><br>The value should fit in the sentences below.<br>Please add optional information for this <b>'
419
-                                                               . $moduleConfig['animalType']
420
-                                                               . '</b>.<br>Select the first letter of the <b>'
421
-                                                               . $moduleConfig['animalType']
422
-                                                               . '</b>.'));
419
+                                                                . $moduleConfig['animalType']
420
+                                                                . '</b>.<br>Select the first letter of the <b>'
421
+                                                                . $moduleConfig['animalType']
422
+                                                                . '</b>.'));
423 423
     $form->addElement(new \XoopsFormText('<b>type of animal</b>', 'animalTypes', $size = 50, $maxsize = 255, $value = $value = $moduleConfig['animalTypes']));
424 424
     $form->addElement(new \XoopsFormLabel(_MA_PEDIGREE_EXPLAIN, 'Use this field to set the animal type which will be used in the application.<br>This field is the plural of the previous field<br><i>example : </i>snakes, pigeons, dogs, owls<br><br>The value should fit in the sentence below.<br>No <b>'
425
-                                                               . $moduleConfig['animalTypes']
426
-                                                               . '</b> meeting your query have been found.'));
425
+                                                                . $moduleConfig['animalTypes']
426
+                                                                . '</b> meeting your query have been found.'));
427 427
     $form->addElement(new \XoopsFormText('<b>male</b>', 'male', $size = 50, $maxsize = 255, $value = $moduleConfig['male']));
428 428
     $form->addElement(new \XoopsFormLabel(_MA_PEDIGREE_EXPLAIN, 'Use this field to set the name used for the male animal.<br><i>example : </i>male, buck, sire etc.'));
429 429
     $form->addElement(new \XoopsFormText('<b>female</b>', 'female', $size = 50, $maxsize = 255, $value = $moduleConfig['female']));
@@ -439,10 +439,10 @@  discard block
 block discarded – undo
439 439
     $form->addElement(new \XoopsFormTextArea('<b>Welcome text</b>', 'welcome', $value = $moduleConfig['welcome'], $rows = 15, $cols = 50));
440 440
 
441 441
     $form->addElement(new \XoopsFormLabel(_MA_PEDIGREE_EXPLAIN, 'Use this field to set the text you would like to display for the welcome page.<br><br>You may use the follwing variables :<br>[animalType] = '
442
-                                                               . $moduleConfig['animalType']
443
-                                                               . '<br>[animalTypes] ='
444
-                                                               . $moduleConfig['animalTypes']
445
-                                                               . '<br>[numanimals] = number of animals in the database.'));
442
+                                                                . $moduleConfig['animalType']
443
+                                                                . '<br>[animalTypes] ='
444
+                                                                . $moduleConfig['animalTypes']
445
+                                                                . '<br>[numanimals] = number of animals in the database.'));
446 446
     $form->addElement(new \XoopsFormButton('', 'button_id', 'Submit', 'submit'));
447 447
     $xoopsTpl->assign('form', $form->render());
448 448
 }
Please login to merge, or discard this patch.
add_breeder.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -48,18 +48,18 @@
 block discarded – undo
48 48
     //insert into owner
49 49
     //$query = 'INSERT INTO ' . $GLOBALS['xoopsDB']->prefix('pedigree_owner') . " VALUES ('','" . $voornaam . "','" . $achternaam . "','','','','','','" . $email . "','" . $website . "','" . $user . "')";
50 50
     $query = 'INSERT INTO '
51
-             . $GLOBALS['xoopsDB']->prefix('pedigree_owner')
52
-             . " VALUES (0,'"
53
-             . $GLOBALS['xoopsDB']->escape($voornaam)
54
-             . "','"
55
-             . $GLOBALS['xoopsDB']->escape($achternaam)
56
-             . "','','','','','','"
57
-             . $GLOBALS['xoopsDB']->escape($email)
58
-             . "','"
59
-             . $GLOBALS['xoopsDB']->escape($website)
60
-             . "','"
61
-             . $GLOBALS['xoopsDB']->escape($user)
62
-             . "')";
51
+                . $GLOBALS['xoopsDB']->prefix('pedigree_owner')
52
+                . " VALUES (0,'"
53
+                . $GLOBALS['xoopsDB']->escape($voornaam)
54
+                . "','"
55
+                . $GLOBALS['xoopsDB']->escape($achternaam)
56
+                . "','','','','','','"
57
+                . $GLOBALS['xoopsDB']->escape($email)
58
+                . "','"
59
+                . $GLOBALS['xoopsDB']->escape($website)
60
+                . "','"
61
+                . $GLOBALS['xoopsDB']->escape($user)
62
+                . "')";
63 63
 
64 64
     $GLOBALS['xoopsDB']->query($query);
65 65
     //@todo - move language string to language file
Please login to merge, or discard this patch.
virtual.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
     $perPage = $helper->getConfig('perpage');
65 65
     //count total number of dogs
66 66
     $numDog = 'SELECT COUNT(d.id) FROM '
67
-              . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
68
-              . ' d LEFT JOIN '
69
-              . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
70
-              . ' m ON m.id = d.mother LEFT JOIN '
71
-              . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
72
-              //            . " f ON f.id = d.father WHERE d.roft = '0' and d.mother != '0' and d.father != '0' and m.mother != '0' and m.father != '0' and f.mother != '0' and f.father != '0' and d.naam LIKE '" . $l . "%'";
73
-              . " f ON f.id = d.father WHERE d.roft = '0' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
74
-              . $GLOBALS['xoopsDB']->escape($l)
75
-              . "%'";
67
+                . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
68
+                . ' d LEFT JOIN '
69
+                . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
70
+                . ' m ON m.id = d.mother LEFT JOIN '
71
+                . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
72
+                //            . " f ON f.id = d.father WHERE d.roft = '0' and d.mother != '0' and d.father != '0' and m.mother != '0' and m.father != '0' and f.mother != '0' and f.father != '0' and d.naam LIKE '" . $l . "%'";
73
+                . " f ON f.id = d.father WHERE d.roft = '0' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
74
+                . $GLOBALS['xoopsDB']->escape($l)
75
+                . "%'";
76 76
     $numRes = $GLOBALS['xoopsDB']->query($numDog);
77 77
     //total number of dogs the query will find
78 78
     list($numResults) = $GLOBALS['xoopsDB']->fetchRow($numRes);
@@ -122,17 +122,17 @@  discard block
 block discarded – undo
122 122
 
123 123
     //query
124 124
     $queryString = 'SELECT d.*, d.id AS d_id, d.naam AS d_naam FROM '
125
-                   . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
126
-                   . ' d LEFT JOIN '
127
-                   . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
128
-                   . ' m ON m.id = d.mother LEFT JOIN '
129
-                   . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
130
-                   . " f ON f.id = d.father WHERE d.roft = '0' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
131
-                   . $l
132
-                   . "%' ORDER BY d.naam LIMIT "
133
-                   . $st
134
-                   . ', '
135
-                   . $perPage;
125
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
126
+                    . ' d LEFT JOIN '
127
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
128
+                    . ' m ON m.id = d.mother LEFT JOIN '
129
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
130
+                    . " f ON f.id = d.father WHERE d.roft = '0' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
131
+                    . $l
132
+                    . "%' ORDER BY d.naam LIMIT "
133
+                    . $st
134
+                    . ', '
135
+                    . $perPage;
136 136
     $result      = $GLOBALS['xoopsDB']->query($queryString);
137 137
 
138 138
     $animal = new Pedigree\Animal();
@@ -283,15 +283,15 @@  discard block
 block discarded – undo
283 283
     $perPage = $helper->getConfig('perpage');
284 284
     //count total number of dogs
285 285
     $numDog = 'SELECT COUNT(d.id) FROM '
286
-              . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
287
-              . ' d LEFT JOIN '
288
-              . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
289
-              . ' m ON m.id = d.mother LEFT JOIN '
290
-              . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
291
-              //  . " f ON f.id = d.father WHERE d.roft = '1' and d.mother != '0' and d.father != '0' and m.mother != '0' and m.father != '0' and f.mother != '0' and f.father != '0' and d.naam LIKE '" . $l . "%'";
292
-              . " f ON f.id = d.father WHERE d.roft = '1' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
293
-              . $GLOBALS['xoopsDB']->escape($l)
294
-              . "%'";
286
+                . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
287
+                . ' d LEFT JOIN '
288
+                . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
289
+                . ' m ON m.id = d.mother LEFT JOIN '
290
+                . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
291
+                //  . " f ON f.id = d.father WHERE d.roft = '1' and d.mother != '0' and d.father != '0' and m.mother != '0' and m.father != '0' and f.mother != '0' and f.father != '0' and d.naam LIKE '" . $l . "%'";
292
+                . " f ON f.id = d.father WHERE d.roft = '1' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
293
+                . $GLOBALS['xoopsDB']->escape($l)
294
+                . "%'";
295 295
 
296 296
     $numRes = $GLOBALS['xoopsDB']->query($numDog);
297 297
     //total number of dogs the query will find
@@ -362,17 +362,17 @@  discard block
 block discarded – undo
362 362
 
363 363
     //query
364 364
     $queryString = 'SELECT d.*, d.id AS d_id, d.naam AS d_naam FROM '
365
-                   . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
366
-                   . ' d LEFT JOIN '
367
-                   . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
368
-                   . ' m ON m.id = d.mother LEFT JOIN '
369
-                   . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
370
-                   . " f ON f.id = d.father WHERE d.roft = '1' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
371
-                   . $l
372
-                   . "%' ORDER BY d.naam LIMIT "
373
-                   . $st
374
-                   . ', '
375
-                   . $perPage;
365
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
366
+                    . ' d LEFT JOIN '
367
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
368
+                    . ' m ON m.id = d.mother LEFT JOIN '
369
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
370
+                    . " f ON f.id = d.father WHERE d.roft = '1' AND d.mother != '0' AND d.father != '0' AND m.mother != '0' AND m.father != '0' AND f.mother != '0' AND f.father != '0' AND d.naam LIKE '"
371
+                    . $l
372
+                    . "%' ORDER BY d.naam LIMIT "
373
+                    . $st
374
+                    . ', '
375
+                    . $perPage;
376 376
     $result      = $GLOBALS['xoopsDB']->query($queryString);
377 377
 
378 378
     $animal = new Pedigree\Animal();
Please login to merge, or discard this patch.
add_litter.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
         //gender
78 78
         $gender_radio[$count] = new \XoopsFormRadio('<b>' . _MA_PEDIGREE_FLD_GEND . '</b>', 'roft' . $count, $value = '0');
79 79
         $gender_radio[$count]->addOptionArray([
80
-                                                  '0' => strtr(_MA_PEDIGREE_FLD_MALE, ['[male]' => $moduleConfig['male']]),
81
-                                                  '1' => strtr(_MA_PEDIGREE_FLD_FEMA, ['[female]' => $moduleConfig['female']])
82
-                                              ]);
80
+                                                    '0' => strtr(_MA_PEDIGREE_FLD_MALE, ['[male]' => $moduleConfig['male']]),
81
+                                                    '1' => strtr(_MA_PEDIGREE_FLD_FEMA, ['[female]' => $moduleConfig['female']])
82
+                                                ]);
83 83
         $searchform->addElement($gender_radio[$count]);
84 84
         //add userfields
85 85
         for ($i = 0, $iMax = count($fields); $i < $iMax; ++$i) {
@@ -219,18 +219,18 @@  discard block
 block discarded – undo
219 219
         //insert into pedigree_temp
220 220
         //      $query = 'INSERT INTO ' . $GLOBALS['xoopsDB']->prefix('pedigree_temp') . " VALUES ('" . $random . "','" . Pedigree\Utility::unHtmlEntities($name) . "','0','" . $id_breeder . "','" . $userid . "','" . $roft . "','','','', ''";
221 221
         $query = 'INSERT INTO '
222
-                 . $GLOBALS['xoopsDB']->prefix('pedigree_temp')
223
-                 . " VALUES ('"
224
-                 . Request::getInt($random)
225
-                 . "','"
226
-                 . Request::getInt(Pedigree\Utility::unHtmlEntities($name))
227
-                 . "','0','"
228
-                 . Request::getInt($id_breeder)
229
-                 . "','"
230
-                 . Request::getInt($userid)
231
-                 . "','"
232
-                 . Request::getInt($roft)
233
-                 . "','','','', ''";
222
+                    . $GLOBALS['xoopsDB']->prefix('pedigree_temp')
223
+                    . " VALUES ('"
224
+                    . Request::getInt($random)
225
+                    . "','"
226
+                    . Request::getInt(Pedigree\Utility::unHtmlEntities($name))
227
+                    . "','0','"
228
+                    . Request::getInt($id_breeder)
229
+                    . "','"
230
+                    . Request::getInt($userid)
231
+                    . "','"
232
+                    . Request::getInt($roft)
233
+                    . "','','','', ''";
234 234
         foreach ($fields as $i => $iValue) {
235 235
             $userField   = new Pedigree\Field($fields[$i], $animal->getConfig());
236 236
             $fieldType   = $userField->getSetting('FieldType');
@@ -614,20 +614,20 @@  discard block
 block discarded – undo
614 614
             for ($c = 1, $cMax = count($names); $c < $cMax; ++$c) {
615 615
                 //              $query = 'INSERT INTO ' . $GLOBALS['xoopsDB']->prefix('pedigree_tree') . " VALUES ('','" . addslashes($names[$c]) . "','0','" . $row['id_breeder'] . "','" . $row['user'] . "','" . $genders[$c] . "','" . $_GET['seldam'] . "','" . $row['father'] . "','',''";
616 616
                 $query = 'INSERT INTO '
617
-                         . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
618
-                         . " VALUES ('','"
619
-                         . $GLOBALS['xoopsDB']->escape($names[$c])
620
-                         . "','0','"
621
-                         . $GLOBALS['xoopsDB']->escape($row['id_breeder'])
622
-                         . "','"
623
-                         . $GLOBALS['xoopsDB']->escape($row['user'])
624
-                         . "','"
625
-                         . $GLOBALS['xoopsDB']->escape($genders[$c])
626
-                         . "','"
627
-                         . $GLOBALS['xoopsDB']->escape($seldam)
628
-                         . "','"
629
-                         . $GLOBALS['xoopsDB']->escape($row['father'])
630
-                         . "','',''";
617
+                            . $GLOBALS['xoopsDB']->prefix('pedigree_tree')
618
+                            . " VALUES ('','"
619
+                            . $GLOBALS['xoopsDB']->escape($names[$c])
620
+                            . "','0','"
621
+                            . $GLOBALS['xoopsDB']->escape($row['id_breeder'])
622
+                            . "','"
623
+                            . $GLOBALS['xoopsDB']->escape($row['user'])
624
+                            . "','"
625
+                            . $GLOBALS['xoopsDB']->escape($genders[$c])
626
+                            . "','"
627
+                            . $GLOBALS['xoopsDB']->escape($seldam)
628
+                            . "','"
629
+                            . $GLOBALS['xoopsDB']->escape($row['father'])
630
+                            . "','',''";
631 631
                 //create animal object
632 632
                 $animal = new Pedigree\Animal();
633 633
                 //test to find out how many user fields there are..
Please login to merge, or discard this patch.
tools.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -395,9 +395,9 @@  discard block
 block discarded – undo
395 395
             $form .= "<td><a href='tools.php?op=fieldmove&field={$row['id']}&move=up'>" . "<img src='assets/images/up.gif' alt='move field up'></a></td>\n" . "<td>&nbsp;</td>\n";
396 396
         } else { //other rows
397 397
             $form .= "<td><a href='tools.php?op=fieldmove&field={$row['id']}&move=up'>"
398
-                     . "<img src='assets/images/up.gif' alt='move field up'></a></td>\n"
399
-                     . "<td><a href='tools.php?op=fieldmove&field={$row['id']}&move=down'>\n"
400
-                     . "<img src='assets/images/down.gif' alt='move field down'></a></td>\n";
398
+                        . "<img src='assets/images/up.gif' alt='move field up'></a></td>\n"
399
+                        . "<td><a href='tools.php?op=fieldmove&field={$row['id']}&move=down'>\n"
400
+                        . "<img src='assets/images/down.gif' alt='move field down'></a></td>\n";
401 401
         }
402 402
         $form .= "<td><a href='tools.php?op=deluserfield&id={$row['id']}'>" . "<img src='images/delete.png' alt='delete field'></a>&nbsp;" . "<a href='tools.php?op=userfields&field={$row['id']}'>{$row['fieldName']}</a></td>\n";
403 403
         //can the filed be shown in a list
@@ -567,33 +567,33 @@  discard block
 block discarded – undo
567 567
         $form .= "  <tr>\n";
568 568
         if (0 == $count) { //first row
569 569
             $form .= "    <td style='width: 15px;'>&nbsp;</td>\n"
570
-                     . "    <td style='width: 15px;'>\n"
571
-                     . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=down'><img src='assets/images/down.gif'></a>\n"
572
-                     . "    </td>\n"
573
-                     . "    <td>\n"
574
-                     . "      <a href='tools.php?op=dellookupvalue&field={$field}&id={$row['id']}'><img src='images/delete.png'></a>\n"
575
-                     . "      &nbsp;<a href='tools.php?op=editlookupvalue&field={$field}&id={$row['id']}'>{$row['value']}</a>\n"
576
-                     . "    </td>\n";
570
+                        . "    <td style='width: 15px;'>\n"
571
+                        . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=down'><img src='assets/images/down.gif'></a>\n"
572
+                        . "    </td>\n"
573
+                        . "    <td>\n"
574
+                        . "      <a href='tools.php?op=dellookupvalue&field={$field}&id={$row['id']}'><img src='images/delete.png'></a>\n"
575
+                        . "      &nbsp;<a href='tools.php?op=editlookupvalue&field={$field}&id={$row['id']}'>{$row['value']}</a>\n"
576
+                        . "    </td>\n";
577 577
         } elseif ($count == $numrows - 1) { //last row
578 578
             $form .= "    <td>\n"
579
-                     . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=up'><img src='assets/images/up.gif'></a>\n"
580
-                     . "    </td>\n"
581
-                     . "    <td>&nbsp;</td>\n"
582
-                     . "    <td>\n"
583
-                     . "      <a href='tools.php?op=dellookupvalue&field={$field}&id={$row['id']}'><img src='assets/images/delete.png'></a>\n"
584
-                     . "      &nbsp;<a href='tools.php?op=editlookupvalue&field={$field}&id={$row['id']}'>{$row['value']}</a>\n"
585
-                     . "    </td>\n";
579
+                        . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=up'><img src='assets/images/up.gif'></a>\n"
580
+                        . "    </td>\n"
581
+                        . "    <td>&nbsp;</td>\n"
582
+                        . "    <td>\n"
583
+                        . "      <a href='tools.php?op=dellookupvalue&field={$field}&id={$row['id']}'><img src='assets/images/delete.png'></a>\n"
584
+                        . "      &nbsp;<a href='tools.php?op=editlookupvalue&field={$field}&id={$row['id']}'>{$row['value']}</a>\n"
585
+                        . "    </td>\n";
586 586
         } else { //other rows
587 587
             $form .= "    <td>\n"
588
-                     . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=up'><img src='assets/images/up.gif'></a>\n"
589
-                     . "    </td>\n"
590
-                     . "    <td>\n"
591
-                     . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=down'><img src='assets/images/down.gif'></a>\n"
592
-                     . "    </td>\n"
593
-                     . "    <td>\n"
594
-                     . "      <a href='tools.php?op=dellookupvalue&field={$field}&id={$row['id']}'><img src='images/delete.png'></a>\n"
595
-                     . "      &nbsp;<a href='tools.php?op=editlookupvalue&field={$field}&id={$row['id']}'>{$row['value']}</a>\n"
596
-                     . "    </td>\n";
588
+                        . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=up'><img src='assets/images/up.gif'></a>\n"
589
+                        . "    </td>\n"
590
+                        . "    <td>\n"
591
+                        . "      <a href='tools.php?op=lookupmove&field={$field}&id={$row['id']}&move=down'><img src='assets/images/down.gif'></a>\n"
592
+                        . "    </td>\n"
593
+                        . "    <td>\n"
594
+                        . "      <a href='tools.php?op=dellookupvalue&field={$field}&id={$row['id']}'><img src='images/delete.png'></a>\n"
595
+                        . "      &nbsp;<a href='tools.php?op=editlookupvalue&field={$field}&id={$row['id']}'>{$row['value']}</a>\n"
596
+                        . "    </td>\n";
597 597
         }
598 598
         $form .= "</tr>\n";
599 599
         ++$count;
Please login to merge, or discard this patch.