Files
2026-05-27 11:44:10 -04:00

520 lines
22 KiB
PHP

<div id="content">
<div class="row">
<div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
<h1 class="page-title txt-color-blueDark">
<i class="fa fa-table fa-fw "></i>
Infos
<span>>
Fournisseurs
</span>
</h1>
</div>
<div class="col-xs-12 col-sm-5 col-md-5 col-lg-8">
<ul id="sparks" class="">
<li class="sparks-info">
<h5> Fournisseurs <span class="txt-color-blue" id="Fournisseurs_actif"> </span></h5>
</li>
<li class="sparks-info">
</li>
<li class="sparks-info">
</li>
</ul>
</div>
</div>
<!-- widget grid --><div >
<a data-toggle="modal" data-section="Fournisseurs" data-id="0" data-section_id="<?php echo $mem_id;?> " class="btn btn-info btn-circle glyphicon glyphicon-calendar popup"></a>
<?php $this->Tache_model->mod_listtache_btn('Fournisseurs',$mem_id);
?> <br> </div>
<section id="widget-grid" class="">
<!-- row -->
<div class="row">
<!-- NEW COL START -->
<article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<!-- Widget ID (each widget will need unique ID)-->
<div class="jarviswidget jarviswidget-color-orange" id="wid-id-1" data-widget-editbutton="false" data-widget-colorbutton="true" data-widget-deletebutton="false">
<!-- widget options:
usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">
data-widget-colorbutton="false"
data-widget-editbutton="false"
data-widget-togglebutton="false"
data-widget-deletebutton="false"
data-widget-fullscreenbutton="false"
data-widget-custombutton="false"
data-widget-collapsed="true"
data-widget-sortable="false"
-->
<header>
<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
<h2>Fournisseurs</h2>
</header>
<!-- widget div-->
<div>
<!-- widget edit box -->
<div class="jarviswidget-editbox">
<!-- This area used as dropdown edit box -->
</div>
<!-- end widget edit box -->
<!-- widget content -->
<div class="widget-body no-padding">
<?php echo form_open('fournisseurs/saveRecord/'.$mem_id,'class="smart-form" id="saveRecord"');
?>
<footer>
<button id="submit_btn" type="submit" class="btn btn-primary">
Sauvegarde
</button>
</footer>
<fieldset>
<div class="row">
<section class="col col-6">
<label class="input">
<?php
$mem_champ='com_compagnie';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</section>
<section class="col col-1">
<?php
$mem_champ='com_actif';
echo form_label($label[$mem_champ],'',array('class' => 'input',
'style' => 'text-align: right'));
?>
<label class="toggle">
<?php
echo form_checkbox($checkbox[$mem_champ]);
?> <i data-swchon-text="Oui" data-swchoff-text="Non"></i>
</label>
</section>
<section class="col col-2">
<label class="input">
<?php
$mem_champ='com_langue';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="select">
<?php
echo $icon[$mem_champ];
echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
?>
<i>
</i>
</label>
</section>
<section class="col col-2">
<label class="input">
<?php
$mem_champ='com_ref_type';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="select">
<?php
echo $icon[$mem_champ];
echo form_multiselect($mem_champ.'[]',$select[$mem_champ]['choix'],$select[$mem_champ]['value'],"size='5' style='height: 100%;'");
?>
<i>
</i>
</label>
</section>
</div>
<div class="row">
<section class="col col-6">
<label class="input">
<?php
$mem_champ='com_prenom';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</section>
<section class="col col-6">
<label class="input">
<?php
$mem_champ='com_nom';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</section>
</div>
<div class="row">
<section class="col col-6">
<label class="input">
<?php
$mem_champ='com_courriel';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</section>
<section class="col col-3">
<label class="input">
<?php
$mem_champ='com_telephone';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</section>
<section class="col col-3">
<label class="input">
<?php
$mem_champ='com_telephone_ext';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</section>
</div>
</fieldset>
<fieldset>
<div class="row">
<section class="col col-10">
<label class="input">
<?php
$mem_champ='com_adresse';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</label>
</section>
</div>
<div class="row">
<section class="col col-3">
<label class="input">
<?php
$mem_champ='com_ville';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</label>
</section>
<section class="col col-3">
<label class="input">
<?php
$mem_champ='com_pro_id';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="select">
<?php
echo $icon[$mem_champ];
echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
?>
<i>
</i>
</label>
</section>
<section class="col col-3">
<label class="input">
<?php
$mem_champ='com_pay_id';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="select">
<?php
echo $icon[$mem_champ];
echo form_dropdown($mem_champ,$select[$mem_champ]['choix'],$select[$mem_champ]['value']);
?>
<i>
</i>
</label>
</section>
<section class="col col-3">
<label class="input">
<?php
$mem_champ='com_codepostal';
echo form_label($label[$mem_champ]);
?>
</label>
<label class="input">
<label class="input">
<?php
echo $icon[$mem_champ];
echo form_input($input[$mem_champ]);
?>
</label>
</label>
</section>
</div>
</fieldset>
<fieldset>
<section>
<label class="textarea">
<?php
$mem_champ='com_notes';
echo $icon[$mem_champ];
echo form_textarea($input[$mem_champ]);
?>
</label>
</section>
</fieldset>
<footer>
<button id="submit_btn" type="submit" class="btn btn-primary">
Sauvegarde
</button>
</footer>
<?php
echo form_close();
?>
</div>
<!-- end widget content -->
</div>
<!-- end widget div -->
</div>
<!-- end widget -->
</article>
<!-- END COL -->
</div>
<div class="row">
<!-- NEW COL START -->
<article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="jarviswidget jarviswidget-color-orange" id="wid-id-2" data-widget-editbutton="false" data-widget-colorbutton="true" data-widget-deletebutton="false">
<header>
<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
<h2>Contacts</h2>
</header>
<!-- widget div-->
<div>
<!-- widget edit box -->
<div class="jarviswidget-editbox">
<!-- This area used as dropdown edit box -->
</div>
<!-- end widget edit box -->
<!-- widget content -->
<?php echo form_open('fournisseurs/saveRecordcontact/'.$mem_id,'class="smart-form" id="saveRecordcontact"');
?>
<div class="widget-body no-padding">
<?php
if ($mem_id!=0)
echo $contacts;
?>
</div>
<?php
echo form_close();
?>
</div>
</div>
<?php $mem_projets=$this->Fournisseursprojets_model->mod_listprojetsproduit(189,1);
echo($mem_projets);
?>
</article>
<!-- END COL -->
</div>
<!-- end row -->
<!-- end row -->
</section>
<!-- end widget grid -->
</div>
<?php
$page='form';
include('inc/popupevent.php');
?>
<!-- END MAIN PANEL -->
<!-- ==========================CONTENT ENDS HERE ========================== -->
<script>
$(document).ready(function() {
<?php
include('inc/popupevent_script.php');
?>
var errorClass = 'invalid';
var errorElement = 'em';
var $checkoutForm = $('#saveRecord').validate({
errorClass : errorClass,
errorElement : errorElement,
highlight: function(element) {
$(element).parent().removeClass('state-success').addClass("state-error");
$(element).removeClass('valid');
},
unhighlight: function(element) {
$(element).parent().removeClass("state-error").addClass('state-success');
$(element).addClass('valid');
},
// Rules for form validation
<?php
echo($validation['rules']);
?>
// Messages for form validation
<?php
echo($validation['messages']);
?>
// Do not change code below
errorPlacement : function(error, element) {
error.insertAfter(element.parent());
}
});
});
</script>