IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Ext JS / Sencha Discussion :

background + editgrid + formpanel


Sujet :

Ext JS / Sencha

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Analyste programmeur
    Inscrit en
    Janvier 2009
    Messages
    21
    Détails du profil
    Informations professionnelles :
    Activité : Analyste programmeur

    Informations forums :
    Inscription : Janvier 2009
    Messages : 21
    Par défaut background + editgrid + formpanel
    Bonjour,

    Au vu du titre vous vous dites me voici dans un joyeux bazar, non ?

    En fait sous ce titre barbare se cachent deux éléments récalcitrants. Ma timesheet fonctionne bien, mais la présentation c'est pas encore ça. Les données sont récupérées dans un fichier xml.

    Le premier :
    Je voudrais changer la couleur de font de ma colonne si cette colonne est soit le samedi soit le dimanche, j'arrive à déterminer quelle colonne est quoi, mais j'arrive pas à changer le fond.

    Le second :
    J'ai mon editgrid dans un formpanel, il y a toujours une marge à gauche de l'editgrid. Et je n'arrive pas lui dire colle toi à gauche.

    Les css utilisés :
    • resources/css/ext-all-notheme.css
    • resources/css/xtheme-gray.css
    • shared/examples.css
    • Ext.ux.grid.GridSummary.css


    Aperçu :


    J'ai fais beaucoup de recherches sur le fofo d'extjs mais là je bloque, surtout que l'anglois est parfois obscure.

    Bonne journée.

  2. #2
    Membre chevronné
    Profil pro
    Inscrit en
    Février 2010
    Messages
    267
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 267
    Par défaut
    bonjour,

    dans ton code, tu dois avoir un objet de type "columnModel" ou sinon, un attribut colums dans ton objet gridPanel.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
      var tableau  = new Ext.grid.GridPanel({
            store: mon_store,
            columns: [
                {header: "NOM", dataIndex: 'nom'...},...]
            ...});
    il te suffit de rajouter l'attribut 'css' avec ton style predefinit
    exemple:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
      var tableau  = new Ext.grid.GridPanel({
            store: mon_store,
            columns: [
                {header: "NOM", dataIndex: 'nom',css:'background-color:#000000;'},...]
            ...});
    dans le code ci dessus, j'ai mis un bg à noir ...


    pour ton deuxieme point,
    essaye de mettre padding à 0 dans ton formpanel.
    sinon, c'est que tu as definit une largeur fixe pour le label. essaye labelWidth:0 (toujours dans ton formpanel)
    sinon t as peut etre mis une margin dans ton tableau.

    essayes de mettre un bout de code pour que l on puisse essayer de trouver tes erreurs ...

    Cordialement,
    et bon courage a toi ...

    ps: je ne vois pas l'interet de mettre un tableau dans une formpanel. Evite ce genre d'association ...

  3. #3
    Membre averti
    Analyste programmeur
    Inscrit en
    Janvier 2009
    Messages
    21
    Détails du profil
    Informations professionnelles :
    Activité : Analyste programmeur

    Informations forums :
    Inscription : Janvier 2009
    Messages : 21
    Par défaut
    Alors j'avais trouvé une solution moins séduisante que la tienne, si ça peut aider, elle colore le texte :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
        function DayChange(val)
    		{
            return '<span style="background-color:#e6e6e6;">&nbsp;' + val + '&nbsp;</span>';
        	}
    Et dans le columnModel un :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    renderer: DayChange,
    J'avais essayé cette propriété mais sans succès... Je ne l'avais mise au bon endroit.

    Ensuite pour le code, normalement il est bien indenté, au début les déclarations php, puis celle des combobox, le columnModel, ensuite le gridpanel et le formpanel, et tout en bas les div.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
     
    <?php
    session_start();
    if(empty($_SESSION['USERNAME'])) header('Location:index.php');
    /////////////////////////////////////
    /// initialisation de la periode ///
    ///////////////////////////////////
    $periode = date("Y-m");			
    $month = date("m");
    $year = date("Y");
     
    //////////////////////////////////////////////////////////////////////////
    /// onctions utiles, $valeur reprEsente une date au format AAAA-MM-JJ ///
    ////////////////////////////////////////////////////////////////////////
    function getSecond($valeur) 
    {
    	return substr($valeur, 17, 2);
    }
     
    function getMinute($valeur) {
    return substr($valeur, 14, 2);
    }
     
    function getHour($valeur) 
    {
    	return substr($valeur, 11, 2);
    }
     
    function getDay($valeur)     
    {
    	return substr($valeur, 8, 2);
    }
     
    function getMonth($valeur)
    {
    	return substr($valeur, 5, 2);
    }
     
    function getYear($valeur) 
    {
    	return substr($valeur, 0, 4);
    }
     
    function monthNumToName($mois) 
    {
    	$tableau = Array("", "Janvier", "Février", 
    	"Mars", "Avril", "Mai", "Juin", "Juillet", 
    	"Aout", "Septembre", "Octobre", "Novembre", "Décembre");
    	return (intval($mois) > 0 && intval($mois) < 13) ? $tableau[intval($mois)] : "Indéfini";
    }
     
    // Tableau des valeurs possibles pour un numéro 
    //de jour dans la semaine
    $tableau = Array("0", "1", "2", "3", "4", "5", "6", "0");
    $nb_jour = Date("t", mktime(0, 0, 0, getMonth($periode), 1, getYear($periode)));
    $pas = 0;
    $indexe = 1;
    $totEnrg = 0;
     
    //Affichage du mois et de l'année
    //$leCalendrier .= "\n\t<h2>&raquo; ".$persiode."</h2>";
     
    // Tant que l'on n'a pas affecté tous les jours du mois traité 
    while ($pas < $nb_jour) 
    	{
    	// Si le jour calendrier == jour de la semaine en cours
    	if (Date("w", mktime(0, 0, 0, getMonth($periode), 1 + $pas, getYear($periode))) == $tableau[$indexe]) 
    		{
    		$afficheJour = Date("j", mktime(0, 0, 0, getMonth($periode), 1 + $pas, getYear($periode)));
    		$affichelibJour = Date("l", mktime(0, 0, 0, getMonth($periode), 1 + $pas, getYear($periode))); 
    		// Ajout de la case avec la date
    		$leCalendrier[$totEnrg] = $affichelibJour;
    		$totEnrg++;
    		$pas++;
    		}
    	if ($indexe == 7 && $pas < $nb_jour) 
    		{ 
    		$indexe = 1;
    		} 
    	else 
    		{
    			$indexe++;
    		}
    	}
    $totEnrg--;	
    /*echo $totEnrg.'<br />';
    print_r($leCalendrier);*/
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>TimeSheet</title>
     
        <!-- ** CSS ** -->
        <link rel="stylesheet" type="text/css" href="../css/1.css" />
        <link rel="stylesheet" type="text/css" href="../resources/css/ext-all-notheme.css" />
        <link rel="stylesheet" type="text/css" href="../resources/css/xtheme-gray.css" />
        <link rel="stylesheet" type="text/css" href="./shared/examples.css" />
        <link rel="stylesheet" href="../plugins/Ext.ux.grid.GridSummary.css"/>
     
     
        <!-- ** Javascript ** -->
        <script type="text/javascript" src="../adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../ext-all.js"></script>
        <script type="text/javascript" src="./ux/CheckColumn.js"></script>
        <script type="text/javascript" src="./shared/examples.js"></script>
        <script src='../plugins/Ext.ux.grid.GridSummary.js'></script>
     
    </head>
    <body>
    <script type="text/javascript">
    /*!
     * Ext JS Library 3.1.1
     * Copyright(c) 2006-2010 Ext JS, LLC
     * licensing@extjs.com
     * http://www.extjs.com/license
     */
    Ext.onReady(function(){
     
        /**
         * Handler specified for the 'Available' column renderer
         * @param {Object} value
         */
     
        function formatDate(value){
            return value ? value.dateFormat('M d, Y') : '';
        }
     
        // shorthand alias
        var fm = Ext.form;
     
    //create Data Store for ComboBox and create ComboBox
    	var storeProject = new Ext.data.Store({
    		// destroy the store if the grid is destroyed
    		autoDestroy: true,
    		autoLoad: true,
    		// load remote data using HTTP
    		url: 'project.php',
     
    		// specify a XmlReader (coincides with the XML Ext.format of the returned data)
    		reader: new Ext.data.XmlReader({
    			// records will have a 'project' tag
    			record: 'project',
    			// use an Array of field definition objects to implicitly create a Record constructor
    			fields: [
    				{name: 'projectId'},
    				{name: 'projectName'}					
    			]
    		}),
    		sortInfo: {field:'projectName', direction:'ASC'}
    	});
     
    	var storeDiscipline = new Ext.data.Store({
    		// destroy the store if the grid is destroyed
    		autoDestroy: true,
    		autoLoad: false,
    		// load remote data using HTTP
    		url: 'discipline.php',
     
    		// specify a XmlReader (coincides with the XML Ext.format of the returned data)
    		reader: new Ext.data.XmlReader({
    			// records will have a 'discipline' tag
    			record: 'discipline',
    			// use an Array of field definition objects to implicitly create a Record constructor
    			fields: [
    				{name: 'disciplineId'},
    				{name: 'disciplineName'}					
    			]
    		}),
    		sortInfo: {field:'disciplineName', direction:'ASC'}
    	});
     
    	var storeActivity = new Ext.data.Store({
    		// destroy the store if the grid is destroyed
    		autoDestroy: true,
    		autoLoad: false,
    		// load remote data using HTTP
    		url: 'activity.php',
     
    		// specify a XmlReader (coincides with the XML Ext.format of the returned data)
    		reader: new Ext.data.XmlReader({
    			// records will have a 'activity' tag
    			record: 'activity',
    			// use an Array of field definition objects to implicitly create a Record constructor
    			fields: [
    				{name: 'activityId'},
    				{name: 'activityName'}					
    			]
    		}),
    		sortInfo: {field:'activityName', direction:'ASC'}
    	});
     
    	//ComboBox
    	var comboActivity = new Ext.form.ComboBox({
    		allowBlank: false,
    		lazyRender: true,
    		maxLength: 55,
    		width: 110,		
    		editable: false,
    		emptyText: 'Select an activity',			
    		mode: 'local',
    		triggerAction: 'all',
    		store: storeActivity,
    		valueField: "activityId",
    		displayField: "activityId"
    	});	
     
    	var comboDiscipline = new Ext.form.ComboBox({
    		allowBlank: false,
    		lazyRender: true,
    		maxLength: 55,
    		width: 110,			
    		editable: false,
    		emptyText: 'Select a discipline',	
    		mode: 'local',
    		triggerAction: 'all',
    		store: storeDiscipline,
    		valueField: "disciplineId",
    		displayField: "disciplineId",
    		listeners: {
    		   'select' : function(cmb, rec, idx) {
    			   comboActivity.clearValue();
    			   comboActivity.store.load({
    				  params: {'discipline': comboDiscipline.getValue() }
    			   });
    		   }
    		}		
    	});
     
     
    	var comboProject = new Ext.form.ComboBox({
    		allowBlank: false,
    		lazyRender: true,
    		maxLength: 55,
    		width: 110,		
    		editable: false,
    		emptyText: 'Select a project',		
    		mode: 'local',
    		triggerAction: 'all',
    		store: storeProject,
    		valueField: "projectId",
    		displayField: "projectId",
    		listeners: {
    		   'select' : function(cmb, rec, idx) {
    			   comboDiscipline.clearValue();
    			   comboDiscipline.store.load({
    				  params: {'project': comboProject.getValue() }
    			   });		   
    		   }
    		}		
    	});
     
    	// permet de charger selon un id, la valeur du combo
    	/*Ext.util.Format.comboRenderer = function(combo){
    		return function(value){
    			var record = combo.findRecord(combo.valueField || combo.displayField, value);
    			return record ? record.get(combo.displayField) : combo.valueNotFoundText;
    		}
    	}*/	
        // the column model has information about grid columns
        // dataIndex maps the column to the specific data field in
        // the data store (created below)	
        var cm = new Ext.grid.ColumnModel({
            // specify any defaults for each column
            defaults: {
                sortable: true // columns are not sortable by default           
            },
            columns: [
    			//new Ext.grid.RowNumberer(),
                {
                    id: 'projectId',
                    header: 'Project',
                    dataIndex: 'projectId',
                    width: 55,
                    // use shorthand alias defined above
                    editor: comboProject
    				//renderer: Ext.util.Format.comboRenderer(comboProject)
                },{
                    id: 'disciplineId',
                    header: 'Discipline',
                    dataIndex: 'disciplineId',
                    width: 55,
                    // use shorthand alias defined above
                    editor: comboDiscipline
    				//renderer: Ext.util.Format.comboRenderer(comboDiscipline)
                },{
                    id: 'activityId',
                    header: 'Activity',
                    dataIndex: 'activityId',
                    width: 55,
                    // use shorthand alias defined above
                    editor: comboActivity
    				//renderer: Ext.util.Format.comboRenderer(comboActivity)
                },
    			<?php
                            foreach($leCalendrier as $cle => $element)
                                    {
                                    $numJ = $cle+1;
                                    $numXml = 'i'.$numJ;
                                    if(($element == 'Saturday') || ($element == 'Sunday'))
                                            {
                                            echo "{header: '$numJ',
                                            id: '$numXml',
                                            dataIndex: '$numXml',
                                            width: 20,
                                            type: 'string',
                                            css:'background-color:#e6e6e6;',
                                            summaryType: 'sum',
                                            // use shorthand alias defined above
                                            editor: new fm.TextField({
                                                    allowBlank: true
                                            })}\n";
                                            if($totEnrg != $cle)
                                                    {
                                                    echo ",";
                                                    }
                                            }
                                    else
                                            {
                                            echo "{header: '$numJ',
                                            id: '$numXml',
                                            dataIndex: '$numXml',
                                            width: 20,
                                            type: 'string',
                                            summaryType: 'sum',
                                            // use shorthand alias defined above
                                            editor: new fm.TextField({
                                                    allowBlank: true
                                            })}\n";                                 
                                            if($totEnrg != $cle)
                                                    {
                                                    echo ",";       
                                                    }
                                            }
                                    }                               
                            ?>		
            ]
        });
     
    	// create the Data Store
        var store = new Ext.data.Store({
            // destroy the store if the grid is destroyed
            autoDestroy: true,
     
            // load remote data using HTTP
            url: 'plants.php',
     
            // specify a XmlReader (coincides with the XML format of the returned data)
            reader: new Ext.data.XmlReader({
                // records will have a 'plant' tag
                record: 'plant',
                // use an Array of field definition objects to implicitly create a Record constructor
                fields: [
                    // the 'name' below matches the tag name to read, except 'availDate'
                    // which is mapped to the tag 'availability'
                    {name: 'projectId', type: 'string'},
    				{name: 'activityId', type: 'string'},
    				{name: 'disciplineId', type: 'string'},
    				<?php
                                    foreach($leCalendrier as $cle => $element)
                                            {
                                            $numJ = $cle+1;
                                            $numXml = 'i'.$numJ;
                                            echo "{name: '$numXml', type: 'string'}";
                                            if($totEnrg != $cle)
                                                    {
                                                    echo ",";       
                                                    }
                                            }
                                    ?>						
                ]
            })
            //sortInfo: {field:'projectId', direction:'ASC'}
        });
     
        var summary = new Ext.ux.grid.GridSummary();
     
        // create the editor grid
        var grid = new Ext.grid.EditorGridPanel({
            store: store,
    		plugins: [summary],
            cm: cm,
            isFormField: true,
            width: 570,
            height: 600,
            title: 'TimeSheet',
            frame: true,
            // specify the check column plugin on the grid so the plugin is initialized
            clicksToEdit: 1,
            tbar: [{
                text: 'Add Line',
                handler : function(){
                    // access the Record constructor through the grid's store
                    var Plant = grid.getStore().recordType;
                    var p = new Plant();
                    grid.stopEditing();
                    store.insert(0, p);
                    grid.startEditing(0, 0);
                }
            }]
        });
     
    	var submit =  function () {
    	    var json ="";
    		form = formPanel.getForm();
     
    		store.each(function(store){
    		  json += '|'+ store.data.projectId + "," + store.data.disciplineId + "," + store.data.activityId + "," +
    			<?php
                            foreach($leCalendrier as $cle => $element)
                                    {
                                    $numJ = $cle+1;
                                    $numXml = 'i'.$numJ;
                                    echo 'store.data.'.$numXml;
                                    if($totEnrg != $cle)
                                            {
                                            echo ' + "," +';        
                                            }
                                    else
                                            {
                                            echo ';';
                                            }
                                    }
                            ?>		  		  
    		  ;
    		});
    		json += "|"
    		json = json.substring(1, json.length - 1);
    		var myParams = {
    			gridStore: json
    		}
     
    		form.submit({ 
    			method: 'POST',
    			url:    'save-form.php', 
    			//scope:  formPanel, 
    			params: myParams, 
    			waitMsg: "Please wait...", 
    			waitTitle: "Send" //will only be applicable if no waitMsgTarget specified
     
    		});
    		formPanel.maskDisabled = true;//True to mask the panel when it is disabled
     
     
     
    	}; // eo function submit 
    	var formPanel = new Ext.form.FormPanel({
    		//renderTo : document.body,
    		items: [grid],
    		labelWidth:0,
    		css:'padding:0px;',
    		//use buttons config to specify buttons in the footer of a Panel
    		buttons: [{ 
     
    			formBind: true,            //binds button to the monitorValid valid state
    			text: "Valider",
    			handler: submit,
    			scope: this
     
    		}]
     
    	});
     
    	formPanel.render('EditorGrid');
     
        // manually trigger the data store load
        store.load({
            // store loading is asynchronous, use a load listener or callback to handle results
            callback: function(){
                Ext.Msg.show({
                    title: 'Store Load Callback',
                    msg: 'store was loaded, data available for processing',
                    modal: false,
                    icon: Ext.Msg.INFO,
                    buttons: Ext.Msg.OK
                });
            }
        });
    });
    </script>
    <div class="cadre">
    	<div class="menu">
        	<div class="txt_menu">
    			<a href="./timesheet.php">Time Sheet</a><br />
                <?php echo '<a href="./absence.php?periode='.$_SESSION['periode'].'">Absence</a>'; ?>
                <br />
           	</div>
    	</div>
        <div class="affichage">
        	<div class="entete">
                <a href="../logout.php">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
                <table>
                     <tr>
                        <td>
                        <?php
                                                    echo $_SESSION['NAME']." ".$_SESSION['USERNAME']." - ".$_SESSION['QUALIF'];                    
                        ?>
                        </td>
                     </tr>
                </table>
            </div>
            <div class="info">
            	<div class="actu">
                	<div class="txt_actu">
                        BLablA
                        &nbsp;
                        <br />
                    </div>               
            	</div>        
                <div class="temps">
                	<div class="txt_temps">
                    	<table>
                        	<tr>
                            	<td>Bangladech : </td>
                                <td></td>
                        	</tr>
                            <tr>
                            	<td>France : </td>
                                <td></td>	
                            </tr>
                            <tr>
                            	<td>P&eacute;rou : </td>
                                <td></td>
                            </tr>
    					</table>
                    </div>
                </div>
            </div>
        	<div class="texte">
            	<div class="txt_texte">
                    <h1><?php echo $periode; ?></h1>    
                    <div id="EditorGrid"></div>
            	</div>
            </div>
        </div>
    </div>
    </body>
    </html>
    Euh pour ce qui est du formpanel c'est pour pouvoir récupérer mes données. Tu fais comment autrement ?

    Cordialement,
    Merci beaucoup pour ton aide.

    PS : je débute ^^", ensuite ça manque d'optimisation mais ça viendra =)

  4. #4
    Membre chevronné
    Profil pro
    Inscrit en
    Février 2010
    Messages
    267
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 267
    Par défaut
    Bonsoir,

    je te propose des modif obligatoire et facultatif :

    I. modif obligatoire:
    a. pour ton objet "formPanel", tu enleves css:'padding:0px;',
    b.tu remplace par padding:0,
    c.tu rajoutes :layout:'fit',
    d.tu rajoutes :renderTo : 'EditorGrid',
    e.tu mes formPanel.doLayout();
    f. enlever isFormField: true,

    II. facultatif:
    a.separer php du html du javascript
    b. remplacer Ext.form.FormPanel par Ext.Panel

    tu auras peut etre resolu ton pb ...
    regarde dans ton css si il y a pas d heritage de ta div 'EditorGrid' avec un padding-lieft:XXpx;

    bon courage a toi...

  5. #5
    Membre averti
    Analyste programmeur
    Inscrit en
    Janvier 2009
    Messages
    21
    Détails du profil
    Informations professionnelles :
    Activité : Analyste programmeur

    Informations forums :
    Inscription : Janvier 2009
    Messages : 21
    Par défaut
    Merci, beaucoup !!!!

    Pour la séparation html / php / js c'est au programme, mais avant faut que je mette en place smarty ^^ .

    Et puis j'ai un problème dans la génération du xml lors d'un cas particulier qui n'est pas rare, donc de quoi faire mumuse.

    Bonne journée.

  6. #6
    Membre chevronné
    Profil pro
    Inscrit en
    Février 2010
    Messages
    267
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 267
    Par défaut
    content de t avoir aidé ...

    Tres bonne journée ... !

    Takitano...

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. comment faire un background transparent?
    Par guigui1005 dans le forum Composants
    Réponses: 5
    Dernier message: 17/05/2012, 21h45
  2. modififier l'opacité seulement pour le background
    Par Jorus dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 15/08/2010, 16h18
  3. Réponses: 11
    Dernier message: 20/09/2007, 14h51
  4. [langage] fentetre MS DOS en background???
    Par Ludo167 dans le forum Langage
    Réponses: 9
    Dernier message: 13/08/2004, 15h10
  5. Réponses: 8
    Dernier message: 09/04/2004, 14h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo