Code Duplication    Length = 9-9 lines in 2 locations

register.php 2 locations

@@ 268-276 (lines=9) @@
265
266
    // ------------ SCHOOL ------------ //
267
    //School name
268
    if (0 != smallworldGetValfromArray('education', 'smallworldusethesefields')) {
269
        $school = $item->school_add('smallworld_add3', 'school', 'school_type', '.smallworld_clone3', $arr7, _SMALLWORLD_ADDMORE, $selected = null, $preset = null, $selectedstart = null, $selectedstop = null);
270
        $school .= "<span class='smallworld_remove2' id='schoolremove'>";
271
        $school .= "<a href='javascript:void(0);' id='schoolremovelnk'>" . _SMALLWORLD_REMOVE . '</a><br></span>';
272
        $school .= "<a class='smallworld_addschool' href='javascript:void(0);' id='schoolAdd'>" . _SMALLWORLD_ADDMORE . '</a><br><br>';
273
        $GLOBALS['xoopsTpl']->append('school', $school);
274
    } else {
275
        $GLOBALS['xoopsTpl']->assign('show_school', 'no');
276
    }
277
278
    //Jobs
279
    //function job ($class, $name,$name2, $rel, array$options, $textmore, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null) {
@@ 280-288 (lines=9) @@
277
278
    //Jobs
279
    //function job ($class, $name,$name2, $rel, array$options, $textmore, $selected=null, $preset=null, $selectedstart=null, $selectedstop=null) {
280
    if (0 != smallworldGetValfromArray('employment', 'smallworldusethesefields')) {
281
        $job = $item->job('smallworld_add4', 'job', 'job_type', '.smallworld_clone4', _SMALLWORLD_ADDMORE, $selected = null, $preset = null, $selectedstart = null, $selectedstop = null);
282
        $job .= "<span class='smallworld_remove3' id='jobremove'>";
283
        $job .= "<a href='javascript:void(0);' id='jobremovelnk'>" . _SMALLWORLD_REMOVE . '</a><br></span>';
284
        $job .= "<a class='smallworld_addjob' href='javascript:void(0);' id='jobAdd'>" . _SMALLWORLD_ADDMORE . '</a><br><br>';
285
        $GLOBALS['xoopsTpl']->append('job', $job);
286
    } else {
287
        $GLOBALS['xoopsTpl']->assign('show_jobs', 'no');
288
    }
289
290
    // Create hidden forms for birthcity
291
    $birthplace_lat         = $item->hidden('birthplace_lat', 'birthplace_lat', $preset = null);