Fichier application/views/album/createalbum_fancyview.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');
}
?>
<?= htmlNavigation("album","fancy", $this->session); ?>
<div class="container">
<h2><?= $this->lang->line('album.form.create.title') ?></h2>
<div class="row-fluid">
<?php
$attributes_info = array('name' => 'AddFormAlbum', 'id' => 'AddFormAlbum', 'class' => 'form-horizontal');
$fields_info = array();
echo form_open_multipart('album/createalbumjson/add', $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" 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" >
<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->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->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->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 data-dismiss="modal" href="#" type="button" class="btn"><?= $this->lang->line('form.button.cancel') ?></a>
</div>
</fieldset>
<?php
echo form_close('');
?>
</div> <!-- .row-fluid -->
</div> <!-- .container -->
<script src="<?= base_url() ?>www/js/views/album/createalbum.fancy.js"></script>