Fichier application/views/album/editalbum_view.php
<?php
/*
* Created by generator
*
*/
$this->load->helper('form');
$this->load->helper('url');
$this->load->helper('template');
$this->load->helper('views');
if($this->session->userdata('user_name') == "") {
redirect('welcome/index');
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php echo htmlHeader( $this->lang->line('album.form.edit.title') ); ?>
</head>
<body>
<?= htmlNavigation("album","edit", $this->session); ?>
<div class="container">
<h2><?= $this->lang->line('album.form.edit.title') ?></h2>
<?php
$msg = $this->session->flashdata('msg_info'); if($msg != ""){echo formatInfo($msg);}
$msg = $this->session->flashdata('msg_confirm'); if($msg != ""){echo formatConfirm($msg);}
$msg = $this->session->flashdata('msg_warn'); if($msg != ""){echo formatWarn($msg);}
$msg = $this->session->flashdata('msg_error'); if($msg != ""){echo formatError($msg);}
?>
<div class="row-fluid">
<?php
$attributes_info = array('name' => 'EditForm', 'class' => 'form-horizontal');
$fields_info = array('albidalb' => $album->albidalb);
echo form_open_multipart('album/editalbum/save', $attributes_info, $fields_info );
?>
<fieldset>
<!-- list of variables - auto-generated : -->
<div class="control-group">
<label class="control-label" for="alblbtit">* <?= $this->lang->line('album.form.alblbtit.label') ?> :</label>
<div class="controls"><input class="input-xlarge valtype" type="text" name="alblbtit" id="alblbtit" value="<?= $album->alblbtit ?>" required >
<p class="help-block valtype"><?= $this->lang->line('album.form.alblbtit.description')?></p>
</div></div>
<div class="control-group">
<label class="control-label" for="albreext"><?= $this->lang->line('album.form.albreext.label') ?> :</label>
<div class="controls"><input class="input-xlarge valtype" type="text" name="albreext" id="albreext" value="<?= $album->albreext ?>" >
<p class="help-block valtype"><?= $this->lang->line('album.form.albreext.description')?></p>
</div></div>
<div class="control-group">
<label class="control-label" for="albiddes"><?= $this->lang->line('album.form.albiddes.label') ?> :</label>
<div class="controls"><select name="albiddes" id="albiddes"> <option value=""></option>
<?php foreach ($auteurCollection as $auteurElt): ?>
<option value="<?= $auteurElt->autidaut ?>" <?= ($auteurElt->autidaut == $album->albiddes)?("selected"):("")?>><?= $auteurElt->autlbnom ?> </option>
<?php endforeach;?>
</select>
<p class="help-block valtype"><?= $this->lang->line('album.form.albiddes.description')?></p>
</div></div>
<div class="control-group">
<label class="control-label" for="albidsce"><?= $this->lang->line('album.form.albidsce.label') ?> :</label>
<div class="controls"><select name="albidsce" id="albidsce"> <option value=""></option>
<?php foreach ($auteurCollection as $auteurElt): ?>
<option value="<?= $auteurElt->autidaut ?>" <?= ($auteurElt->autidaut == $album->albidsce)?("selected"):("")?>><?= $auteurElt->autlbnom ?> </option>
<?php endforeach;?>
</select>
<p class="help-block valtype"><?= $this->lang->line('album.form.albidsce.description')?></p>
</div></div>
<div class="control-group">
<label class="control-label" for="albidgen"><?= $this->lang->line('album.form.albidgen.label') ?> :</label>
<div class="controls"><select name="albidgen" id="albidgen"> <option value=""></option>
<?php foreach ($genreCollection as $genreElt): ?>
<option value="<?= $genreElt->genidgen ?>" <?= ($genreElt->genidgen == $album->albidgen)?("selected"):("")?>><?= $genreElt->genlbnom ?> </option>
<?php endforeach;?>
</select>
<p class="help-block valtype"><?= $this->lang->line('album.form.albidgen.description')?></p>
</div></div>
<div class="form-actions">
<button type="submit" class="btn btn-primary"><?= $this->lang->line('form.button.save') ?></button>
<a href="<?=base_url()?>index.php/album/listalbums/index" type="button" class="btn"><?= $this->lang->line('form.button.cancel') ?></a>
</div>
</fieldset>
<?php
echo form_close('');
?>
</div> <!-- .row-fluid -->
</div> <!-- .container -->
<?php echo bodyFooter(); ?>
<script src="<?= base_url() ?>www/js/views/album/editalbum.js"></script>
</body>
</html>