Exemplo n.º 1
0
Arquivo: view.php Projeto: Assem/PMS
	<?php 
    $this->load->view('global/flash_messages', array('title' => $title));
    ?>
	<?php 
    echo secure_anchor('sheets/index/user-' . $user->user_id, $user->sheets_number . ' Fiches', array('title' => 'Consulter les fiches', 'class' => 'counter_link'));
    ?>
	<div class="view-menu">
		<?php 
    echo drawActionsMenuItem('users/edit/' . $user->user_id, 'edit.png', 'Editer');
    ?>
		<?php 
    echo drawActionsMenuItem('users/delete/' . $user->user_id, 'delete.png', 'Supprimer', 'delete-action');
    ?>
	</div>
	<?php 
    drawModelData($fields, 2, 'view-form');
    ?>
	
	<div id="positions_map">
		<h3>Dernière position</h3>
		<?php 
    if ($user->last_position) {
        ?>
			<?php 
        $position = $user->last_position[0];
        ?>
			<p>
				<?php 
        echo date('d/m/Y H:i:s', strtotime($position->creation_date)) . '<br>Sondage: [' . $position->poll_code . '] ' . $position->poll_label . ' - ID Fiche: ' . $position->sheet_id;
        ?>
			</p>
Exemplo n.º 2
0
Arquivo: add.php Projeto: Assem/PMS
<h1 class="pmsH1">Sondage <?php 
echo $poll->label;
?>
 -> Question <?php 
echo $question->order;
?>
: Ajouter une réponse</h1>
<?php 
$this->load->view('global/flash_messages', array('title' => $title));
echo validation_errors('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert">&times;</a><strong>Erreur! </strong>', '</div>');
?>

<div class="view-menu">
	<?php 
echo drawActionsMenuItem('questions/edit/' . $question->id, 'cancel.png', 'Revenir à la question');
?>
</div>

<?php 
echo form_open('answers/add/' . $question->id);
drawModelData($fields, 2, 'edit-form');
?>

<div class="required-notice">* Champ obligatoire</div>
<?php 
echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
echo form_reset('reset', 'Réinitialiser', array('class' => 'submit-button'));
?>

Exemplo n.º 3
0
Arquivo: view.php Projeto: Assem/PMS
	<h1 class="pmsH1"><?php 
    echo $title;
    ?>
</h1>
	<?php 
    $this->load->view('global/flash_messages', array('title' => $title));
    ?>
	
	<div class="view-menu">
		<?php 
    echo drawActionsMenuItem($back_url, 'back.png', 'Revenir');
    ?>
		<?php 
    echo drawActionsMenuItem('sheets/delete/' . $sheet->id . ($redirect ? "/{$redirect}" : ''), 'delete.png', 'Supprimer', 'delete-action');
    ?>
	</div>
	<?php 
    drawModelData($sheet_fields, 2, 'view-form');
    ?>
	<hr>
	<?php 
    echo $respondent_view;
    ?>
	<hr>
	<h3>Réponses</h3>
	<?php 
    drawModelDataToggle($answers_fields, 1, 'view-form');
}
?>

Exemplo n.º 4
0
<?php

$this->load->view('global/flash_messages', array('title' => 'Configuration du dashboard'));
?>

<?php 
echo validation_errors('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert">&times;</a><strong>Erreur! </strong>', '</div>');
?>

<?php 
echo form_open('settings/index');
drawModelData($settings['fields'], 1, 'edit-form');
?>

<div class="required-notice">* Champ obligatoire</div>
<?php 
echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
echo form_reset('reset', 'Réinitialiser', array('class' => 'submit-button'));
Exemplo n.º 5
0
<h3>Détail du répondant</h3>
<?php 
$this->load->helper(array('my_config'));
$data_values = array('Âge' => $respondent->age, 'Email' => $respondent->email, 'GSM' => $respondent->gsm, 'Sexe' => $respondent->sexe == 'H' ? 'Homme' : 'Femme', 'Pays' => $this->respondents_model->getCountry($respondent), 'Ville' => $this->respondents_model->getCity($respondent), get_lov_label('marital_status') => $this->respondents_model->getMaritalStatus($respondent), 'Nombre d\'enfants' => $respondent->childs_nbr, 'Nombre de frères' => $respondent->brothers_nbr, 'Nombre de soeurs' => $respondent->sisters_nbr, get_lov_label('educational_level') => $this->respondents_model->getEducationalLevel($respondent), get_lov_label('professional_status') => $this->respondents_model->getProfessionalStatus($respondent), get_lov_label('company_type') => $this->respondents_model->getCompanyType($respondent));
drawModelData($data_values, 2, 'view-form');