(I could use any other type of lightbox, shadowbox, etc needed)
Any idea on how to do this?
Thanks!
<?php JHTML::_('behavior.modal'); ?>
<a class="modal" href="http://www.domain.com/index.php?option=com_chronocontact&chronoformname=someform" rel="{handler: 'iframe', size: {x: 600, y: 600}}">Open my form in a lightbox</a>
<input value="Submit" type="submit" onclick="window.parent.document.getElementById('sbox-window').close();"/>
<script type="text/javascript">
<!--
onSubmit="window.parent.document.getElementById('sbox-window').close()
//-->
</script>
<a class="modal" id="idResetPass" href="index.php?option=com_user&view=reset&tmpl=component" rel="{handler: 'iframe', size: {x: 500, y: 400}}"> <input value="Change Password" type="button" onclick="document.getElementById('idResetPass').click();" /></a>
window.addEvent('domready', function() {
SqueezeBox.initialize();
SqueezeBox.setContent('iframe', '');
SqueezeBox.applyContent('<div style="color:#FF0000; padding:5px; font-size:12px;">Your Content</div>', {x: 200, y: 100});
SqueezeBox.resize({x: 500, y: 100}, true);
//return false;
});
<?php JHTML::_('behavior.modal'); ?>
<a class="modal" href="http://www.domain.com/index.php?option=com_chronocontact&chronoformname=someform" rel="{handler: 'iframe', size: {x: 600, y: 600}}">Open my form in a lightbox</a>
<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/modal.js"></script>
<script type="text/javascript" src="/media/system/js/calendar.js"></script>
<script type="text/javascript" src="/media/system/js/calendar-setup.js"></script>
<?php JHTML::_('behavior.modal'); ?>
<a class="modal" href="index.php?option=com_chronocontact&chronoformname=someform&tmpl=component" rel="{handler: 'iframe', size: {x: 600, y: 600}}">Open my form in a lightbox</a>
<input value="Submit" type="submit" onclick="window.parent.document.getElementById('sbox-window').close();"/>
<?php JHTML::_('behavior.mootools'); ?>
onclick="window.parent.document.getElementById('sbox-window').close();"
onclick="window.parent.document.url = 'new url here'"
onclick="window.parent.document.location = 'new url here'"
onclick="window.parent.document.getElementById('sbox-window').close();window.parent.document.location = 'new url here'"
onclick="window.parent.document.getElementById('sbox-window').close();"
is firing?
<p>Thanks for your feedback...blablabla...</p>
<p><a href="#" onclick="window.parent.document.getElementById('sbox-window').close();">Close Window</a></p>
...&tmpl=component
<link rel="stylesheet" href="templates/myTemplate/css/style.css" type="text/css" />
index.html?...form...&tmpl=component
index2.html?...form
<?php
$tmpl = JRequest::getString('tmpl', '', 'get');
If ( $tmpl == 'component' ) {
$doc =& JFactory::getDocument();
$doc->addStyleSheet('. . .');
}
?>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" />
<!--[if IE 6]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie6.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
<script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/modal.js"></script>
<?php JHTML::_('behavior.modal'); ?>
</head>
<a class="modal" href="http://www.MYDOMAIN.com/index.php?option=com_content&view=article&id=16:MYFORMNAME&catid=6:MYCATEGORY&Itemid=9&tmpl=component" title="MYFORMNAME" rel="{shadowbox: 'iframe', size: {x: 600, y: 600}}"><img width="75" height="75" align="baseline" alt="IMAGENAME.png" src="URLFORIMAGE" /></a>
<?php JHTML::_('behavior.modal'); ?>
2. On submit I want the form-inputs appear in a summary-page that can be printed with a "Thank You" note at the top - still inside the lightbox. A link in the bottom of this page will then close the lightbox
<input value="Submit" type="submit" />
That way the lightbox will not close itself after Submit, and will be able to display your thank you message.<a class="modal" href="index.php?option=com_chronocontact&chronoformname=news_alerts&tmpl=component" rel="{handler: 'iframe', size: {x: 600, y: 500}}">Sign Up for News Alerts</a>
The reason for the &tmpl=component
at the end of the url is so the form will open up in a blank template. (Change x and y numbers to alter the size of the lightbox.)<?php JHTML::_('behavior.modal'); ?>
just before the </head>
tag in your default template's index page. Now, when you click on the link to your form, it should open in a lightbox, in a blank template with no menu, header, etc. surrounding it.$actionurl = $MyForm->formrow->submiturl.'&tmpl=component';
and line 102 to $actionurl = JURI::Base().'index.php?option=com_chronocontact&task=send&chronoformname='.$MyForm->formrow->name.'&tmpl=component';
I don't know if both those changes were actually needed, but the form works wonderfully, all e-mails are sent properly, etc.&tmpl=component
part in the backend, in the "Submit Urls" box under the "Form Urls" tab... I experimented with this but couldn't get it to accept a variable for the url, so decided to change the component's code instead.Getting the Thank You message to open in the same blank template was a little harder. For this I had to change line 100 of components/com_chronocontact/chronocontact.html.php to
$actionurl = $MyForm->formrow->submiturl.'&tmpl=component';
and line 102 to $actionurl = JURI::Base().'index.php?option=com_chronocontact&task=send&chronoformname='.$MyForm->formrow->name.'&tmpl=component';
I don't know if both those changes were actually needed, but the form works wonderfully, all e-mails are sent properly, etc.<input value="Submit" type="submit" />
should just appear in your form's html when you add the submit button the normal way in Chronoforms. I was just saying don't change it (in other words, don't add any onclick javascript to make the lightbox close, as was suggested in some previous posts here).$actionurl =
and change those.
<?php
/*
/**
* CHRONOFORMS version 3.1
* Copyright (c) 2008 Chrono_Man, ChronoEngine.com. All rights reserved.
* Author: Chrono_Man (ChronoEngine.com)
* @license GNU/GPL
* See readme.html.
* Visit http://www.ChronoEngine.com for regular update and information.
**/
/* ensuring that this file is called up from another file */
defined('_JEXEC') or die('Restricted access');
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
class HTML_ChronoContact {
// Procedure for building the table
function showform( $row, $posted ) {
global $mainframe;
$database =& JFactory::getDBO();
$MyForm =& CFChronoForm::getInstance($row->name);
$CF_PATH = ($mainframe->isSite()) ? JURI::Base() : $mainframe->getSiteURL();
if((!empty($MyForm->formrow->name))&&($MyForm->formrow->published)){
?>
<?php if (($MyForm->formparams('LoadFiles') == 'Yes')||( trim($MyForm->formparams('validate')) == 'Yes')||($MyForm->formparams('captcha_dataload'))){ ?>
<?php JHTML::_('behavior.mootools'); ?>
<?php } ?>
<?php ob_start(); ?>
<?php if ($MyForm->formparams('LoadFiles') == 'Yes'){ ?>
<?php if((!trim($MyForm->formrow->theme))||(trim($MyForm->formrow->theme) == 'default')){ ?>
<!--[if gte IE 6]><link href="<?php echo $CF_PATH.'components/com_chronocontact/themes/default/css/'; ?>style1-ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if gte IE 7]><link href="<?php echo $CF_PATH.'components/com_chronocontact/themes/default/css/'; ?>style1-ie7.css" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if !IE]> <--><link href="<?php echo $CF_PATH.'components/com_chronocontact/themes/default/css/'; ?>style1.css" rel="stylesheet" type="text/css" /><!--> <![endif]-->
<?php
}else{
$directory = JPATH_SITE.'/components/com_chronocontact/themes/'.trim($MyForm->formrow->theme).'/css/';
$results = array();
$handler = opendir($directory);
while ($file = readdir($handler)) {
if ( $file != '.' && $file != '..')
$results[] = $file;
}
closedir($handler);
$counter = 0;
foreach($results as $result){
?>
<link href="<?php echo $CF_PATH.'components/com_chronocontact/themes/'.trim($MyForm->formrow->theme).'/css/'.$result; ?>" rel="stylesheet" type="text/css" />
<?php
//$counter++;
}
}
?>
<script type="text/javascript">
<?php
echo "var CF_LV_Type = '".$MyForm->formparams('validation_type', 'default')."';";
?>
</script>
<link rel="stylesheet" href="<?php echo $CF_PATH; ?>components/com_chronocontact/css/calendar2.css" type="text/css" />
<link href="<?php echo $CF_PATH.'components/com_chronocontact/css/'; ?>tooltip.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $CF_PATH; ?>components/com_chronocontact/js/calendar2.js"></script>
<script src="<?php echo $CF_PATH.'components/com_chronocontact/js/'; ?>livevalidation_standalone.js" type="text/javascript"></script>
<link href="<?php echo $CF_PATH.'components/com_chronocontact/css/'; ?>consolidated_common.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $CF_PATH.'components/com_chronocontact/js/'; ?>customclasses.js" type="text/javascript"></script>
<?php
include(JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'libraries'.DS.'includes'.DS.'JSvalidation.php');
?>
<?php } ?>
<?php
if (($MyForm->formparams('LoadFiles') == 'Yes')||(trim($MyForm->formparams('datefieldsnames', '')))){
?>
<?php
if($MyForm->formparams('LoadFiles') != 'Yes'){
?>
<link rel="stylesheet" href="<?php echo $CF_PATH; ?>components/com_chronocontact/css/calendar2.css" type="text/css" />
<script type="text/javascript" src="<?php echo $CF_PATH; ?>components/com_chronocontact/js/calendar2.js"></script>
<?php } ?>
<?php JHTML::_('behavior.mootools'); ?>
<script type="text/javascript">
window.addEvent('domready', function() {
<?php
//include_once(JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'libraries'.DS.'includes'.DS.'JSCustomClasses.php');
$datefieldsnames = explode(",", $MyForm->formparams('datefieldsnames'));
if(count($datefieldsnames)){
foreach($datefieldsnames as $datefieldsname){
if(trim($datefieldsname)){
HTML_ChronoContact::initiateCalendar(trim($datefieldsname), $MyForm);
}
}
}
?>
});
</script>
<?php
}
?>
<style type="text/css">
span.cf_alert {
background:#FFD5D5 url(<?php echo $CF_PATH.'components/com_chronocontact/css/'; ?>images/alert.png) no-repeat scroll 10px 50%;
border:1px solid #FFACAD;
color:#CF3738;
display:block;
margin:15px 0pt;
padding:8px 10px 8px 36px;
}
</style>
<?php if((trim($MyForm->formparams('validate')) == 'Yes')&&($MyForm->formparams('LoadFiles') != 'Yes')){ ?>
<script type="text/javascript">
<?php
echo "var CF_LV_Type = '".$MyForm->formparams('validation_type', 'default')."';";
?>
</script>
<script src="<?php echo $CF_PATH.'components/com_chronocontact/js/'; ?>livevalidation_standalone.js" type="text/javascript"></script>
<link href="<?php echo $CF_PATH.'components/com_chronocontact/css/'; ?>consolidated_common.css" rel="stylesheet" type="text/css" />
<?php include(JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'libraries'.DS.'includes'.DS.'JSvalidation.php'); ?>
<?php } ?>
<?php if( (trim($MyForm->formparams('validate')) == 'Yes')||($MyForm->formparams('LoadFiles') == 'Yes')){ ?>
<script src="<?php echo $CF_PATH.'components/com_chronocontact/js/'; ?>jsvalidation2.js" type="text/javascript"></script>
<?php
$jsformname = "ChronoContact_".$MyForm->formrow->name;
$valonBlur = $MyForm->formparams('validate_onlyOnBlur', 1) ? 1 : 0;
$valonSubmit = $MyForm->formparams('validate_onlyOnSubmit', '0') ? 1 : 0;
$valwait_time = $MyForm->formparams('validate_wait', 0);
echo "<script type='text/javascript'>
var fieldsarray = new Array();
var fieldsarray_count = 0;";
echo "window.addEvent('domready', function() {
elementExtend();";
echo 'setValidation("'.$jsformname.'", '.$valonBlur.', '.$valonSubmit.', '.$valwait_time.');';
echo "});";
echo "</script>";
?>
<?php include(JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'libraries'.DS.'includes'.DS.'JSvalidation2.php'); ?>
<?php } ?>
<?php if(!empty($MyForm->formrow->scriptcode)){
echo "<script type='text/javascript'>\n";
echo "//<![CDATA[\n";
eval("?>".$MyForm->formrow->scriptcode);
echo "//</XMLCDATA>\n";
echo "</script>\n";
}
?>
<?php if(!empty($MyForm->formrow->stylecode)){ ?>
<style type="text/css">
<?php eval("?>".$MyForm->formrow->stylecode); ?>
</style>
<?php } ?>
<?php $header_code = ob_get_clean(); ?>
<?php
?>
<?php
$actionurl = $MyForm->getAction($MyForm->formrow->name);
?>
<?php
$session =& JFactory::getSession();
?>
<?php if($MyForm->formerrors){ ?>
<span class="cf_alert"><?php echo '<ol>'.$MyForm->formerrors.'</ol>'; ?></span>
<?php } ?>
<?php
if (($posted)&&($MyForm->formparams('captcha_dataload'))){
include_once(JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'libraries'.DS.'includes'.DS.'JSrepublish.php');
}
?>
<form name="<?php echo ($MyForm->formname) ? $MyForm->formname : "ChronoContact_".$MyForm->formrow->name; ?>" id="<?php echo "ChronoContact_".$MyForm->formrow->name; ?>" method="<?php echo $MyForm->formparams('formmethod'); ?>"<?php if($MyForm->formparams('uploads') == 'Yes'){ echo ' enctype="multipart/form-data"'; } ?> action="<?php echo $actionurl; ?>" <?php echo $MyForm->formrow->attformtag; ?>>
<?php
$imver = "";
if ( trim($MyForm->formparams('imagever')) == 'Yes' ) {
$imver = '<input name="chrono_verification" style="vertical-align:top;" type="text" id="chrono_verification" value="" />
<img src="'.$CF_PATH
.'components/com_chronocontact/chrono_verification.php?imtype='.$MyForm->formparams('imtype').'" alt="" />';
}
$MyForm->formrow->html = str_replace('{imageverification}',$imver,$MyForm->formrow->html);
eval( "?>".$MyForm->formrow->html );
?>
<?php echo JHTML::_( 'form.token' ); ?>
<?php if($MyForm->formparams('enablecftoken', 1)){ ?>
<input type="hidden" name="1cf1" value="<?php echo $MyForm->generateCFToken($MyForm->formrow->name); ?>" />
<?php } ?>
<?php if($MyForm->pagetype != 'chronocontact'){ ?>
<?php $session->set("cfreturnurl_".$MyForm->formrow->name, $MyForm->selfURL(), md5('chrono')); ?>
<?php } ?>
</form>
<?php eval(base64_decode('JGRvY3VtZW50ID0mIEpGYWN0b3J5OjpnZXREb2N1bWVudCgpOw0KJGRvY3VtZW50LT5hZGRDdXN0b21UYWcoJGhlYWRlcl9jb2RlKTsNCmVjaG8gJE15Rm9ybS0+YWRkaGFzaCgpOw==')); ?>
<?php
} else {
echo "There is no form with this name or may be the form is unpublished, Please check the form and the url and the form management";
}
}
function selfURL() {
$uri =& JURI::getInstance();
$inbetween = '';
if($uri->getQuery())$inbetween = '?';
return $uri->current().$inbetween.$uri->getQuery();
}
function initiateCalendar($datefieldsname, $MyForm){
?>
myCal_<?php echo $datefieldsname; ?> = new Calendar({ <?php echo $datefieldsname; ?>: '<?php echo $MyForm->formparams('datefieldformat', 'd/m/Y'); ?>' }, { <?php echo $MyForm->formparams('datefieldextras', "classes: ['dashboard']"); ?> });
<?php
}
}
?>
vickipayne, what version of the chronoform do you use?
<input value="Absenden" name="button_5" type="submit" onclick="window.parent.Shadowbox.close();" />
<script type="text/javascript">
<!--
window.parent.Shadowbox.close();
//-->
</script>
Ok, solved by myself :-)
This code in the On Submit Code after sending email is the solution for me:
<script type="text/javascript">
<!--
window.parent.Shadowbox.close();
//-->
</script>
#rt-main-surround, #rt-variation .bg3 .module-content, #rt-variation .title3 .module-title {background:#bd5720;}
The plugin allows you to use ReCaptcha form verification with your ChronoForms Form.
ReCAPTCHA is a completely independent verification system that is widely used on the Internet - see their site for more information.
* The plugin comes with a pair of global ReCaptcha so that it will work immediately. For your own security we strongly recommend that you register at the ReCaptcha site and get your own keys limited to your site. Registration is simple, free and quick. When you have your keys copy and paste them over the keys here and re-save the plugin. You may use the same keys with any number of forms on your site.
* You will need to include the ReCaptcha box in your form HTML using {ReCaptcha}. You can do this using a 'Text' item from the Toolbox with a value of {ReCaptcha}. You may need to editt the styling a little to format the box correctly (try removing the 'form_element' class from the surrounding div).
* If your form is using SSL and the url has an 'https' prefix, set SSL Server to yes - otherwise leave it as No.
* The theme list are those provided as default by ReCaptcha, it is possible to develop a custom theme - please see the instructions on the ReCaptcha FAQs and Wiki.
* The languages listed are those provided as default by ReCaptcha, to change or add other languages please see the ReCaptcha site.
* You should not need to change the server settings unless ReCaptcha make a change in their service.
* Once this plugin is configured you must enable it in the Form 'Plugins'' tab.
the form's plugin tab simply presents all the 13 or so plugins all enabled (green checkmark showing) in a table with red background color so I guess recaptcha is enabled. I no longer see the format I describe above in form plugin tab.
But no . . . what you see is a set of red bars telling you that they are all disabled; and green check marks telling you that if you click it it will be enabled. (Yes, its awful UI and much criticized.)I don't know where you're seeing the template inclusion
I'm just looking at the Page Source of the form in the iframe with FireBug. I don't know where it's coming from, just that it's there. Check the form with tmpl=component and you'll see more or less the same thing.<?php JHTML::_('behavior.modal'); ?>
<table width="946" height="786" border="0" align="left" >
<tr>
<td width="207" height="103" align="center" valign="middle"><div align="center"><img src="templates/rt_crystalline_j15/images/logo/logo.png" width="171" height="200" alt="gamesLogo" /></div></td>
<td colspan="4" align="center" valign="middle"><h2 class="style1"><img src="images/stories/thumb/slogan.png" width="353" height="101" alt="Garden City Games" /></h2>
<h2 align="center" class="style1">VOLUNTEER APPLICATION</h2> <label></label></td>
<td width="139" align="center"><img src="images/stories/thumb/gcmascot4.png" width="93" height="184" alt="mascot" /></td>
<td width="137" align="center"><p>Attach Your Photo Here:</p>
<p>
<label for="photo"></label>
<input type="file" name="photo" id="photo" />
</p></td>
</tr>
<tr>
<td height="21" colspan="7" align="left" valign="top"><hr /></td>
</tr>
<tr>
<td height="87" colspan="7" align="left" valign="top"><span class="style3">INSTRUCTIONS: </span><span class="style4"> These instructions must be followed exactly. Fill out application form completely. If questions are not applicable, enter "NA". Do not leave questions blank. If submiting a printed application, then print in black block letters or type and be sure to sign when completed. The Local Organizing Committee (LOC) is an Equal Opportunity Employer and does not discriminate on the basis of race, color, ethnic/national origin, sex, religion, age or disability in employment . You may be invited for an interview if selected so please prepare to properly identify yourself with valid IDs.<strong> YOU MUST BE 18 years or OLDER to qualify for selection as Sports Festival volunteer.</strong></span></td>
</tr>
<tr align="left">
<td height="24" valign="middle">Name:</td>
<td width="152" height="24" align="center" valign="middle"><label>
<input type="text" name="surname" id="surname" />
</label></td>
<td width="144" align="center" valign="middle"><input type="text" name="firstname" id="firstname" /></td>
<td width="152" align="center" valign="middle"><input type="text" name="middlename" id="middlename" /></td>
<td height="24" colspan="3" align="center" valign="middle"><label>
<input type="text" name="staffId" id="staffId" />
</label></td>
</tr>
<tr>
<td height="21" align="center" valign="middle"> </td>
<td height="21" align="center" valign="middle">Last</td>
<td height="21" align="center" valign="middle">First</td>
<td height="21" align="center" valign="middle">Middle</td>
<td height="21" colspan="3" align="center" valign="middle">National ID No.</td>
</tr>
<tr>
<td height="72" align="left" valign="middle">Postal Address:</td>
<td colspan="3" align="left" valign="middle"><label>
<textarea name="address" id="address" cols="55" rows="4"></textarea>
</label></td>
<td colspan="3" align="left" valign="middle"><label>Mobile Phone(s). Separate with a comma:
<textarea name="gsmPhone" id="gsmPhone" cols="45" rows="3"></textarea>
</label></td>
</tr>
<tr>
<td height="28" align="left" valign="middle">e-Mail:</td>
<td colspan="3" align="left" valign="middle"><label>
<input name="email" type="text" id="email" size="55" />
</label></td>
<td colspan="3">Sex:
<label>
<input type="radio" name="sex" value="Male" id="willTowork_2" />
Male</label>
<label>
<input type="radio" name="sex" value="Female" id="willTowork_3" />
Female</label></td>
</tr>
<tr>
<td height="43" colspan="4" align="left" valign="middle"><label>Please enter below your place of work and title. If a university student, enter name of university:
<textarea name="workPlace" cols="80" rows="4" id="workPlace"></textarea>
</label></td>
<td colspan="3" align="left"><label>Prior Volunteer Experience?</label> <label>
<input type="radio" name="experience" value="Y" id="willTowork_4" />
Yes</label>
<label>
<input type="radio" name="experience" value="N" id="willTowork_5" />
No</label></td>
</tr>
<tr>
<td height="60" colspan="4" align="left" valign="middle"><label>Special Skills or abilities (e.g. First Aid, CPR, etc):
<textarea name="skills" cols="55" rows="4" id="skills"></textarea>
</label></td>
<td colspan="3" align="left"><label>If yes, please state briefly your volunteerism:
<textarea name="volExperience" id="volExperience" cols="45" rows="4"></textarea>
</label></td>
</tr>
<tr>
<td height="25" colspan="4" align="left" valign="top"><label>
Volunteer Status Period:
<input type="checkbox" name="fullTime" id="fullTime" />
Full-Time (Throughout the festival period)
<input type="checkbox" name="partTime" id="partTime" />
Part-Time
(to be agreed later)</label></td>
<td colspan="3" align="left" valign="top"><label>Date Available to volunteer:
<input type="text" name="startDate" id="startDate" />
</label></td>
</tr>
<tr>
<td height="25" colspan="4" align="left" valign="top">Are you willing to work hours other than 8:00 a.m. - 5:00 p.m.?
<label>
<input type="radio" name="willTowork" value="Y" id="willTowork_0" />
Yes</label>
<label>
<input type="radio" name="willTowork" value="N" id="willTowork_1" />
No</label> <br /> </td>
<td colspan="3" align="left" valign="top"> </td>
</tr>
<tr>
<td height="24" colspan="4" align="left" valign="top">Are you willing to drive participants as needed?
<label>
<input type="radio" name="willToTravel" value="Y" id="willToTravel_0" />
Yes</label>
<label>
<input type="radio" name="willToTravel" value="N" id="willToTravel_1" />
No</label> <br /> </td>
<td colspan="3" align="left" valign="top"><label>If yes, what % of time?
<input type="text" name="percentTime" id="percentTime" />
</label></td>
</tr>
<tr>
<td height="29" colspan="4" align="left" valign="top"><label></label>
<p>Current Driver's License (if required for position):
<label>
<input name="driverLicense" type="text" id="driverLicense" size="40" />
</label>
<br />
</p></td>
<td colspan="3" align="left" valign="top">Commercial License?
<label>
<input type="radio" name="licenseType" value="Y" id="licenseType_0" />
Yes</label>
<label>
<input type="radio" name="licenseType" value="N" id="licenseType_1" />
No</label> <br /> </td>
</tr>
<tr>
<td height="24" colspan="4" align="left" valign="top"><label></label>
<p>
<label></label>
<label>Are you at least 18 years of age? </label><label>
<input type="radio" name="aged17" value="Y" id="aged17_0" />
Yes</label>
<label>
<input type="radio" name="aged17" value="N" id="aged17_1" />
No</label>
</p> </td>
<td colspan="3" align="left" valign="top"> </td>
</tr>
<tr>
<td height="24" colspan="4" align="left" valign="top">Languages, other than your mother tongue and English, you are proficient in (list all):</td>
<td colspan="3" valign="top"><label>
<textarea name="languages" cols="45" rows="3" id="languages"></textarea>
</label></td>
</tr>
<tr>
<td height="24" colspan="4" align="left" valign="top">Have you ever been convicted of a felony or subjected to a deferred hearing of a felony? </td>
<td colspan="3" valign="top"><p>
<label>
<input type="radio" name="felon" value="Y" id="felon_0" />
Yes</label>
<label>
<input type="radio" name="felon" value="N" id="felon_1" />
No</label>
<br />
</p></td>
</tr>
<tr>
<td height="55" colspan="4" align="left" valign="top">If you answer "Yes", explain briefly (in the textbox on the right) giving date, and nature of the offense. A conviction may not disqualify you but lying about it will definitely.</td>
<td colspan="3" valign="top"><label>
<textarea name="felonyExplanation" id="felonyExplanation" cols="45" rows="4"></textarea>
</label></td>
</tr>
<tr>
<td height="4" colspan="7" align="center" valign="top"><hr /></td>
</tr>
<tr>
<td height="24" colspan="4" align="left" valign="top">Education Note: Applicants may be required to provide proof of diploma, degree, transcripts.</td>
<td colspan="3" align="left" valign="top">High School Graduate?
<label>
<input type="radio" name="primaryGrad" value="Y" id="primaryGrad_0" />
Yes</label>
<label>
<input type="radio" name="primaryGrad" value="N" id="primaryGrad_1" />
No</label>
<br /> </td>
</tr>
<tr>
<td height="27" colspan="3" align="left" valign="top">Enter the security code shown if applying online:</td>
<td height="27" align="left" valign="top">{ReCaptcha}</td>
<td width="3" height="27" align="center" valign="top"> </td>
<td height="27" colspan="2" align="center" valign="top" bgcolor="#FFFFFF"><div align="right">
<input type="submit" name="submit" id="submit" value="Submit Application" />
</div></td>
</tr>
</table>
div.rt-container {
width:100%; !important
}
index.php?option=com_chronocontact&chronoformname=your_form_name&tmpl=component
<input type="hidden" name="tmpl" value="component" />
<?php
$uri =& JFactory::getURI();
if ( $uri->getVar('tmpl') != 'component' ) {
$uri->setVar('tmpl', 'component');
$mainframe->redirect($uri->toString());
}
?>
Basically this checks the url, if it doesn't contain 'tmpl=component' it adds that to the query string and re-loads the page with the amended url.index.php?option=com_chronocontact&chronoformname=inscription-journal&tmpl=component
<a class="jcepopup" href="index.php?option=com_chronocontact&chronoformname=inscriptionjournal&tmpl=component">liens forme </a>
inscriptionjournal&tmpl=component
partinscriptionjournal&?tmpl=component
still no luck
title[INSCRIPTION];width[780];height[760]
<?php
$uri =& JFactory::getURI();
if ( $uri->getVar('tmpl') != 'component' ) {
$uri->setVar('tmpl', 'component');
$mainframe->redirect($uri->toString());
}
?>
<a class="jcepopup" href="http://interambient.com/index.php?option=com_chronoforms&chronoform=FormName" rel="title[<?php echo $Linktext ?>];width[<?php echo $width ?>];height[<?php echo $height ?>]">Any text here</a>
<script type="text/javascript">
window.parent.document.getElementById('sbox-window').close();window.parent.document.location = 'index.php?option=com_content&view=article&id=64&Itemid=100'
</script>
onSubmit="window.parent.document.getElementById('sbox-window').close();window.parent.document.location = 'index.php?option=com_content&view=article&id=64&Itemid=100'"
<script type="text/javascript">
window.setTimeout('closeme();', 100);
function closeme()
{
parent.SqueezeBox.close();
window.parent.document.location = 'index.php?option=com_content&view=article&id=64&Itemid=100'
}
</script>
<?php JHTML::_('behavior.modal'); ?>
<a class="modal" href="index.php?option=com_chronoforms&view=getMemberno?&order=hoh_last&direction=asc&tmpl=component" rel="{handler: 'iframe', size: {x: 600, y: 600}}">click here for Member Number Lookup</a>
<?php
$doc =& JFactory::getDocument();
$doc->addStylesheet(JURI::root().'templates/my_theme/css/template.css');
?>
http://example.com/index.php?option=com_chronocontact &task=send