Code Duplication    Length = 15-15 lines in 2 locations

include/functions.php 2 locations

@@ 26-40 (lines=15) @@
23
$xoops          = Xoops::getInstance();
24
$listingHandler = $xoops->getModuleHandler('listing', 'alumni');
25
26
function alumni_ShowImg()
27
{
28
    global $moduleDirName;
29
30
    echo "<script type=\"text/javascript\">\n";
31
    echo "<!--\n\n";
32
    echo "function showimage() {\n";
33
    echo "if (!document.images)\n";
34
    echo "return\n";
35
    echo "document.images.avatar.src=\n";
36
    echo "'" . XOOPS_URL . "/modules/{$moduleDirName}/assets/images/cat/' + document.imcat.img.options[document.imcat.img.selectedIndex].value\n";
37
    echo "}\n\n";
38
    echo "//-->\n";
39
    echo "</script>\n";
40
}
41
42
function alumni_ShowImg2()
43
{
@@ 42-56 (lines=15) @@
39
    echo "</script>\n";
40
}
41
42
function alumni_ShowImg2()
43
{
44
    global $moduleDirName;
45
46
    echo "<script type=\"text/javascript\">\n";
47
    echo "<!--\n\n";
48
    echo "function showimage2() {\n";
49
    echo "if (!document.images)\n";
50
    echo "return\n";
51
    echo "document.images.scphoto.src=\n";
52
    echo "'" . XOOPS_URL . "/modules/{$moduleDirName}/assets/images/schools/' + document.imcat.scphoto.options[document.imcat.scphoto.selectedIndex].value\n";
53
    echo "}\n\n";
54
    echo "//-->\n";
55
    echo "</script>\n";
56
}
57
58
//Reusable Link Sorting Functions
59
/**