<commit_before><?php
defined('BASEPATH') or exit('No direct script access allowed');

// view.php <NAME> Dec 11, 2013 7:47:55 PM <EMAIL>
$buttons[] = array("text"=>"Join Tour", "type"=>"span","class"=>"button new mini select-tour", "id"=>sprintf("join-tour_%s",$person->id));
$buttons[] = array("text" => sprintf("Tours History", $person->first_name), "href"=> site_url("/tourist/show_for_tourist/$person->id"), "class"=>"button show-tours-for-tourist");
$buttons[] = array("text" => "<- Previous Record", "class"=>"button navigation previous-person-record", "href"=>site_url("person/view_previous/$person->id"));
$buttons[] = array("text" => "Next Record ->", "class"=>"button navigation next-person-record","href"=>site_url("person/view_next/$person->id"));

print create_button_bar($buttons);?>
<fieldset class="grouping block person-info" id="person">
<legend>General Info</legend>
<input type="hidden" id="id" name="id" value="<?=get_value($person, "id", $id);?>"/>
<input type="hidden" id="address_id" name="address_id" value="<?=get_value($person, "address_id");?>"/>
<div class='field-set'>
	<?=create_edit_field("first_name", get_value($person, "first_name"), "First Name",array("envelope"=>"div"));?>
</div>
<div class='field-set'>
	<?=create_edit_field("last_name", get_value($person,"last_name"), "Last Name",array("envelope"=>"div"));?>
</div>
<div class='field-set'>
	<?=create_edit_field("email", get_value($person,"email"), "Email",array("envelope"=>"div"));?>
</div>
<div class='field-set'>
	<?=create_edit_field("shirt_size", get_value($person,"shirt_size"), "Shirt Size",array("envelope"=>"div","class"=>"dropdown","attributes"=>"menu='shirt_size'"));?>
</div>
</fieldset>
<fieldset class="grouping block phone-info" id="phone">
<legend>Phones</legend>
<? if(get_value($person, "phones", FALSE)) : ?>
<? $this->load->view("phone/view",$person->phones); ?>
<? endif; ?>
<?=create_button_bar(array(array("text" => "Add Phone", "type"=>"span", "class"=>"button mini new add_phone","id"=>sprintf("add-phone_%s",$person->id))));?>
</fieldset>
<fieldset class="grouping block address-info" id="address">
<legend>Address</legend>
<? if(count($person->address)>0): ?><commit_msg>Minor changes to the person/view.php<commit_after><?php
defined('BASEPATH') or exit('No direct script access allowed');

// view.php <NAME> Dec 11, 2013 7:47:55 PM <EMAIL>
$buttons[] = array("text"=>"Join Tour", "type"=>"span","class"=>"button new mini select-tour", "id"=>sprintf("join-tour_%s",$person->id));
$buttons[] = array("text" => sprintf("Tours History", $person->first_name), "href"=> site_url("/tourist/show_for_tourist/$person->id"), "class"=>"button show-tours-for-tourist");
$buttons[] = array("text" => "<- Previous Record", "class"=>"button navigation previous-person-record", "href"=>site_url("person/view_previous/$person->id"));
$buttons[] = array("text" => "Next Record ->", "class"=>"button navigation next-person-record","href"=>site_url("person/view_next/$person->id"));

print create_button_bar($buttons);?>
<fieldset class="grouping block person-info" id="person">
<legend>General Info</legend>
<input type="hidden" id="id" name="id" value="<?=get_value($person, "id", $id);?>"/>
<input type="hidden" id="address_id" name="address_id" value="<?=get_value($person, "address_id");?>"/>
<div class='field-set'>
	<?=create_edit_field("first_name", get_value($person, "first_name"), "First Name",array("envelope"=>"div"));?>
</div>
<div class='field-set'>
	<?=create_edit_field("last_name", get_value($person,"last_name"), "Last Name",array("envelope"=>"div"));?>
</div>
<div class='field-set'>
	<?=create_edit_field("email", get_value($person,"email"), "Email",array("envelope"=>"div"));?>
</div>
<div class='field-set'>
	<?=create_edit_field("shirt_size", get_value($person,"shirt_size"), "Shirt Size",array("envelope"=>"div","class"=>"dropdown","attributes"=>"menu='shirt_size'"));?>
</div>
<fieldset class="grouping block phone-info" id="phone">
<legend>Phones</legend>
<? if(get_value($person, "phones", FALSE)) : ?>
<? $this->load->view("phone/view",$person->phones); ?>
<? endif; ?>
<?=create_button_bar(array(array("text" => "Add Phone", "type"=>"span", "class"=>"button mini new add_phone","id"=>sprintf("add-phone_%s",$person->id))));?>
</fieldset>
</fieldset>

<fieldset class="grouping block address-info" id="address">
<legend>Address</legend>
<? if(count($person->address)>0): ?>
{'fraction_non_alphanumeric': 0.25658492279745687, 'fraction_numerical': 0.005449591280653951, 'mean_word_length': 9.691747572815533, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3289718', 'n_tokens_mistral': 1545, 'n_tokens_neox': 1512, 'n_words': 256}