\n"; echo "
$strField: | \n"; $z=0; for($x = 0; $x < $col; $x++) { if(isset($InsCol[$x]) && $InsCol[$x]== "on") { echo "\n"; echo " | \n"; $z++; } if(isset($DelCol[$x]) && $DelCol[$x]== "on") continue; echo "\n"; echo " | \n"; } echo "||||||
Sort: | \n"; $z = 0; for($x = 0; $x < $col; $x++) { if(isset($InsCol[$x]) && $InsCol[$x]== "on") { echo "\n"; echo " | \n"; $z++; } if(isset($DelCol[$x]) && $DelCol[$x]== "on") continue; echo "\n"; echo " | \n"; $z++; } ### Show columns echo "||||||
Show: | \n"; $z=0; for($x = 0; $x < $col; $x++) { if(isset($InsCol[$x]) && $InsCol[$x]== "on") { echo "\n"; $z++; } if(isset($DelCol[$x]) && $DelCol[$x]== "on") continue; $sel = ""; if(isset($Show[$x])) { $sel = "checked"; $curShow[$z] = $Show[$x]; } echo " | \n"; $z++; } ### Criteria columns echo " | ||||||
Criteria: | \n"; $z=0; for($x = 0; $x < $col; $x++) { if(isset($InsCol[$x]) && $InsCol[$x]== "on") { echo "\n"; $z++; } if(isset($DelCol[$x]) && $DelCol[$x]== "on") continue; if(get_magic_quotes_gpc()) { $stripped_Criteria = stripslashes($Criteria[$x]); } else { $stripped_Criteria = $Criteria[$x]; } echo " | "; echo ""; echo " | \n"; $curCriteria[$z] = $Criteria[$x]; $z++; } ### And/Or columns and rows $w=0; for($y = 0; $y <= $row; $y++) { $bgcolor = $cfgBgcolorOne; if($y % 2 == 0) $bgcolor = $cfgBgcolorTwo; if($InsRow[$y]== "on") { echo "||||||
";
$chk[ 'or'] = "checked"; $chk[ 'and'] = "";
# Row controls
echo "
| \n";
$z=0;
for ($x = 0; $x < $col; $x++)
{
if($InsCol[$x]== "on")
{
$or = "Or".$w;
echo "\n"; $z++; } if($DelCol[$x]== "on") continue; $or = "Or".$w; echo " | \n"; $z++; } $w++; } if($DelRow[$y]== "on") continue; echo " | ||||||
";
$curAndOrRow[$w]=$AndOrRow[$y];
if($AndOrRow[$y] == 'and')
{
$chk[ 'and'] = "checked";
$chk[ 'or'] = "";
}
else
{
$chk[ 'or'] = "checked";
$chk[ 'and'] = "";
}
# Row controls
echo "
| \n";
$z=0;
for ($x = 0; $x < $col; $x++)
{
if(isset($InsCol[$x]) && $InsCol[$x]== "on")
{
$or = "Or".$w;
echo "\n"; $z++; } if(isset($DelCol[$x]) && $DelCol[$x]== "on") continue; $or = "Or".$y; if(!isset(${$or})) ${$or} = ""; if(get_magic_quotes_gpc()) { $stripped_or = stripslashes(${$or}[$x]); } else { $stripped_or = ${$or}[$x]; } echo " | "; echo ""; echo " | \n"; ${"cur".$or}[$z] = ${$or}[$x]; $z++; } $w++; } ### Modify columns echo "||||||
Modify: | \n"; $z=0; for($x = 0; $x < $col; $x++) { if(isset($InsCol[$x]) && $InsCol[$x]== "on") { $curAndOrCol[$z]=$AndOrCol[$y]; if($AndOrCol[$z] == 'or') { $chk[ 'or'] = "checked"; $chk[ 'and'] = ""; } else { $chk[ 'and'] = "checked"; $chk[ 'or'] = ""; } echo "
Or:
And:
Ins: Del: | \n";
$z++;
}
if(isset($DelCol[$x]) && $DelCol[$x]== "on")
continue;
$curAndOrCol[$z]=$AndOrCol[$y];
if(isset($AndOrCol[$z]) && $AndOrCol[$z] == 'or')
{
$chk[ 'or'] = "checked";
$chk[ 'and'] = "";
}
else
{
$chk[ 'and'] = "checked";
$chk[ 'or'] = "";
}
echo "
Or:
And:
Ins: Del: | \n";
$z++;
}
echo "
| ";
echo " SQL query on database $db: "; echo " |