Ignore:
Timestamp:
Jun 6, 2015, 4:07:00 AM (9 years ago)
Author:
luc
Message:

Admin: correzione visulaizzazione immissione dati spoglio per Chrome e Safari - Aggiornamento dell'editor da FCKeditor a CKeditor , accessibili anche a Chrome e Safari.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_come.php

    r23 r239  
    4444include("inc/funzioni.php");
    4545
     46
    4647function come() {
     48
    4749    global $admin, $bgcolor1, $bgcolor2, $prefix, $dbi, $id_cons, $tipo_cons, $id_cons,$id_cons_gen, $editimage1,
    4850    $add_content, $add_preamble, $add_title, $vai,$mid,$tab,$op,$editor;
     
    5355    elseif ($tab=='_ele_link') echo "<center><font class=\"title\"><b>"._ADMINLINK."</b></font></center><br>";
    5456   
    55     echo "<br>";
    56 
    57    
    58     echo "<center><font class=\"title\"><b>"._ALLCOME."</b></font><br><br><table border=\"0\" width=\"70%\" >"
    59         ."<td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._TITOLO."</b></td>"
    60         ."<td bgcolor=\"$bgcolor1\" align=\"center\">&nbsp;<b>"._FUNZIONI."</b>&nbsp;</td></tr>";
     57    //echo "<br />";
     58
     59   
     60    echo "<center><font class=\"title\"><b>"._ALLCOME."</b></font><br/><br/>\n
     61        <table border=\"0\" width=\"100%\" >\n
     62        <td bgcolor=\"$bgcolor1\" align=\"center\"><b>"._TITOLO."</b></td>\n
     63        <td bgcolor=\"$bgcolor1\" align=\"center\">&nbsp;<b>"._FUNZIONI."</b>&nbsp;</td></tr>\n";
     64
     65
    6166    $result = mysql_query("select  mid, title,preamble, content,  editimage from ".$prefix.$tab."  where id_cons='$id_cons'", $dbi);
    6267    while(list($mid2, $title, $preamble, $content,  $editimage) = mysql_fetch_row($result)) {
     
    7176
    7277    }
    73     echo "</table><br>";
    74     echo "<table border=\"0\" width=\"70%\"><tr><td>";
     78    echo "</table><br/>";
     79    echo "<table border=\"0\" width=\"100%\"><tr><td>";
    7580    echo "<br>";
    7681    if($vai=='editedit'){
     
    95100        echo "<b>"._PREAMBOLO.":</b><br>";
    96101//25 maggio 2009
    97         if ($editor)
    98                 js_textarea("add_preamble", "$add_preamble", "$ed_user", "80", "10"); // 25 --> 24 maggio 2009 editor'
    99         else
     102
     103        if ($editor=="1"){ // cambiato ckeditori giugno 2015
     104                echo "<textarea class=\"modulo\" id=\"add_preamble\" name=\"add_preamble\" rows=\"7\" wrap=\"virtual\" cols=\"60\"></textarea><br><br><b>
     105                <script type=\"text/javascript\">
     106                CKEDITOR.replace('add_preamble');
     107                </script>";
     108                // old fckeditor
     109                //js_textarea("add_preamble", "$add_preamble", "$ed_user", "80", "10"); // 25 --> 24 maggio 2009 editor'
     110        }else{
    100111                echo "<textarea class=\"modulo\" name=\"add_preamble\" rows=\"7\" wrap=\"virtual\" cols=\"60\">$add_preamble</textarea><br><br><b>";
     112        }
     113
    101114//
    102115        echo "<br><br><b>";
     
    110123//25 maggio 2009
    111124
    112         if ($editor)
    113                 js_textarea("add_content", "$add_content", "$ed_user", "80", "20"); // 25 -->24 maggio 2009 editor
     125        if ($editor=="1")
     126                echo "<textarea class=\"modulo\" id= \"add_content\" name=\"add_content\" rows=\"15\" wrap=\"virtual\" cols=\"60\"></textarea><br><br>
     127                <script type=\"text/javascript\">
     128                CKEDITOR.replace('add_content');
     129                </script>";
     130
     131                // js_textarea("add_content", "$add_content", "$ed_user", "80", "20"); // 25 -->24 maggio 2009 editor old
    114132        else
    115133                echo "<textarea class=\"modulo\" name=\"add_content\" rows=\"15\" wrap=\"virtual\" cols=\"60\">$add_content</textarea><br><br>";
Note: See TracChangeset for help on using the changeset viewer.