Exemplo n.º 1
0
/**
 * Draw buttons to manage the order of elements
 * 
 * @param string $controller Controller
 * @param string $id
 * @param int $rank
 * @param int $max_rank
 */
function drawManageRankingMenu($controller, $id, $rank, $max_rank)
{
    if ($rank > 1) {
        echo drawActionsMenuItem("{$controller}/move_rank/{$id}/first", 'first.png', 'Placer en premier');
        echo drawActionsMenuItem("{$controller}/move_rank/{$id}/up", 'up.png', 'Avancer');
    }
    if ($rank < $max_rank) {
        echo drawActionsMenuItem("{$controller}/move_rank/{$id}/down", 'down.png', 'Réculer');
        echo drawActionsMenuItem("{$controller}/move_rank/{$id}/last", 'last.png', 'Placer à la fin');
    }
}
Exemplo n.º 2
0
foreach ($sequences as $sequence) {
    ?>
				<tr style="border-color: gray;">
					<td><?php 
    echo $sequence->label;
    ?>
</td>
					<td><?php 
    echo $sequence->next_index;
    ?>
</td>
					<td><?php 
    echo $sequence->prefix;
    ?>
</td>
					<td><?php 
    echo $sequence->fillers;
    ?>
</td>
					<td>
						<?php 
    echo drawActionsMenuItem("settings/sequence_edit/" . $sequence->id, 'edit.png', 'Editer');
    ?>
					</td>
				</tr>
			<?php 
}
?>
		</tbody>
	</table>
</div>
Exemplo n.º 3
0
Arquivo: stats.php Projeto: Assem/PMS
        <a href="#" class="close" data-dismiss="alert">&times;</a>
        <strong>Erreur! </strong>Sondage introuvable!
    </div>
<?php 
} else {
    ?>
	<h1 class="pmsH1">Statistiques du sondage: <?php 
    echo $poll->code;
    ?>
</h1>
	<?php 
    echo secure_anchor('sheets/index/poll-' . $poll->id, $poll->sheets_count . ' Fiches au total', array('title' => 'Consulter les fiches', 'class' => 'counter_link'));
    ?>
	<div class="view-menu">
		<?php 
    echo drawActionsMenuItem('polls/view/' . $poll->id, 'back.png', 'Revenir');
    ?>
	</div>
	<?php 
    foreach ($graphs_data as $question) {
        ?>
		<div class="question_stats">
			<h4 class="question_tilte">
				<?php 
        echo secure_anchor('questions/view/' . $question['details']->id, $question['details']->order . '.' . $question['details']->description);
        if ($question['details']->required) {
            echo '<font color="red">*</font>';
        }
        ?>
			</h4>
			
Exemplo n.º 4
0
Arquivo: index.php Projeto: Assem/PMS
			</tr>
		</thead>
		<tbody id="tbody">
			<?php 
foreach ($sheets as $sheet) {
    ?>
				<tr style="border-color: gray;">
					<td><?php 
    echo $sheet->id;
    ?>
</td>
					<?php 
    getData($relation, $sheet);
    ?>
					<td><?php 
    echo date('d/m/Y H:i:s', strtotime($sheet->creation_date));
    ?>
</td>
					<td>
						<?php 
    echo drawActionsMenuItem("sheets/view/" . $sheet->id . $from, 'view.png', 'Afficher');
    echo drawActionsMenuItem("sheets/delete/" . $sheet->id . $from, 'delete.png', 'Supprimer', 'delete-action');
    ?>
					</td>
				</tr>
			<?php 
}
?>
		</tbody>
	</table>
</div>
Exemplo n.º 5
0
Arquivo: edit.php Projeto: Assem/PMS
    $this->load->view('global/flash_messages', array('title' => $title));
    ?>
	
	<?php 
    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('polls/edit/' . $poll->id, 'back.png', 'Revenir au sondage');
    ?>
		<?php 
    echo drawActionsMenuItem('questions/view/' . $question->id, 'cancel.png', 'Annuler');
    ?>
		<?php 
    echo drawActionsMenuItem('questions/delete/' . $question->id, 'delete.png', 'Supprimer', 'delete-action');
    ?>
	</div>
	
	<?php 
    echo form_open('questions/edit/' . $question->id);
    ?>
	<?php 
    drawModelData($fields, 2, 'edit-form');
    ?>
	
	<div id="generate_yes_no" style="display: none; float: right;">
		<?php 
    echo secure_anchor('answers/add_yes_no/' . $question->id, '<input type="button" id="generate_yes_no_button" name="generate_yes_no_button" title="Générer OUI/NON réponses" value="+ OUI/NON" class="submit-button"/>');
    ?>
	</div>
Exemplo n.º 6
0
Arquivo: view.php Projeto: Assem/PMS
<?php 
} else {
    ?>
	<h1 class="pmsH1">Fiche utilisateur</h1>
	<?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>
Exemplo n.º 7
0
Arquivo: _list.php Projeto: Assem/PMS
</td>
					<td>
					<?php 
    if ($action == 'edit') {
        ?>
						<?php 
        drawActionsMenu('questions', $question->id);
        ?>
						<?php 
        drawManageRankingMenu('questions', $question->id, $question->order, $max_order);
        ?>
					<?php 
    } else {
        ?>
						<?php 
        echo drawActionsMenuItem("questions/view/" . $question->id, 'view.png', 'Afficher');
        ?>
					<?php 
    }
    ?>
					</td>
				</tr>
			<?php 
}
?>
		</tbody>
	</table>
</div>

<script type="text/javascript">
var action = '<?php 
Exemplo n.º 8
0
Arquivo: edit.php Projeto: Assem/PMS
    $this->load->view('global/flash_messages', array('title' => $title));
    ?>
	
	<?php 
    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, 'back.png', 'Revenir à la question');
    ?>
		<?php 
    echo drawActionsMenuItem('answers/view/' . $answer->id, 'cancel.png', 'Annuler');
    ?>
		<?php 
    echo drawActionsMenuItem('answers/delete/' . $answer->id, 'delete.png', 'Supprimer', 'delete-action');
    ?>
	</div>
	
	<?php 
    echo form_open('answers/edit/' . $answer->id);
    ?>
	<?php 
    drawModelData($fields, 2, 'edit-form');
    ?>
	
	<div class="required-notice">* Champ obligatoire</div>
	<?php 
    echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
    ?>
	<?php 
Exemplo n.º 9
0
Arquivo: index.php Projeto: Assem/PMS
<h1 class="pmsH1">Listes des sondages</h1>
<?php 
$this->load->view('global/flash_messages', array('title' => $title));
echo drawActionsMenuItem('polls/add', 'add.png', 'Ajouter');
?>
<div id="datatable_fixed_column_tableInfo" class="tableInfo"></div>
<div class="dataTable_wrapper">
    <table class="table table-striped table-hover responsive dataTable no-footer inline collapsed" id="datatable_fixed_column" cellspacing="0" width="100%"  style="width: 100%;">
		<thead>
			<tr role="row" class="pmsFilterTHeader">
				<th></th>
				<th>Code</th>
				<th>Libellé</th>
				<th>Client</th>
				<th>Date Début</th>
				<th>Date fin</th>
				<th></th>
				<th>Actif</th>
				<th></th>
			</tr>
			<tr role="row" class="pmsTHeader">
				<th></th>
				<th>Code</th>
				<th>Libellé</th>
				<th>Client</th>
				<th>Date Début</th>
				<th>Date fin</th>
				<th>Nbre Fiches</th>
				<th>Actif</th>
				<th style="max-width: 70px">Actions</th>
			</tr>
Exemplo n.º 10
0
Arquivo: edit.php Projeto: Assem/PMS
    if ($warning) {
        ?>
		<img class="action-icon" src="/assets/img/warning.png" title="Des questions sans réponses!" />
	<?php 
    }
    ?>
	<?php 
    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('polls/view/' . $poll->id, 'cancel.png', 'Annuler et quitter');
    ?>
		<?php 
    echo drawActionsMenuItem('polls/delete/' . $poll->id, 'delete.png', 'Supprimer', 'delete-action delete_poll');
    ?>
	</div>
	
	<?php 
    echo form_open('polls/edit/' . $poll->id);
    ?>
	<?php 
    drawModelData($fields, 2, 'edit-form');
    ?>
	
	<div class="required-notice">* Champ obligatoire</div>
	<?php 
    echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
    ?>
	<?php 
Exemplo n.º 11
0
Arquivo: view.php Projeto: Assem/PMS
} else {
    ?>
	<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.º 12
0
Arquivo: view.php Projeto: Assem/PMS
    echo secure_anchor('sheets/index/poll-' . $poll->id, $poll->sheets_count . ' Fiches', array('title' => 'Consulter les fiches', 'class' => 'counter_link'));
    ?>
	
	<div class="view-menu">
		<?php 
    echo drawActionsMenuItem('polls/edit/' . $poll->id, 'edit.png', 'Editer');
    ?>
		<?php 
    echo drawActionsMenuItem('polls/stats/' . $poll->id, 'charts.png', 'Statistiques');
    ?>
		<?php 
    echo drawActionsMenuItem('polls/delete/' . $poll->id, 'delete.png', 'Supprimer', 'delete-action');
    ?>
		<div style='text-align: left; float:left'>
			<?php 
    echo drawActionsMenuItem('sheets/delete_all/' . $poll->id, 'delete-all.png', 'Supprimer toutes les fiches', 'delete-all-action');
    ?>
		</div>
	</div>
	<?php 
    drawModelData($fields, 2, 'view-form');
    ?>
	
	<?php 
    $this->load->view('questions/_list', array('poll' => $poll, 'questions' => $questions, 'action' => 'view'));
    ?>

<?php 
}
?>
Exemplo n.º 13
0
Arquivo: index.php Projeto: Assem/PMS
<h1 class="pmsH1">Listes des utilisateurs</h1>
<?php 
$this->load->view('global/flash_messages', array('title' => $title));
echo drawActionsMenuItem('users/add', 'add.png', 'Ajouter');
?>

<div id="datatable_fixed_column_tableInfo" class="tableInfo"></div>
<div class="dataTable_wrapper">
    <table class="table table-striped table-hover responsive dataTable no-footer inline collapsed" id="datatable_fixed_column" cellspacing="0" width="100%"  style="width: 100%;">
		<thead>
			<tr role="row" class="pmsFilterTHeader">
				<th>Code</th>
				<th>Nom</th>
				<th>Prénom</th>
				<th>Nom d'utilisateur</th>
				<th>Email</th>
				<th>GSM</th>
				<th>Rôle</th>
				<th>Actif</th>
				<th></th>
			</tr>
			<tr role="row" class="pmsTHeader">
				<th>Code</th>
				<th>Nom</th>
				<th>Prénom</th>
				<th>Nom d'utilisateur</th>
				<th>Email</th>
				<th>GSM</th>
				<th>Rôle</th>
				<th>Actif</th>
				<th style="max-width: 70px">Actions</th>
Exemplo n.º 14
0
Arquivo: add.php Projeto: Assem/PMS
<h1 class="pmsH1">Ajouter un sondage</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('polls/index', 'cancel.png', 'Annuler et quitter');
?>
</div>

<?php 
echo form_open('polls/add');
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.º 15
0
Arquivo: edit.php Projeto: Assem/PMS
    ?>
	<h1 class="pmsH1">Sondage <?php 
    echo $poll->label;
    ?>
: Edition informations sur le répondant</h1>
	<?php 
    $this->load->view('global/flash_messages', array('title' => $title));
    ?>
	
	<?php 
    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('respondents/delete/' . $respondent->id . '/true', 'delete.png', 'Supprimer et revenir à la sélection des sondages');
    ?>
	</div>
	
	<?php 
    echo form_open('respondents/edit/' . $respondent->id);
    ?>
	<?php 
    drawModelData($fields, 2, 'edit-form');
    ?>
	
	<div class="required-notice">* Champ obligatoire</div>
	<?php 
    echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
    ?>
	<?php 
Exemplo n.º 16
0
Arquivo: add.php Projeto: Assem/PMS
<h1 class="pmsH1-small">Sondage <?php 
echo $poll->label;
?>
: Création d'une fiche</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('respondents/edit/' . $respondent->id, 'back.png', 'Revenir aux détails du répondant', ' back1');
?>
	<?php 
echo drawActionsMenuItem('respondents/delete/' . $respondent->id . '/true', 'cancel.png', 'Annuler et revenir à la sélection des sondages', ' back2');
?>
</div>

<?php 
echo form_open('sheets/add/' . $poll->id . '/' . $respondent->id, array('id' => 'sheet_form'));
drawModelDataToggle($fields, 1, 'edit-form');
?>

<div class="required-notice">* Question obligatoire</div>
<?php 
echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
echo form_reset('reset', 'Réinitialiser', array('class' => 'submit-button'));
Exemplo n.º 17
0
    ?>
	<h1 class="pmsH1">Séquence: <?php 
    echo $label;
    ?>
</h1>
	<?php 
    $this->load->view('global/flash_messages', array('title' => $title));
    ?>
	
	<?php 
    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('settings/index', 'cancel.png', 'Annuler');
    ?>
	</div>
	
	<?php 
    echo form_open('settings/sequence_edit/' . $sequence->id);
    ?>
	<?php 
    drawModelData($fields, 2, 'edit-form');
    ?>
	
	<div class="required-notice">* Champ obligatoire</div>
	<?php 
    echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
    ?>
	<?php 
Exemplo n.º 18
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.º 19
0
Arquivo: add.php Projeto: Assem/PMS
<h1 class="pmsH1-small">Sondage <?php 
echo $poll->label;
?>
: Informations sur le répondant</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('polls/select', 'cancel.png', 'Annuler et revenir à la sélection des sondages');
?>
</div>

<?php 
echo form_open('respondents/add/' . $poll->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'));
?>

<script type="text/javascript">
var cities = <?php 
echo json_encode($cities);
?>
;
Exemplo n.º 20
0
Arquivo: _list.php Projeto: Assem/PMS
</td>
					<td>
					<?php 
    if ($action == 'edit') {
        ?>
						<?php 
        drawActionsMenu('answers', $answer->id);
        ?>
						<?php 
        drawManageRankingMenu('answers', $answer->id, $answer->order, $max_order);
        ?>
					<?php 
    } else {
        ?>
						<?php 
        echo drawActionsMenuItem("answers/view/" . $answer->id, 'view.png', 'Afficher');
        ?>
					<?php 
    }
    ?>
					</td>
				</tr>
			<?php 
}
?>
		</tbody>
	</table>
</div>

<script type="text/javascript">
var action = '<?php 
Exemplo n.º 21
0
Arquivo: add.php Projeto: Assem/PMS
<h1 class="pmsH1">Sondage <?php 
echo $poll->label;
?>
: Ajouter une question</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('polls/edit/' . $poll->id, 'cancel.png', 'Revenir au sondage');
?>
</div>

<?php 
echo form_open('questions/add/' . $poll->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'));