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);
}
}
dimanche 14 octobre 2012
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>
$(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 : Liste des Produits installés
Lister les Produits
Sous ~was/AppServer/bin
installRegistryUtils.sh -listProducts
Sous ~was/AppServer/bin
installRegistryUtils.sh -listProducts
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
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
Inscription à :
Articles (Atom)