Page 1 of 1

php script creating problem to DESIGN

Posted: Fri Dec 17, 2010 3:25 am
by raj86
Hello friends
i am calling master page in my application.

Code: Select all

<?php
  //Apply the template
  include("master.php");
?>
i am writing some javacode due to that my master page design get improper. i do not know to resign.
here is the PHP code that is creating problem. Mainly array_push($subClasses, "[{$s['id']}, '{$s['name']}']"); is creating problem

Code: Select all

<?php foreach ($deptArray['Asset'] as $a): ?>
	<?php
	$subClasses = array();
	foreach ($a['SubClass'] as $s) {
		array_push($subClasses, "[{$s['id']}, '{$s['name']}']");
	}
	?>
	childOptions[<?php echo "'{$a['name']}'"; ?>] = [<?php echo join(',', $subClasses); ?>];
<?php endforeach; ?>
please help me ..........

Re: php script creating problem to DESIGN

Posted: Fri Dec 17, 2010 4:29 am
by raj86
i have around 36 Basic assets class in my screen. For testing purpose when i reduced it to 20, it is showing the screen in the master page. i do not know , weather it is a array size problem or page scrolling problem.......please help me