?>
</div>
							<div class='ins_cont' style='height:135px'>							
							<?php 
foreach ($labels_variables as $label => $data) {
    $help_msgs[$i++] = array(addslashes($data['help']), addslashes($data['sample']));
    $class = $i % 2 ? 'odd' : 'even';
    ?>
								<div data-id='<?php 
    echo $i;
    ?>
' class='<?php 
    echo $class;
    ?>
' ><?php 
    echo util::htmlentities($label);
    ?>
</div>
							<?php 
}
?>
							</div>							
						</td>
					</tr>
					
					<tr>
						<td class='nobborder center' colspan='2' height='100px'>
							<div id="help">
								<?php 
$config_nt = array('content' => _("Select a language element from the lists to see its meaning. Click on full references in case of need a more detailed description"), 'options' => array('type' => 'nf_info', 'cancel_button' => false), 'style' => 'width: 90%; margin: 25px auto 10px auto; padding: 10px 0px; text-align: left; font-style: italic');
$nt = new Notification('nt_1', $config_nt);
    echo "</div>";
}
?>
				
			</div>
	
		</div>
		
		<div id="tabs-5">

			<div class="accordion">
				
				<?php 
$labels_sections = is_array($labels_sections) ? $labels_sections : array();
foreach ($labels_sections as $ins => $label) {
    echo "<h3><a href='#'>" . util::htmlentities($ins) . "</a></h3>";
    echo "<div>";
    //Description
    echo "<div class='help_title'>{$title_desc}</div>";
    echo "<div class='help_container'>" . $label['help'] . "</div>";
    //Example
    echo "<div class='help_title'>{$title_example}</div>";
    echo "<div class='help_container'>" . $label['sample'] . "</div>";
    echo "</div>";
}
?>
				
			</div>
	
		</div>
		
示例#3
0
 public function test_htmlentities()
 {
     $this->assertEquals('One &amp; Two', util::htmlentities('One & Two'));
     $this->assertEquals('One &amp; Two', util::htmlentities('One &amp; Two', TRUE));
 }