Code Duplication    Length = 19-19 lines in 2 locations

programs/utilit/agent.ui.php 1 location

@@ 1166-1184 (lines=19) @@
1163
1164
    }
1165
1166
    public function getnextcol()
1167
    {
1168
        static $j= 0;
1169
        if( $j < $this->countcol )
1170
        {
1171
            global $babDB;
1172
            $arr = $babDB->db_fetch_array($this->colres);
1173
            $this->collname = $arr['name'];
1174
            $this->idcollection = $arr['id'];
1175
            if( $this->idcol == $this->idcollection )
1176
                $this->selected = "selected";
1177
            else
1178
                $this->selected = "";
1179
            $j++;
1180
            return true;
1181
        }
1182
        else
1183
            return false;
1184
    }
1185
1186
    
1187
    public function getnextwsprofile()

programs/vacadm.php 1 location

@@ 457-475 (lines=19) @@
454
				}
455
			}
456
457
		function getnextcol()
458
			{
459
			static $j= 0;
460
			if( $j < $this->countcol )
461
				{
462
				global $babDB;
463
				$arr = $babDB->db_fetch_array($this->colres);
464
				$this->collname = bab_toHtml($arr['name']);
465
				$this->idcollection = bab_toHtml($arr['id']);
466
				if( $this->idcol == $this->idcollection )
467
					$this->selected = "selected";
468
				else
469
					$this->selected = "";
470
				$j++;
471
				return true;
472
				}
473
			else
474
				return false;
475
			}
476
477
		function printhtml()
478
			{