Beispiel #1
0
	<script type="text/javascript" src="<?php 
echo URL_PUB;
?>
js/jquery/1.12.4/jquery<?php 
echo YAM_MIN;
?>
.js"></script>
	<![endif]-->
	<!--[if gte IE 9]><!-->
	<script type="text/javascript" src="<?php 
echo URL_PUB;
?>
js/jquery/2.2.4/jquery<?php 
echo YAM_MIN;
?>
.js"></script>
	<!--<![endif]-->
</head>
<body>
<?php 
if (isset($_pageTitle)) {
    ?>
	<h1><?php 
    echo Core::html($_pageTitle);
    ?>
</h1>
<?php 
}
?>

Beispiel #2
0
			<tr>
				<th>Key</th>
				<th>Value</th>
			</tr>
		</thead>
		<tbody>
<?php 
foreach ($_POST as $key => $value) {
    ?>
			<tr>
				<td><?php 
    echo Core::html($key);
    ?>
</td>
				<td><?php 
    echo Core::html($value);
    ?>
</td>
			</tr>
<?php 
}
?>
		</tbody>
	</table>

	<input type="button" name="cancel-button" id="cancel-button-id"
		value="Cancel" onclick="location.href='<?php 
echo URL;
?>
'"> <input
		type="submit" name="submit-button" id="submit-button-id"
Beispiel #3
0
 * A view should only display data and should not access the methods of the calling controller.
 * A view can:
 * - use the content of PHP variables defined by the calling controller + action
 * - define PHP variables locally (be careful to not crush the PHP variables defined by the calling controller)
 * - use utility classes to do data formatting
 * - integrate other views
 * - contain client code for web browsers (html, css, javascript, etc...)
 * - be tested to display data without using any controller
 * A view MUST NOT:
 * - contain "$this" or "self", i.e. no direct reference to methods and properties of the calling controller!
 * - directly access to the context of the web application (variables $_GET, $_POST, $_SESSION, $GLOBALS, etc...),
 *   because the calling controller is responsible for that!
 */
use PHPYAM\core\Core;
?>
<div>
	<ul>
		<?php 
if (is_array($_listOfErrors)) {
    foreach ($_listOfErrors as $error) {
        if ($error instanceof Exception) {
            echo '<li><span>' . preg_replace('/\\r\\n?|\\n/', '<br />', Core::html($error)) . '</span></li>';
        } else {
            echo '<li><span>' . Core::html($error) . '</span></li>';
        }
    }
}
?>
	</ul>
</div>