Project Claire: intake step1b.html
From PikaDocs
Last modified: July 17, 2005
<!-- intake_step1b.html = Eligible Alien Status subtemplate -->
<!-- called from intakes.php at line 77 -->
<script type="text/javascript" src="/pika/js/pop_up_help.js"></script>
<!-- "content-container" DIV -->
<div id="content-container">
<!-- "side-content" DIV -->
<div class="side-content">
<!-- primary client info -->
<h2>Primary Client</h2>
<p>
<a href='%%[base_url]%%/contacts.php/%%[contact_id]%%/?intake_id=%%[intake_id]%%'>%%[client_name]%%</a><br />
Address:<br />
%%[client_address]%%<br />
Phone: %%[client_phone]%%<br />
Notes: %%[phone_notes]%%<br />
Language: %%[language,language,text]%%<br />
DOB: %%[birth_date]%%<br />
%%[client_remove]%%
</p>
%%[client_list]%%
%%[case_charges]%%
%%[opposing_list]%%
%%[other_contacts_list]%%
<!-- intake workflow -->
<h2>Intake Workflow</h2>
<ul>
<li><a href="%%[base_url]%%/intakes.php/%%[intake_id]%%/step1/">Step 1: Citizenship</a></li>
<li><a href="%%[base_url]%%/intakes.php/%%[intake_id]%%/step1b/">Step 1b: Eligible Alien</a></li>
<li><a href="%%[base_url]%%/intakes.php/%%[intake_id]%%/step2/">Step 2: Income|Assets</a></li>
</ul>
</div> <!-- "side-content" closing DIV -->
<!-- "main-content" DIV -->
<div class="main-content"> <!-- "wrapper" for "main content" area -->
<!-- alien status -->
<h2>Step 1b: Eligible Alien Status</h2>
<form action="%%[base_url]%%/ops/update_intake.php" method=post name="ws">
<!-- radio buttons = status -->
<div class="radio-buttons alien-status01">
<h3>Select: Status</h3>
<div>
%%[noncitizentype radio]%%
</div>
</div>
<!-- radio buttons = document -->
<div class="radio-buttons alien-status02">
<h3>Select: Document Type</h3>
<div>
%%[noncitizendoc radio]%%
</div>
</div>
<!-- popup help -->
<div class="step1b-help">
<a class="context-help" href="javascript:popUp('%%[base_url]%%/helpdocs/help_citizen.html')" title="Click to see definitions and applicable rules for each of these terms.">:: What do these terms mean?</a>
</div>
<div class="clear-fix""></div>
<!-- document text field -->
<div class="alien-document">
Doc No. <input type="text" name="noncitizendocnum" value="%%[noncitizendocnum]%%" />
</div>
<!-- intake notes -->
<div class="notes">
Intake Notes:<br />
<textarea id="intake-notes" name="intake_notes" cols="" rows="6" tabindex="1">%%[intake_notes]%%</textarea>
</div>
<input type="hidden" name="intake_id" value="%%[intake_id]%%" />
<input type="hidden" name="current_step" value="1" />
<!-- submit buttons -->
<div class="input-submit-step">
<input class="button initial-intake" type="submit" name="button_press_5" value="Continue" tabindex="1" onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'"onclick="return radio_button_checker()" title="Confirm the prospective client is an LSC-eligible alien and go the financial eligibility page." />
<input class="button initial-intake" type="submit" name="button_press_2" value="Not Eligible" tabindex="1" onclick="return confirm('Are you sure you want to\nreject this intake and\ndelete all intake data?');" onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'" title="Confirm the prospective client is NOT eligible and DELETE this intake record." />
<input class="button initial-intake" type="submit" name="button_press_3" value="Save" tabindex="1" onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'" title="Save this intake record." />
</div>
</form> <!-- closing FORM -->
</div> <!-- "main-content" closing DIV -->
</div> <!-- "content-container" closing DIV -->
<!-- additional validation scripts -->
<script type="text/javascript">
<!--
function radio_button_docchecker()
{
// set var radio_choiced to false
var radio_choiced = false;
// Loop from zero to the one minus the number of radio button selections
for (counterd = 0; counterd < document.ws.noncitizendoc.length; counterd++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (document.ws.noncitizendoc[counterd].checked)
radio_choiced = true;
}
if (!radio_choiced)
{
// If there were no selections made display an alert box
alert("Please select a Document Type.")
return (false);
}
return (true);
}
function radio_button_checker()
{
// set var radio_choice to false
var radio_choice = false;
// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < document.ws.noncitizentype.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (document.ws.noncitizentype[counter].checked)
radio_choice = true;
}
if (!radio_choice)
{
// If there were no selections made display an alert box
alert("Please select a Status.")
return (false);
}
return (radio_button_docchecker());
}
// -->
</script>
Related articles and files:

