Quote:
Originally Posted by andreamarucci
Doesn't work
I've inserted this
<select name="partycount" size="1" onkeyup="doAttendCount();">
<option>Number of people</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
but it insert just 1 also if I choose 2
Any suggestion?
|
andreamarucci, replace your calendar_roll with:
Code:
<p><strong><phrase 1="$rollcount">$vbphrase[roll_text]</phrase></strong></p>
<if condition="$rollbits">
<ul>
$rollbits
</ul>
<else />
<p><i>$vbphrase[roll_nobody]</i></p>
</if>
<if condition="$bbuserinfo[userid] > 0 && $show[enroll]">
<if condition="$show[userattending]">
<a href="calendar.php?$session[sessionurl]do=getinfo&ea=unattend&e=$eventinfo[eventid]">$vbphrase[roll_cancel]</a>]
<else />
<!-- Number in Party field -->
<input type="hidden" name="pc_surl" value="$session[sessionurl]">
<input type="hidden" name="pc_eventid" value="$eventinfo[eventid]">
<input type="hidden" name="pc_pharse" value="$vbphrase[roll_enroll]">
</br>
<div id="attendlink">
<a
href="calendar.php?$session[sessionurl]do=getinfo&ea=attend&e=$eventinfo[eventid]">$vbphrase[roll_enroll]</a>
</div>
</br>
<div id="option_attendlink">
<select name="option_partycount" size="1" onchange="doAttend(this);">
<option>Number of people</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<script language="javascript">
function doAttend(oSelect)
{
var i=oSelect.selectedIndex;
var sVar;
sVar= '<a href="calendar.php?'+document.calendar_showeventsbit.pc_surl.value+ 'do=getinfo&ea=attend&e='+
document.calendar_showeventsbit.pc_eventid.value +
'&pc=' +
oSelect.value+'">' +
document.calendar_showeventsbit.pc_pharse.value+'</a>';
document.getElementById("attendlink").innerHTML = sVar;
}
</script>
<!-- / Number in Party field -->
</if>
</if>