"; ?> No permissions !"); show_footer(); exit; } ?> "; echo "Id"; echo "Name"; echo "Width"; echo "Height"; echo "Actions"; echo ""; $result=DBselect("select g.graphid,g.name,g.width,g.height from graphs g order by g.name"); $col=0; while($row=DBfetch($result)) { if(!check_right("Graph","R",$row["graphid"])) { continue; } if($col++%2==0) { echo ""; } else { echo ""; } echo "".$row["graphid"].""; echo "".$row["name"].""; echo "".$row["width"].""; echo "".$row["height"].""; echo "Change - "; echo "Delete"; echo ""; } echo ""; ?> "; if(isset($HTTP_GET_VARS["graphid"])) { $result=DBselect("select g.graphid,g.name,g.width,g.height from graphs g where graphid=".$HTTP_GET_VARS["graphid"]); $row=DBfetch($result); $name=$row["name"]; $width=$row["width"]; $height=$row["height"]; } else { $name=""; $width=900; $height=200; } echo "
"; show_table2_header_begin(); echo "New graph"; show_table2_v_delimiter(); echo "
"; if(isset($HTTP_GET_VARS["graphid"])) { echo ""; } echo "Name"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Width"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Height"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; if(isset($HTTP_GET_VARS["graphid"])) { echo ""; } show_table2_header_end(); ?>