Example #1
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;
     }
 }
Example #2
0
 public function executeSideBarHeaderObject(sfWebRequest $request)
 {
     $this->checkProject($request);
     //Récupération du projet
     $this->checkProfile($request, $this->ei_project);
     $this->ei_scenario_id = $request->getParameter('ei_scenario_id');
     /** @var EiUser $user */
     $user = $this->getUser()->getGuardUser()->getEiUser();
     $this->user_settings = Doctrine_Core::getTable('EiUserSettings')->findOneByUserRefAndUserId($user->getRefId(), $user->getUserId());
     $this->firefox_path = $this->user_settings == null ?: $this->user_settings->getFirefoxPath();
     if ($this->ei_scenario_id) {
         $this->ei_scenario = Doctrine_Core::getTable('EiScenario')->find(array($request->getParameter('ei_scenario_id')));
         if ($this->ei_scenario != null) {
             //Recherche de la version courante du scénario
             $this->getEiVersion($request->getParameter('ei_version_id'));
             //Récupération de la version du scénario correspondant au profil courant
             $this->defaultVersion = $this->ei_scenario->getVersionForProfil($this->ei_profile);
         }
     }
     $this->mod = $request->getParameter('module');
     $this->act = $request->getParameter('action');
     $this->objMenu = array();
     switch ($this->mod) {
         case 'eiversion':
             switch ($this->act) {
                 case 'index':
                 case 'new':
                 case 'create':
                     $projet_new_eiversion = $this->urlParameters;
                     $projet_new_eiversion['ei_scenario_id'] = $this->ei_scenario->getId();
                     $projet_new_eiversion['action'] = 'index';
                     $this->objTitle = 'Versions';
                     $this->logoTitle = ei_icon('ei_version');
                     $this->objMenu[] = array('logo' => ei_icon('ei_list'), 'title' => 'List', 'uri' => $this->generateUrl('projet_new_eiversion', $projet_new_eiversion) . '#', 'active' => $this->mod == 'eiversion' && $this->act == 'index' ? true : false, 'class' => "", 'id' => "", 'tab' => '', 'titleAttr' => "Scenario versions");
                     $projet_new_eiversion['action'] = 'new';
                     $this->objMenu[] = array('logo' => ei_icon('ei_add'), 'title' => 'New', 'uri' => $this->generateUrl('projet_new_eiversion', $projet_new_eiversion) . '#', 'active' => $this->mod == 'eiversion' && ($this->act == 'new' || $this->act == 'create') ? true : false, 'class' => "", 'id' => "", 'tab' => '', 'titleAttr' => "New scenario version");
                     break;
                     break;
                     break;
                 case 'edit':
                 case 'update':
                 case 'show':
                 case 'editVersionWithPackage':
                     $this->objTitle = $this->ei_version->getLibelle();
                     $this->logoTitle = ei_icon('ei_version');
                     $this->objMenu[] = array('logo' => '<i class="fa fa-wrench"></i>', 'title' => 'Properties', 'uri' => '#informations', 'active' => false, 'class' => "", 'tab' => 'tab', 'id' => "versionProp", 'titleAttr' => "Version properties");
                     $this->objMenu[] = array('logo' => ei_icon('ei_version'), 'title' => 'Structure', 'uri' => '#block', 'active' => $this->mod == 'eiversion' && ($this->act == 'edit' || $this->act == 'update' || $this->act == 'show') ? true : false, 'class' => "", 'id' => "versionStructure", 'tab' => 'tab', 'titleAttr' => "Version structure");
                     break;
                     break;
                     break;
                     break;
                 default:
                     break;
             }
             break;
         default:
             break;
     }
 }
Example #3
0
 public function executeSideBarHeaderObject(sfWebRequest $request)
 {
     $this->checkProject($request);
     //Récupération du projet
     $this->checkProfile($request, $this->ei_project);
     $this->checkEiScenario($request, $this->ei_project);
     $this->mod = $request->getParameter('module');
     $this->act = $request->getParameter('action');
     $this->objMenu = array();
     switch ($this->mod) {
         case 'eidataset':
             switch ($this->act) {
                 case 'edit':
                 case 'update':
                     $this->urlExcelRequest = url_for2("api_generate_excel_request_api", array('project_id' => $this->project_id, 'project_ref' => $this->project_ref, 'profile_id' => $this->profile_id, 'profile_ref' => $this->profile_ref, 'profile_name' => $this->profile_name));
                     $urlOpenDataSetXml = url_for2("eidataset_download", array('project_id' => $this->project_id, 'project_ref' => $this->project_ref, 'profile_id' => $this->profile_id, 'profile_ref' => $this->profile_ref, 'profile_name' => $this->profile_name, 'ei_data_set_id' => $this->ei_data_set->getId(), 'sf_format' => "xml"));
                     $this->objTitle = $this->ei_data_set->getEiDataSetTemplate()->getName();
                     $this->logoTitle = ei_icon('ei_dataset');
                     $this->objMenu[] = array('logo' => '<i class="fa fa-wrench"></i>', 'title' => 'Properties', 'uri' => '#datasetProperties', 'active' => true, 'class' => "", 'tab' => 'tab', 'id' => "datasetPropertiesTab", 'titleAttr' => "Data set properties");
                     $this->objMenu[] = array('logo' => '<i class="fa fa-code"></i>', 'title' => 'Sources', 'uri' => '#datasetSource', 'active' => false, 'class' => "", 'id' => "datasetSourceTab", 'tab' => 'tab', 'titleAttr' => "Data set XML source");
                     $this->objMenu[] = array('logo' => ei_icon('ei_version'), 'title' => 'Versions', 'uri' => '#datasetVersions', 'active' => false, 'class' => "", 'id' => "datasetVersionsTab", 'tab' => 'tab', 'titleAttr' => "Data set versions");
                     //                        $this->objMenu[] = array(
                     //                            'logo' =>     ei_icon("ei_testset"),
                     //                            'title' => 'Reports',
                     //                            'uri' => '#datasetReports',
                     //                            'active' => false,
                     //                            'class' => "",
                     //                            'id' => "datasetReportsTab",
                     //                            'tab' => 'tab',
                     //                            'titleAttr' => "Data set reports");
                     $this->objMenu[] = array('logo' => '<i class="fa fa-download"></i>', 'title' => '', 'uri' => $urlOpenDataSetXml, 'active' => false, 'class' => "", 'id' => "datasetDownloadTab", 'titleAttr' => "Download data set");
                     $this->objMenu[] = array('logo' => '<img src="' . sfConfig::get("app_icone_excel_24x24_path") . '" alt="" width="20" title="Open data set in Excel" class="excel-icon-img disabledOracle" />', 'title' => '', 'uri' => $this->urlExcelRequest, 'active' => false, 'class' => "excel-open-jdd excelIcon", 'id' => "datasetOpenInExcelTab", 'titleAttr' => "Open in Excel", 'data-id' => $this->ei_data_set->getId());
                     $this->objMenu[] = array('logo' => '<i class="fa fa-times"></i>', 'title' => '', 'uri' => '#', 'active' => false, 'class' => "btn-close", 'id' => "datasetCloseTab", 'tab' => 'tab', 'titleAttr' => "Close Data set");
                     break;
                 default:
                     break;
             }
             break;
         default:
             break;
     }
 }
Example #4
0
 public function getPathTo(array $breadcrumb, EiProjet $ei_project, EiProfil $ei_profile)
 {
     $chemin = $this->getNode()->getPathTo();
     $base_uri = array('project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId(), 'profile_id' => $ei_profile->getProfileId(), 'profile_ref' => $ei_profile->getProfileRef(), 'profile_name' => $ei_profile->getName());
     foreach ($chemin as $i => $node) {
         if ($node->getType() == 'EiFolder') {
             $path_folder = $base_uri;
             $path_folder['folder_id'] = $node->getObjId();
             $path_folder['node_id'] = $node->getId();
             $path_folder['action'] = 'edit';
             $uri = url_for2('path_folder', $path_folder);
             $logo = ei_icon('ei_folder', null, null, null, 'ei-folder');
         } else {
             $logo = ei_icon('ei_scenario');
             $projet_new_eiversion = $base_uri;
             $projet_new_eiversion['ei_scenario_id'] = $node->getObjId();
             $projet_new_eiversion['action'] = 'editVersionWithoutId';
             $uri = url_for2('projet_new_eiversion', $projet_new_eiversion);
         }
         $breadcrumb[] = array('logo' => $logo, 'title' => $node, 'uri' => $uri, 'active' => false, 'is_last_bread' => false);
     }
     return $breadcrumb;
 }
Example #5
0
                    <div class=" form-group  "> 
                        <label class="control-label col-lg-2 col-md-2">Data set</label>
                        <div class="col-lg-9 col-md-9  "> 
                            <input class="form-control" id="appendedInputDataSetButton" type="text" disabled="disabled"
                                    value="<?php 
if ($form['ei_data_set_id']->getValue() != null) {
    echo $form->getObject()->getBugContextJdd();
}
?>
">
                            
                        </div>
                        <div class="col-lg-1 col-md-1  ">
                            <button class="btn btn-default" id="campaignGraphDataSetSearch" type="button">
                                <?php 
echo ei_icon('ei_search');
?>
                            </button>
                        </div>
                     </div> 
                    <div id="campaignGraphDataSetAddBox"> 
                        <div id="arbre_jdd">
                            <?php 
if (!$form->getObject()->isNew() && $form->getObject()->getBugContextScenario() != null) {
    $ei_node = $form->getObject()->getBugContextScenario()->getNode();
    $ei_data_set_root_folder = Doctrine_Core::getTable('EiNode')->findOneByRootIdAndType($ei_node->getId(), 'EiDataSetFolder');
    $ei_data_set_children = Doctrine_Core::getTable('EiNode')->findByRootId($ei_data_set_root_folder->getId());
    //Construction du tableau de paramètres du partiel
    $testSuiteJddRootFolder = $url_params;
    $testSuiteJddRootFolder['ei_data_set_children'] = $ei_data_set_children;
    $testSuiteJddRootFolder['ei_data_set_root_folder'] = $ei_data_set_root_folder;
 List
                    </a>
                </li>
                <li class=" subjectItem <?php 
    if (isset($activeItem) && $activeItem == 'New') {
        echo 'active';
    }
    ?>
">
                    <a class=" btn btn-sm " href="<?php 
    echo url_for2('subject_new', $url_tab);
    ?>
#"
                       title="New intervention" id="AccessBugsListOnHeader">
                        <?php 
    echo ei_icon('ei_subject');
    ?>
 New intervention
                    </a>
                </li>
<!--                <li class="<?php 
    //if(isset($activeItem) && $activeItem=='stateList'  ): echo 'active' ; endif;
    ?>
">
                    <a class=" btn btn-sm " href="<?php 
    //echo url_for2('bug_state', $url_tab)
    ?>
#" id="adminBugssStates">
                        <i class="fa fa-genderless"></i> States
                    </a>
                </li>-->
Example #7
0


<?php 
    if (isset($url_tab)) {
        ?>
<!--
 * Box de création et edition d'une itération
-->
<div id="iterationModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3 id="iterationModalTitle" ><?php 
        echo ei_icon('ei_iteration');
        ?>
 Iteration properties</h3> 
                <i class="eiLoading" ></i>
            </div>
            <div class="modal-body" id="iterationModalContent">

            </div>
            <div class="modal-footer">
                <button class="btn btn-sm btn-success pull-right" id="saveIteration" type="submit">
                    <i class="fa fa-check"></i> Save
                </button>
                <a href="#" class="btn btn-sm btn-danger" data-dismiss="modal" aria-hidden="true">
                    Close
                </a> 
            </div>
            ?>
</td>
            <td >  <?php 
            echo ei_icon('ei_user');
            ?>
 <?php 
            echo $history['uau_username'];
            ?>
</td>
            <td>
                <i class="fa <?php 
            echo $history['sah_is_assignment'] ? 'fa-plus text-success' : 'fa-minus text-danger';
            ?>
"></i></i> 
                <?php 
            echo ei_icon('ei_user');
            ?>
 <?php 
            echo $history['uas_username'];
            ?>
            </td>
             
        </tr>
        <?php 
        }
        ?>
        <?php 
    }
    ?>
    </tbody> 
</table> 
Example #9
0
 
<div class="panel panel-default eiPanel">
    <div class="panel-heading">
        <h2> 
            <?php 
if (!$form->getObject()->isNew()) {
    ?>
            <?php 
    echo ei_icon('ei_edit');
    ?>
 Edit
            <?php 
} else {
    ?>
            <h2><strong><i class="fa fa-wrench"></i>Properties </strong> /  <?php 
    echo ei_icon('ei_edit');
    ?>
  </h2>
            <?php 
}
?>
        </h2>
        <div class="panel-actions"> 
        </div>
    </div>
    <form id="campaignForm"  action="<?php 
echo url_for2($url_form, $url_params);
?>
" 
                method="post" <?php 
$form->isMultipart() and print 'enctype="multipart/form-data" ';
if (isset($ei_iteration)) {
    ?>
 
                <li class="<?php 
    if (isset($activeItem) && $activeItem == 'statistics') {
        echo 'active';
    }
    ?>
">
                    <?php 
    $it_stats_uri = $url_tab;
    $it_stats_uri['action'] = "statistics";
    ?>
                    <a class=" btn btn-sm " href="<?php 
    echo url_for2('ei_iteration_actions', $it_stats_uri);
    ?>
#" id="AccessIterationStatsOnHeader" title="Iteration statistics">
                        <?php 
    echo ei_icon('ei_stats');
    ?>
 Statistics
                    </a>
                </li>
                <?php 
}
?>
            </ul>
        </div>    


 
Example #11
0
        </li> 
        <?php 
        }
        ?>
  
            <?php 
        $defaultIntLinkParams = $url_tab;
        $defaultIntLinkParams['defaultIntervention'] = isset($defaultIntervention) ? $defaultIntervention : null;
        include_partial('eisubject/defaultIntLink', $defaultIntLinkParams);
        ?>
 
    </ul> 
    <?php 
    }
    ?>
</div>	
<div id="supportContact">
    <strong><?php 
    echo ei_icon('ei_mail');
    ?>
&nbsp;support@eisge.com</strong><br/>
    <strong><?php 
    echo ei_icon('ei_phone');
    ?>
&nbsp;+33 9 707 3 4 5 6 7</strong>
</div>
<?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">
Example #13
0
                </a>

                <ul class="dropdown-menu open" id="webDriverDropdown">
                    <?php 
    /*foreach( EiDeviceUserTable::getMyDevices($sf_user->getEiUser()->getUserId()) as $device ){
          include_partial("eiscenario/deviceChoice", array("device" => $device));
      }*/
    EiDevice::displayDevicesList($sf_user->getEiUser()->getUserId());
    ?>
                </ul>
            </div>

            <div class="text" id="btnSwitchExecutionMenuContainer">
                <a href="#" title="Open/Close execution menu" id="btnSwitchExecutionMenu">
                    <?php 
    echo ei_icon('ei_user_settings', '', 'fa-2x');
    ?>
                </a>
            </div>
            
            <div class="text">
                <span class="hidden-sm hidden-xs hidden-md hidden-lg">Play</span>
                <a href="#" title="Play scenario" class="disabledOracle" id="btnPlayScenarioInIde" data-player-jdd="<?php 
    echo $idJdd;
    ?>
"
                   data-player-id="<?php 
    echo $ei_scenario->getId();
    ?>
" data-player-nom="<?php 
    echo $ei_scenario->getNomScenario();
Example #14
0
<li id="eiProjectCurrentSubjectLi">
<?php 
if (isset($defaultIntervention) && $defaultIntervention != null) {
    $url_tab = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name);
    $subject_show_uri = $url_tab;
    $subject_show_uri['subject_id'] = $defaultIntervention['subject_id'];
    ?>
    <a href="<?php 
    echo url_for2('subject_show', $subject_show_uri);
    ?>
#" id="eiProjectCurrentSubject" class="btn btn-link col-lg-5 col-md-5" >
    <?php 
    echo ei_icon('ei_subject', 'lg');
    ?>
   <?php 
    echo 'S ' . $defaultIntervention['subject_id'];
    ?>
    </a>
<?php 
}
?>
</li>
Example #15
0
<?php

if (isset($form) && isset($url_form) && $inParameters && isset($outParameters)) {
    ?>
<div class="panel panel-default eiPanel " id="versionNoticeForm" > 
            <div class="panel-heading"> 
                <h2><?php 
    echo ei_icon('ei_properties');
    ?>
Properties</h2> 
            </div> 
        <div class="panel-body clearfix" id="versionNoticeFormContent">  
            <?php 
    include_partial('eiversionnotice/form', array('form' => $form, 'url_form' => $url_form, 'inParameters' => $inParameters, 'outParameters' => $outParameters));
    ?>
 
        </div>	 
        <div class="panel panel-footer">
            <div class="row"> 
                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-3">
                    <a class="btn btn-success" id="saveVersionNotice" href="#">
                        <i class="fa fa-check"></i> Save
                    </a>
                </div>
                <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1"><i id="noticeLoader" ></i></div>
                <div class="col-lg-9 col-md-9 col-sm-9 col-xs-8" id="alertNoticeMsg" > 
                    <div class=" row alert alert-success" ><strong>Well done!</strong> datas successfully saved...  </div>
                    <div class="row alert alert-danger"><strong>Warning !</strong>Errors in form. datas wasn't saved...  </div>
                    
                </div>
            </div>
Example #16
0
<?php

$url_params = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name, 'subject_id' => $subject_id);
?>
 
<?php 
$url_form = $url_params;
$url_form['form'] = $form;
?>
<div id="subjectContent" class="row">
    <div class="panel panel-default eiPanel" id="subjectCampaignsList">
        <div class="panel-heading">
            <h2>
                <?php 
echo ei_icon('ei_campaign');
?>
                <span class="break"></span> Add Subject campaigns
            </h2>
            <div class="panel-actions">  
            </div>
        </div>
        <div class="panel-body"> 
            <?php 
include_partial('form', $url_form);
?>
        </div> 
    </div>   
</div> 
 
Example #17
0
            <?php 
echo html_entity_decode($ei_subject_solution->getSolution(), ENT_QUOTES, "UTF-8");
?>
            </div>
        </div>
    </div>
    <div class="panel panel-default eiPanel" >
        <div class="panel-heading">
            <h2>
                <i class="fa fa-upload"></i>
                <span class="break"></span>  Solution attachments
            </h2>
            <div class="panel-actions">
                <a href="#uploadAttachment" role="button" class="btn-default" data-toggle="modal">
                    <?php 
echo ei_icon('ei_add');
?>
                </a> 
            </div>
        </div>
        <div class="panel-body">   
            <?php 
include_partial('eisubjectattachment/list', $eisubjectattachment_list);
?>
 
        </div>
    </div>
    
    
    
    
Example #18
0
?>
  </h2>
            <div class="panel-actions">
                <?php 
if (!$form->getObject()->isNew()) {
    ?>
                <?php 
    $delivery_show = $url_params;
    $delivery_show['action'] = 'show';
    ?>
                    <a class=" btn-default " href="<?php 
    echo url_for2('delivery_edit', $delivery_show);
    ?>
"> 
                        <?php 
    echo ei_icon('ei_show');
    ?>
 
                    </a> 
                <?php 
}
?>
 
            </div>
        </div> 

        <div class="panel-body dateTimePickerFix"> 
            <div class="row">
            <?php 
echo $form->renderHiddenFields(false);
?>
    echo url_for2('setDefaultPackage', array('action' => 'setDefaultPackage', 'project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId()));
    ?>
" title="Define default package">
                <i class="fa fa-apple"></i> Define default package
            </a>
        </li> 
        <li  class="<?php 
    echo $mod == 'eiuser' && ($act == "projectProfiles" || $act == "setUserDefaultProfile") ? 'active' : '';
    ?>
"> 
            <a id="projectProfilesLink" class="btn btn-sm" href="<?php 
    echo url_for2('projectProfiles', array('project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId(), 'action' => 'projectProfiles'));
    ?>
" title="Project Environments ">
                <?php 
    echo ei_icon("ei_profile");
    ?>
 Environments
            </a>
        </li>
<!--        <li  class="<?php 
    //echo (($mod=='eiuserparam' && $act=="index")?'active':'')
    ?>
"> 
            <a id="goToUserParams" class="btn btn-sm" href="<?php 
    //echo url_for('eiuserparam/index')
    ?>
" title="User parameters">
                <i class="fa fa-gear"></i> User parameters
            </a>
        </li>-->
Example #20
0
<?php

$url_params = array('project_id' => $project_id, 'project_ref' => $project_ref, 'profile_id' => $profile_id, 'profile_ref' => $profile_ref, 'profile_name' => $profile_name);
?>
   
<div id="campaignList" class="row ">
    <div class="panel panel-default eiPanel">
            <div class="panel-heading">
                <h2><?php 
echo ei_icon('ei_list');
?>
 List </h2>
                <div class="panel-actions"> 
                </div>
            </div>
            <div class="panel-body">
                <?php 
$pagerMenu = $url_params;
$pagerMenu['current_page'] = $current_page;
$pagerMenu['nb_pages'] = $nb_pages;
$pagerMenu['nbEnr'] = $nbEnr;
$pagerMenu['max_campaign_per_page'] = $max_campaign_per_page;
?>
 
                <?php 
if ($pagerMenu['nbEnr'] >= 10) {
    include_partial('eicampaign/pagerMenu', $pagerMenu);
}
?>
 
            </div>
Example #21
0
 public static function getPathToTreeNode($node, $url_tab)
 {
     $img_node = "";
     $path_to_node = "";
     if ($node != null) {
         switch ($node->getType()) {
             case 'EiScenario':
                 $img_node = ei_icon('ei_scenario', null, 'ei-scenario');
                 $path_to_node = '@projet_new_eiversion?ei_scenario_id=' . $node->getObjId() . '&profile_name=' . $url_tab['profile_name'] . '&profile_id=' . $url_tab['profile_id'] . '&profile_ref=' . $url_tab['profile_ref'] . '&project_id=' . $url_tab['project_id'] . '&project_ref=' . $url_tab['project_ref'] . '&action=editVersionWithoutId';
                 break;
             case 'EiFolder':
                 $img_node = ei_icon('ei_folder', null, 'ei-folder');
                 $path_to_node = '@path_folder?folder_id=' . $node->getObjId() . '&node_id=' . $node->getId() . '&project_id=' . $url_tab['project_id'] . '&project_ref=' . $url_tab['project_ref'] . '&profile_id=' . $url_tab['profile_id'] . '&profile_ref=' . $url_tab['profile_ref'] . '&profile_name=' . $url_tab['profile_name'] . '&action=edit';
                 break;
             default:
                 break;
         }
     }
     return array("img_node" => $img_node, "path_to_node" => $path_to_node);
 }
echo url_for2('showDeliveryCampaigns', $showDeliveryCampaigns);
?>
" ></i>
                </h6> 

            </div>
            <div class='col-lg-7 col-md-7 col-sm-7'>
                <?php 
if (isset($ei_delivery) && $ei_delivery != null) {
    ?>
                <h6>
                    <strong title="<?php 
    echo $ei_delivery;
    ?>
"> <?php 
    echo ei_icon('ei_delivery');
    ?>
 &nbsp;  
                        <?php 
    echo $ei_delivery;
    ?>
                    </strong> 
                </h6>
                <?php 
}
?>
            </div>
            <div class='col-lg-2 col-md-2 col-sm-2'>
                <?php 
if (isset($ei_delivery) && $ei_delivery != null) {
    ?>
Example #23
0
    ?>
                <a href="<?php 
    echo url_for2('create_folder', $create_folder);
    ?>
" 
                   class="add_folder add_node_child" alt="New Folder" title="Create a new folder"> 
                     
                    <?php 
    echo ei_icon('ei_folder_open', 'lg', null, null, 'ei-folder', ei_icon('ei_add', null, null, null, 'ei-add-scenario-top'));
    ?>
                    
                </a>
                 <a href="#" class="add_scenario add_node_child" alt="New" title="Create a new test suit"> 
                      
                     <?php 
    echo ei_icon('ei_scenario', 'lg', null, null, 'ei-scenario', ei_icon('ei_add', null, null, null, 'ei-add-scenario-top'));
    ?>
                     
                 </a>
                 <?php 
}
?>
        </li>
        <li>
            <ul class="node_diagram">  </ul>
        </li>
        
        
    </ul> 
    
</li>
Example #24
0
            ?>
                  <?php 
        }
        ?>
                
                <?php 
    }
    ?>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="4">
                        <a href="<?php 
    echo url_for2('addParamField', array('paramType' => 'OUT'));
    ?>
"
                           class="btn btn-xs btn-success addKalParamField">
                            <?php 
    echo ei_icon('ei_add', 'lg');
    ?>
                        </a>
                    </td> 
                </tr>
            </tfoot>
        </table> 
    </div>
    <?php 
}
?>
</form>
Example #25
0
                    </td>
                    <td>
                        <?php 
            //Url de gestions des statistiques de fonction
            $tab_stats = $url_tab;
            $tab_stats['function_id'] = $ex['function_id'];
            $tab_stats['function_ref'] = $ex['function_ref'];
            $tab_stats['action'] = 'statistics';
            ?>
 
                            <a href="<?php 
            echo url_for2('functionActions', $tab_stats);
            ?>
" title="Function reports..."  target="_blank">
                                <?php 
            echo ei_icon('ei_function');
            ?>
 <?php 
            echo $ex['function_name'];
            ?>
                             </a> 
                    </td>
                    <td><?php 
            echo $ex['criticity'];
            ?>
</td>
                    <td><?php 
            echo $ex['nbBugs'];
            ?>
</td>
                    <td><?php 
"/>
    <input type="hidden" class="current_profile_migration_ref" value="<?php 
    echo $current_profile->getProfileRef();
    ?>
"/>
    <input type="hidden" class="current_profile_migration_name" value="<?php 
    echo $current_profile->getName();
    ?>
"/> 
    <ul class="dropdown-menu">
            <?php 
    foreach ($ei_profiles as $ei_profile) {
        ?>
                <li>
                    <?php 
        echo link_to2(ei_icon('ei_profile') . ' ' . $ei_profile->getTroncatedName(20), 'changeProfileForMigrationDelivery', array('profile_id' => $ei_profile->getProfileId(), 'profile_ref' => $ei_profile->getProfileRef(), 'project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId(), 'delivery_id' => $ei_delivery->getId(), 'migrationCase' => isset($migrationCase) ? $migrationCase : null), array('class' => $classButton));
        ?>
                     
                </li>
            <?php 
    }
    ?>
    </ul> 
  </div>
  <a href="<?php 
    echo url_for2($uri_name, array('profile_id' => $current_profile->getProfileId(), 'profile_ref' => $current_profile->getProfileRef(), 'project_id' => $ei_project->getProjectId(), 'project_ref' => $ei_project->getRefId(), 'delivery_id' => $ei_delivery->getId()));
    ?>
"
                      class="btn btn-success btn-sm" id="<?php 
    echo $idButton;
    ?>
Example #27
0
    ?>
            </button>  
        <?php 
    if (isset($ei_scenario_package) && $ei_scenario_package != null) {
        ?>
        <?php 
        $editVersion = $paramsForUrl;
        $editVersion['action'] = 'edit';
        $editVersion['ei_version_id'] = $ei_scenario_package->getEiVersionId();
        $urlActionEditVersion = url_for2('projet_edit_eiversion', $editVersion);
        ?>
        <a href="<?php 
        echo $urlActionEditVersion;
        ?>
" class="btn btn-sm btn-link "> 
            <?php 
        echo ei_icon('ei_version');
        ?>
            Go to Associate version
        </a>
        <?php 
    }
    ?>
    </div>
    <?php 
}
?>
 
</div>  
</form>
            </div> 
        <div class="panel-body clearfix">  
            <?php 
    if (isset($activesProfilesForNoticeVersion) && count($activesProfilesForNoticeVersion) > 0) {
        ?>
            <?php 
        foreach ($activesProfilesForNoticeVersion as $actProfile) {
            ?>
 
            <span class="label <?php 
            echo isset($actProfile['version_notice_id']) && $actProfile['version_notice_id'] != null ? 'label-success' : 'label-default';
            ?>
"
                  style="margin-left:5px; margin-right:5px;padding:3px;">
               <?php 
            echo ei_icon('ei_profile');
            ?>
 <?php 
            echo $actProfile['name'];
            ?>
            </span> 
            <?php 
        }
        ?>
            <?php 
    }
    ?>
        </div>	 
    </div>
<?php 
}
Example #29
0
            </div>
            <div class="modal-body "><!--modal-body-visible-overflow-->
                <?php 
echo "You are about to delete version <strong>" . $ei_version->getLibelle() . "</strong>.<br/> Do you really want to delete " . $ei_version->getLibelle() . " ?";
?>
            </div>
            <div class="modal-footer">
                <a href="#!" class="btn btn-default" data-dismiss="modal">
                   <i class="fa fa-times-circle-o"></i>  Cancel
                </a>   
                <a  id="delete_version" href="<?php 
echo url_for2("projet_edit_eiversion", $paramsForDelete);
?>
" class="btn btn-danger"> 
                    <?php 
echo ei_icon('ei_delete');
?>
 Delete
                </a>
            </div>
        </div>
    </div>
</div>
<div id="create_version_clone_modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="create_version_clone_modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3><i class="fa fa-copy"></i> Copy scénario version</h3> 
            </div>
            <div class="modal-body ">
 " class="label">
                        <?php 
        echo $graphsResults[$tsId]["status_nom"];
        ?>
                    </span>
                    <?php 
    }
    ?>
                </td>
                <td>
                    <?php 
    if ($isTs) {
        ?>

                    <?php 
        echo link_to2(ei_icon('ei_show'), 'eitestset_oracle', array('project_id' => $project_id, 'project_ref' => $project_ref, 'ei_scenario_id' => $graph->getEiScenario()->getId(), 'ei_test_set_id' => $graph->getEiTestSet()->getId(), 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref), array('target' => '_blank', 'title' => 'Oracle'));
        ?>

                    &nbsp;&nbsp;
                    <?php 
        echo link_to2('<i class="fa fa-code fa-lg"></i>', "eitestset_oracle_download", array('project_id' => $project_id, 'project_ref' => $project_ref, 'ei_scenario_id' => $graph->getEiScenario()->getId(), 'ei_test_set_id' => $graph->getEiTestSet()->getId(), 'sf_format' => "xml", 'profile_name' => EiProfil::slugifyProfileName($profile_name), 'profile_id' => $profile_id, 'profile_ref' => $profile_ref), array('target' => '_blank', 'title' => 'XML logs'));
        ?>
                    &nbsp;&nbsp;
                    <a href="<?php 
        echo $urlExcelRequest;
        ?>
" data-id="<?php 
        echo $graph->getEiTestSet()->getId();
        ?>
" title="Excel" class="excel-open-logs excelIcon">
                        <img src="<?php