Created
January 25, 2013 21:56
-
-
Save marcellobenigno/4638251 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
body {font-size: 12px; padding: 5px;} | |
</style> | |
<title>Editar Posto Pluviométrico</title> | |
</head> | |
<body> | |
<h3>Editar Posto Pluviométrico</h3> | |
<?php echo form_open('posto_plu/atualizar'); ?> | |
<p> | |
<label for="nome_posto">Nome do Posto</label> <br /> | |
<?php echo form_input('nome_posto', $posto_plu->nome_posto); ?> | |
</p> | |
<p> | |
<label for="valor_precipitado">Valor Precipitado</label> <br /> | |
<?php echo form_input('valor_precipitado', $posto_plu->valor_precipitado); ?> | |
</p> | |
<p> | |
<label for="x">Este (x)</label> <br /> | |
<?php echo form_input('x', $posto_plu->x); ?> | |
</p> | |
<p> | |
<label for="y">Norte (y)</label> <br /> | |
<?php echo form_input('y', $posto_plu->y); ?> | |
</p> | |
<?php echo form_hidden('gid', $posto_plu->gid); ?> | |
<?php echo form_submit('', 'Enviar') ?> | |
<?php echo form_close(); ?> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<style> | |
body {font-size: 12px; padding: 5px;} | |
</style> | |
<title><?php echo $titulo ?></title> | |
</head> | |
<body> | |
<h1><?php echo $titulo ?></h1> | |
<h3>Inserir novo Posto Pluviométrico</h3> | |
<?php echo form_open('posto_plu/insere'); ?> | |
<p> | |
<label for="nome_posto">Nome do Posto</label> <br /> | |
<?php echo form_input('nome_posto'); ?> | |
</p> | |
<p> | |
<label for="valor_precipitado">Valor Precipitado</label> <br /> | |
<?php echo form_input('valor_precipitado'); ?> | |
</p> | |
<p> | |
<label for="x">Este (x)</label> <br /> | |
<?php echo form_input('x'); ?> | |
</p> | |
<p> | |
<label for="y">Norte (y)</label> <br /> | |
<?php echo form_input('y'); ?> | |
</p> | |
<?php echo form_submit('', 'Enviar') ?> | |
<?php echo form_close(); ?> | |
<hr /> | |
<h2>Relação dos Postos Pluviométricos Cadastrados</h2> | |
<table border="1"> | |
<thead> | |
<tr> | |
<th>Nome do Posto</th> | |
<th>Bacia Hidrográfica</th> | |
<th>Valor Precipitado (mm)</th> | |
<th>Coordenada Este UTM (x)</th> | |
<th>Coordenada Norte UTM (y)</th> | |
<th>Editar</th> | |
<th>Deletar</th> | |
</tr> | |
</thead> | |
<tbody> | |
<?php foreach ($postos as $posto_plu) : ?> | |
<tr> | |
<td><?php echo $posto_plu->nome_posto;?></td> | |
<td><?php echo $posto_plu->bacia;?></td> | |
<td><?php echo $posto_plu->valor_precipitado;?></td> | |
<td><?php echo $posto_plu->x;?></td> | |
<td><?php echo $posto_plu->y;?></td> | |
<td><?php echo anchor('posto_plu/editar/' . $posto_plu->gid, 'Editar');?></td> | |
<td><?php echo anchor('posto_plu/deletar/' . $posto_plu->gid, 'Deletar');?></td> | |
</tr> | |
<?php endforeach ?> | |
</tbody> | |
</table> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Cadastro de Postos Pluviométricos</title> | |
<style> | |
body {font-size: 12px; padding: 5px;} | |
</style> | |
</head> | |
<body> | |
<h1><?php echo $msg; ?></h1> | |
<p>Nome do Posto: <strong><?php echo $posto_plu->nome_posto; ?></strong></p> | |
<p>Bacia Hidrográfica: <strong><?php echo $posto_plu->bacia; ?></strong></p> | |
<p>Valor Precipitado: <strong><?php echo $posto_plu->valor_precipitado; ?></strong></p> | |
<p>Coordenada Este: <strong><?php echo $posto_plu->x; ?></strong></p> | |
<p>Coordenada Norte: <strong><?php echo $posto_plu->y; ?></strong></p> | |
<p><a href="http://localhost/pmapper/map_default.phtml"> Ver no Pmapper</a></p> | |
<p><?php echo anchor('posto_plu', 'Inserir novo Posto') ?></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment