issue #0001649: Start monitoring for monitoring client
This commit is contained in:
parent
45aaf0818f
commit
ceb36fcda5
@ -224,4 +224,12 @@ class GiantController extends Zend_Controller_Action
|
|||||||
} else
|
} else
|
||||||
$this->view->form = $this->getForm();
|
$this->view->form = $this->getForm();
|
||||||
}
|
}
|
||||||
|
public function startmonitoringAction()
|
||||||
|
{
|
||||||
|
$this->_helper->layout()->disableLayout();
|
||||||
|
$this->view->headLink()->appendStylesheet('/themes/default/styles/giant.css', 'all');
|
||||||
|
$this->view->lang = $this->getRequest()->getParam('lang');
|
||||||
|
$this->view->CompanyId = $this->getRequest()->getParam('CompanyId');
|
||||||
|
$this->view->values = $this->getRequest()->getParam('values');
|
||||||
|
}
|
||||||
}
|
}
|
@ -129,4 +129,12 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
|
|
||||||
|
|
||||||
|
<h1>Liste des monitoring<img style="margin-top:4px;float:right" src="/themes/default/images/giant/expanded.gif" ></h1>
|
||||||
|
|
||||||
|
<a class="dial" title="monitoring" href='/giant/startmonitoring/CompanyId/<?=$this->CompanyId?>/lang/<?=serialize($this->listeRapport->MonitoringOptions->MonitoringOption[0]->LanguageCodes->LanguageCode)?>'>Start monitoring</a>
|
||||||
|
<?php echo'<pre>';print_r($this->modification); ?>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
<div id="center">
|
||||||
|
<form>
|
||||||
|
<p>
|
||||||
|
<strong>CompanyId: </strong><?=$this->CompanyId?><br /><br />
|
||||||
|
|
||||||
|
<strong>LanguageCode: </strong><br />
|
||||||
|
<select name="LanguageCode" class="all_select">
|
||||||
|
<?php foreach (unserialize($this->lang) as $key=>$language):?>
|
||||||
|
<option class="lang<?=$key;?>" value=<?=$language;?>><?=$language;?></option>
|
||||||
|
<?php endforeach;?>
|
||||||
|
</select><br /><br />
|
||||||
|
<strong>CategoryName: </strong><br />
|
||||||
|
<select name="CategoryName" class="all_select">
|
||||||
|
<option value='All'>All</option>
|
||||||
|
<option value='CreditRecommendation'>CreditRecommendation</option>
|
||||||
|
</select><br /><br />
|
||||||
|
<strong>EventType: </strong><br />
|
||||||
|
<select name="EventType" class="all_select">
|
||||||
|
<option value='EventOnly'>EventOnly</option>
|
||||||
|
<option value='EventWithData'>EventWithData</option>
|
||||||
|
</select><br /><br />
|
||||||
|
<strong>PreferredStartDate: </strong><br />
|
||||||
|
<input type="text" id='datepicker' name="StartDate" value=""/> optional<br /><br />
|
||||||
|
<strong>PreferredEndDate: </strong><br />
|
||||||
|
<input type="text" id='datepicker1' name="EndDate" value="" /> optional<br /><br />
|
||||||
|
<strong>MonitoringVersion: </strong><br />
|
||||||
|
<input type="text" name="CategoryName" value="1.0" required /><br /><br />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="/themes/default/scripts/giant_monitoring.js" />
|
@ -70,7 +70,7 @@ Class GiantFunction
|
|||||||
$array[$valeur[0]][] = $valeur[1];
|
$array[$valeur[0]][] = $valeur[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$html = '<fieldset><legend><center><b>Modifications au '.date('d/m/Y').'</b></center></legend><br />';
|
//$html = '<fieldset><legend><center><b>Modifications au '.date('d/m/Y').'</b></center></legend><br />';
|
||||||
$html .= '<ol style="list-style:none">';
|
$html .= '<ol style="list-style:none">';
|
||||||
foreach($array as $name => $ar) {
|
foreach($array as $name => $ar) {
|
||||||
$html .= '<li><b>'.$name.' :</b></li>';
|
$html .= '<li><b>'.$name.' :</b></li>';
|
||||||
|
@ -1,5 +1,25 @@
|
|||||||
$(document).ready( function()
|
$(document).ready( function()
|
||||||
{
|
{
|
||||||
|
$('a.dial').on('click', function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
var title = $(this).attr('title');
|
||||||
|
var href = $(this).attr('href');
|
||||||
|
var dlgOpts = {
|
||||||
|
bgiframe: true,
|
||||||
|
title: title,
|
||||||
|
width: 710,
|
||||||
|
height: 530,
|
||||||
|
modal: true,
|
||||||
|
open: function(event, ui) {
|
||||||
|
$(this).html('Chargement...');
|
||||||
|
$(this).load(href);
|
||||||
|
},
|
||||||
|
buttons: {'Fermer': function() { $(this).dialog('close'); }},
|
||||||
|
close: function() { $('#dial').remove(); }};
|
||||||
|
$('<div id="dial"></div>').dialog(dlgOpts);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
$('.idpr,.id_cr').on('click', function(){
|
$('.idpr,.id_cr').on('click', function(){
|
||||||
//e.preventDefault();
|
//e.preventDefault();
|
||||||
var n = $(this).attr('id');
|
var n = $(this).attr('id');
|
||||||
@ -40,4 +60,6 @@ $(document).ready( function()
|
|||||||
$(".lang").attr("src","/themes/default/images/drapeaux/"+this.value+".png");
|
$(".lang").attr("src","/themes/default/images/drapeaux/"+this.value+".png");
|
||||||
$('.'+$.alink+'').fadeIn(500);
|
$('.'+$.alink+'').fadeIn(500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
39
public/themes/default/scripts/giant_monitoring.js
Normal file
39
public/themes/default/scripts/giant_monitoring.js
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
function validate() {
|
||||||
|
$("[required]").each(function() {
|
||||||
|
if (!$(this).val()) {
|
||||||
|
$(this).addClass('brsr');
|
||||||
|
} else {
|
||||||
|
$(this).removeClass('brsr');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
$('[required]').blur(function() {
|
||||||
|
validate();
|
||||||
|
});
|
||||||
|
$(document).ready(function() {
|
||||||
|
validate();
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
$("#datepicker").datepicker($.datepicker.regional[ "fr" ]);
|
||||||
|
});
|
||||||
|
$(function() {
|
||||||
|
$("#datepicker1").datepicker($.datepicker.regional[ "fr" ]);
|
||||||
|
});
|
||||||
|
$('#dial').dialog({ buttons: [
|
||||||
|
{ text: "Valider", click: function() {
|
||||||
|
var values = $(this).find('form').serialize();
|
||||||
|
$.post('/giant/startmonitoring', values, function(data) {
|
||||||
|
$('#dial').html(data);
|
||||||
|
alert(data);
|
||||||
|
});
|
||||||
|
|
||||||
|
}},
|
||||||
|
{ text: "Fermer", click: function() {
|
||||||
|
if($(".message p").text()=='Cut-off mis à jour.') { location.reload(); }
|
||||||
|
$(this).dialog('close');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
] });
|
||||||
|
});
|
||||||
|
|
||||||
|
|
@ -271,3 +271,12 @@
|
|||||||
float:right;
|
float:right;
|
||||||
margin-left:3px;
|
margin-left:3px;
|
||||||
}
|
}
|
||||||
|
.brsr {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:red;
|
||||||
|
}
|
||||||
|
.all_select
|
||||||
|
{
|
||||||
|
width: 140px;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user