1085 lines
40 KiB
PHP
1085 lines
40 KiB
PHP
|
|
<style>
|
|
/* Forcer le select de l'entête à rester au-dessus */
|
|
header select {
|
|
position: relative;
|
|
z-index: 1000;
|
|
background: #fff;
|
|
}
|
|
</style>
|
|
<?php
|
|
|
|
$page='form';
|
|
echo( $this->Config_model->conf_csscouleurprojets());
|
|
echo( $this->Config_model->conf_csscouleurtaches());
|
|
?>
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-7 col-md-7 col-lg-4">
|
|
<div style="font-size: large">
|
|
|
|
<?php
|
|
|
|
echo $value['com_compagnie'] ;
|
|
$mem_link_edit=anchor('clients/form/'.$id_client, ' ', 'class="btn btn-primary btn-circle glyphicon glyphicon-edit" ');
|
|
echo $mem_link_edit;
|
|
?>
|
|
|
|
</div>
|
|
<div >
|
|
|
|
<?php echo $adresse.'<br>'.$contact .' '.$contactinfo;?>
|
|
|
|
</div>
|
|
<div style="font-size: large">
|
|
|
|
<?php echo $titre;?>
|
|
|
|
</div>
|
|
<!--
|
|
<a data-toggle="modal" data-section="Projets" 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('Projets',$mem_id);
|
|
?>
|
|
-->
|
|
|
|
|
|
</div>
|
|
<div class="col-xs-12 col-sm-5 col-md-5 col-lg-8">
|
|
<ul id="sparks" class="">
|
|
<li class="sparks-info">
|
|
<h5> TOTAL $$$ <span class="txt-color-blue" id="Clients_actif"> <?php echo number_format($total,2,'.',' ') ;?> </span></h5>
|
|
|
|
</li>
|
|
<li class="sparks-info">
|
|
|
|
</li>
|
|
<li class="sparks-info">
|
|
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- widget grid -->
|
|
<section id="widget-grid" class="">
|
|
<div style="background-color: #595D5E ">
|
|
|
|
|
|
<?php
|
|
|
|
if ($input['proj_nom']['value'] == '') {
|
|
|
|
$mem_colapse = '';
|
|
} else {
|
|
$mem_colapse = 'data-widget-collapsed="true"';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<!-- info projet deb -->
|
|
<div class="row projet">
|
|
<!-- 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" <?php echo($mem_colapse);?> 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-sortable="false"
|
|
|
|
-->
|
|
<header id="etape_color">
|
|
<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
|
|
|
|
<h4>Projet <?php echo($titre); ?></h4>
|
|
|
|
</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('projets/saveRecord/' . $mem_id . '/' . $retour_client, 'class="smart-form" id="saveRecord"');
|
|
?>
|
|
<footer>
|
|
<section class="col col-3">
|
|
<h2><?php echo $mem_numero ?></h2>
|
|
</section>
|
|
<button id="submit_btn" type="submit" class="btn btn-primary">
|
|
Sauvegarde
|
|
</button>
|
|
|
|
|
|
</footer>
|
|
<fieldset>
|
|
<div class="row">
|
|
<section class="col col-3">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'proj_nom';
|
|
echo form_label($label[$mem_champ]);
|
|
|
|
?>
|
|
|
|
</label>
|
|
<label class="input">
|
|
<?php
|
|
|
|
echo form_input($input[$mem_champ]); ?>
|
|
<i>
|
|
|
|
</i>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
<section class="col col-3">
|
|
|
|
<?php
|
|
$mem_champ = 'proj_date_debut';
|
|
|
|
|
|
?>
|
|
<label class="input">
|
|
<?php
|
|
|
|
echo form_label($label[$mem_champ]);
|
|
|
|
?>
|
|
|
|
</label>
|
|
<label class="input">
|
|
<i class="icon-append fa fa-calendar"></i>
|
|
<?php
|
|
|
|
|
|
echo form_input($input[$mem_champ]); ?>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
<section class="col col-3">
|
|
<?php
|
|
$mem_champ = 'proj_date_fin';
|
|
|
|
|
|
?>
|
|
<label class="input">
|
|
<?php
|
|
|
|
echo form_label($label[$mem_champ]);
|
|
|
|
?>
|
|
|
|
</label>
|
|
<label class="input"> <i class="icon-append fa fa-calendar"></i>
|
|
<?php
|
|
|
|
|
|
echo form_input($input[$mem_champ]); ?>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
<section class="col col-2">
|
|
<?php
|
|
$mem_champ = 'proj_date_confirmation';
|
|
|
|
|
|
?>
|
|
<label class="input">
|
|
<?php
|
|
|
|
echo form_label($label[$mem_champ]);
|
|
|
|
?>
|
|
|
|
</label>
|
|
<label class="input"> <i class="icon-append fa fa-calendar"></i>
|
|
<?php
|
|
|
|
|
|
echo form_input($input[$mem_champ]); ?>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
<section class="col col-1">
|
|
|
|
|
|
</section>
|
|
<section class="col col-2">
|
|
|
|
|
|
</section>
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<div class="row">
|
|
<section class="col col-3">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'com_compagnie';
|
|
echo form_label($label[$mem_champ]);
|
|
|
|
?>
|
|
|
|
</label>
|
|
<label class="input">
|
|
<?php
|
|
|
|
echo $value[$mem_champ];
|
|
?>
|
|
<i>
|
|
|
|
</i>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
<section class="col col-3">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'proj_contact_principale';
|
|
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 = 'proj_representant_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-2">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'proj_etape';
|
|
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'], 'id="' . $mem_champ . '"');
|
|
?>
|
|
<i>
|
|
|
|
</i>
|
|
</label>
|
|
|
|
</section>
|
|
<section class="col col-1">
|
|
|
|
|
|
</section>
|
|
<section class="col col-2">
|
|
|
|
|
|
</section>
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<div class="row">
|
|
<section class="col col-3">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'proj_hebergement';
|
|
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'], 'id="' . $mem_champ . '"');
|
|
?>
|
|
<i>
|
|
|
|
</i>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
<section class="col col-3">
|
|
<?php
|
|
$mem_champ = 'proj_date_annule';
|
|
|
|
|
|
?>
|
|
<label class="input">
|
|
<?php
|
|
|
|
echo form_label($label[$mem_champ]);
|
|
|
|
?>
|
|
|
|
</label>
|
|
<label class="input"> <i class="icon-append fa fa-calendar"></i>
|
|
<?php
|
|
|
|
|
|
echo form_input($input[$mem_champ]); ?>
|
|
</label>
|
|
|
|
|
|
</section>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<section>
|
|
<label class="textarea">
|
|
<?php
|
|
$mem_champ = 'proj_notes';
|
|
echo $icon[$mem_champ];
|
|
echo form_textarea($input[$mem_champ]);
|
|
?>
|
|
</label>
|
|
</section>
|
|
</fieldset>
|
|
<fieldset>
|
|
<section class="col col-4">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'proj_type';
|
|
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'], 'id="' . $mem_champ . '"');
|
|
?>
|
|
<i>
|
|
|
|
</i>
|
|
</label>
|
|
|
|
</section>
|
|
<section class="col col-4">
|
|
<label class="input">
|
|
<?php
|
|
$mem_champ = 'proj_dest';
|
|
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'], 'id="' . $mem_champ . '"');
|
|
?>
|
|
<i>
|
|
|
|
</i>
|
|
</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>
|
|
|
|
<!-- info projet fin -->
|
|
<!-- ajout deb -->
|
|
<div class="row projet">
|
|
<!-- 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-darken" id="wid-id-2" data-widget-collapsed="true" 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>Ajout de produits</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">
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-3 produit ">
|
|
PRODUIT
|
|
</div>
|
|
<div class="col-sm-8 produit_desc" id="produit_affiche">
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="container" id="fournisseur_display">
|
|
<div class="row">
|
|
<div class="col-sm-3 fournisseur ">
|
|
FOURNISSEUR
|
|
</div>
|
|
<div class="col-sm-9 fournisseur_desc" id="fournisseur_affiche">
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div id="choix_projet">
|
|
<div class="emp" id='produits_list'>
|
|
</div>
|
|
<div id='pagination_produits'>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="choix_fournisseur">
|
|
<div id='fournisseurs_List'>
|
|
</div>
|
|
<div id='pagination_fournisseurs'>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<footer>
|
|
|
|
</footer>
|
|
<?php
|
|
echo form_close();
|
|
?>
|
|
|
|
</div>
|
|
<!-- end widget content -->
|
|
|
|
</div>
|
|
<!-- end widget div -->
|
|
|
|
</div>
|
|
<!-- end widget -->
|
|
|
|
|
|
</article>
|
|
<!-- END COL -->
|
|
|
|
</div>
|
|
|
|
<!-- ajout fin -->
|
|
<!-- confirmation deb -->
|
|
<div class="row projet">
|
|
<!-- 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-darken" data-widget-collapsed="true" id="wid-id-98" 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-sortable="false"
|
|
|
|
-->
|
|
<header >
|
|
<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
|
|
|
|
<h2>Confirmation</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('Projets/prepare_confirmation/'.$mem_id , 'class="smart-form" id="saveRecord"');
|
|
?>
|
|
<footer>
|
|
|
|
|
|
|
|
</footer>
|
|
<fieldset>
|
|
<div class="row">
|
|
<?php echo $confimpdf;?>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<?php echo $confirmation;?>
|
|
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
</footer>
|
|
<?php
|
|
echo form_close();
|
|
?>
|
|
|
|
</div>
|
|
<!-- end widget content -->
|
|
|
|
</div>
|
|
<!-- end widget div -->
|
|
|
|
</div>
|
|
<!-- end widget -->
|
|
|
|
|
|
</article>
|
|
<!-- END COL -->
|
|
|
|
</div>
|
|
<!-- confirmation fin -->
|
|
<!-- Facturation deb -->
|
|
<div class="row projet" >
|
|
<!-- 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-darken" data-widget-collapsed="true" id="wid-id-99" 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-sortable="false"
|
|
|
|
-->
|
|
<header >
|
|
<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
|
|
|
|
<h2>Facturation</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('Projets/prepare_facturation/'.$mem_id , 'class="smart-form" id="saveRecord"');
|
|
?>
|
|
<footer>
|
|
|
|
|
|
|
|
</footer>
|
|
<fieldset>
|
|
<div class="row">
|
|
<?php echo $factpdf; ?>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<?php echo $facturation;?>
|
|
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
</footer>
|
|
<?php
|
|
echo form_close();
|
|
?>
|
|
|
|
</div>
|
|
<!-- end widget content -->
|
|
|
|
</div>
|
|
<!-- end widget div -->
|
|
|
|
</div>
|
|
<!-- end widget -->
|
|
|
|
|
|
</article>
|
|
<!-- END COL -->
|
|
|
|
</div>
|
|
<!-- Facturation fin -->
|
|
<!-- taches deb -->
|
|
<div class="row projet" >
|
|
<!-- 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-darken" data-widget-collapsed="false" id="wid-id-100" 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-sortable="false"
|
|
|
|
-->
|
|
<header >
|
|
<span class="widget-icon"> <i class="fa fa-edit"></i> </span>
|
|
|
|
<h2>Taches Produits</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">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-3 produit ">
|
|
Projets
|
|
</div>
|
|
<a data-toggle="modal" data-section_type="projets" data-section="projets" data-id="0" data-section_id='<?php echo $mem_id;?>' data-details_id='0' class="btn btn-info btn-circle glyphicon glyphicon-calendar popup"></a>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<?php $this->Tache_model->mod_listtache_projet_produit('projets',$mem_id );
|
|
?>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-3 produit ">
|
|
Clients
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<?php $this->Tache_model->mod_listtache_projet_produit('projetsclient',$mem_id );
|
|
?>
|
|
</div>
|
|
|
|
<div class="container" >
|
|
<div class="row">
|
|
<div class="col-sm-3 produit ">
|
|
Fournisseur
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div >
|
|
<?php $this->Tache_model->mod_listtache_projet_produit('projetsfournisseur',$mem_id );
|
|
?>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<!-- end widget div -->
|
|
|
|
|
|
<!-- end widget -->
|
|
|
|
|
|
</article>
|
|
<!-- END COL -->
|
|
|
|
</div>
|
|
<!-- taches fin -->
|
|
</div>
|
|
<!-- row -->
|
|
<div style="background-color: #CCDDE1 ">
|
|
|
|
|
|
<!-- end row -->
|
|
|
|
<!-- end row -->
|
|
|
|
|
|
<!-- row -->
|
|
|
|
|
|
<div class="row projet">
|
|
|
|
<article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
<?php
|
|
|
|
$mem_widget = 4;
|
|
|
|
// echo('<br>');
|
|
|
|
$mem_max = count($produits);
|
|
|
|
foreach ($produits as $key => $value) {
|
|
|
|
|
|
if($details_id==$value['form']['mem_id']) {
|
|
|
|
$mem_colapse = '';
|
|
} else {
|
|
$mem_colapse = 'data-widget-collapsed="true"';
|
|
|
|
}
|
|
|
|
|
|
?>
|
|
<div class="row" id="newfocus_<?php echo $value['form']['mem_id'];?>">
|
|
<!-- 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 style="margin: 5px 0px 0px;" class="jarviswidget jarviswidget "
|
|
id="wid-id-<?php echo $mem_widget; ?>" <?php echo $mem_colapse; ?>
|
|
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-custombutton="false"
|
|
data-widget-collapsed="true"
|
|
|
|
|
|
-->
|
|
<header style="font-size: larger">
|
|
<?php
|
|
$mem_statut1="";
|
|
$mem_statut2="";
|
|
$mem_statut3="";
|
|
if ($value['form']['value']['det_con_active']==1)
|
|
$mem_statut1='<i style="color:#33CAFF" class="fa fa-circle"></i>';
|
|
if ($value['form']['value']['det_fac_active']==1)
|
|
$mem_statut2='<i style="color:#bab9b8" class="fa fa-circle"></i>';
|
|
if ($value['form']['value']['det_res_active']==1)
|
|
$mem_statut3='<i style="color:#078c2a" class="fa fa-circle"></i>';
|
|
|
|
?>
|
|
|
|
<div style=" font-size: larger;background-color: <?php echo $value['form']['etape_color']; ?>" id="produit_affiche">
|
|
<table >
|
|
<tr style="line-height: 18px; padding: 4px 4px 4px 4px;font-size: larger;background-color: <?php echo $value['form']['etape_color']; ?>">
|
|
<td width="10%" ><i class="icon-append fa <?php echo $value['type_icone'];?>"></i></td>
|
|
<td style="font-size: small" width="90%" align="center" ><?php echo $value['ent_com_compagnie'] . '-' . $value['ent_des_nom'].' '. $value['form']['value']['det_depart']; ?></td>
|
|
<td width="20%" align="right" style=" background-color:#CCDDE1" ><?php echo $mem_statut1; ?></td>
|
|
<td width="20%" align="right" style=" background-color:#CCDDE1" ><?php echo $mem_statut2; ?></td>
|
|
<td width="20%" align="right" style=" background-color:#CCDDE1" ><?php echo $mem_statut3; ?></td>
|
|
<td width="20%" align="right" style="background-color:#CCDDE1;">
|
|
<select name="det_etape" style="min-width:120px;">
|
|
<option value="8">Demande</option>
|
|
<option value="1">Soumission</option>
|
|
<option value="116">Contrat signé</option>
|
|
<option value="2">Réservé</option>
|
|
<option value="11">Confirmation envoyé</option>
|
|
<option value="5">Confirmé</option>
|
|
<option value="3">Facturé</option>
|
|
<option value="6">Payé</option>
|
|
<option value="7">Terminé</option>
|
|
<option value="117">Annulation envoyé</option>
|
|
<option value="4" selected>Annulation</option>
|
|
<option value="9">Pre-book</option>
|
|
<option value="10">A faire</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr style="font-size: small ;line-height: 18px; padding: 4px 4px 4px 4px;font-size: larger;background-color: <?php echo $value['form']['etape_color']; ?>">
|
|
<td width="10%" > </td>
|
|
<td width="90%" align="center" > </td>
|
|
<td width="20%" align="right" style=" background-color:#CCDDE1" > </td>
|
|
<td width="20%" align="right" style=" background-color:#CCDDE1" > </td>
|
|
<td style="line-height: 33px;"width="20%" align="right" style=" background-color:#CCDDE1" >
|
|
|
|
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<!-- widget div-->
|
|
<div >
|
|
|
|
|
|
|
|
<?php echo $value['ent_com_compagnie'] . ' ' . $value['ent_des_nom']; ?>
|
|
|
|
|
|
<div class="row">
|
|
<?php
|
|
|
|
$value['form']['projet_id'] = $mem_id;
|
|
$value['form']['key'] = $key;
|
|
$value['form']['mem_max'] = $mem_max;
|
|
$this->load->view('projets/form_' . $value['form']['mem_type_fiche'], $value['form']);
|
|
|
|
|
|
$value['form']['projet_id'] = $mem_id;
|
|
$value['form']['key'] = $key;
|
|
$value['form']['mem_max'] = $mem_max;
|
|
$this->load->view('projets/form_etape', $value['form']);
|
|
|
|
|
|
?>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
Client :
|
|
</div>
|
|
<div class="col-sm-9" >
|
|
|
|
|
|
|
|
|
|
<a data-toggle="modal" data-section_type="projets client" data-section="projetsclient" data-id="0" data-section_id='<?php echo $mem_id;?>' data-details_id='<?php echo $value['form']['mem_id'];?>' class="btn btn-info btn-circle glyphicon glyphicon-calendar popup"></a>
|
|
|
|
|
|
<?php $this->Tache_model->mod_listtache_btn('projetsclient',$mem_id, $value['form']['mem_id'] );
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-sm-2">
|
|
Fournisseur :
|
|
</div>
|
|
<div class="col-sm-9" >
|
|
<a data-toggle="modal" data-section_type="projets fournisseur" data-section="projetsfournisseur" data-id="0" data-section_id='<?php echo $mem_id;?>' data-details_id='<?php echo $value['form']['mem_id'];?>' class="btn btn-info btn-circle glyphicon glyphicon-calendar popup"></a>
|
|
<?php $this->Tache_model->mod_listtache_btn('projetsfournisseur',$mem_id, $value['form']['mem_id'] );
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- end widget div -->
|
|
|
|
</div>
|
|
|
|
</article>
|
|
<!-- END COL -->
|
|
|
|
</div>
|
|
|
|
<?php
|
|
$mem_colapse = 'data-widget-collapsed="true"';
|
|
$mem_widget = $mem_widget + 1;
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<!-- end widget div -->
|
|
|
|
<!-- </div>
|
|
<!-- end widget -->
|
|
|
|
|
|
</article>
|
|
<!-- END COL -->
|
|
|
|
</div>
|
|
<!-- end row -->
|
|
|
|
<!-- end row -->
|
|
</div>
|
|
|
|
<!-- end widget grid -->
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<!-- END MAIN PANEL -->
|
|
|
|
<!-- ==========================CONTENT ENDS HERE ========================== -->
|
|
<script>
|
|
var mcolor = new Array(15);
|
|
var tcolor = new Array(15);
|
|
|
|
$(document).ready(function () {
|
|
|
|
<?php
|
|
|
|
echo( $this->Config_model->conf_javacouleurprojets());
|
|
|
|
?>
|
|
var current = $('#proj_etape').val();
|
|
|
|
$('#etape_color').css('background-color', mcolor[current]);
|
|
$('#etape_color').css('color', tcolor[current]);
|
|
// $('#proj_etape').css('color','gray');
|
|
$('#proj_etape').change(function () {
|
|
|
|
var current = $('#proj_etape').val();
|
|
|
|
$('#etape_color').css('background-color', mcolor[current]);
|
|
|
|
});
|
|
|
|
|
|
// START AND FINISH DATE
|
|
$('#proj_date_debut').datepicker({
|
|
dateFormat: 'yy-mm-dd',
|
|
prevText: '<i class="fa fa-chevron-left"></i>',
|
|
nextText: '<i class="fa fa-chevron-right"></i>',
|
|
onSelect: function (selectedDate) {
|
|
$('#proj_date_fin').datepicker('option', 'minDate', selectedDate);
|
|
}
|
|
});
|
|
$('#proj_date_fin').datepicker({
|
|
dateFormat: 'yy-mm-dd',
|
|
prevText: '<i class="fa fa-chevron-left"></i>',
|
|
nextText: '<i class="fa fa-chevron-right"></i>',
|
|
onSelect: function (selectedDate) {
|
|
$('#proj_date_debut').datepicker('option', 'maxDate', selectedDate);
|
|
|