dimanche 14 octobre 2012

Zend : FetchAssoc in MVC Zend_Db_Table

class Matrice extends Zend_DB_Table {
   
    public function listeMatrice() {
       
          $db = $this->getDefaultAdapter();
          $db->setFetchMode(Zend_Db::FETCH_ASSOC);
          $query  = "select m.id, c.nom, e.alias, m.comment, m.display
                     from matrice m, couloir c, environnement e
                     where c.id=m.id_couloir and e.id=m.id_env
                     group by id_couloir, id_env
                     order by id_couloir, id_env";
         
            return $db->fetchAssoc($query);
       
    }
}

mardi 9 octobre 2012

JQuery : Activer élément on MouseOver

Cette fonction js permet d'activer l'affichage d'éléments (type update/delete) lorsque l'on passe la souris au dessus d'un lien dans une DataGrid. Seul l'élément sélectionné est affiché. 

# JavaScript

$(document).ready(function(){

        // au chargement de la page, on masque le div #msg
        hide_msg();

        $(".icon_div").mouseover(function() {
                $(this).children('.icon').show();
        });

        $(".icon_div").mouseout(function() {
                $(this).children('.icon').hide();
        });
});

function hide_msg()
{
        $(".icon").hide();
}

# Code HTML
<div style='font-size:8pt;' class='icon_div'>
<a href='URL' target='_blank'>title</a>
 if ( isset($_GET['edit']) && ($_GET['edit'] == "true" ) && ($url != null) )
{
<a class='icon' href='?page=form/console_form&id=$id_console'><img src='static/img/newspaper-edit.png' style='border:none; width:13px;'></img></a>
<a class='icon' ref='?page=crud/crud_console&id=$id_console&action=delete' onclick='return checkdel();'><img src='static/img/cross.png' style='width:10px; border:none;'></img></a>
}
</div>

lundi 8 octobre 2012

WAS : Grille tarifaire

https://www-112.ibm.com/software/howtobuy/buyingtools/paexpress/Express?P0=E1&part_number=D55W8LL,D55WJLL,D51JXLL,D55WQLL,D55WELL&catalogLocale=fr_FR&Locale=fr_FR&country=FRA&PT=html&S_TACT=none&S_CMP=none&brand=ws

WAS : Liste des Produits installés

Lister les Produits

Sous ~was/AppServer/bin
installRegistryUtils.sh -listProducts

WAS : Contentions Mémoire

http://www.ibm.com/developerworks/websphere/library/techarticles/0606_poddar/0606_poddar.html

Optimisation Java

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/tprf_tunejvm_v61.html

Création Profil WebSphere

Créer un profile à partir d'un fichier de propriétés

manageprofiles.sh -response /appli/responsefiles/profil.txt


Exemple de fichier de propriétés
create
profileName=ProfileName
profilePath=/appli/profiles/profile
templatePath=/appli/WebSphere/AppServer/profileTemplates/default
nodeName=Node
cellName=Cell
hostName=ServerName
enableAdminSecurity=true
adminUserName=<username>
adminPassword=<password>
portsFile=/appli/responsefiles/portdefs.props