With GUI's, if you are setting multiple values as true, just do
PHP Code:
canresize=canclose=canminimize=false;
canmaximize=canmove=true;
To save lines. Doing this will drastically reduce the size of your current script.
Also, instead of doing
PHP Code:
if (condition)
statement;
if (condition)
statement;
if (condition)
statement;
You should get into the habit of using
PHP Code:
if (condition)
statement
else if (condition)
statement
else
statement