Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 12 matches
Smarty Forum Index
Author Message
  Topic: 3-d array problems
TuMadre

Replies: 1
Views: 3010

PostForum: General   Posted: Mon Jun 28, 2004 11:51 am   Subject: 3-d array problems
Hmmm...

I managed to get this working by assigning the 'existing_lvls'-array to a temp variable. It gives me the desired results, but is this the correct way to go with regards to this problem?
  Topic: 3-d array problems
TuMadre

Replies: 1
Views: 3010

PostForum: General   Posted: Mon Jun 28, 2004 9:26 am   Subject: 3-d array problems
Hi,

I have a problem with printing arrays:

My array is as follows:

Array
(
[0] => Array
(
[id] => 5
[username] = ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Tue Jun 15, 2004 7:23 pm   Subject: SmartyFormtool: a javascript tool for your forms
Did you use the plugins from CVS too?

Tried that now... It doesn't fix the problem. Besides that, it also introduces JS errors when moving items from colors5 to colors6 (allthough it *does* move th ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Tue Jun 15, 2004 3:09 pm   Subject: SmartyFormtool: a javascript tool for your forms
Checked out latest formtool.js: still the same problem...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Tue Jun 15, 2004 10:55 am   Subject: SmartyFormtool: a javascript tool for your forms
K, now moving items between the two works fine. On submitting the form, the two save vars are empty (colors5_save and colors6_save).

http://games.xs4all.nl/tester.php

tester.php
<?php

// ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Mon Jun 14, 2004 10:38 pm   Subject: SmartyFormtool: a javascript tool for your forms
you seem to be missing one thing... an actual form! eg:

<form name="foobar" action="doit">
{formtool_checkall name="colors[]"}
....
...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Mon Jun 14, 2004 9:38 pm   Subject: SmartyFormtool: a javascript tool for your forms
http://games.xs4all.nl/tester.php

tester.php
<?php
require("xxx/xxx/config.inc.php");
$colors = array(red,yellow,blue,orange,purple,green,brown,black,white);

$sma ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Mon Jun 14, 2004 8:57 pm   Subject: SmartyFormtool: a javascript tool for your forms
OK...

- formtool.js is in place and correctly referred to from the template.
- I copied the example (including save from and save to)
- I created the array, so I could test the same setup as t ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Mon Jun 14, 2004 7:59 am   Subject: SmartyFormtool: a javascript tool for your forms
ah, supply a save parameter for them, being a hidden form value. I think the examples are missing them, and it doesn't do much good to use the formtools and not save the data somewhere. That one requi ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Sun Jun 13, 2004 7:00 pm   Subject: SmartyFormtool: a javascript tool for your forms
I get:

Warning: Smarty error: formtool_moveup: missing 'save_from' parameter in /usr/local/WWW/games.xs4all.nl/htdocs/misc/bans/smarty/Smarty.class.php on line 1102

Warning: Smar ...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Sun Jun 13, 2004 5:28 pm   Subject: SmartyFormtool: a javascript tool for your forms
Using IE6, and the demo works fine...
  Topic: SmartyFormtool: a javascript tool for your forms
TuMadre

Replies: 24
Views: 47219

PostForum: Add-ons   Posted: Sun Jun 13, 2004 9:36 am   Subject: SmartyFormtool: a javascript tool for your forms
I tried the 5th example (moving items from one multiselectbox to another), but the buttons did not show up in the browser.

I added {formtool_init src="/formtool.js"} to the top of the template, and ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP