Example #1
0
<? Apu::import("/tag/FormTag.php") ?>
<script type="text/javascript" src="themes/prototype.js"></script>
<script type="text/javascript" src="themes/apu.js"></script>
<script type="text/javascript" src="<?=Apu::theme()?>/init.js"></script>

<style>
@IMPORT url("<?=Apu::theme()?>/main.css");
@IMPORT url("<?=Apu::theme()?>/application.css");
</style>

<div class="Frame">
	<div class="Title"><?=Msg::get("LookupAction.view.title")?></div>
	<div class="Message"><?=Msg::message("LookupAction.view.description")?></div>
	<div>
		<table class="Form">
			<tr>
				<td><?=Msg::get("lookup.type")?></td>
				<td>:</td>
				<td><?=nl2br($this->lookup["type"])?></td>
			</tr>
			<tr>
				<td><?=Msg::get("lookup.code")?></td>
				<td>:</td>
				<td><?=nl2br($this->lookup["code"])?></td>
			</tr>
			<tr>
				<td><?=Msg::get("lookup.name")?></td>
				<td>:</td>
				<td><?=nl2br($this->lookup["name"])?></td>
			</tr>
			<tr>
Example #2
0
}

var windowOnLoad = function(evt) {
	Position.absolutize($('login'));
	Position.centerize($('login'));
	$('centerized').style.position = "relative";
	Position.centerize($('centerized'));
}
Event.observe(window, "load", windowOnLoad);
Event.observe(window, "resize", windowOnLoad);
</script>

<form method="post" action="login/login">
<div class="Frame" style="width: 400px" id="login">
	<div class="Title"><?=Msg::get("LoginAction.title")?></div>
	<div class="Message"><?=Msg::message("LoginAction.description")?></div>
	<div style="height: 130px">
		<table id="centerized"><tr><td>
		<img src="themes/apu/img/security.gif"/>
		</td><td>
		<table class="Form">
			<tr>
				<td class="Label"><?=Msg::get("login.username")?></td>
				<td>:</td>
				<td><?=FormTag::text("login.username", $this->login["username"])?></td>
			</tr>
			<tr>
				<td class="Label"><?=Msg::get("login.password")?></td>
				<td>:</td>
				<td><?=FormTag::password("login.password", $this->login["password"])?></td>
			</tr>