This topic is locked

advanced search ???

4/15/2009 9:53:57 AM
PHPRunner General questions
A
all3ssaf author

hi
i have a table that has a (name) field and a (date) field
What I want :
When i go to advanced search i want the date field is 1 Day late (Today date) , and Can not modify it
Help me Help me Help me Help me Help me Help me Help me Help me Help me Help me Help me Help me <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=11561&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />

J
Jane 4/16/2009

Hi,
to set up default value on the advanced search page use following code on the Search page: Before display event:

global $control_FieldName;

$control_FieldName["params"]["value"] = date("d/m/Y",strtotime("+1 day"));


To set up this field as disabled add custom JavaScript code on theVisual Editortab (HTML mode) at the end of page:

<script>

document.forms.editform.value_FieldName.disabled = true;

</script>