Fcstefoy

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Author
    Replies
  • in reply to: Guriddo_Suito_PHP_7_0_3 #128296
    Fcstefoy
    Participant

    <p>The solution is not to put the command :</p><p>use Guriddo\Utils\Utils as jqGridUtils;</p><p>in an include or require file.</p>

    in reply to: Jqform SelectCommand #127132
    Fcstefoy
    Participant

    Hello,

    Sorry for this request.
    This SUBSTRING function works perfectly.
    There was a bad syntax: using the simple quote instead of the double quote
    …..
    SUBSTRING_INDEX(heure_d,”|”,1) AS heure_d_0,
    SUBSTRING_INDEX(SUBSTRING_INDEX(heure_d,”|”,2),”|”,-1) AS heure_d_1,

    …..

    Best regards

    Christian

    in reply to: Jqsuite Showlink #127127
    Fcstefoy
    Participant

    Hello,

    Yes, the ‘showlink’ solution does not work corectly.
    Thank you for your suggestion :
    I had set up the ‘link’ solution but I did not want to see the complete url
    So I chose to implement the custom formatter solution.
    …..
    $grid->setColProperty(“fic_0”, array(“label”=>”Un”, “width”=>90, “align”=>”left”, “formatter”=>”js:formatLink0”, “editable”=>false, “sortable”=>false, “searchoptions”=>array(“clearSearch”=>false)));
    ……..
    $custom = <<<CUSTOM
    function formatLink0(cellValue, options, rowData) {
    return ““+cellValue+”“;
    }

    ……
    calling program
    function MyLink(p2) {document.forms[‘form1’].action=”./fupload/”+p2;document.forms[‘form1’].method=”POST”; document.forms[‘form1’].target=”_blank”; document.forms[‘form1’].submit(); return; }

    Best Regards

    Christian

    in reply to: Jqsuite Showlink #127124
    Fcstefoy
    Participant

    Hello,

    Guriddo_Suito_PHP_5_3_2_Sources package

    I changed the 16630 line of jquery.jqGrid.js (js.trirand.src) and the target: _blank option and now it works perfectly.
    if (op.target) {target = ‘target =’ + ops.target;}
    I set up your patch for the radio buttons (jqform.php) and it works fine.
    Thank you very much
    Best Rgards
    Christian

    in reply to: Jqsuite Showlink #127123
    Fcstefoy
    Participant

    Sorry in English now
    I use showlink to load in the base the addresses of documents like pdf, doc, odt, …
    Thus the user can retrieve the document directly.
    It seemed to me the best solution
    Best regards
    Christian
    For your information, I just renewed my license

    in reply to: Jqsuite Showlink #127122
    Fcstefoy
    Participant

    Hello,

    J’utilise showlink pour charger dans la base les adresses des documents de type pdf, doc, odt, …
    Ainsi l’utilisateur peut récupérer le document directement.
    Cela me semblait la meilleure solution

    Best regards

    Christian

    <span class=”tlid-translation translation”><span class=”” title=””>For your information, I just renewed my license</span></span>

    in reply to: Jqform – Update Fields #127107
    Fcstefoy
    Participant

    Hello,
    Thank you for this demo but I can not find the solution to my problem.
    I did a very simple test.
    I created a record with a key with the value ’10’ and a radio button with the value ‘Female’
    When I access this data, the radio button is not set to ‘Female’

    $form_formulaire->SelectCommand = ‘SELECT bouton_radio FROM test WHERE clef = 10’;
    $form_formulaire->table = ‘test’;
    $form_formulaire->setPrimaryKeys(‘clef’);
    $form_formulaire->serialKey = true;
    // Set Form layout
    $form_formulaire->setColumnLayout(‘twocolumn’);
    // Set the style for the table
    // Add elements
    $form_formulaire->addElement(‘clef’,’hidden’, array(‘id’=>’clef_1’, ‘name’=>’clef’));
    $form_formulaire->addElement(’bouton_radio’,’radio’, array(‘label’ => ‘Gender’, ‘value’ => ‘Male’, ‘text’ => ‘Male’, ‘id’ => ‘id_bouton_radio’));
    $form_formulaire->addElement(’bouton_radio’,’radio’, array(‘value’ => ‘Female’, ‘text’ => ‘Female’, ‘id’ => ‘id_bouton_radio’));
    $elem_99[]=$form_formulaire->createElement(‘creerformulaire’,’submit’, array(‘value’=>’Envoyer’, ‘contenteditable’=>’false’, ‘id’=>’creerformulaire’, ‘style’=>’padding:5px; margin:2px 0px 2px 0px;’));
    $form_formulaire->addGroup(‘choix_fin’,$elem_99, array(‘class’=>’om-un’, ‘name’=>’choix_fin’, ‘id’=>’formulaire_Group_Fin’));
    // automatic file upload options
    $form_formulaire->add = false;
    $form_formulaire->setAjaxOptions( array(‘dataType’=>null, ‘resetForm’ =>true, ‘clearForm’ => null, ‘iframe’ => false, ‘forceSync’ =>false) );

    and if I change the radio button with the value ‘Male’ the record of the database is not updated.

     

    The firefox debug (parameter) confirms this problem

    —————————–24593989415924
    Content-Disposition: form-data; name=”clef”

    —————————–24593989415924
    Content-Disposition: form-data; name=”bouton_radio”

    Female
    —————————–24593989415924
    Content-Disposition: form-data; name=”jqform”

    save
    —————————–24593989415924–

    Do you have a solution ?

    Best regards

    Christian

    in reply to: Jqform – Update Fields #127104
    Fcstefoy
    Participant

    Hello
    Thank you for your reply.
    Sorry but I can not access the demo:
    Not Found:
    The requested URL /suitophp/demos/jqform/defaultnodb/default.php was not found on this server.
    Best regards
    Christian

    in reply to: Jqform – Update Fields #127102
    Fcstefoy
    Participant

    Hello,
    Hello,
    In addition to my request, I specify that the update of a checkbox type works perfectly.
    Best Regards
    Christian

    in reply to: Jqform #127082
    Fcstefoy
    Participant

    Hello,
    I have rewritten the search function and now it’s ok.
    I will add some controls on the type and size of files
    Thanks for your help
    Best regards
    Christian Novent

    $elem_1[]=$form_formulaire->createElement(‘fichier_con’,’file’, array(‘id’=>’fichier_con’, ‘size’=>’30’, ‘name’=>’fichier_con[]’, ‘multiple’=>’multiple’, ‘class’=>’om-deux’));

    function reArrayFiles($file)
    {
    $file_ary = array();
    $file_count = count($file[‘name’]);
    $file_key = array_keys($file);
    for($i=0;$i<$file_count;$i++)
    {
    foreach($file_key as $val) { $file_ary[$i][$val] = $file[$val][$i]; }
    }
    return $file_ary;
    }
    $fichier_con = $_FILES[‘fichier_con’];
    if(!empty($fichier_con))
    {
    $file_desc = reArrayFiles($fichier_con);
    foreach($file_desc as $val) { $name = $val[‘name’]; move_uploaded_file($val[‘tmp_name’],$pre_upload.$name); }
    }

    in reply to: Jqform #127072
    Fcstefoy
    Participant

    Hello,
     
    Thank you for your reply
    It was missing the NAME tag and now the form is working properly.
     
    Another question :
    Is multiple file uploading working with JQFORM?
    My example does not work:
     

     
    Thanks for your help,
     
    Best regards
     
    Christian Novent

    in reply to: JqForm – Tinymce #126405
    Fcstefoy
    Participant

    Hello,

    <span id=”result_box” lang=”en”>Thank you very much for your quick response
    It works perfectly,</span>

    Best regards

    in reply to: JqForm – Tinymce #126403
    Fcstefoy
    Participant

    Hello,
    Thank you for your reply,
    I had actually implemented this solution but there was a conflict with two tags “FORM”.
    It’s almost perfect now.
    If I use the following code:
    $javascriptnewForm_c = <<< JSCFORM_C
    setTimeout( function() {
    var data_c = $(“#newForm_considerant”).val();
    tinymce.init({selector: “textarea#newForm_considerant”, height: 300, statusbar: false, menubar: false,
    language: “fr_FR”,
    plugins: ‘print’,
    browser_spellcheck : true,
    toolbar: ‘bold italic | alignleft alignjustify | superscript | bullist | cut copy paste | print’});
    //tinymce.get(‘newForm_considerant’).setContent(data_c);
    //
    tinymce.init({selector: “textarea#newForm_motif_appel”, ‘readonly’:’readonly’, height: 80, max_height: 120, min_height: 80, statusbar: false, menubar: false, toolbar: false});
    var data_c = $(“#newForm_motif_appel”).val();
    tinymce.get(‘newForm_motif_appel’).setContent(data_c);
    }, 300);
    JSCFORM_C;

    The displayed data is correct.
    Note that the command ” tinymce.get(‘newForm_considerant’).setContent(data_c);” is in comment.
    But if I use the following code:
    $javascriptnewForm_c = <<< JSCFORM_C
    setTimeout( function() {
    var data_c = $(“#newForm_considerant”).val();
    tinymce.init({selector: “textarea#newForm_considerant”, height: 300, statusbar: false, menubar: false,
    language: “fr_FR”,
    plugins: ‘print’,
    browser_spellcheck : true,
    toolbar: ‘bold italic | alignleft alignjustify | superscript | bullist | cut copy paste | print’});
    //tinymce.get(‘newForm_considerant’).setContent(data_c);
    //
    tinymce.init({selector: “textarea#newForm_motif_appel”, ‘readonly’:’readonly’, height: 80, max_height: 120, min_height: 80, statusbar: false, menubar: false, toolbar: false});
    var data_c = $(“#newForm_motif_appel”).val();
    tinymce.get(‘newForm_motif_appel’).setContent(data_c);
    }, 300);
    JSCFORM_C;
    The displayed data is incorrect :
    Note that the command   ” tinymce.get(‘newForm_considerant’).setContent(data_c);” is not in comment.
    In this case, the second ‘textarea’ will display the tags (<p>, </ p>,

      , ….>)
      Have you an idea ?
      Best regards
      Christian
    in reply to: Ajax Success return data #125676
    Fcstefoy
    Participant

    Hello,

    Tkank you very much for this suggestion.

    This works perfectly.

    Best regards

    Christian Novent

    in reply to: Ajax Success return data #125645
    Fcstefoy
    Participant

    <span id=”result_box” class=”short_text” lang=”en”>With debug mode, I get the message</span> :

    Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check http://xhr.spec.whatwg.org/.

Viewing 15 replies - 1 through 15 (of 21 total)

Stay connected with us in your favorite flavor!