Code Duplication    Length = 19-19 lines in 2 locations

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
			{

programs/utilit/agent.ui.php 1 location

@@ 1174-1192 (lines=19) @@
1171
1172
    }
1173
1174
    public function getnextcol()
1175
    {
1176
        static $j= 0;
1177
        if( $j < $this->countcol )
1178
        {
1179
            global $babDB;
1180
            $arr = $babDB->db_fetch_array($this->colres);
1181
            $this->collname = $arr['name'];
1182
            $this->idcollection = $arr['id'];
1183
            if( $this->idcol == $this->idcollection )
1184
                $this->selected = "selected";
1185
            else
1186
                $this->selected = "";
1187
            $j++;
1188
            return true;
1189
        }
1190
        else
1191
            return false;
1192
    }
1193
1194
    
1195
    public function getnextwsprofile()