noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 29/30: Remove button (x) + center the text


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 29/30: Remove button (x) + center the text
Date: Tue, 02 Jun 2015 22:29:16 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 8839aa3a9f8cec8d3ef35832914a03c4d5e30747
Author: Dany De Bontridder <address@hidden>
Date:   Wed Jun 3 00:24:47 2015 +0200

    Remove button (x) + center the text
---
 html/ajax_card.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/html/ajax_card.php b/html/ajax_card.php
index dc42dc4..a98a733 100644
--- a/html/ajax_card.php
+++ b/html/ajax_card.php
@@ -173,12 +173,13 @@ case 'dc':
                $html.=HtmlInput::hidden('ctl',$ctl);
              }
            $html.=$card;
+            $html.='<p style="text-align:center">';
            if ( $can_modify==1)
              {
                $html.=HtmlInput::submit('save',_('Sauver'));
              }
-           
$html.=HtmlInput::button('close_'.$ctl,'&#10761;',"onclick=\"removeDiv('$ctl')\"");
            if ( ! isset 
($nohistory))$html.=HtmlInput::history_card_button($f->id,_('Historique'));
+            $html.='</p>';
            if ($can_modify==1)
              {
                $html.='</form>';
@@ -188,7 +189,6 @@ case 'dc':
     else
       {
       $html.='<h2 class="error">'._('Aucune fiche demandée').'</h2>';
-      
$html.=HtmlInput::button('close_'.$ctl,_('&#10761;'),"onclick=\"removeDiv('$ctl')\"");
       }
     break;
     /* ------------------------------------------------------------ */
@@ -208,7 +208,9 @@ case 'bc':
         $r.=HtmlInput::hidden('fd_id',$fd_id);
         $r.=HtmlInput::hidden('ctl',$ctl);
         $r.=$f->blank($fd_id);
+        $r.='<p style="text-align:center">';
         $r.=HtmlInput::submit('sc',_('Sauve'));
+        $r.='</p>';
         $r.='</form>';
         $html=$r;
     }
@@ -315,7 +317,7 @@ case 'st':
         }
         $r.='</table>';
         $r.=HtmlInput::hidden('fd_id',0);
-       $r.='<p>';
+        $r.='<p style="text-align:center">';
         $r.=HtmlInput::submit('st','choix');
        $r.=HtmlInput::button('Annuler',_('Annuler')," 
onclick=\"removeDiv('$ctl')\" ");
        $r.='</p>';
@@ -347,7 +349,6 @@ case 'sc':
     {
         $html.=alert(_('Action interdite'),true);
     }
-    $html.=HtmlInput::button('fermer',_('&#10761;')," 
onclick=\"removeDiv('$ctl')\";");
     break;
     /*----------------------------------------------------------------------
      * Search a card
@@ -560,7 +561,6 @@ case 'upc':
          $html.=ob_get_contents();
          ob_end_clean();
          $html.=$f->Display(true);
-         
$html.=HtmlInput::button('close_'.$ctl,'&#10761;',"onclick=\"removeDiv('$ctl')\"");
        }
       }
 } // switch



reply via email to

[Prev in Thread] Current Thread [Next in Thread]