Changeset 361 for trunk/admin/temi


Ignore:
Timestamp:
Mar 17, 2022, 4:12:48 PM (2 years ago)
Author:
roby
Message:

Terzo aggiornamento con modifiche per la gestione delle funzioni per cellulare oltre modifiche alla funzione di autorizzazione.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/temi/Futura2/index.php

    r360 r361  
    3232
    3333list($id_sez) = $res->fetch(PDO::FETCH_NUM);#include("TEST:$id_sez:$sql:");
     34if (!$id_sez) {
     35        $BASE=substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['REQUEST_URI'], "/")-18);
     36        Header("Location: ".$BASE."admin.php?op=logout&msglogout=4");
    3437
     38}
    3539if(isset($row[0])) {
    3640        $tipo_cons=$row[0]; $descr_cons=$row[1]; $id_cons_gen=$row[2];
     
    109113$rese = $dbi->prepare("$sql");
    110114$rese->execute();
    111 $bordoa='';
    112 $bordog='';
    113 $bordol='';
     115$bordoini="style='cursor: pointer;";
     116$errbordoa='';
     117$errbordog='';
     118$errbordol='';
    114119while (list($tipo)=$rese->fetch(PDO::FETCH_NUM)) {
    115         if ($tipo=='affluenze') $bordoa="style=\"border: 6px solid; border-color: rgb(255, 0, 0);\"";
    116         if ($tipo=='gruppo' or $tipo=='referendum') $bordog="style=\"border: 6px solid; border-color: rgb(255, 0, 0);\"";
    117         if ($tipo=='lista') $bordol="style=\"border: 6px solid; border-color: rgb(255, 0, 0);\"";
     120        if ($tipo=='affluenze') $errbordoa="border: 6px solid; border-color: rgb(255, 0, 0);";
     121        if ($tipo=='gruppo' or $tipo=='referendum') $errbordog="border: 6px solid; border-color: rgb(255, 0, 0);";
     122        if ($tipo=='lista') $errbordol="border: 6px solid; border-color: rgb(255, 0, 0);";
    118123}
     124$bordoa=$bordoini.$errbordoa."'";
     125$bordog=$bordoini.$errbordog."'";
     126$bordol=$bordoini.$errbordol."'";
    119127if($rese->rowCount()) $segna="style=\"background-color: #dd0000;\""; else $segna='';
    120128if($ops=="4" ) {$bgcolorg="yellow"; $tcolorg='blue';} else {$bgcolorg="grey"; $tcolorg='white';} #$active_gruppo=" class=\"ui-btn-active\""; else $active_gruppo='';
Note: See TracChangeset for help on using the changeset viewer.