giovedì 20 novembre 2014

IMPOSTARE RUBRICA LDAP

  1. file
  2. informazioni
  3. impostazioni account
  4. impostazioni account
  5. rubriche
  6. nuovo
  7. nuova finestra avanti
  8. server
  9. utente
  10.  password
  11. avanti


venerdì 18 luglio 2014

menu drop down

all'interno di $function
/*menu drop down  >>>*/
$('#menu li ul').css({
    display: "none",
    left: "auto"
  });
  $('#menu li').hover(function() {
    $(this)
      .find('ul')
      .stop(true, true)
.slideDown('slow', 'easeOutBounce');
  }, function() {
    $(this)
      .find('ul')
      .stop(true,true)
      .hide();
  });
/*<<<<<menu drop down*/

su un foglio di stile
#barMenu {
  position: relative;
height:30px;
top: 5px;
background-image: url(./img/sfondoBarMenu.png);
background-repeat:repeat-x;
background-position: 0px -34px;
}

#menu {
  position: absolute;
  top: 0px;
  left: 0;
}

#menu, #menu ul {
  padding: 0;
  margin: 0;
  list-style: none;

}

#menu > li  > a{
text-align:center;
text-decoration: none;
}

#menu li {
  float: left;

}

#menu a {
  display: block;
  padding: 5px;
  width: 130px;
  border-style:solid;
  border-width: 1px 1px 1px 1px ;
text-decoration: none;
}

#menu li ul {
  position: absolute;
  left: -999em;
  width: 140px;
  
}

#menu li:hover ul, #menu li ul:hover {
  left:auto;

}

#menu > li:hover {
  background: #333;
  box-shadow: 0px 0px 15px #ffffff;
}

#menu li ul li {
  background: #333;

}
#menu li ul li:hover {
  background: #eee;
color: #f00;
  box-shadow: 0px 0px 15px #ffffff;
}

su html


<!-- inizio BARRA DEI MENU -->
<div id="barMenu">
<!-- SCRIVE I MENU -->
<nav role="navigation">
<ul id="menu">
<li><a href="http://www.usc-calcroci.it/index.php?pageId=home">HOME</a>
</li><li><a href="http://www.usc-calcroci.it/#">LA SQUADRA</a><ul style="left: auto; display: none;"><li><a href="http://www.usc-calcroci.it/index.php?pageId=direttivo">DIRETTIVO</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=atleti14&tipo=php">ATLETI</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=storia">STORIA</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=contatti">CONTATTI</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=sponsor">SOSTENITORI</a></li>
</ul></li><li><a href="http://www.usc-calcroci.it/#">STAGIONE 14</a><ul style="left: auto; display: none;"><li><a href="http://www.usc-calcroci.it/documenti/2014/stagione2014.pdf" target="_blank">STATUTO</a></li>
<li><a href="http://www.usc-calcroci.it/documenti/2014/modulo_di_iscrizione_2014.pdf" target="_blank">ISCRIZIONE</a></li>
<li><a href="http://www.usc-calcroci.it/documenti/2014/Vestiario2014.pdf" target="_blank">VESTIARIO</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=clasSoc2013&tipo=php">CLASSIFICA SOCIALE</a></li>
</ul></li><li><a href="http://www.usc-calcroci.it/#">MANIFESTAZIONI</a><ul style="left: auto; display: none;"><li><a href="http://www.usc-calcroci.it/index.php?pageId=calendario14&tipo=php">CALENDARIO 2014</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=calendario14Tab&tipo=php">CALENDARIO 14 TAB</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=trofei14&tipo=php">TROFEI 2014</a></li>
<li><a href="http://www.usc-calcroci.it/tuttiTempi14/">RISULTATI</a></li>
</ul></li><li><a href="http://www.usc-calcroci.it/#">UTILITY</a><ul style="left: auto; display: none;"><li><a href="http://www.usc-calcroci.it/index.php?pageId=photoGallery2012&tipo=php">PHOTOGALLERY</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=forum&tipo=php&tForum=Pubblica">FORUM</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=forum&tipo=php&tForum=NEWS">NEWS</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=meteo">METEO</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=linkUtili&tipo=php">LINK UTILI</a></li>
<li><a href="https://www.facebook.com/pages/Calcroci-mtb/745781225437620" target="_blank">FACEBOOK</a></li>
</ul></li><li><a href="http://www.usc-calcroci.it/#">AREA RISERVATA</a><ul style="left: auto; display: none;"><li><a href="http://www.usc-calcroci.it/index.php?pageId=vediPosta">POSTA</a></li>
<li><a href="http://www.usc-calcroci.it/index.php?pageId=login&tipo=php">LOGIN</a></li>
</ul> </li></ul>
</nav>
</div>

venerdì 11 aprile 2014

DRAG-DROP SU TREEVIEW

Private Sub TreeView1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
   If Button = vbLeftButton Then ' Signal a Drag operation.
      Draging = True ' Set the flag to true.
      ' Set the drag icon with the CreateDragImage method.
     
      TreeView1.Drag vbBeginDrag ' Drag operation.
   End If
End Sub

Private Sub TreeView1_DragOver(Source As Control, x As Single, y As Single, State As Integer)
   If Draging = True Then
      ' Set DropHighlight to the mouse's coordinates.
      Set TreeView1.DropHighlight = TreeView1.HitTest(x, y)
   End If
End Sub


Private Sub gridMail_DragDrop(Source As Control, x As Single, y As Single)
  Set nodoScelto = TreeView1.SelectedItem
  'se il nodo è livello 3 significa che è un fornitore e quindi lo inserisce subito in lista
  If livelloNodo(nodoScelto) = 3 Then
    aggiungiInGridMail nodoScelto.Text
  End If
 
End Sub





lunedì 31 marzo 2014

riportare il contenuto di una tabella mysql in php

<?php
$query = "SELECT * FROM `miatabella` ";
$risultato = mysql_query($query) or die("Query fallita: " . mysql_error() );
$numcampi = mysql_num_fields($risultato);
echo "<table class='tabZebra' border='1'><tr>";
for ($i=0; $i < $numcampi; $i++)   {
echo '<th>'.mysql_field_name($risultato, $i).'</th>';
   }
   echo "</tr>";
while ($row = mysql_fetch_row($risultato)) {
echo '<tr><td>'.implode($row,'</td><td>')."</td></tr>";
  }
echo "</table>";
 ?>

giovedì 13 marzo 2014

jquery, nascondere colonne

vedi il link
http://www.devcurry.com/2009/07/hide-table-column-with-single-line-of.html



<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="Scripts/jquery-1.3.2.js"
    type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#btnHide').click(function() {
                $('td:nth-child(2)').hide();
                // if your table has header(th), use this
                //$('td:nth-child(2),th:nth-child(2)').hide();
            });
        });
    </script>
</head>
<body>
<table id="tableone" border="1">
    <tr class="del">
        <td>Row 0 Column 0</td>
        <td >Row 0 Column 1</td>
        <td >Row 0 Column 2</td>
    </tr>
    <tr class="del">
        <td>Row 1 Column 0</td>
        <td>Row 1 Column 1</td>
        <td>Row 1 Column 2</td>
    </tr>
    <tr class="del">
        <td>Row 2 Column 0</td>
        <td>Row 2 Column 1</td>
        <td>Row 2 Column 2</td>
    </tr>
    <tr class="del">
        <td>Row 3 Column 0</td>
        <td>Row 3 Column 1</td>
        <td>Row 3 Column 2</td>
    </tr>
     <tr class="del">
        <td>Row 4 Column 0</td>
        <td>Row 4 Column 1</td>
        <td>Row 4 Column 2</td>
    </tr>
     <tr class="del">
        <td>Row 5 Column 0</td>
        <td>Row 5 Column 1</td>
        <td>Row 5 Column 2</td>
    </tr>
</table>
    <input id="btnHide" type="button" value="Hide Column 2"/>

</body>
</html>

lunedì 10 marzo 2014

Inviare una mail outlook con VB6

Private Sub inviaMail()
Dim OutApp As Object
Dim OutMail As Object
Dim nomefiledaallegare As String
Dim testoMail As String
Dim FIRME As String
Dim SIGNATURE As String

  Set OutApp = CreateObject("Outlook.Application")
  OutApp.Session.Logon
  Set OutMail = OutApp.CreateItem(0)


FIRME = "C:\Documents and Settings\XXXXXXXXXXXXXXXXXXX\Dati applicazioni\Microsoft\Firme elettroniche\xxxxxx.htm"
If Dir(FIRME) <> "" Then
SIGNATURE = GetBoiler(FIRME)
Else
SIGNATURE = ""
End If
   
  testoMail = "<html><head></head><body>"
  testoMail = testoMail & "Ciao<br>"
  testoMail = testoMail & "Prova invio mail da outlook con VB6."
  testoMail = testoMail & "</body></html>" & " " & SIGNATURE

   
  On Error Resume Next
  With OutMail
    .display
    .To = "destinatario@itn.it"
    .CC = ""
    .BCC = ""
    .Subject = "Prova invio mail da outlook con VB6."
    .HTMLbody = testoMail
    .Attachments.Add nomeFile
    '.send
    .Readreceiptrequested = False
  End With
  On Error GoTo 0
  Set OutMail = Nothing
  Set OutApp = Nothing
 
End Sub

Private Sub Command1_Click()
inviaMail
End Sub


Function GetBoiler(ByVal sFile As String) As String
    Dim fso As Object
    Dim ts As Object
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set ts = fso.GetFile(sFile).OpenAsTextStream(1, -2)
    GetBoiler = ts.readall
    ts.Close
End Function