{"id":1798,"date":"2016-12-15T11:46:59","date_gmt":"2016-12-15T10:46:59","guid":{"rendered":"https:\/\/edulab.unitn.it\/area51\/?page_id=1798"},"modified":"2025-07-03T09:41:42","modified_gmt":"2025-07-03T07:41:42","slug":"login","status":"publish","type":"page","link":"https:\/\/edulab.unitn.it\/area51\/login\/","title":{"rendered":"Home-OLD"},"content":{"rendered":"[insert_php]\n$site = &#8220;https:\/\/edulab.unitn.it\/area51&#8221;;<br \/>\n$dat= date(&#8216;Y-m-d&#8217;);<br \/>\n$dat2= date(&#8216;d-m-Y&#8217;);<br \/>\n$dat3= date(&#8216;l d-m-Y H:i&#8217;);<br \/>\nglobal $user_login;<br \/>\nglobal $user_level;<br \/>\nget_currentuserinfo();<br \/>\n$user = $user_login;<br \/>\n$level = $user_level;<br \/>\n\/\/echo $user.&#8217;  &#8216;.$dat;<br \/>\n\/\/echo &#8216;<br \/>gigi&#8217;;<br \/>\nif ($user){<br \/>\n  if ($level){<br \/>\n\/\/ sezione amministrazione<br \/>\necho &#8216;<\/p>\n<h1>Pannello Gestione Magazzino<\/h1>\n[tabs]\n[tab title=&#8221;Gestione Prestito&#8221;]\n<form action='.$site.'\/prestito\/> <input type=\"submit\" value=\"Presta Strumento\" style=\"height:50px; width:250px; font-size: 20px; color: #00cc99;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/restituzione\/> <input type=\"submit\" value=\"Restituisci Prestito\" style=\"height:50px; width:250px; font-size: 20px; color: #00cc99;\" > <\/form>\n<p>\n[\/tab]\n[tab title=&#8221;Inserimento&#8221;]\n<form action='.$site.'\/strumenti-amministrazione\/inserisci-strumento\/> <input type=\"submit\" value=\"Nuovo Bene\" style=\"height:50px; width:250px; font-size: 20px; color: red;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/scheda-utente\/> <input type=\"submit\" value=\"Scheda Utente\" style=\"height:50px; width:250px; font-size: 20px; color: red;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/campi-accessori\/> <input type=\"submit\" value=\"Campo Accessorio\" style=\"height:50px; width:250px; font-size: 20px; color: red;\" > <\/form>\n<p>\n[\/tab]\n[tab title=&#8221;Modifica&#8221;]\n<form action='.$site.'\/strumenti-amministrazione\/modifica-strumentazione\/> <input type=\"submit\" value=\"Strumento\" style=\"height:50px; width:250px; font-size: 20px; color: #ff00ff;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/cerca-utente\/> <input type=\"submit\" value=\"Utente\" style=\"height:50px; width:250px; font-size: 20px; color: #ff00ff;\" > <\/form>\n<p>\n[\/tab]\n[tab title=&#8221;Stato Magazzino&#8221;]\n[columns]\n[column width=&#8221;one-half&#8221;]\n<form action='.$site.'\/strumenti-amministrazione\/lista-strumentazione\/> <input type=\"submit\" value=\"Lista Strumenti\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/lista-utenti\/> <input type=\"submit\" value=\"Lista Utenti\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/\/cerca-utente\/> <input type=\"submit\" value=\"Cerca Prestiti\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00;\" > <\/form>\n<p>\n[\/column]\n[column width=&#8221;one-half&#8221;]\n<form action='.$site.'\/strumenti-amministrazione\/lista-prestiti\/> <input type=\"submit\" value=\"Lista prestiti\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/storico-prestiti\/> <input type=\"submit\" value=\"Storico Prestiti\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00;\" > <\/form>\n<p><\/p>\n<form action='.$site.'\/strumenti-amministrazione\/listadeicattivi\/> <input type=\"submit\" value=\"Lista dei Cattivi\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00;\" > <\/form>\n<p>\n[\/column]\n[\/columns]\n[\/tab]\n[\/tabs]\n<hr \/>\n<div style=\"text-align:center\">\n[columns]\n[column width=&#8221;one-half&#8221;]\n<form action='.$site.'\/prestito\/accetta-prestito\/> <input type=\"submit\" value=\"Accetta Prestito\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00\"; align:\"center;\" > <\/form>\n[\/column]\n[column width=&#8221;one-half&#8221;]\n<form action='.$site.'\/schede\/> <input type=\"submit\" value=\"Cerca Scheda Strumento\" style=\"height:50px; width:250px; font-size: 20px; color: #ff00ff; align:center;\" > <\/form>\n[\/column]\n[\/columns]\n<\/p><\/div>\n<p><\/p>\n<hr \/>\n<h1>Stato dei Prestiti di [abase db=1 table=&#8221;Utente&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221; ^Nome&#8221; where= &#8220;Login LIKE \\&#8221;.$user.&#8217;\\'&#8221;] [abase db=1 table=&#8221;Utente&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221; ^Cognome&#8221;  where= &#8220;Login LIKE \\&#8221;.$user.&#8217;\\'&#8221;] <\/h1>\n<p>&#8216;;<br \/>\n\/\/############<br \/>\necho &#8216;<\/p>\n<table>\n<tr>\n<thead>\n<tr>\n<th colspan=\"2\">\n<h3>Prestiti in attesa di accettazione: <\/h3>\n<\/th>\n<\/tr>\n<\/thead>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td width=\"150\">\n<h4>Strumenti:<\/p>\n<h4><\/td>\n<td rowspan=\"2\">[abase db=1 table=&#8221;Prestito&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Nome Strumento^NomeStrumento,Tipo Strumento^TipoStrumento,Seriale,Inventario&#8221; where= &#8220;`Login` = \\&#8221;.$user.&#8217;\\&#8217; AND `Rilascio` = 1&#8243;]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>[button color=&#8221;00ff00&#8243; url=&#8221;https:\/\/edulab.unitn.it\/area51\/prestito\/accetta-prestito\/&#8221;]Accetta[\/button]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td >\n<h4>Minuteria:<\/p>\n<h4><\/td>\n<td rowspan=\"2\">[abase db=1 table=&#8221;Minuteria&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Descrizione,Note&#8221; where= &#8220;`Login` = \\&#8221;.$user.&#8217;\\&#8217; AND `Rilascio` = 1&#8243;]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>[button color=&#8221;00ff00&#8243; textcolor=&#8221;red&#8221; url=&#8221;https:\/\/edulab.unitn.it\/area51\/prestito\/accetta-prestito\/&#8221;]Accetta[\/button]<\/td>\n<\/tr>\n<tr>\n<thead>\n<tr>\n<th colspan=\"2\">\n<h3>Prestiti in corso: <\/h3>\n<\/th>\n<\/tr>\n<\/thead>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>\n<h4>Strumenti:<\/p>\n<h4><\/td>\n<td>[abase db=1 table=&#8221;Prestito&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Data Prestito^Data_Prestito,Tipo Strumento^TipoStrumento,Nome Strumento^NomeStrumento,Seriale,Inventario,Note&#8221; where= &#8220;Confirm LIKE \\&#8217;%&#8217;.$user.&#8217;%\\&#8217;AND `Data_Restituzione` IS NULL&#8221;]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>\n<h4>Minuteria:<\/p>\n<h4><\/td>\n<td>[abase db=1 table=&#8221;Minuteria&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Descrizione,Note&#8221; where= &#8220;Confirm LIKE \\&#8217;%&#8217;.$user.&#8217;%\\&#8217;AND `Data_Restituzione` IS NULL&#8221;]<\/td>\n<\/tr>\n<\/table>\n<p>&#8216;;<br \/>\n     }<br \/>\n  else {<br \/>\n\/\/ sezione utente loggato<br \/>\necho &#8216;<\/p>\n<hr \/>\n<div style=\"text-align:center\">\n[columns]\n[column width=&#8221;one-half&#8221;]\n<form action='.$site.'\/prestito\/accetta-prestito\/> <input type=\"submit\" value=\"Accetta Prestito\" style=\"height:50px; width:250px; font-size: 20px; color: #00ff00\"; align:\"center;\" > <\/form>\n[\/column]\n[column width=&#8221;one-half&#8221;]\n<form action='.$site.'\/schede\/> <input type=\"submit\" value=\"Cerca Scheda Strumento\" style=\"height:50px; width:250px; font-size: 20px; color: #ff00ff; align:center;\" > <\/form>\n[\/column]\n[\/columns]\n<\/p><\/div>\n<p><\/p>\n<hr \/>\n<h1>Stato dei Prestiti di [abase db=1 table=&#8221;Utente&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221; ^Nome&#8221; where= &#8220;Login LIKE \\&#8221;.$user.&#8217;\\'&#8221;] [abase db=1 table=&#8221;Utente&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221; ^Cognome&#8221;  where= &#8220;Login LIKE \\&#8221;.$user.&#8217;\\'&#8221;] <\/h1>\n<p>&#8216;;<br \/>\n\/\/############<br \/>\necho &#8216;<\/p>\n<table>\n<tr>\n<thead>\n<tr>\n<th colspan=\"2\">\n<h3>Prestiti in attesa di accettazione: <\/h3>\n<\/th>\n<\/tr>\n<\/thead>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td width=\"150\">\n<h4>Strumenti:<\/p>\n<h4><\/td>\n<td rowspan=\"2\">[abase db=1 table=&#8221;Prestito&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Nome Strumento^NomeStrumento,Tipo Strumento^TipoStrumento,Seriale,Inventario&#8221; where= &#8220;`Login` = \\&#8221;.$user.&#8217;\\&#8217; AND `Rilascio` = 1&#8243;]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>[button color=&#8221;00ff00&#8243; url=&#8221;https:\/\/edulab.unitn.it\/area51\/prestito\/accetta-prestito\/&#8221;]Accetta[\/button]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td >\n<h4>Minuteria:<\/p>\n<h4><\/td>\n<td rowspan=\"2\">[abase db=1 table=&#8221;Minuteria&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Descrizione,Note&#8221; where= &#8220;`Login` = \\&#8221;.$user.&#8217;\\&#8217; AND `Rilascio` = 1&#8243;]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>[button color=&#8221;00ff00&#8243; textcolor=&#8221;red&#8221; url=&#8221;https:\/\/edulab.unitn.it\/area51\/prestito\/accetta-prestito\/&#8221;]Accetta[\/button]<\/td>\n<\/tr>\n<tr>\n<thead>\n<tr>\n<th colspan=\"2\">\n<h3>Prestiti in corso: <\/h3>\n<\/th>\n<\/tr>\n<\/thead>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>\n<h4>Strumenti:<\/p>\n<h4><\/td>\n<td>[abase db=1 table=&#8221;Prestito&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Data Prestito^Data_Prestito,Tipo Strumento^TipoStrumento,Nome Strumento^NomeStrumento,Seriale,Inventario,Note&#8221; where= &#8220;Confirm LIKE \\&#8217;%&#8217;.$user.&#8217;%\\&#8217;AND `Data_Restituzione` IS NULL&#8221;]<\/td>\n<\/tr>\n<tr bgcolor=\"#f2f2f2\">\n<td>\n<h4>Minuteria:<\/p>\n<h4><\/td>\n<td>[abase db=1 table=&#8221;Minuteria&#8221; center=&#8221;*&#8221; style=&#8221;width:100%&#8221; columns=&#8221;Descrizione,Note&#8221; where= &#8220;Confirm LIKE \\&#8217;%&#8217;.$user.&#8217;%\\&#8217;AND `Data_Restituzione` IS NULL&#8221;]<\/td>\n<\/tr>\n<\/table>\n<p>&#8216;;<br \/>\n     }<\/p>\n<p>echo &#8220;\\r\\n&#8221;;<br \/>\n}<br \/>\nelse {<br \/>\n\/\/ sezione utente non loggato<br \/>\necho &#8216;<\/p>\n<h1 style=\"text-align: center;\">Questa sezione del sito richiede l\\&#8217;accesso<\/h1>\n<p>&#8216;;<br \/>\necho &#8216;<\/p>\n<h1 style=\"text-align: center;\">con le credenziali Unitn<\/h1>\n<p>&#8216;;<br \/>\necho &#8216;<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #ff0000;\">\u00a0e comunque ricorda:<\/span><\/p>\n<p>&#8216;;<br \/>\necho &#8216;<\/p>\n<h3 style=\"text-align: center;\">Varda che chi no l\\&#8217;\u00e8 el Poli<\/h3>\n<p>&#8216;;<br \/>\necho &#8216;<\/p>\n<p style=\"text-align: center;\">(Giorgio Paris)<\/p>\n<p>&#8216;;<br \/>\n}<br \/>\necho &#8220;<\/p>\n<hr \/>\n<p>&#8220;.$dat3;<br \/>\n\/\/<\/p>\n<form action='.$site.'\/presta-strumentazione\/rilascia-prestiti-pendenti\/> <input type=\"submit\" value=\"Rilascia Prestito\" style=\"height:50px; width:250px; font-size: 20px; color: #00cc99;\" > <\/form>\n[\/insert_php]\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] $site = &#8220;https:\/\/edulab.unitn.it\/area51&#8221;; $dat= date(&#8216;Y-m-d&#8217;); $dat2= date(&#8216;d-m-Y&#8217;); $dat3= date(&#8216;l d-m-Y H:i&#8217;); global $user_login; global $user_level; get_currentuserinfo(); $user = $user_login; $level = $user_level; \/\/echo $user.&#8217; &#8216;.$dat; \/\/echo &#8216;gigi&#8217;; if ($user){ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1798","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/pages\/1798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/comments?post=1798"}],"version-history":[{"count":320,"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/pages\/1798\/revisions"}],"predecessor-version":[{"id":7660,"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/pages\/1798\/revisions\/7660"}],"wp:attachment":[{"href":"https:\/\/edulab.unitn.it\/area51\/wp-json\/wp\/v2\/media?parent=1798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}