webformulier naam invullen in veld
wij lopen tegen een klein probleempje aan waarbij we even met onze kennis geen oplossing meer zien.
Wij hebben een site waarop producten (in ons geval artiesten) staan vermeld. Daarbij kan over iedere artiest een aanvraag worden ingediend, een aanbeveling worden verzonden, een beoordeling worden geschreven. Dit gaat met tabbladen. Zie een voorbeeld:
www.allerlei-artiesten.nl/DJ-s-/-VJ-s/DJ-Jara/Boeken-Inhuren-Informatie-Offerte-Prijs-Kosten
Nu is op tabbladen "aanbevelen" en "geef uw beoordeling" de artiestnaam (DJ Jara) weergegeven en deze komt ook door in de outputs (mails) vanuit de formulieren.
We willen dit echter ook in het tabblad "informatie/offerte/boeken" verwerken. Dit laatste tabblad werkt echter op rs-form. En daarin is het niet mogelijk de data in te laden. Hierover zijn we afgelopen twee weken beoorlijk veel aan het mailen geweest met RS-form. De reden dat het niet gaat lukken is het feit dat we op 1.5 draaien in legacy 1.0 modus met mosets tree als platform voor de inhoud van de artiestpagina's (de combi is niet handig, weten we, maar helaas is dit nu even de situatie)
Om de artiestnaam weer netjes in het formulierveld 'artiest' te krijgen zien we nu als beste oplossing het formulier weer net als de andere twee tabbladen terugzetten naar een versie zonder RS-form. Maar hier houdt onze kennis een beetje op.
We hopen daarom dat we hier wat support kunnen vinden om dit te realiseren.
Voor de duidelijkheid heb ik de code (in quote-velden) van de 3 betreffende tabbladen hieronder weergegeven:
Tabblad "info / Offerte / Boeken"
Quote:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?php /*
$fid = 6 ;
global $mainframe, $limitstart, $acl, $processform;
if(!function_exists('showForm')){
require_once( $mainframe->getPath( 'front_html','com_forme' ) );
//check language
//first check global joomfish
$elpath = JPATH_SITE.'/components/com_forme';
$check = false;
if(isset($_COOKIE['mbfcookie']['lang'])) $check = $_COOKIE['mbfcookie']['lang'];
if(isset($_REQUEST['lang'])) $check = mosGetParam($_REQUEST,'lang',false);
if($check){
require_once($elpath.'/languages/'.$check.'.php');
}else{
require_once($elpath.'/languages/en.php');
}
function showForm($option, $fid){
global $mainframe, $limitstart, $acl, $processform;
$database =& JFactory::getDBO();
$my = & JFactory::getUser();
$elpath = JPATH_SITE.'/components/com_forme';
require_once( $mainframe->getPath( 'front_html','com_forme' ) );
if(!$fid){
//get first cid
$database->setQuery("SELECT id FROM #__forme_forms WHERE published = 1 LIMIT 1");
$fid = (int)$database->loadResult();
}
//check language
//first check global joomfish
$check = false;
if(isset($_COOKIE['mbfcookie']['lang'])) $check = $_COOKIE['mbfcookie']['lang'];
if(isset($_REQUEST['lang'])) $check = mosGetParam($_REQUEST,'lang',false);
if($check){
$database->setQuery("SELECT * FROM #__forme_forms WHERE id = '$fid'");
$oldform = $database->loadObject();
//check if we find something similar
$database->setQuery("SELECT id FROM #__forme_forms WHERE lang='$check' AND name='$oldform->name' ");
$newfid = $database->loadResult();
if($newfid) $fid = $newfid;
}
$query = "SELECT * FROM #__forme_forms WHERE id = '{$fid}' AND published = '1'";
$database->setQuery($query);
$form = $database->loadObject();
//load fields
$query = "SELECT * FROM #__forme_fields WHERE form_id = '{$fid}' AND published = '1' ORDER BY ordering";
$database->setQuery($query);
$fields = $database->loadObjectList();
if(!$form->published) mosRedirect(JURI::base(),_NOT_EXIST);
//Output
global $database, $Itemid, $mainframe, $hide_js, $pop, $formeConfig;
$html = '';
if(isset($form->id)){
//mosCommonHTML::loadCalendar();
eval($form->script_display);
//if we have upload file fields, add enctype
$enctype='';
foreach($fields as $field){
if($field->inputtype=='file upload') $enctype = ' enctype="multipart/form-data"';
}
//load calendar if calendar field exists
$calexists = false;
foreach($fields as $field){
if($field->inputtype=='calendar') $calexists = true;
}
//parse field template
$formfields = '';
foreach($fields as $field){
if($form->fieldstyle=='') $form->fieldstyle = _FORME_BACKEND_EDITFORMS_FIELDSTYLE_DEFAULT;
if($field->fieldstyle=='') $field->fieldstyle = $form->fieldstyle;
$formfields .= forme_HTML::parseFields($field);
}
if($calexists){
$check = false;
if(isset($_COOKIE['mbfcookie']['lang'])) $check = $_COOKIE['mbfcookie']['lang'];
if(isset($_REQUEST['lang'])) $check = mosGetParam($_REQUEST,'lang',false);
if($check){
if(file_exists(JPATH_SITE.'/components/com_forme/calendar/initcal-'.$check.'.php'))
require_once(JPATH_SITE.'/components/com_forme/calendar/initcal-'.$check.'.php');
else require_once(JPATH_SITE.'/components/com_forme/calendar/initcal.php');
}
else require_once(JPATH_SITE.'/components/com_forme/calendar/initcal.php');
$html .='
<script language="javascript">
function init() {';
foreach($fields as $field){
if($field->inputtype=='calendar'){
$html.='
function handleSelect'.$field->name.'(type,args,obj) {
var dates = args[0];
var date = dates[0];
var year = date[0], month = date[1], day = date[2];
var txtDate = document.getElementById("txt'.$field->name.'");
txtDate.value = month + "/" + day + "/" + year;
}
YAHOO.example.calendar.'.$field->name.' = new YAHOO.widget.Calendar("'.$field->name.'","'.$field->name.'Container");
YAHOO.example.calendar.'.$field->name.'.selectEvent.subscribe(handleSelect'.$field->name.', YAHOO.example.calendar.'.$field->name.', true);
var txt'.$field->name.' = document.getElementById("txt'.$field->name.'");
if (txt'.$field->name.'.value != "") {
YAHOO.example.calendar.'.$field->name.'.select(txt'.$field->name.'.value);
}
YAHOO.example.calendar.'.$field->name.'.render();';
}
}
$html .='
}
YAHOO.util.Event.addListener(window, "load", init);
</script>';
}
$action = 'index.php?option=com_forme&fid='.$form->id.'&Itemid='.$Itemid;
//parse form template
if($form->formstyle == '') $form->formstyle = _FORME_BACKEND_EDITFORMS_STYLE_DEFAULT;
$form->formstyle = str_replace('{formtitle}',$form->title,$form->formstyle);
$form->formstyle = str_replace('{formname}',$form->name,$form->formstyle);
$form->formstyle = str_replace('{enctype}',$enctype,$form->formstyle);
$form->formstyle = str_replace('{action}',$action,$form->formstyle);
$form->formstyle = str_replace('{formfields}',$formfields,$form->formstyle);
$html .= $form->formstyle;
}
return $html;
}
}
//echo showForm('com_forme',$fid);
jimport('joomla.application.module.helper');
$modeles = JModuleHelper::getModules('contact_owner');
foreach($modeles as $module){
echo JModuleHelper::renderModule($module , array() );
} */
require_once(JPATH_SITE.'/components/com_rsform/controller/adapter.php');
require_once(JPATH_SITE.'/components/com_rsform/controller/functions.php');
require_once(JPATH_SITE.'/components/com_rsform/controller/validation.php');
require_once(_RSFORM_FRONTEND_ABS_PATH.'/languages/'._RSFORM_FRONTEND_LANGUAGE.'.php');
function getForm($formId)
{
global $RSadapter;
$RSadapter = new RSadapter();
$output = '';
if(isset($_SESSION['form'][$formId]['thankYouMessage']) && !empty($_SESSION['form'][$formId]['thankYouMessage']))
{
$output .= RSshowThankyouMessage($formId);
}
else
{
if(!empty($_POST['form']['formId']) && $_POST['form']['formId'] == $formId)
{
$invalid = RSprocessForm($formId);
if($invalid)
{
//the invalid variable is returned
$output .= RSshowForm($formId, $_POST['form'], $invalid);
}
}
else
{
if(isset($_SESSION['form'][$formId]['thankYouMessage']) && empty($_SESSION['form'][$formId]['thankYouMessage']))
{
unset($_SESSION['form'][$formId]['thankYouMessage']);
//is there a return url?
$query = mysql_query("SELECT ReturnUrl FROM `{$RSadapter->tbl_rsform_forms}` WHERE `formId` = '$formId'");
$returnUrl = mysql_fetch_assoc($query);
if(!empty($returnUrl['ReturnUrl']))
{
if(!isset($_SESSION['form'][$formId]['submissionId']))$_SESSION['form'][$formId]['submissionId'] = '';
$returnUrl['ReturnUrl'] = RSprocessField($returnUrl['ReturnUrl'],$_SESSION['form'][$formId]['submissionId']);
unset($_SESSION['form'][$formId]['submissionId']);
$RSadapter->redirect($returnUrl['ReturnUrl']);
}
$output .= _RSFORM_FRONTEND_THANKYOU;
}
$output .= RSshowForm($formId);
}
}
return $output;
}
//print_r(JRequest::get());die();
echo getForm(10);
?>
$fid = 6 ;
global $mainframe, $limitstart, $acl, $processform;
if(!function_exists('showForm')){
require_once( $mainframe->getPath( 'front_html','com_forme' ) );
//check language
//first check global joomfish
$elpath = JPATH_SITE.'/components/com_forme';
$check = false;
if(isset($_COOKIE['mbfcookie']['lang'])) $check = $_COOKIE['mbfcookie']['lang'];
if(isset($_REQUEST['lang'])) $check = mosGetParam($_REQUEST,'lang',false);
if($check){
require_once($elpath.'/languages/'.$check.'.php');
}else{
require_once($elpath.'/languages/en.php');
}
function showForm($option, $fid){
global $mainframe, $limitstart, $acl, $processform;
$database =& JFactory::getDBO();
$my = & JFactory::getUser();
$elpath = JPATH_SITE.'/components/com_forme';
require_once( $mainframe->getPath( 'front_html','com_forme' ) );
if(!$fid){
//get first cid
$database->setQuery("SELECT id FROM #__forme_forms WHERE published = 1 LIMIT 1");
$fid = (int)$database->loadResult();
}
//check language
//first check global joomfish
$check = false;
if(isset($_COOKIE['mbfcookie']['lang'])) $check = $_COOKIE['mbfcookie']['lang'];
if(isset($_REQUEST['lang'])) $check = mosGetParam($_REQUEST,'lang',false);
if($check){
$database->setQuery("SELECT * FROM #__forme_forms WHERE id = '$fid'");
$oldform = $database->loadObject();
//check if we find something similar
$database->setQuery("SELECT id FROM #__forme_forms WHERE lang='$check' AND name='$oldform->name' ");
$newfid = $database->loadResult();
if($newfid) $fid = $newfid;
}
$query = "SELECT * FROM #__forme_forms WHERE id = '{$fid}' AND published = '1'";
$database->setQuery($query);
$form = $database->loadObject();
//load fields
$query = "SELECT * FROM #__forme_fields WHERE form_id = '{$fid}' AND published = '1' ORDER BY ordering";
$database->setQuery($query);
$fields = $database->loadObjectList();
if(!$form->published) mosRedirect(JURI::base(),_NOT_EXIST);
//Output
global $database, $Itemid, $mainframe, $hide_js, $pop, $formeConfig;
$html = '';
if(isset($form->id)){
//mosCommonHTML::loadCalendar();
eval($form->script_display);
//if we have upload file fields, add enctype
$enctype='';
foreach($fields as $field){
if($field->inputtype=='file upload') $enctype = ' enctype="multipart/form-data"';
}
//load calendar if calendar field exists
$calexists = false;
foreach($fields as $field){
if($field->inputtype=='calendar') $calexists = true;
}
//parse field template
$formfields = '';
foreach($fields as $field){
if($form->fieldstyle=='') $form->fieldstyle = _FORME_BACKEND_EDITFORMS_FIELDSTYLE_DEFAULT;
if($field->fieldstyle=='') $field->fieldstyle = $form->fieldstyle;
$formfields .= forme_HTML::parseFields($field);
}
if($calexists){
$check = false;
if(isset($_COOKIE['mbfcookie']['lang'])) $check = $_COOKIE['mbfcookie']['lang'];
if(isset($_REQUEST['lang'])) $check = mosGetParam($_REQUEST,'lang',false);
if($check){
if(file_exists(JPATH_SITE.'/components/com_forme/calendar/initcal-'.$check.'.php'))
require_once(JPATH_SITE.'/components/com_forme/calendar/initcal-'.$check.'.php');
else require_once(JPATH_SITE.'/components/com_forme/calendar/initcal.php');
}
else require_once(JPATH_SITE.'/components/com_forme/calendar/initcal.php');
$html .='
<script language="javascript">
function init() {';
foreach($fields as $field){
if($field->inputtype=='calendar'){
$html.='
function handleSelect'.$field->name.'(type,args,obj) {
var dates = args[0];
var date = dates[0];
var year = date[0], month = date[1], day = date[2];
var txtDate = document.getElementById("txt'.$field->name.'");
txtDate.value = month + "/" + day + "/" + year;
}
YAHOO.example.calendar.'.$field->name.' = new YAHOO.widget.Calendar("'.$field->name.'","'.$field->name.'Container");
YAHOO.example.calendar.'.$field->name.'.selectEvent.subscribe(handleSelect'.$field->name.', YAHOO.example.calendar.'.$field->name.', true);
var txt'.$field->name.' = document.getElementById("txt'.$field->name.'");
if (txt'.$field->name.'.value != "") {
YAHOO.example.calendar.'.$field->name.'.select(txt'.$field->name.'.value);
}
YAHOO.example.calendar.'.$field->name.'.render();';
}
}
$html .='
}
YAHOO.util.Event.addListener(window, "load", init);
</script>';
}
$action = 'index.php?option=com_forme&fid='.$form->id.'&Itemid='.$Itemid;
//parse form template
if($form->formstyle == '') $form->formstyle = _FORME_BACKEND_EDITFORMS_STYLE_DEFAULT;
$form->formstyle = str_replace('{formtitle}',$form->title,$form->formstyle);
$form->formstyle = str_replace('{formname}',$form->name,$form->formstyle);
$form->formstyle = str_replace('{enctype}',$enctype,$form->formstyle);
$form->formstyle = str_replace('{action}',$action,$form->formstyle);
$form->formstyle = str_replace('{formfields}',$formfields,$form->formstyle);
$html .= $form->formstyle;
}
return $html;
}
}
//echo showForm('com_forme',$fid);
jimport('joomla.application.module.helper');
$modeles = JModuleHelper::getModules('contact_owner');
foreach($modeles as $module){
echo JModuleHelper::renderModule($module , array() );
} */
require_once(JPATH_SITE.'/components/com_rsform/controller/adapter.php');
require_once(JPATH_SITE.'/components/com_rsform/controller/functions.php');
require_once(JPATH_SITE.'/components/com_rsform/controller/validation.php');
require_once(_RSFORM_FRONTEND_ABS_PATH.'/languages/'._RSFORM_FRONTEND_LANGUAGE.'.php');
function getForm($formId)
{
global $RSadapter;
$RSadapter = new RSadapter();
$output = '';
if(isset($_SESSION['form'][$formId]['thankYouMessage']) && !empty($_SESSION['form'][$formId]['thankYouMessage']))
{
$output .= RSshowThankyouMessage($formId);
}
else
{
if(!empty($_POST['form']['formId']) && $_POST['form']['formId'] == $formId)
{
$invalid = RSprocessForm($formId);
if($invalid)
{
//the invalid variable is returned
$output .= RSshowForm($formId, $_POST['form'], $invalid);
}
}
else
{
if(isset($_SESSION['form'][$formId]['thankYouMessage']) && empty($_SESSION['form'][$formId]['thankYouMessage']))
{
unset($_SESSION['form'][$formId]['thankYouMessage']);
//is there a return url?
$query = mysql_query("SELECT ReturnUrl FROM `{$RSadapter->tbl_rsform_forms}` WHERE `formId` = '$formId'");
$returnUrl = mysql_fetch_assoc($query);
if(!empty($returnUrl['ReturnUrl']))
{
if(!isset($_SESSION['form'][$formId]['submissionId']))$_SESSION['form'][$formId]['submissionId'] = '';
$returnUrl['ReturnUrl'] = RSprocessField($returnUrl['ReturnUrl'],$_SESSION['form'][$formId]['submissionId']);
unset($_SESSION['form'][$formId]['submissionId']);
$RSadapter->redirect($returnUrl['ReturnUrl']);
}
$output .= _RSFORM_FRONTEND_THANKYOU;
}
$output .= RSshowForm($formId);
}
}
return $output;
}
//print_r(JRequest::get());die();
echo getForm(10);
?>
Tabblad "Aanbevelen"
Quote:
<script language="javascript" type="text/javascript">
function submitbutton2(pressbutton2) {
var form = document.adminForm2;
if (pressbutton2 == 'cancel') {
form.task.value='viewlink';
form.submit();
return;
}
// do field validation
// if (form.your_name.value == ""){
// alert( "" );
// } else if (form.your_email.value == ""){
// alert( "" );
// } else if (form.friend_name.value == ""){
// alert( "" );
// } else if (form.friend_email.value == ""){
// alert( "" );
// } else {
form.task.value=pressbutton2;
try {
form.onsubmit();
}
catch(e){}
form.submit();
//}
}
</script>
<!-- <h1 class="componentheading"></h1> -->
<h2 class="contentheading"></h2>
<form action="" method="post" name="adminForm2" id="adminForm2">
<table border="0" cellpadding="3" cellspacing="0" width="96%">
<tr>
<td colspan="2">
<b>:</b>
</td>
</tr>
<tr>
<td width="20%">:</td>
<td width="80%"><input type="text" name="your_name" class="inputbox" size="40" /></td>
</tr>
<tr>
<td>:</td>
<td><input type="text" name="your_email" class="inputbox" size="40" /></td>
</tr>
<tr>
<td colspan="2">
<b>:</b>
</td>
</tr>
<tr>
<td>:</td>
<td><input type="text" name="friend_name" class="inputbox" size="40" /></td>
</tr>
<tr>
<td>:</td>
<td><input type="text" name="friend_email" class="inputbox" size="40" /></td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="option" value="" />
<input type="hidden" name="task" value="send_recommend" />
<input type="hidden" name="Itemid" value="" />
<input type="hidden" name="link_id" value="" />
<input type="hidden" name="" value="1" />
<!--<input type="hidden" name="" value="1" />-->
<input type="button" value="" onclick="javascript:submitbutton2('send_recommend')" class="button" /> <input type="button" value="" onclick="javascript:submitbutton2('cancel')" class="button" />
</td>
</tr>
</table>
</form>
function submitbutton2(pressbutton2) {
var form = document.adminForm2;
if (pressbutton2 == 'cancel') {
form.task.value='viewlink';
form.submit();
return;
}
// do field validation
// if (form.your_name.value == ""){
// alert( "" );
// } else if (form.your_email.value == ""){
// alert( "" );
// } else if (form.friend_name.value == ""){
// alert( "" );
// } else if (form.friend_email.value == ""){
// alert( "" );
// } else {
form.task.value=pressbutton2;
try {
form.onsubmit();
}
catch(e){}
form.submit();
//}
}
</script>
<!-- <h1 class="componentheading"></h1> -->
<h2 class="contentheading">
Code (php)
<form action="" method="post" name="adminForm2" id="adminForm2">
<table border="0" cellpadding="3" cellspacing="0" width="96%">
<tr>
<td colspan="2">
<b>:</b>
</td>
</tr>
<tr>
<td width="20%">:</td>
<td width="80%"><input type="text" name="your_name" class="inputbox" size="40" /></td>
</tr>
<tr>
<td>:</td>
<td><input type="text" name="your_email" class="inputbox" size="40" /></td>
</tr>
<tr>
<td colspan="2">
<b>:</b>
</td>
</tr>
<tr>
<td>:</td>
<td><input type="text" name="friend_name" class="inputbox" size="40" /></td>
</tr>
<tr>
<td>:</td>
<td><input type="text" name="friend_email" class="inputbox" size="40" /></td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="option" value="" />
<input type="hidden" name="task" value="send_recommend" />
<input type="hidden" name="Itemid" value="" />
<input type="hidden" name="link_id" value="" />
<input type="hidden" name="" value="1" />
<!--<input type="hidden" name="" value="1" />-->
<input type="button" value="" onclick="javascript:submitbutton2('send_recommend')" class="button" /> <input type="button" value="" onclick="javascript:submitbutton2('cancel')" class="button" />
</td>
</tr>
</table>
</form>
Tabblad "Geef uw beoordeling"
Quote:
<script language="javascript" type="text/javascript">
function submitbutton3(pressbutton3) {
var form = document.adminForm3;
if (pressbutton3 == 'cancel') {
submitform( 'viewlink' );
return;
}
// do field validation
// if (form.rev_text.value == ""){
// alert( "" );
// } else if (form.rev_title.value == ""){
// alert( "" );
//} else {
form.submit();
//}
}
</script>
<!-- <h1 class="componentheading"></h1> -->
<h2 class="contentheading"></h2>
<form action="" method="post" name="adminForm3" id="adminForm3">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td align="left">
Email*:
</td>
</tr>
<tr>
<td align="left">
<input type="text" name="rev_email" class="inputbox" size="40" />
<br />
<span style="font-size: 9px;">(Uw email adres wordt niet bekend gemaakt) (* verplicht veld)</span></td>
</tr>
<tr>
<td align="left">
:
</td>
</tr>
<tr>
<td align="left">
<input type="text" name="guest_name" class="inputbox" size="20" />
</td>
</tr>
<tr>
<td align="left">
:
</td>
</tr>
<tr>
<td align="left">
<input type="text" name="rev_title" class="inputbox" size="40" />
</td>
</tr>
<tr>
<td align="left">
<select name="rating" class="inputbox">
</select>
</td>
</tr>
<tr>
<td align="left">
:
</td>
</tr>
<tr>
<td align="left">
<br /><br />
<input type="hidden" name="option" value="" />
<input type="hidden" name="task" value="addreview" />
<input type="hidden" name="Itemid" value="" />
<input type="hidden" name="link_id" value="" />
<input type="hidden" name="" value="1" />
<!--<input type="hidden" name="" value="1" /> -->
<input type="submit" value="" onclick="javascript:submitbutton3('addreview')" class="button" /> <input type="button" value="" onclick="history.back();" class="button" />
</td>
</tr>
</table>
</form>
function submitbutton3(pressbutton3) {
var form = document.adminForm3;
if (pressbutton3 == 'cancel') {
submitform( 'viewlink' );
return;
}
// do field validation
// if (form.rev_text.value == ""){
// alert( "" );
// } else if (form.rev_title.value == ""){
// alert( "" );
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// if(
// $this->config->get('require_rating_with_review')
// &&
// $this->config->get('allow_rating_during_review')
// &&
// (//
// $this->config->get('user_rating') == '0'
// ||
// ($this->config->get('user_rating') == '1' && $this->my->id > 0)
// ||
// ($this->config->get('user_rating') == '2' && $this->my->id > 0 && $this->my->id != $this->link->user_id)
// )
// ) {
// echo '} else if (form.rating.value == ""){ alert("' . $this->_MT_LANG->PLEASE_FILL_IN_RATING . '"); ';
// }
// ?>
// if(
// $this->config->get('require_rating_with_review')
// &&
// $this->config->get('allow_rating_during_review')
// &&
// (//
// $this->config->get('user_rating') == '0'
// ||
// ($this->config->get('user_rating') == '1' && $this->my->id > 0)
// ||
// ($this->config->get('user_rating') == '2' && $this->my->id > 0 && $this->my->id != $this->link->user_id)
// )
// ) {
// echo '} else if (form.rating.value == ""){ alert("' . $this->_MT_LANG->PLEASE_FILL_IN_RATING . '"); ';
// }
// ?>
form.submit();
//}
}
</script>
<!-- <h1 class="componentheading"></h1> -->
<h2 class="contentheading"></h2>
<form action="" method="post" name="adminForm3" id="adminForm3">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td align="left">
Email*:
</td>
</tr>
<tr>
<td align="left">
<input type="text" name="rev_email" class="inputbox" size="40" />
<br />
<span style="font-size: 9px;">(Uw email adres wordt niet bekend gemaakt) (* verplicht veld)</span></td>
</tr>
<tr>
<td align="left">
:
</td>
</tr>
<tr>
<td align="left">
<input type="text" name="guest_name" class="inputbox" size="20" />
</td>
</tr>
<tr>
<td align="left">
:
</td>
</tr>
<tr>
<td align="left">
<input type="text" name="rev_title" class="inputbox" size="40" />
</td>
</tr>
<tr>
<td align="left">
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
<select name="rating" class="inputbox">
Code (php)
</select>
</td>
</tr>
<tr>
<td align="left">
:
</td>
</tr>
<tr>
<td align="left">
<br /><br />
<input type="hidden" name="option" value="" />
<input type="hidden" name="task" value="addreview" />
<input type="hidden" name="Itemid" value="" />
<input type="hidden" name="link_id" value="" />
<input type="hidden" name="" value="1" />
<!--<input type="hidden" name="" value="1" /> -->
<input type="submit" value="" onclick="javascript:submitbutton3('addreview')" class="button" /> <input type="button" value="" onclick="history.back();" class="button" />
</td>
</tr>
</table>
</form>
Kan iemand ons hiermee verder helpen?
Wall plant... Minder... tekst... alsjeblieft... kan.. nie...t .. uhhhgg..