so unknown php if the field hide
I have a table that I need to show only if the content is in my PB, I can do the job if I know that the value of the field, but this field will be peoples names so I want just the table to show if the field is filled
variable to show tenants
$ten_info1 = $row_rsTenant ["tenTen1FirstN"];
<? PHP if ($ten_info1 == "bob"):? >
< td bgcolor = "#C7E538" > 1 < table > tenant's name
< td > <? PHP echo $row_rsTenant ["tenTen1FirstN"];? > <? PHP echo $row_rsTenant ["tenTen1MiddN"];? > <? PHP echo $row_rsTenant ["tenTen1SurnN"];? > < table >
< td bgcolor = "#C7E538" > share < table > rent
< td > <? PHP echo $row_rsTenant ["tenTen1Share"];? > < table >
< td bgcolor = "#C7E538" > paid by < table >
< td > <? PHP echo $row_rsTenant ["tenTen1TbePaid"];? > < table >
<? endif;? >
so I need to know what to replace bob with so if any name is inserted into the field that the table will display
Fixed it
Tags: Dreamweaver
Similar Questions
-
Virtual keyboard hides part of the change to the field
Hello
I have a labelfield, field change and a button that are centered aligned vertically. The three fields, I added in a Verticalfield Manager which is then added to a horizontal region Manager. And finally the HFM is added to an another value for money. Now in the 9800 device or curve 9380, I noticed that when I touch the edit field, virtual keyboard is coming. And he hides the field partially change.
I want to move things to the top when the virtual keyboard appeared. How can I do. My code is here:
HorizontalFieldManager hfm = new HorizontalFieldManager(); VerticalFieldManager vfmComponent = new VerticalFieldManager(USE_ALL_WIDTH); vfmComponent.add(lfServerUrl); vfmComponent.add(mEfURL); vfmComponent.add(mBtnSave); hfm.add(vfmComponent); int topEmptySpace = (Display.getHeight() - (Bitmap.getBitmapResource(mStrTopBar).getHeight() + hfm.getPreferredHeight() + 25)) / 2; hfm.setMargin(topEmptySpace, 0, 0, 0); VerticalFieldManager vfmMain = new VerticalFieldManager(VERTICAL_SCROLL| NO_HORIZONTAL_SCROLL ); vfmMain.add(hfm); add(vfmMain);
Help, please.
When you start to need as many managers to get the look you want, then you know that you should really create your own Manager.
These two should help you to do:
http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749
For example, I hacked together a "centeringManager" and the screen, which should do what you want. But please use this as a reference sample, understand what he does and maybe even improve it.
In production code, I would really remove the centeredManager and centering Manager across all fields and place them, but then you must code a manager which includes margins, which would confuse the point of this example - as a basic implementation of a Manager.
Hope it's what you want.
public final class CenteringScreen extends MainScreen { /** * verticallyCenteringManager takes one Field and positions it * centered in the space it has. */ VerticalFieldManager centeringManager = new VerticalFieldManager() { protected void sublayout(int maxWidth, int maxHeight) { if ( this.getFieldCount() > 1 ) { throw new RuntimeException("Expecting only one Field or Manager to be added"); } if ( this.getFieldCount() == 1 ) { Field f = this.getField(0); layoutChild(f, maxWidth, maxHeight); int requiredTopMargin = (maxHeight - f.getHeight())/2; int requiredLeftMargin = (maxWidth - f.getWidth())/2; setPositionChild(f, requiredLeftMargin, requiredTopMargin); setExtent(maxWidth, maxHeight); } else { setExtent(0, 0); } } }; /** * Fields added to centeredManager will be displayed 'centered' vertically * regardless of orientation of screen and presence or absence * of virtual keyboard */ VerticalFieldManager centeredManager = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR); // Sample Fields to be added ButtonField sampleButton = new ButtonField("Button", ButtonField.FIELD_HCENTER); LabelField sampleLabel = new LabelField("Label", LabelField.FIELD_HCENTER); BasicEditField sampleBef = new BasicEditField("Text", "", 255, BasicEditField.FIELD_HCENTER); public CenteringScreen() { super(Manager.NO_VERTICAL_SCROLL); // very important // The NO_VERTICAL_SCROLL means that the only Manager added to this Screen - centeringManager - // will be given as its maxHeight, the available screen height, regardless of // orientation or whether there is a virtual keyboard displayed // add Fields to centeredManager centeredManager.add(sampleButton); centeredManager.add(sampleLabel); centeredManager.add(sampleBef); centeringManager.add(centeredManager); this.add(centeringManager); } }
-
Hide the list button dropdown object except when he put there at the point on the field?
Is there a way to hide the object from the dropdown list of the button (only) when it does not focus on this field drop-down list? If the button is not visible until the user clicks this drop-down list is not visible when the user leaves this field drop-down list. As the functioning of the object date.
If you set access for the field read-only by default, they can still enter the field to display the button if you put the above script if the entry...
I hope I understand correctly, this method should work perfectly if your goal is to hide the button from the drop-down list
-
Hide the caption only when the content of the field is empty for an Adobe form field
Hi all
We try to hide only the caption of a field if the content of the field is empty.
(a) the following code allows you to hide all cru (the entire field including the legend). What we should change the code to hide the legend?
-------------------------------------------------------
If (this.) RawValue is nothing)
{
This.Presence = "hidden".
}
-------------------------------------------------------
(b) another option would be to use the conditional formatting-> change of text in the caption to the text color white, if the content of the field is empty to make it invisible on print.
Are there options available ALD or code that must be used to achieve one of the options above?
Thank you in advance!
Kind regards
Roy
Modify the script to:
If (this.) RawValue is nothing)
{
xfa.resolveNode("this.caption.value.#text").value = "";
}
-
Hide the field to the page output?
Hello
Is there a code to hide a field when you leave a page in Acrobat format?
I have a button that displays a field when the field is clicked it closes. But if the user does not click on it and let the page remains open. For example, I'm on page 6 document, and click on the button to display the field. Then I moved to page 7 and then I go back to page 6 and it is always open.
I'm trying to figure out how to close the field when you leave the page if the user does not close it.
Thank you
Mark
Open the Pages panel on the left and right click on the page. Select the Page Properties, Actions, Page Close, and "Run a JavaScript", then enter this code:
this.getField("Field_Name").display = display.hidden;
-
Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - problem: cannot tab field one entry to another; Hit the tab hides instead all pallets; Is there a solution? It didn't happen in Adobe Indesign CC
This should be corrected in the next version.
-
Hide/show the fields based on textbox
I wonder if there is a way to hide certain fields based on the question of if a user enters a value in a text box and then reappear if the value in the text box is removed and the field becomes white.
I have two scenarios where I would this happen
1. I have a "Non-registered" check box and a text field 'blood pressure '. If the user check mark the box "Not registered", the field of blood pressure is hidden (I managed this already). If the user unclicks the box, the field of blood pressure again (even once, I did already). Otherwise, if the user enters a value in the 'pressure' I would 'Unregistered' area to disappear. I got this as well with this code: (placed in the form of javascript Action, mouse upward, event)
this.getField("Not_Recorded").display = event.target.value = "Off"? Display.visible: display.hidden;
I don't know if it's the appropriate script that I use, but he did not hide the field "unregistered". The problem is, I would 'not registered' to hide if a value is entered in the field of blood pressure and reappear if this value is then removed (i.e., the user changes his mind or made a mistake and wants to not click saved instead). I don't know if it's feasible or just way too complicated for me to do.
2. in the second scenario, I have 2 text fields where the user must enter a value for weight in pounds or kilograms. There is a text box for a value of lbs and a text box for a value in kg. If the user enters a value for books, I'd like to field for kgs be hidden, but still, if they delete this value so that the lbs field becomes empty, I would field for kgs reappear.
is this feasible or is there another way I might be able to do this?
For the first, I would not hide the check box for the reason you give. In addition to hide the text field, it must reset it so that any value that the user may have entered is not retained when it is hidden.
If you really want to show/hide the check box depending on whether there is an entry in the text field, you can use the validation script customized for the text field:
var f is getField ("unregistered");.
If (! event.value) {}
f.Display = display.visible;
} else {}
f.Value = "Off";
f.Display = display.hidden;
}
For this script start working, you change the value in the text field.
For the second problem, what I do, is to have a single text field and two boxes to tick to indicate lbs or kg. If you want to stay with the configuration you have, you can clear the other text field with a custom validation script:
Script for weight_lbs custom validate field
If (event.value) getField("weight_kgs").value = "";
Do the same for the other text field, but change the domain name in the script. This will allow only one field to be filled at the same time and do not bother with the masking.
-
Need to hide, obscure, hide the field entry, but not the field itself
Hello
I did it just now and I used the UGLY way. I had the user to enter in their value, and then on the calculation and the field trip, I changed the value of * asterisks. That sucked because I had to save the entry in an additional variable and it just made my code a big mess. I know there is a better way to do it via script format or typo (I hope!), but I can't wrap my head around how things work. Can someone please help me understand?
I need to take the value typed into a field and simply hide to hide the value of any person who could open the form later.
Thanks in advance.
Properties - tab field Options (make sure you check spelling, Multiline, allow the rich text formatting and comb are not checked to activate it).
-
Hide the fields to add fields drop-down list in the advanced search mode.
On the drop-down list to add fields in the field of the advanced search displayed by an af:query, is there a way to hide some of the attributes? He seems to show all the attributes of the default VO.
The fields must be visible on other pages that use the VO. Table Panel and search queries will only to display a subset of the fields in the VO.
Assigning to the attribute Display tip to hide will not do; at least this seems to be the case, because if I do that, then, the field is not available on the data control to be placed on other pages.
I guess I could create a separate VO just to the search page; but I try to avoid this, it invites excessive maintenance as the system grows. If no indication on how to hide a field VO on add fields while leaving the field to be displayed on other pages would be appreciated.
Versions: JDeveloper 11.1.1.4, ADF business 11.1.1.59.23 components.
Thank you.I wrote a blog post on this subject and a sample of http://tompeez.wordpress.com/2012/01/06/jdev-afquery-hide-some-attributes-from-query-panel-but-show-them-in-the-result-table/ here
Timo
-
Hide the fields password and the Password Confirmation
In IOM (9.1.0.2. BP12) I need to hide the password and Confirmation of the password that I managed to do by editing the tjspGenerateCreateUserForm.jsp the fields. Now my problem is that I can't create the user because these fields are mandatory. I added these lines below the JSP, but IOM still complains about the missing fields.
< div style = "display: none" >
< input type = "text" name = "value(Users~Password)" value = "12345." readonly = "true" styleClass = "Fields" > "
< / div >
< div style = "display: none" >
< input type = "text" name = "value(Users~ConfirmPassword)" value = "12345." readonly = "true" styleClass = "Fields" > "
< / div >
I have commented out or change this part in the FormMetaData.xml file, but that will affect all users, and this requirement is only for some users.
Any ideas?
Thank you
JaniYou can do one of the following:
-Write an adapter before insertion that always generates the password, so you don't have to provide anything of the JSP. It works for all users.
-Do not hide the field password make it readonly and also provides a value with it. This could be done in the same JSP as follows:
*
MaxLength = "100" styleClass = "Fields" tabindex = "1" / >Thank you
Sunny -
PHP - get the name of 'field of file' and go to the database?
Is it possible to extract the name of 'image' of the field 'file' and inserting it into a database using php?
< input type = "file" name = "ImageName" id = "ImageName" >
I can't have:
$ImageName = trim($_FILE['ImageName']);
So why this managed operation?
See you soon
Operating system
One of the elements of the array $_FILES autoglobal is the name of the file.
http://us2.php.net/manual/en/reserved.variables.files.php
You would get it from - $_FILES ["file"] ["name"]. You can see all of these as follows-
ECHO '.
"; Exit(print_r($_files)) ;
comme une instruction de débogage juste après déterminer si le formulaire a été soumis...
-
hide the fields in a form is called what? How can I go to the masking of fields in a form that have a button, the user can click on to make the visible fields to fill? Thanks, Nick
The seal is a sample that hides more see the shape of void. The same syntax applies to a field.
Steve
-
Fill in the fields from a php script
Hello
I am filling the fields of text from a PHP script directly in Acrobat Reader.
Lets not talk about database right now, I just want to know how to take a variable in PHP, right in the form of livecycle designer.
I've seen a lot of things like submitform() using http post, etc., but I can't make it work.
Thank you in advance.
If you want to fill in the LiveCycle Designer form, then you will need to go with the data file.
The data file can be an XML file or a database or WebService.
You can't fill out the PDF from a PHP script directly. Is what you can do, a LiveCycle process created in Workbench and then call the PHP application process information. The Livecycle process will merge the data with the model and the PDF back to the client application.
There is another feature in Acrobat PRO you can import an XML file directly to PDF, but it's a manual work. You cannot link to a PHP Script.
Thank you
Srini
-
Hide and unhide the field in a form according to the conditions
Hello Experts,
Is it possible to hide and show fields in a form according to requirements based on an LOV?
Thank youHey Kevin,
You can use javascript to capture all changes to the LOV.
Put this in a header or some other place where you can put html attributes:
then, you need the name of the field that you want to hide. That is to say mine is
div href = "#" id = "f09" style = "" display: none; ">"
(there is a ' ")<" missing,="" else="" it="" cannot="" be="" shown="/">">Then you put a javascript function in the header as follows:
function body_on()
{
body var = document.getElementById ('P41_body');
Body.style.Display = 'block ';
var head = document.getElementById ('head_image');
Head.SRC = "#IMAGE_PREFIX#themes/theme_20/collapse_minus.gif";
}function body_off()
{
body var = document.getElementById ('P41_body');
Body.style.display = 'none ';
var head = document.getElementById ('head_image');
Head.SRC = "#IMAGE_PREFIX#themes/theme_20/collapse_plus.gif";
}It's to hide / show regions of course.
Kind regards
jRPublished by: jR - ora on 05.01.2010 01:22
-
Hide or remove the zeroes in the field of Calulated
I have added fields to a proposal for a Bill-style. This is my first time ever adding fields of a pdf document. It looks very simple and my fields work perfectly. HOWEVER, when I want the quantity fields and prices to calculate in a total field... the total field displays zeros.
How can I make the zeros disappear? I'd like this field empty until a calculation is performed.
I searched through every single forum on here on my exact topic. A person will be said 'use this script' and someone else said "use this script" I tried all the scripts I found and yet I could not the zeros to disappear despite my conclusions.
Can someone please explain this to me as a 3rd grader... I don't understand very well of script and it's very difficult for me. What is the exact script to use that removes / mask zeros when the calculation is null? Where exactly should I put the script? Maybe I'm adding to the wrong section?
It seems that Adobe adds an editing field checkbox that will allow you to remove the zeros... it would save a lot of trouble.
Hello!
If I understand your question, this is the script that I use and it works perfectly:
var f = this.getField ("Field53");
f.Hidden (event.value =<>Click the field where you want the blank zeros, which will bring up the properties of the text field.
Click the validation tab.
Click on the Script to execute a custom Validation
Click on change
Enter the script I showed above, exactly as it is, even copy and paste it if you wish.
Replace Field53 with the name of the field where you want the blank zeros.
Click OK, then click close
Save your work
If there is a zero in the box, you want the zeros to be empty, delete the.
Save your work again
This should go on keep your empty zeros...
I hope it works for you!
Now to get help for my problem...
Have a great day!
Diane Dennis
Maybe you are looking for
-
Mute or LED on / off button question on Satellite A300 - 15 c
Hello I have a similar problem. I have laptop Toshiba Satellite A300 - 15 c. Until recently, the multimedia keys worked fine. I have assigned an exe file to the second to the left key and been happy to use the power button lights and the dimmer.exe,
-
Why my any CD not play not back in the right order?
I have a CD very good test of Alan Parsons and Stephen Court called "Sound Check 2. I wanted a digital copy to back up my CD. I have set iTunes to import the CD using Apple Lossless and Gracenote found all this info to track for me. I used my 1.83 Gh
-
Positive article on Android based tablets on CNN today.
Decent article on Android based tablets on CNN.com today http://www.cnn.com/2011/TECH/gaming.gadgets/03/25/new.tablets/index.html?hpt=Sbin# take on Apple, new tablets go where the iPad will not be TFG
-
In the resolution of the technical document ADC PCI 6221 = 16 bits at 250 kech. / s means I use all channels, then each sample channel = 15,625 kech. / S ?.
-
Hi, I had problems connecting to computers on the network for printer. The printer is HP LaserJet Pro M1536dnf MFP. The computer that is connected to the printer directly via USB is fine. I downloaded solution complete driver installation on the site