Changeset 239 for trunk/admin


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.

Location:
trunk/admin
Files:
1315 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/header.php

    r2 r239  
    3636        echo "<meta http-equiv=\"Pragma\" content=\"no-cache\">\n";
    3737    echo "<title>Eleonline - Elezioni on line</title>\n";
    38     echo "<LINK REL=\"StyleSheet\" HREF=\"temi/$tema/style.css\" TYPE=\"text/css\">\n\n\n";
     38    echo "<script type=\"text/javascript\" src=\"inc/ckeditor/ckeditor.js\"></script>"; //ckeditor 2015
     39    echo "<link rel=\"StyleSheet\" href=\"temi/$tema/style.css\" type=\"text/css\">\n\n\n";
    3940    echo "\n\n\n</head>\n<body style=\"background-image: url(temi/$tema/images/sfondo.jpg);\">";
    4041    if (!$csv)testata($tema);
  • trunk/admin/inc/funzioni.php

    r2 r239  
    11<?php
    22
    3 ###########################
     3/*
     4#funzione sorpassat da CKeditor 2015
     5
     6###########################
    47# FCKeditor
    58###########################
     
    1417       echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
    1518   } else {
    16         @include_once(INCLUDE_PATH."../../inc/FCKeditor/fckeditor.php");
     19        @include_once(INCLUDE_PATH."../../inc/fckeditor/fckeditor.php");
    1720        $oFCKeditor = new FCKeditor($name) ;
    1821        $oFCKheight = $rows * 20;
     
    3639       echo "<textarea name=\"$name\" cols=\"$cols\" rows=\"$rows\">$value</textarea>";
    3740   } else {
    38         @include_once(INCLUDE_PATH."../../inc/FCKeditor/fckeditor.php");
     41        @include_once(INCLUDE_PATH."../../inc/fckeditor/fckeditor.php");
    3942        $oFCKeditor = new FCKeditor($name) ;
    4043        $oFCKheight = $rows * 20;
     
    4750   }
    4851}
    49 
     52*/
    5053?>
  • 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>";
  • trunk/admin/modules/Elezioni/ele_voti.php

    r237 r239  
    359359        global $aid,$bgcolor1, $bgcolor2, $prefix, $dbi, $offset, $min, $tipo_cons, $genere,$id_cons_gen,$prev_sez,$votog,$votol,$votoc,$conscirc,$id_sez;
    360360
    361         echo "<table border=\"0\" width=\"770\" align=\"left\"><tr>";
     361        echo "<table border=\"0\" width=\"760\" align=\"left\"><tr>";
    362362        echo "\n<td bgcolor=\"$bgcolor1\" align=\"left\">";
    363363                numeri_sezione(22);
  • trunk/admin/versione.php

    r238 r239  
    11<?php
    22
    3 $versione = "2.0 rev 238";
     3$versione = "2.0 rev 239";
    44$version_number = $versione;
    5 $version = "Eleonline $version_number (<i>Data Release: 5 giugno 2015</i>)";
     5$version = "Eleonline $version_number (<i>Data Release: 6 giugno 2015</i>)";
    66
    77?>
Note: See TracChangeset for help on using the changeset viewer.