473,670 Members | 2,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Smarty Checkbox not displaying in HTML

3 New Member
I am having problem displaying the contents of array into Smarty Checkbox in HTML

The details of array $people are:

$people = Array ( [1746524] => Allen Jamie [3118171] => Browning Andy [1246417] => Barrett Rich [4677613] => Chang Dongin [2962280] => Chupack Marla [1193259] => Dimmitt Holly [1828493] => Ezell Trevor L)

Expand|Select|Wrap|Line Numbers
  1.  
  2. PHP code:
  3.  
  4. foreach ($rawPeople->person as $p)
  5.   {      
  6.     $lastname = (string)$p->{'last-name'};
  7.     $firstname = (string)$p->{'first-name'};
  8.     $name = $lastname." ".$firstname;
  9.     $people[(int)(string)$p->id] = $name;
  10.   }
  11.  
  12. $smartyObj = new ConfigSmarty();
  13. $smartyObj->assign('mt',$people);
  14.  
  15.  
  16. HTML:
  17.  
  18. <tr><td>{html_checkboxes name='id' options=$mt
  19.             separator='<br />'} </td></tr>
  20.  

The checkbox just does not display at all.
May 30 '10 #1
4 2903
Atli
5,058 Recognized Expert Expert
What does the HTML output look like, exactly?
And where do you call the display or fetch method on the Smarty object?
May 31 '10 #2
aditya2
3 New Member
The html does not diaplay anything.

This is just a short snippet of the code , I have called the diaplay mehtod on the smaty object at the end.

Like this

Expand|Select|Wrap|Line Numbers
  1. $smartyObj = new ConfigSmarty();
  2. $smartyObj->assign('mt',$people);
  3. $smartyObj->display('ts3.html');
May 31 '10 #3
Atli
5,058 Recognized Expert Expert
Ok. Why do you use a ConfigSmarty class, rather than the usual Smarty class? Is it a custom extension? Anything in there that could be affecting it in this way?

And do you have the error messages turned on? Any error messages would help finding potential bugs.
May 31 '10 #4
aditya2
3 New Member
Yes configSmarty is the customized version which extends smarty.

And the other works just fine for radio buttons and drop down list.
I cannot see any error , just a blank html page.

I tried to print the contents of array $people. Which I uploaded in the previous post.
It is of the exact format needed in html_checkboxes .
May 31 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1386
by: Fuzzyman | last post by:
Does anyone know of an 'easy' way of displaying HTML from python - preferably using standard Tkinter widgets. I've heard that the 'Text' widget can be used to do this - but I don't fancy hand building an HTML parser when it's quite likely someone else has already done it..... I don't *need* eternal links to work, or even stylesheets or tables, but I'd like the other basic tags to work.
3
3753
by: Mike Turco | last post by:
I have an Access database that holds a catalog and one of the fields contains the HTML for the web page. The HTML code is very simple. I would like to be able to display that HTML output on an access report. Is there some kind of control that I can embed into the report so that I can see that HTML? Thanks, Mike
2
1368
by: Steve Barnett | last post by:
I have a desktop application that needs to display some summary information. At present I use the RichTextBox control but am unhappy with the results. What I would prefer to do is display an HTML page (complete with graphics) from within my app. The problem is that I have no idea how to go about this and seem to be struggling to find an example that creates the web pages on the fly. Can anyone point me at a tutorial that deals with...
5
7839
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or COM control (like Microsoft WebBrowser). For each description there is one HTML file and along description text, it contains links to related information. Clicking related information would for example open new form in application and display some...
0
1291
by: Anthony Harkness-Gripe | last post by:
This is a very simple XSLT, and I'm doing it ways that I've had work before, but it's not displaying HTML. Is there a flaw in my logic? C#: ------------------------------------------------------------------- // context is current HttpContext System.Xml.XmlTextWriter xmlw = new XmlTextWriter(context.Response.Output); // See XML below for CustomDataSet
0
1217
by: psid | last post by:
Displaying HTML/XHTML from source XML file i am having an xml file i want to display the contents of the xml file in a web browser control in winforms however i want to display it as html/xhtml after applying formatting. how can this be done?
0
2805
by: ev45ive | last post by:
Hi! I have smth. like this: file.php: <?php SmartyValidate::connect($smarty); //SmartyValidate::register_form('register');
3
5778
by: Doug (dtism) | last post by:
Hello **newbie alert** <-- that's me btw, but you might have guessed that by my topic title. I have an html page that submits a name and email address by a form to a page called preview.php I'd like to do some basic validation on the credentials subbitted via the form, and if they pass then send the credentials via email and display the rest of the page (which will have links to download some promotional tunes from my friends record...
2
1026
by: Arinté | last post by:
I have a webpage that I want to have a list of dates and on the right I want to show the blog info associated with that date. That blog could have some html info in it, what would be the best control to use to display that html info?
5
14166
realin
by: realin | last post by:
hi guys this is very very simple and basic question.. i just cnat get it done . i want to align the checkbox in middle how do i do that .. here is the screenshot http://img88.imageshack.us/my.php?image=alignzf9.gif
0
8384
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8896
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8810
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7410
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4387
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2798
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1790
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.