issue #0001773: Creating better interface

This commit is contained in:
Arman KYOKCHAN 2013-11-08 13:38:48 +00:00
parent 869ec8dc86
commit b6cd0fa8a3
2 changed files with 19 additions and 9 deletions

View File

@ -1,9 +1,15 @@
<div id="center">
<span style="float:right;margin-right:16px;">
<a style="color:#9C093A;cursor:help;" class="tooltip" title="<?php echo htmlentities($this->listeCommandes);?>">Total commande : <?php echo $this->total; ?> euros</a>
<a style="color:#9C093A;cursor:pointer;" class="totCom">Total commande : <?php echo $this->total; ?> euros</a>
</span>
<div class="dialog-form" title="Total commande">
<strong>Start Date: </strong>
<input type="text" class='datepicker' name="StartDate" value=""/>
<strong>End Date: </strong>
<input type="text" class='datepicker' name="EndDate" value="" /><br /><br />
<?php echo $this->listeCommandes;?></div>
<!-- <span style="color:#9C093A;margin-right:5px;float: right;">
<a style="cursor:help;" class="tooltip" title="<?php echo htmlentities($this->modification);?>">Dernières modifications au <?php echo date('d/m/Y'); ?></a>
<a style="cursor:help;" class="tooltip" title="<?php// echo htmlentities($this->modification);?>">Dernières modifications au <?php// echo date('d/m/Y'); ?></a>
</span> -->
<h1>Identite</h1>
<div class="paragraph">

View File

@ -36,6 +36,10 @@ $(document).ready( function()
$('select[name=LanguageCode]').fadeIn(500);
}
getPays();
$(function() {
$.datepicker.setDefaults( $.datepicker.regional[ "fr" ] );
$( ".datepicker" ).datepicker({ dateFormat: "yy-mm-dd" });
});
$('.idpr,.id_cr').on('click', function(){
//e.preventDefault();
var n = $(this).attr('id');
@ -84,19 +88,19 @@ $(document).ready( function()
.button();
});
$.mon_type = $('.mon_type').val();
$('.retr').on('click', function(e){
$('.retr,.totCom').on('click', function(e){
e.preventDefault();
var title = $(this).attr('title');
var href = $(this).attr('href');
var dlgOpts = {
bgiframe: true,
title: title,
height: 241,
width: 250,
height: 710,
width: 530,
modal: true,
buttons: {'Envoyer': function() {$(location).attr('href',href+'/InternalOrderId/'+$("[name=InternalOrderId]").val()+'/StartFrom/'+$("[name=StartFrom]").val()+'/monitor_type/'+$.mon_type);
$(".ui-dialog-buttonpane button:contains('Envoyer')").button("disable");},
'Fermer': function() { $(this).dialog('close'); }},
//buttons: {'Envoyer': function() {$(location).attr('href',href+'/InternalOrderId/'+$("[name=InternalOrderId]").val()+'/StartFrom/'+$("[name=StartFrom]").val()+'/monitor_type/'+$.mon_type);
// $(".ui-dialog-buttonpane button:contains('Envoyer')").button("disable");},
// 'Fermer': function() { $(this).dialog('close'); }},
close: function() { $(this).dialog('close'); }};
$('.dialog-form').dialog(dlgOpts);
return false;