Пример #1
0
 * Author: Kevin Grimley
 * Date: 9/6/2014
 * Name: header.php
 * Description: body section 
 */
$infos = array('name' => 'Kevin Grimley', 'color' => 'Blue', 'movie' => 'The Man From Earth', 'book' => 'Lord of the Rings', 'website' => 'Mine');
?>

<h1><?php 
echo $infos['name'];
?>
</h1>

<?php 
function display_this($infos)
{
    $counter = 0;
    echo '<ul>';
    foreach ($infos as $info) {
        if ($counter++ == 0) {
            continue;
        }
        print '<li>' . $info . '</li>';
    }
    echo '</ul>';
}
echo display_this($infos);
?>

<?php 
include 'includes/footer.php';
Пример #2
0
                    display_this(array($data_path3_key, $strings_data[1], $strings_data[2], $strings_data[3]), -1);
                }
            }
        }
    }
}
echo '<h3>Duplicate strings: <img src="../artwork/information_icon.gif" class="help_tip" title="a list of strings with the same key within the same file in \'en\'" /></h3>';
if ($display_text == '') {
    $display_text = '<tr><td>none</td></tr>';
}
echo '<table>' . $display_text . '</table>';
// Duplicate strings
$last_key = '';
$last_value = '';
$display_text = '';
foreach ($strings_en as $strings_key => $strings_data) {
    if ($strings_en[$strings_key][3] > 1) {
        display_this($strings_data, -1);
    }
}
echo '<h3>Duplicate strings across files: <img src="../artwork/information_icon.gif" class="help_tip" title="a list of strings with the same key across the files in \'en\'" /></h3>';
if ($display_text == '') {
    $display_text = '<tr><td>none</td></tr>';
}
echo '<table>' . $display_text . '</table>';
echo '</div>';
echo '<hr />';
echo '<div id="trans"></div>';
?>
</body>
</html>