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

REF IBM Websphere : Fichier configuration + ports

http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wsps.ins.doc/doc/cins_coexist_port_numbers.html

Outil ODMClean.tar

http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21191336

Nettoyage configuration WebSphere AIX

Suite à une suppression de FS pour supprimer une application websphere, le référentiel ODM contient toujours des entrées qui peuvent bloquer toute nouvelle installation ayant la même destination ou le même nom (ex /appli/epresrc0).
Pour débloquer, il faut faire une mise à jour de la base ODM ...
Lister les entrées contenues dans le référentiel ODM:
installRegistryUtils.sh -listProducts
Commande pour supprimer une entrée:
installRegistryUtils.sh -cleanProduct -offering BASE -installLocation /appli/epresrc0/AppServer
Le binaire de n'importe quelle install websphere peut être utilisé.
Présent sous ~HTTPServer/bin, ~AppServer/bin

Registre des installations WebSphere AIX

Registre des installations WebSphere

/usr/lib/objrepos/vpd.properties

IBM.WBIA.5724-H09.WebServices.main|3|4|0|0|WebServices3.4.0|1=WebServices|Product|WebServices|IBM Corporation|http://www.ibm.com|5724-H09|/appli/WebSphere
ICS/WebSphereAdapters|0|0|1|IBM.WBIA.5724-H09.WebServices.main|3|4|0|0|WebServices3.4.0|1|0|false|"_uninst_WebServices" "uninstall.jar" "uninstall.dat" ""
|true|3|IBM.WBIA.5724-H09.WebServices.main|3|4|0|0|WebServices3.4.0|1
IBM.WBIA.5724-H06.MQSeries.common.component|2|7|0|0|MQSeries2.7.0|1=component53|Adaptercommon| | | | |/appli/WebSphereICS/WebSphereAdapters|0|0|1|IBM.WBIA
.5724-H06.MQSeries.feature|2|7|0|0|MQSeries2.7.0|1|0|false| |true|3|IBM.WBIA.5724-H06.MQSeries.common.component|2|7|0|0|MQSeries2.7.0|1
IHS6.base|6|0|0|0|6.0.0.0|1=feature1|HTTPServer base|IHS Base Server| | | |/appli/IBMIHS|0|0|1|IHS6|6|0|0|0|6.0.0.0|1|0|false| |true|3.1.0.0|/appli/ficharc3/AppServer|0|0|1|WSBAA61|6|1|0|0|6.1.0.0|1|0|false|"_uninst" "uninstall.jar" "uninstall.dat" ""|true|3|WSBAA61|6|1|0|0|6.1.0.0|1
WSBIHAA51|1|3|0|28| |3=ihsFeature|IHS WebServer|$L(com.ibm.ws.install.resourcebundle.WSResourceBundle,Features.ihs.description)| | | |/appli/itmdig62/IBMH
TTPServer|0|1|WSBGKAA51|5|1|0|0| |3|0|2|ref_497363|1|WSBAA51|5|1|0|0| |3|0|false| |true|3|WSBIHAA51|1|3|0|28| |3
WSBIHAA51|1|3|0|28| |2=ihsFeature|IHS WebServer|$L(com.ibm.ws.install.resourcebundle.WSResourceBundle,Features.ihs.description)| | | |/appli/WebDev/IBMHtt


/usr/.ibm/.nif/.nifregistry

Egalement

~root/.WASRegistry

root@evolan:/usr/lib/objrepos >cat /home/root/.WASRegistry
/appli/oasisit6/AppServer
/appli/oasisit62/AppServer
/appli/oasisig6/AppServer
/appli/oasisrc0/AppServer