disable function intergreren
kan iemand mij helpen met wat ik fout doe?
alvast bedankt!
Quote:
<script>
function toggle_website()
if field_3 = $name 'datum'
if (field_3 == '$name (datum){
$field_4 = 'date';
}
else{
$field_4 = 'hidden';
}
}
</script>
<div class='col_label'>
<label class='form_field'>Uitvoerdatum</label> <label class='form_required' >*</label> </div>
<div class='col_field'>
</td>
<td>
<div id='field_3_tip' class='instruction' onchange="toggle_website();"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class='col_label'>
<label class='form_field'>datum</label> <label class='form_required' > </label> </div>
<div class='col_field'>
</td>
<td>
function toggle_website()
if field_3 = $name 'datum'
if (field_3 == '$name (datum){
$field_4 = 'date';
}
else{
$field_4 = 'hidden';
}
}
</script>
<div class='col_label'>
<label class='form_field'>Uitvoerdatum</label> <label class='form_required' >*</label> </div>
<div class='col_field'>
</td>
<td>
<div id='field_3_tip' class='instruction' onchange="toggle_website();"></div>
</div>
</td>
</tr>
<tr>
<td>
<div class='col_label'>
<label class='form_field'>datum</label> <label class='form_required' > </label> </div>
<div class='col_field'>
</td>
<td>
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
<?php
$field_4 = array(
'month' => "Maand =,|Januari|Februari|Maart|April|Mei|Juni|Juli|Augustus|September|Oktober|November|December",
'day' => "Dag =,|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31",
'startYear' => date("Y")+0,
'endYear' => date("Y")+10,
'yearPrompt' => 'Jaar',
'format' => "dd/mm/yyyy",
'separator' => "-",
'field_name' => "field_4",
);
phpfmg_date_dropdown( $field_4 );
?>
$field_4 = array(
'month' => "Maand =,|Januari|Februari|Maart|April|Mei|Juni|Juli|Augustus|September|Oktober|November|December",
'day' => "Dag =,|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31",
'startYear' => date("Y")+0,
'endYear' => date("Y")+10,
'yearPrompt' => 'Jaar',
'format' => "dd/mm/yyyy",
'separator' => "-",
'field_name' => "field_4",
);
phpfmg_date_dropdown( $field_4 );
?>
dit verwijst naar
Quote:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
$GLOBALS['form_mail'] = array();
$GLOBALS['form_mail']['field_0'] = array( "name" => "field_0", "text" => "Particulier of Zakelijk", "type" => "radio", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_1'] = array( "name" => "field_1", "text" => "Werkzaamheden", "type" => "select", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_2'] = array( "name" => "field_2", "text" => "Extra Werkzaamheden", "type" => "select", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_3'] = array( "name" => "field_3", "text" => "uitvoerdatum", "type" => "radio", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_4'] = array( "name" => "field_4", "text" => "datum", "type" => "date", "instruction" => "", "required" => "" ) ;
phpfmg_date_dropdown_require('field_4');
$GLOBALS['form_mail']['field_5'] = array( "name" => "field_5", "text" => "Beschrijving", "type" => "textarea", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_6'] = array( "name" => "field_6", "text" => "Naam", "type" => "text", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_7'] = array( "name" => "field_7", "text" => "Adres", "type" => "text", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_8'] = array( "name" => "field_8", "text" => "postcode", "type" => "postcode", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_9'] = array( "name" => "field_9", "text" => "Woonplaats", "type" => "text", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_10'] = array( "name" => "field_10", "text" => "Email", "type" => "sender's email", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_11'] = array( "name" => "field_11", "text" => "telefoonnummer", "type" => "telefoonnummer", "instruction" => "", "required" => "Required" ) ;
?>
$GLOBALS['form_mail'] = array();
$GLOBALS['form_mail']['field_0'] = array( "name" => "field_0", "text" => "Particulier of Zakelijk", "type" => "radio", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_1'] = array( "name" => "field_1", "text" => "Werkzaamheden", "type" => "select", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_2'] = array( "name" => "field_2", "text" => "Extra Werkzaamheden", "type" => "select", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_3'] = array( "name" => "field_3", "text" => "uitvoerdatum", "type" => "radio", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_4'] = array( "name" => "field_4", "text" => "datum", "type" => "date", "instruction" => "", "required" => "" ) ;
phpfmg_date_dropdown_require('field_4');
$GLOBALS['form_mail']['field_5'] = array( "name" => "field_5", "text" => "Beschrijving", "type" => "textarea", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_6'] = array( "name" => "field_6", "text" => "Naam", "type" => "text", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_7'] = array( "name" => "field_7", "text" => "Adres", "type" => "text", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_8'] = array( "name" => "field_8", "text" => "postcode", "type" => "postcode", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_9'] = array( "name" => "field_9", "text" => "Woonplaats", "type" => "text", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_10'] = array( "name" => "field_10", "text" => "Email", "type" => "sender's email", "instruction" => "", "required" => "Required" ) ;
$GLOBALS['form_mail']['field_11'] = array( "name" => "field_11", "text" => "telefoonnummer", "type" => "telefoonnummer", "instruction" => "", "required" => "Required" ) ;
?>
Gewijzigd op 26/07/2011 20:28:06 door Seti Soeparman
Er zijn nog geen reacties op dit bericht.