Esempio n. 1
0
 public function executeUpdate(sfWebRequest $request)
 {
     $this->checkProject($request);
     //Récupération du projet
     $this->checkProfile($request, $this->ei_project);
     //Récupération du profil courant
     $this->checkCampaignGraph($request);
     $this->ei_campaign = $this->ei_campaign_graph->getCampaign($this->project_id, $this->project_ref);
     if ($this->ei_campaign == null) {
         $this->forward404('Campaign not found');
     }
     $this->form = new EiCampaignGraphForm($this->ei_campaign_graph, array('ei_project' => $this->ei_project));
     $this->processForm($request, $this->form);
     if ($this->success) {
         $this->campaignGraphBlockType = Doctrine_Core::getTable('EiBlockType')->findAll();
         $downloadCampaignNodeAttachment = $this->urlParameters;
         $downloadCampaignNodeAttachment['campaign_id'] = $this->ei_campaign_graph->getCampaignId();
         $downloadCampaignNodeAttachment['id'] = $this->campaign_graph_id;
         return $this->renderText(json_encode(array('html' => $this->ei_campaign_graph->getFilename() != null ? $this->generateUrl('downloadCampaignNodeAttachment', $downloadCampaignNodeAttachment) : '#', 'filename' => $this->ei_campaign_graph->getFilename() != null ? MyFunction::troncatedText($this->ei_campaign_graph->getFilename(), 17) : '', 'updateMode' => true, 'step_id' => $this->campaign_graph_id, 'success' => true)));
     } else {
         $uri_form = $this->urlParameters;
         $uri_form['form'] = $this->form;
         $uri_form['ei_nodes'] = $this->ei_nodes;
         $uri_form['campaign_id'] = $this->campaign_id;
         $uri_form['root_folder'] = $this->root_folder;
         $uri_form['parent_id'] = $this->parent_id;
         return $this->renderText(json_encode(array('html' => $this->getPartial('eicampaigngraph/form', $uri_form), 'success' => false)));
     }
     return sfView::NONE;
 }
Esempio n. 2
0
            echo $dt->getEiDataSetTemplate()->getId();
            ?>
"
                               data-placement="top" data-toggle="tooltip" data-original-title="<?php 
            echo $dt->getEiDataSetTemplate()->getName();
            ?>
">
                               <input class="step_jdd_id" type="hidden" value="<?php 
            echo $dt->getId();
            ?>
"/>
                                 <?php 
            echo ei_icon('ei_dataset', 'lg');
            ?>
                                <?php 
            echo MyFunction::troncatedText($dt->getEiDataSetTemplate()->getName(), 17);
            ?>
                            </a>  
                         <?php 
        } else {
            ?>
 
                        <button class="btn btn-sm btn-link stepLineInContentDataSetTitle" type="button">
                             <?php 
            echo ei_icon('ei_dataset', 'lg');
            ?>
                        </button>
                         <?php 
        }
        ?>
                        
">
                 
                <a href="#deliverySearchBoxForSteps"    data-toggle="modal" id="openDeliverySearchBoxForSteps">
                    <?php 
echo ei_icon('ei_delivery') . '&nbsp; ' . (isset($ei_delivery) && $ei_delivery != null ? MyFunction::troncatedText($ei_delivery, 10) : '');
?>
  
                </a>  
            </li>
            <li class="<?php 
echo isset($ei_subject) && $ei_subject != null ? 'active col-lg-4 col-md-4' : 'col-lg-4 col-md-4';
?>
">
                <a href="#subjectSearchBoxForSteps"  data-toggle="modal" id="openSubjectSearchBoxForSteps">
                    <?php 
echo ei_icon('ei_subject') . '&nbsp;' . (isset($ei_subject) && $ei_subject != null ? MyFunction::troncatedText($ei_subject, 10) : '');
?>
 
                    
                </a> 
            </li>
        </ul>  
    </div>




<!-- Box de recherche d'une livraison-->
<div id="deliverySearchBoxForSteps" class="modal  ">
    <div class="modal-dialog">
        <div class="modal-content">
Esempio n. 4
0
<?php

if (isset($ei_project) && $ei_project != null && isset($ei_profile) && $ei_profile != null) {
    ?>
<!--On est dans le module scénario --> 
<?php 
    $url_tab = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name);
    ?>
    <?php 
    if ($sf_request->getParameter('action') == 'index') {
        $title = 'Project Functions';
        $originalTitle = 'Project Functions';
    } else {
        $title = MyFunction::troncatedText($kal_function, 17);
        $originalTitle = $kal_function;
    }
    //  Menu objet
    include_partial('global/sideBarCurrentObject', array('title' => $title, 'icon' => 'ei_function', 'originalTitle' => $originalTitle, 'dataContent' => ''));
    //Livraisons ouvertes
    include_partial('global/openDeliveries', array('openDeliveries' => $openDeliveries, 'delivery_show_uri' => $url_tab));
}
?>
 
  
Esempio n. 5
0
        echo $fullMode;
        ?>
">
                <a href=" <?php 
        echo url_for2("profil_forwardTo", $tabparam);
        ?>
"  title="<?php 
        echo $profil->getName();
        ?>
"> 
                    <?php 
        echo ei_icon('ei_profile', null, 'alignment_img');
        ?>
                    <span> 
                        <?php 
        echo MyFunction::troncatedText($profil->getName(), 25);
        ?>
                    </span>
                </a>
            </li> 
       <?php 
    }
    ?>
     
<?php 
}
?>
 
    </ul>
</li>
Esempio n. 6
0
                                        <td> 
                                           <?php 
    echo ei_icon('ei_scenario');
    ?>
                                           <?php 
    $projet_new_eiversion = $url_tab;
    $projet_new_eiversion['ei_scenario_id'] = $scr['id'];
    $projet_new_eiversion['action'] = 'editVersionWithoutId';
    ?>
                                               <?php 
    echo link_to2($scr['nom_scenario'], 'projet_new_eiversion', $projet_new_eiversion);
    ?>
                                        </td>
                                        <td>
                                            <?php 
    echo MyFunction::troncatedText($scr['description'], 100);
    ?>
                                        </td> 
                                        <td><?php 
    echo date('Y-m-d', strtotime($scr['created_at']));
    ?>
</td>
                                        <td><?php 
    echo date('Y-m-d', strtotime($scr['updated_at']));
    ?>
</td>
                                    </tr>      
                                     <?php 
}
?>
                                    </tbody>  
Esempio n. 7
0
<!-- Menu principal d'une version de scénario -->
<?php 
if (isset($ei_project) && $ei_project != null && isset($ei_profile) && $ei_profile != null && isset($ei_scenario) && $ei_scenario != null) {
    $url_tab = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name, 'ei_scenario_id' => $ei_scenario_id);
    ?>
   


<?php 
}
?>
<!--On est dans le module version -->  
 
<?php 
$title = MyFunction::troncatedText($ei_scenario, 17);
$originalTitle = $ei_scenario;
include_partial('global/sideBarCurrentObject', array('title' => $title, 'icon' => 'ei_scenario', 'originalTitle' => $originalTitle, 'dataContent' => ''));
?>
  
<!--Livraisons ouvertes-->

<?php 
include_partial('global/openDeliveries', array('openDeliveries' => $openDeliveries, 'delivery_show_uri' => $url_tab));
?>

  
Esempio n. 8
0
        echo url_for2('getDeliverySubjects', $delivery_show_uri);
        ?>
"  >  
                                    <?php 
        echo ei_icon("ei_delivery");
        ?>
 <?php 
        echo $ei_version['delivery_name'];
        ?>
  </a> 
                                <?php 
    }
    ?>
                            </td>
                            <td> <?php 
    echo MyFunction::troncatedText($ei_version['v_description'], 100);
    ?>
  </td>
                            <td><?php 
    echo date('Y-m-d', strtotime($ei_version['v_created_at']));
    ?>
</td>
                            <td><?php 
    echo date('Y-m-d', strtotime($ei_version['v_updated_at']));
    ?>
</td>
                        </tr>      
                        <?php 
}
?>
                </tbody>  
Esempio n. 9
0
<div id="campaignHeader"> 
    <div class="navbar" > 
        <div class="navbar-inner" >  
            <ul class="nav" >
                <li >
                    <a href="#" class="navbar-brand">
                        <small>
                            <?php 
echo ei_icon('ei_campaign');
?>
 &nbsp; 
                            <?php 
echo isset($ei_campaign) && $ei_campaign != null ? $ei_campaign->getId() . '/' . MyFunction::troncatedText($ei_campaign, 17) : 'Campaigns';
?>
                        </small> 
                    </a>
                </li>
                <li class="divider-vertical"></li>
                <li class="<?php 
if (isset($activeItem) && $activeItem == 'Properties') {
    echo 'active';
}
?>
">
                     
                    <a id="accessCampaignProperties" href="<?php 
echo url_for2('campaign_edit', array('id' => $ei_campaign->getId(), 'project_id' => $project_id, 'project_ref' => $project_ref));
?>
">
                        <i class="fa fa-wrench "></i> Properties 
                    </a>
Esempio n. 10
0
        echo $path_to_node;
    }
    ?>
"
                       class="<?php 
    if (isset($urlParameters['is_step_context']) && $urlParameters['is_step_context']) {
        $linkcls = "";
        echo 'addStepInContent';
    }
    ?>
                              <?php 
    echo isset($urlParameters['is_edit_step_case']) && $urlParameters['is_edit_step_case'] ? 'majStepDataSet' : $linkcls;
    ?>
">
                        <?php 
    echo $img_node . ' ' . MyFunction::troncatedText($ei_node->getName(), 17);
    ?>
 
                        <?php 
    if ($ei_node->getType() == 'EiDataSet') {
        ?>
                        <input type="hidden" name="data_set_id" value="<?php 
        echo $ei_node->getObjId();
        ?>
" class="data_set_id" /> 
                        <?php 
    }
    ?>
                        <input type="hidden" name="obj_id" value="<?php 
    echo $aux['ei_scenario_id'];
    ?>
Esempio n. 11
0
<?php

if (isset($ei_view) && $ei_tree) {
    ?>
 

<h3 id="nodeDetailsModalLabel">
    <ul class="nav nav-tabs">
        <li role="viewName" class="active">
            <a  href="#" title="<?php 
    echo $ei_tree;
    ?>
">
                <?php 
    echo ei_icon('ei_folder', null, 'img_node', "Function folder node", "function_folder_node") . " " . MyFunction::troncatedText($ei_tree, 40);
    ?>
          
            </a>
        </li> 
    </ul>
</h3>
<?php 
}
Esempio n. 12
0
        $param = $mapping->getEiFunctionParamMapping();
        $content = "<p><h5>Name : </i></h5><div>" . htmlentities($param->getName()) . "</div><br/>";
        $content .= "<p><h5>Description : </h5></p><div>" . htmlentities($param->getDescription()) . "</div><br/>";
        ?>
                        <div class="row param_out_fonction_sync">
                            <div class="col-lg-4 col-md-4 col-sm-5">
                                <label>
                                    <i class="fa fa-info-circle infos_param" data-trigger="hover" data-html="true" data-title="<?php 
        echo $param->getName();
        ?>
" data-content="<?php 
        echo $content;
        ?>
"></i>
                                    <span><?php 
        echo MyFunction::troncatedText($param->getDescription(), 30);
        ?>
</span>
                                </label>
                            </div>
                            <div class="col-lg-1 col-md-1 col-sm-1">
                                <i class="fa fa-arrow-right"></i>
                            </div>
                            <div class="col-lg-7 col-md-7 col-sm-6">
                                <?php 
        echo $mappingForm["ei_param_block_id"]->render();
        ?>
                            </div>
                        </div>

                    <?php 
Esempio n. 13
0
    $url_scenarios = url_for2('scenariosFunction', $tab_scenarios);
    //Url de gestions des statistiques de fonction
    $tab_stats = $url_tab;
    $tab_stats['action'] = 'statistics';
    $tab_stats_uri = url_for2('functionActions', $tab_stats);
    ?>
 

<h3 id="nodeDetailsModalLabel">
    <ul class="nav nav-tabs">
        <li role="functionName" class="active">
            <a  href="#" title="<?php 
    echo $ei_tree;
    ?>
"><?php 
    echo ei_icon('ei_function') . " " . MyFunction::troncatedText($ei_tree, 40);
    ?>
</a>
        </li>
        <li role="Properties"><a title="Function properties" target="_blank" href="<?php 
    echo $url_properties;
    ?>
"><?php 
    echo ei_icon("ei_properties");
    ?>
</a></li>
        <li role="Campaigns"><a title="Function campaigns"  target="_blank" href="<?php 
    echo $url_campaigns;
    ?>
"><?php 
    echo ei_icon("ei_campaign");
Esempio n. 14
0
&nbsp;
                                +33 9 707 3 4 5 6 7
                            </li>
                        </ul>
                    </li>-->
                    <li class="dropdown visible-md visible-lg visible-sm visible-xs">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="eiUserAccess"> 
                            <?php 
    echo ei_icon('ei_user');
    ?>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="dropdown-menu-header  ">
                                <small>Welcome &nbsp;</small>
                                <strong><?php 
    echo MyFunction::troncatedText($guardUser->getUsername(), 15);
    ?>
&nbsp;&nbsp;</strong> 
                            </li>
                            <?php 
    if ($project_ref != null && $project_id != null && $profile_ref != null && $profile_id != null && $profile_name != null) {
        ?>
                             <!--Calcul du nombre de sujets (bugs) assignés à l'utilisateur courant-->
                            <?php 
        $states = Doctrine_Core::getTable('EiSubjectState')->getSubjectStateForProjectQuery($project_id, $project_ref)->execute();
        $stateTab = array();
        if (count($states) > 0) {
            foreach ($states as $i => $state) {
                if ($state->getDisplayInTodolist()) {
                    $stateTab[] = $state->getId();
                }
Esempio n. 15
0
<?php

if (isset($ei_project) && $ei_project != null && isset($ei_profile) && $ei_profile != null) {
    $url_tab = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name);
    ?>
  
<!--On est dans le module eidelivery -->  
<?php 
    $act = $sf_request->getParameter('action');
    if ($act == 'index' || $act == 'new' || $act == 'create' || $act == 'searchDeliveries') {
        $title = 'Project Deliveries ';
        $originalTitle = 'Project Deliveries ';
        $data_content = '';
    } else {
        $title = MyFunction::troncatedText($ei_delivery, 17);
        $originalTitle = $ei_delivery;
        $data_content = "Delivery date : " . $ei_delivery->getDeliveryDate();
    }
    include_partial('global/sideBarCurrentObject', array('title' => $title, 'icon' => 'ei_delivery', 'originalTitle' => $originalTitle, 'dataContent' => $data_content));
    ?>
   



<!--<ul class="nav nav-sidebar">
    <?php 
    //$action =$sf_request->getParameter('action') ;
    ?>
 
    <?php 
    //include_partial('eisubject/basicSideBarBug',$url_tab)
Esempio n. 16
0
    }
    ?>
 
<?php 
    $act = $sf_request->getParameter('action');
    ?>
<!--On est dans le module eicampaign --> 
 
<?php 
    $act = $sf_request->getParameter('action');
    if ($act == 'index' | $act == 'new' || $act == 'create') {
        $title = 'Project Campaigns ';
        $originalTitle = 'Project Campaigns ';
        $data_content = '';
    } else {
        $title = MyFunction::troncatedText($ei_campaign, 17);
        $originalTitle = $ei_campaign;
        $data_content = "Coverage  : " . $ei_campaign->getCoverageAsString();
    }
    include_partial('global/sideBarCurrentObject', array('title' => $title, 'icon' => 'ei_campaign', 'originalTitle' => $originalTitle, 'dataContent' => $data_content));
    ?>
 





<!-- Liste des livraisons ouvertes dans la limite de  10 et ordonnées par date-->

<?php 
    include_partial('global/openDeliveries', array('openDeliveries' => $openDeliveries, 'delivery_show_uri' => $url_tab));
Esempio n. 17
0
            echo $delState->getName();
            ?>
 </span>     
                                    <?php 
        }
        ?>
 
                                </td>
                                <td class="ei_delivery_desc">
                                    <a  class="popoverObjDesc" title="Description"  data-trigger="focus"  data-placement="top" data-toggle="popover" href="#"
                                    data-content="<?php 
        echo $ei_delivery->getDescription();
        ?>
"  >
                                   <?php 
        echo MyFunction::troncatedText($ei_delivery->getDescription(), 100);
        ?>
                                    </a>
                                </td>
                                <td class="ei_delivery_updated_at">  <?php 
        echo $ei_delivery->getUpdatedAt();
        ?>
 </td>
                                <td class="ei_delivery_date"><?php 
        echo $ei_delivery->getDeliveryDate();
        ?>
 </td>
                            </tr>
                        <?php 
    }
    ?>
Esempio n. 18
0
            <td>
                <?php 
        $subject_show = $url_tab;
        $subject_show['subject_id'] = $ei_subject['id'];
        ?>
                <a href="<?php 
        echo url_for2('subject_show', $subject_show);
        ?>
"
                   class="tooltipObjTitle"   data-placement="right" data-toggle="tooltip"
                   data-original-title="<?php 
        echo $ei_subject['name'];
        ?>
">
                    <?php 
        echo MyFunction::troncatedText($ei_subject['name'], 50);
        ?>
                </a>
            </td>
            <td>
                <a class="tooltipUser"  data-toggle="tooltip" href="#" 
                   data-original-title="<?php 
        echo $ei_subject['sfGuardUser']['author_email'];
        ?>
">
                <?php 
        echo $ei_subject['sfGuardUser']['author_username'];
        ?>
 
                </a> 
            </td>
Esempio n. 19
0
            echo $path_to_node;
        }
        ?>
"
                   class="<?php 
        if (isset($urlParameters['is_step_context']) && $urlParameters['is_step_context']) {
            $linkcls = "";
            echo 'addStepInContent';
        }
        ?>
                          <?php 
        echo isset($urlParameters['is_edit_step_case']) && $urlParameters['is_edit_step_case'] ? 'majStepDataSet' : $linkcls;
        ?>
">
                    <?php 
        echo $img_node . ' ' . MyFunction::troncatedText($node_child->getName(), 17);
        ?>
                    <?php 
        if ($node_child->getType() == 'EiDataSetTemplate') {
            ?>
                    <input type="hidden" name="data_set_id" value="<?php 
            echo $node_child->getObjId();
            ?>
" class="data_set_id" />
                    <?php 
        }
        ?>
                    <input type="hidden" name="obj_id" value="<?php 
        echo $aux['ei_scenario_id'];
        ?>
" class="obj_id" />
Esempio n. 20
0
        <?php 
        $alert_conflict_class = "alert alert-warning alertConflictClass";
        ?>
        <?php 
    }
    ?>
        <a href="<?php 
    echo url_for2('showFunctionContent', $showFunctionContentUri);
    ?>
" target="_blank">
            <span class="<?php 
    echo $alert_conflict_class;
    ?>
 "> 
                <?php 
    echo MyFunction::troncatedText($migrateFunct['t_name'], 30);
    ?>
 
            </span>  
        </a>   
        
    </div>
    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 function_line_package" >
         <?php 
    if (isset($is_conflict) && $is_conflict) {
        ?>
        <!--On vérifie si le conflit  a déjà été résolu -->
        <?php 
        if (count($resolved_conflicts) > 0 && array_key_exists($url_tab['function_id'] . '_' . $url_tab['function_ref'] . '_' . $url_tab['delivery_id'], $resolved_conflicts)) {
            $resolved_conflicts_item = $resolved_conflicts[$url_tab['function_id'] . '_' . $url_tab['function_ref'] . '_' . $url_tab['delivery_id']]['profile'];
            $resolved_package_id = $resolved_conflicts[$url_tab['function_id'] . '_' . $url_tab['function_ref'] . '_' . $url_tab['delivery_id']]['package_id'];
Esempio n. 21
0
 public function evaluateSubBreadCamp(sfWebRequest $request, $act)
 {
     $getDeliveryCampaigns = $this->urlParameters;
     $getDeliveryCampaigns['delivery_id'] = $this->ei_delivery->getId();
     $this->breadcrumb[] = array('logo' => ei_icon('ei_campaign'), 'title' => 'Delivery Campaigns', 'uri' => $this->generateUrl('getDeliveryCampaigns', $getDeliveryCampaigns), 'active' => false, 'is_last_bread' => false, 'id' => "AccessDeliveryCampaignsOnBreadCrumb", 'class' => "");
     switch ($act) {
         case "getDeliveryCampaigns":
             $this->breadcrumb[] = array('logo' => '', 'title' => 'List', 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         case "index":
             $this->breadcrumb[] = array('logo' => '', 'title' => 'List', 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         case "new":
             $this->breadcrumb[] = array('logo' => '', 'title' => 'New ', 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         case "create":
             $this->breadcrumb[] = array('logo' => '', 'title' => 'Create', 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         case "edit":
             $this->checkEiDelivery($request, $this->ei_project);
             $this->breadcrumb[] = array('logo' => '', 'title' => MyFunction::troncatedText($this->ei_delivery, 20), 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         case "update":
             $this->checkEiDelivery($request, $this->ei_project);
             $this->breadcrumb[] = array('logo' => '', 'title' => MyFunction::troncatedText($this->ei_delivery, 20), 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         case "show":
             $this->checkEiDelivery($request, $this->ei_project);
             $this->breadcrumb[] = array('logo' => '', 'title' => MyFunction::troncatedText($this->ei_delivery, 20), 'uri' => '#', 'active' => true, 'is_last_bread' => true, 'id' => "", 'class' => "");
             break;
         default:
             break;
     }
 }
Esempio n. 22
0
        if (isset($ei_subject['subjectCampaigns']) && count($ei_subject['subjectCampaigns']) > 0) {
            $tnr = $ei_subject['subjectCampaigns'][0]['EiCampaign'];
            if (isset($tnr['tnr_coverage']) && $tnr['tnr_coverage'] != null) {
                echo $tnr['tnr_coverage'] . ' %';
            } else {
                echo '0 %';
            }
        } else {
            echo '0 %';
        }
        ?>
 
        </td>
        <td>

            <a class="tooltipUser unclickedLink" data-toggle="tooltip" href="#" 
               data-original-title=" <?php 
        echo $ei_subject['alternative_system_id'];
        ?>
">
    <?php 
        echo MyFunction::troncatedText($ei_subject['alternative_system_id'], 30);
        ?>
            </a> 
        </td>
        <?php 
    }
    ?>
    </tr>
<?php 
}
 public function setBreadcrumbTabItem($logo, $completeTitle, $uri = null, $active = null, $is_last_bread = null, $id = null, $class = null)
 {
     return array("logo" => ei_icon($logo), "title" => MyFunction::troncatedText($completeTitle, 20), "completeTitle" => $completeTitle, "uri" => $uri != null ? $uri : "#", "active" => $active != null ? $active : false, "is_last_bread" => $is_last_bread != null ? $is_last_bread : false, "id" => $id != null ? $id : "", "class" => $class != null ? $class : "");
 }
Esempio n. 24
0
        ?>
">
                       <?php 
        echo MyFunction::troncatedText($del, 50);
        ?>
                </a>
            </td>
            <td>
                <a href="#"
                   class="tooltipObjTitle"   data-placement="top" data-toggle="tooltip"
                   data-original-title="<?php 
        echo $del->getSfGuardUser()->getUsername();
        ?>
"> 
                       <?php 
        echo MyFunction::troncatedText($del->getSfGuardUser()->getUsername(), 25);
        ?>
                </a>
            </td>
            <td>
                <div class="row">
                    <div class="col-lg-11 col-md-11 col-sm-11 col-xs-11">
                       <div class="progress thin">
                            <?php 
        $perc = ($del->nbSub != 0 ? $del->nbSubOpen / $del->nbSub : 0) * 100;
        ?>
                            <?php 
        if ($perc < 25) {
            $progressClass = 'progress-bar-danger';
        }
        ?>
Esempio n. 25
0
            <a href="<?php 
        echo url_for2('getDeliverySubjects', $getDeliverySubjects);
        ?>
#" class="accessDelivery  " title="<?php 
        echo $openDelivery;
        ?>
"
                 data-content="Delivery date :  <?php 
        echo $openDelivery->getDeliveryDate();
        ?>
"  > 
                <?php 
        echo ei_icon('ei_delivery');
        ?>
                <span class="text">   
                    <small><?php 
        echo MyFunction::troncatedText($openDelivery, 17);
        ?>
</small>
                </span>
            </a>
        </li> 
    <?php 
    }
    ?>

</ul>
<?php 
}
?>
 
Esempio n. 26
0
<?php

$url_tab = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name);
$title = MyFunction::troncatedText($ei_project, 17);
$originalTitle = $ei_project;
include_partial('global/sideBarCurrentObject', array('title' => $title, 'icon' => 'ei_project', 'originalTitle' => $originalTitle, 'dataContent' => ''));
?>
 


<!--Livraisons ouvertes-->

<?php 
include_partial('global/openDeliveries', array('openDeliveries' => $openDeliveries, 'delivery_show_uri' => $url_tab));
?>
 
 
Esempio n. 27
0
        <?php 
        $alert_conflict_class = "alert alert-warning alertConflictClass";
        ?>
        <?php 
    }
    ?>
        <a href="<?php 
    echo url_for2('editVersionWithPackage', array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'package_id' => $scenarioToMigrate['s_package_id'], 'package_ref' => $scenarioToMigrate['s_package_ref'], 'ei_scenario_id' => $scenarioToMigrate['sc_id']));
    ?>
" target="_blank">
            <span class="<?php 
    echo $alert_conflict_class;
    ?>
 "> 
                <?php 
    echo MyFunction::troncatedText($scenarioToMigrate['sc_name'], 30);
    ?>
 
            </span>  
        </a>  
        
    </div>
    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 scenario_line_package" >
         <?php 
    if (isset($is_conflict) && $is_conflict) {
        ?>
        <!--On vérifie si le conflit  a déjà été résolu -->
        <?php 
        if (count($resolved_conflicts) > 0 && array_key_exists($url_tab['ei_scenario_id'] . '_' . $url_tab['delivery_id'], $resolved_conflicts)) {
            $resolved_conflicts_item = $resolved_conflicts[$url_tab['ei_scenario_id'] . '_' . $url_tab['delivery_id']]['profile'];
            $resolved_package_id = $resolved_conflicts[$url_tab['ei_scenario_id'] . '_' . $url_tab['delivery_id']]['package_id'];
Esempio n. 28
0
            ?>
" data-stats="<?php 
            echo $url_link;
            ?>
"  
           class="  <?php 
            if ($tree_child['type'] == 'Function') {
                echo "pop {$class_action}";
            }
            ?>
"   title="<?php 
            echo $tree_child['name'];
            ?>
"  >
               <?php 
            echo MyFunction::troncatedText($tree_child['name'], 40);
            ?>
        </a>
        <?php 
            $functionNodeDetailsUri = $urlParams;
            $functionNodeDetailsUri['tree_type'] = $tree_child['type'];
            $functionNodeDetailsUri['ei_tree_id'] = $tree_child['id'];
            $functionNodeDetailsUri['obj_id'] = $tree_child['obj_id'];
            $functionNodeDetailsUri['ref_obj'] = $tree_child['ref_obj'];
            ?>
        <a href="#" itemref="<?php 
            echo url_for2('functionNodeDetails', $functionNodeDetailsUri);
            ?>
" class="nodeMoreInf" style="visibility: hidden;"><i class="fa fa-lg fa-info-circle"></i></a>
        <a class="add_script_folder add_node_child" title="Create a new folder" alt="New Folder"  style="visibility: hidden;"
           href="<?php 
Esempio n. 29
0
        $getDeliverySubjects['delivery_id'] = $ei_delivery['d_delivery_id'];
        ?>
                                                        <a class="tooltipUser"  data-toggle="tooltip" 
                                                           href="<?php 
        echo url_for2('getDeliverySubjects', $getDeliverySubjects);
        ?>
" 
                                                           data-original-title="<?php 
        echo $ei_delivery['delivery_name'];
        ?>
">
        <?php 
        echo ei_icon('ei_delivery');
        ?>
        <?php 
        echo MyFunction::troncatedText($ei_delivery['delivery_name'], 25);
        ?>
  
                                                        </a>
    <?php 
    }
    ?>
 
                                                </td>
                                            </tr> 
                                            <tr>
                                                <th>External ID</th>
                                                <td><?php 
    echo $ei_subject_with_relation['alternative_system_id'];
    ?>
</td>