Changeset 99 for trunk/client
- Timestamp:
- May 16, 2011, 12:18:36 PM (14 years ago)
- Location:
- trunk/client/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/foto.php
r86 r99 19 19 if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=''; 20 20 if (isset($param['prefix'])) $prefix=$param['prefix']; 21 if (isset($param['pdf '])) $pdf=$param['pdf'];21 if (isset($param['pdfvis'])) $pdf=$param['pdfvis']; 22 22 23 23 if ($id_lista){ … … 50 50 if ($stemma=="" && is_readable('modules/Elezioni/images/vuoto.jpg')){ 51 51 $stemma = fread( fopen( 'modules/Elezioni/images/vuoto.jpg', 'r' ), filesize( 'modules/Elezioni/images/vuoto.jpg' ) );} 52 if(isset($pdf)) header('Content-type: application/pdf'); 52 if(isset($pdf)) 53 { 54 if (strstr($HTTP_USER_AGENT,"MSIE")) 55 { 56 header('Cache-Control: public'); 57 header("Content-Type: application/pdf"); 58 header("Content-Transfer-Encoding: binary"); 59 header("Content-Disposition: attachment; filename=Programma.pdf"); 60 }else{ 61 header("Content-type: application/pdf"); 62 header("Content-Disposition: attachment; filename=Programma.pdf"); 63 } 64 } 65 53 66 echo $stemma; 54 67 ?> -
trunk/client/modules/Elezioni/index.php
r90 r99 714 714 <td class=\"table-main\"><h1>$descr_gruppo</h1> $var1</td>"; 715 715 if($tipo_cons!=2 and $prognome) 716 echo "<td onmouseover=\"this.style.cursor='pointer';\" onclick=\"javascript:window.open('modules.php?name=Elezioni&file=foto&id_gruppo=$id_gruppo2&pdf =1')\">";716 echo "<td onmouseover=\"this.style.cursor='pointer';\" onclick=\"javascript:window.open('modules.php?name=Elezioni&file=foto&id_gruppo=$id_gruppo2&pdfvis=1')\">"; 717 717 else echo "<td>"; 718 718 echo "<b><img class=\"stemma\" src=\"modules.php?name=Elezioni&file=foto&id_gruppo=$id_gruppo2\" alt=\"immagine $descr_gruppo\" /><br>";
Note:
See TracChangeset
for help on using the changeset viewer.