Making a Sudoku table

So I am trying to make a Sudoku Puzzle module(first module), but I'm having trouble with the formatting. I already have the code working for a straight up PHP version I made a while back, but even that doesn't look too good.

http://imageshack.us/photo/my-images/862/fgfgfgfg.png/
That's the best I could get that looking, but I can't even replicate it for Drupal.

function input_sudoku_form($form, &$form_submit) {
$puzzle = sudoku_make_puzzle();
    $initial = $puzzle[0];
    $answer = $puzzle[1];
	
    for ($i = 0; $i <= 80; $i++) {
        //if ($initial[$i] != 0) {
		  $form['sudoku'][$i] = array(
    		    '#type' => 'textfield',
		    '#value' => $initial[$i], //getting problems here
    		    '#prefix' => '<span style="width:42px;height:22;border-width:1;
                      bordercolor:black;border-style:solid;text-align:center;             
	              display:inline;background-color: Green">',
    		    '#suffix' => '</span>',
    		    '#maxlength' => '1',
    		    '#size' => '1',
  		  );
	//}		  
   }
	$form['#theme'] = 'sudoku_form_theme';
	return $form;
}

This causes each box for a number to be printed down a column, which I am guessing is due to how making a new form works. When done without Drupal, all 81 boxes print on 1 line and I just
echo "
"; after every 9 to get on a new line.

need a little help with cycling background image

I'm creating my first website theme out of zen for drupal 7.10 and I have two things left to finish the first is that in my content menu on one of my pages i want multiple background images that can be changed by press arrows on the left and right side of the screen.

Only problem is I have no idea how to get this accomplished, i'm only mildy experienced in html, php, and css programming, and could really use some help or direction on how to get this done.

i'm currently looking into the views slideshow module, hopefully that's the right track

views not working for me

I have installed CTOOL and VIEW module.
But the views are not showing anywhere. Why?
thanks!

How to Disable Text Selection and Right Click on Drupal page

Can you suggest me any Drupal modules or extensions to disable text selection and right click on Drupal site-both in posts and pages.

Ampersand html (&amp;) showing up in drop-down menus on one drupal site and not in the other?

Does anyone have any idea why on one of my drupal sites ampersands display perfectly in drop-down menus and on my other site it shows the html safe &amp in place of it?

The name in the dropdown list is being generated from a node title.

I tried clearing caches, different browsers, clearing browser history etc..

These sites are almost identical.

Anyone know why this could be happening?

Annonymous Users Access denied

Hi,

i have build up my website, when i create a account i am able to see the content of the site, but annonymouse users are getting error Access Denied, i want Annonymous user to comment and view site content, pls help with this.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x