text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Serialized Form</title>
<meta name="date" content="2014-11-16">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Serialized Form

Package assiettesSpec

Class assiettesSpec.Dessert extends Assiette implements Serializable

Class assiettesSpec.Entree extends Assiette implements Serializable

Class assiettesSpec.Salade extends Assiette implements Serializable

Package employesSpec

Class employesSpec.Caissier extends Employe implements Serializable

Class employesSpec.Cuisinier extends Employe implements Serializable

Class employesSpec.Manager extends Employe implements Serializable

Class employesSpec.Serveur extends Employe implements Serializable

Package modele

Class modele.Assiette extends java.lang.Object implements Serializable

serialVersionUID:

5312190494804032702L

Serialized Fields

id_assiette

int id_assiette

cont2

int cont2

retID

int retID

nom

java.lang.String nom

ingredients

java.lang.String ingredients

description

java.lang.String description

type

java.lang.String type

retType

java.lang.String retType

prix

float prix

retprix

float retprix

archivo

java.lang.String archivo

arrTousAssi

java.util.ArrayList<E> arrTousAssi

arrTriAssi

java.util.ArrayList<E> arrTriAssi

combo

java.util.ArrayList<E> combo

treeMapAssietes

java.util.Map<K,V> treeMapAssietes

Class modele.Commande extends java.lang.Object implements Serializable

serialVersionUID:

-8317840631610092868L

Serialized Fields

no_orden

int no_orden

no_mesa

int no_mesa

no_comensal

int no_comensal

no_empleado

int no_empleado

no_linea

int no_linea

id_platOr

int id_platOr

cont2

int cont2

cont3

int cont3

cont4

int cont4

idEmp

int idEmp

usTab

int usTab

exist

int exist

fecha

java.lang.String fecha

nombrePlat

java.lang.String nombrePlat

status

java.lang.String status

total

float total

costo

float costo

archivo

java.lang.String archivo

archivo_2

java.lang.String archivo_2

assi

Assiette assi

emplo

Employe emplo

treeMapComm

java.util.Map<K,V> treeMapComm

detalle

java.util.ArrayList<E> detalle

dComm

java.util.ArrayList<E> dComm

tousCom

java.util.ArrayList<E> tousCom

payTab

java.util.ArrayList<E> payTab

payInd

java.util.ArrayList<E> payInd

combo

java.util.ArrayList<E> combo

Class modele.Employe extends java.lang.Object implements Serializable

serialVersionUID:

3932695567075754321L

Serialized Fields

prenom

java.lang.String prenom

nom

java.lang.String nom

sexe

java.lang.String sexe

date_N

java.lang.String date_N

rue

java.lang.String rue

ville

java.lang.String ville

pay

java.lang.String pay

user

java.lang.String user

pass

java.lang.String pass

telef

int telef

id

int id

numero

int numero

cont2

int cont2

login

int login

valide

int valide

app

java.lang.String app

pre

java.lang.String pre

archivo

java.lang.String archivo

array

java.util.ArrayList<E> array

array1

java.util.ArrayList<E> array1

combo

java.util.ArrayList<E> combo

treeMap

java.util.Map<K,V> treeMap

Package tests

Class tests.AjouUser extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblEmploi

javax.swing.JLabel lblEmploi

lblNoEmpleado

javax.swing.JLabel lblNoEmpleado

lblUsuario

javax.swing.JLabel lblUsuario

txtAjouUserNEmp

javax.swing.JTextField txtAjouUserNEmp

txtAjouUserEmploi

javax.swing.JTextField txtAjouUserEmploi

txtAjouUserUser

javax.swing.JTextField txtAjouUserUser

pswdAjouUser

javax.swing.JPasswordField pswdAjouUser

btnAjouUserEnreg

javax.swing.JButton btnAjouUserEnreg

lblBase1

javax.swing.JLabel lblBase1

lblContrasea

javax.swing.JLabel lblContrasea

lblAdministator

javax.swing.JLabel lblAdministator

Package vue

Class vue.Debut extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblTit

javax.swing.JLabel lblTit

lblElEmpleadoNo

javax.swing.JLabel lblElEmpleadoNo

txtUser

javax.swing.JTextField txtUser

passPswd

javax.swing.JPasswordField passPswd

lblPass

javax.swing.JLabel lblPass

lblUser

javax.swing.JLabel lblUser

cmbEmployes

javax.swing.JComboBox<E> cmbEmployes

btnConnecter

javax.swing.JButton btnConnecter

contador

int contador

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

Package vue.assiette

Class vue.assiette.AjoAssiette extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblType

javax.swing.JLabel lblType

txtDes

javax.swing.JTextField txtDes

lblPrix

javax.swing.JLabel lblPrix

txtPrix

javax.swing.JTextField txtPrix

lblIngred

javax.swing.JLabel lblIngred

txtIngred

javax.swing.JTextField txtIngred

btnEnregistrer

javax.swing.JButton btnEnregistrer

btnSortir

javax.swing.JButton btnSortir

lblDescripcion

javax.swing.JLabel lblDescripcion

lblTitle

javax.swing.JLabel lblTitle

cmbType

javax.swing.JComboBox<E> cmbType

lblsp

javax.swing.JLabel lblsp

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblBase3

javax.swing.JLabel lblBase3

lblNom

javax.swing.JLabel lblNom

txtAjoAssNom

javax.swing.JTextField txtAjoAssNom

cmbSalSuc

javax.swing.JComboBox<E> cmbSalSuc

lblIDAssi

javax.swing.JLabel lblIDAssi

Class vue.assiette.ConAssiette extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

dTblMdl

javax.swing.table.DefaultTableModel dTblMdl

scrollPaneCAss

javax.swing.JScrollPane scrollPaneCAss

btnCAssSortir

javax.swing.JButton btnCAssSortir

cmbCAssTipo

javax.swing.JComboBox<E> cmbCAssTipo

cmbCAssNom

javax.swing.JComboBox<E> cmbCAssNom

btnCAssSearch

javax.swing.JButton btnCAssSearch

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblBase3

javax.swing.JLabel lblBase3

tblCAssAssiettes

javax.swing.JTable tblCAssAssiettes

lblELI

javax.swing.JLabel lblELI

Class vue.assiette.DelAssiette extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

btnDelAssSortir

javax.swing.JButton btnDelAssSortir

cmbDelAssTipo

javax.swing.JComboBox<E> cmbDelAssTipo

cmbDelAssNom

javax.swing.JComboBox<E> cmbDelAssNom

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblELI

javax.swing.JLabel lblELI

btnDelAssEffacer

javax.swing.JButton btnDelAssEffacer

Class vue.assiette.MenuAssiette extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

btnMAssNouveau

javax.swing.JButton btnMAssNouveau

btnMAssModifier

javax.swing.JButton btnMAssModifier

btnMAssConsulter

javax.swing.JButton btnMAssConsulter

btnMAssEffacer

javax.swing.JButton btnMAssEffacer

btnMAssSalir

javax.swing.JButton btnMAssSalir

lblMAss

javax.swing.JLabel lblMAss

Class vue.assiette.ModAssiette extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

txtDNI

javax.swing.JTextField txtDNI

txtMAssDesc

javax.swing.JTextField txtMAssDesc

txtMAssPrix

javax.swing.JTextField txtMAssPrix

txtDAssIngre

javax.swing.JTextField txtDAssIngre

lblID

javax.swing.JLabel lblID

lblDescr

javax.swing.JLabel lblDescr

lblIngred

javax.swing.JLabel lblIngred

btnMAssSearch

javax.swing.JButton btnMAssSearch

btnMAssModif

javax.swing.JButton btnMAssModif

btnMAssSortir

javax.swing.JButton btnMAssSortir

cmbMAssType

javax.swing.JComboBox<E> cmbMAssType

cmbMAssNom

javax.swing.JComboBox<E> cmbMAssNom

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblPrix

javax.swing.JLabel lblPrix

lblNom

javax.swing.JLabel lblNom

txtMAssNom

javax.swing.JTextField txtMAssNom

lblType

javax.swing.JLabel lblType

cmbTypeDess

javax.swing.JComboBox<E> cmbTypeDess

Package vue.commande

Class vue.commande.AjoCommande extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

txtDComm

javax.swing.JTextField txtDComm

txtDNPer

javax.swing.JTextField txtDNPer

txtDNLin

javax.swing.JTextField txtDNLin

lblDComm

javax.swing.JLabel lblDComm

lblDNPer

javax.swing.JLabel lblDNPer

lblDNLin

javax.swing.JLabel lblDNLin

lblDNomAss

javax.swing.JLabel lblDNomAss

lblDTAss

javax.swing.JLabel lblDTAss

btnDAjouter

javax.swing.JButton btnDAjouter

btnPerSuiv

javax.swing.JButton btnPerSuiv

cmbDTipAss

javax.swing.JComboBox<E> cmbDTipAss

txtPrix

javax.swing.JTextField txtPrix

lblDPrix

javax.swing.JLabel lblDPrix

btnDCancelar

javax.swing.JButton btnDCancelar

label

javax.swing.JLabel label

cmbDNomAss

javax.swing.JComboBox<E> cmbDNomAss

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

Class vue.commande.ChangerStatusCom extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

tablaOrdenesChSt

javax.swing.JTable tablaOrdenesChSt

btnChStSortir

javax.swing.JButton btnChStSortir

lblEligeUnaOrden

javax.swing.JLabel lblEligeUnaOrden

scrollTablaChSt

javax.swing.JScrollPane scrollTablaChSt

popupMenuChSt

javax.swing.JPopupMenu popupMenuChSt

mntmChangerStausAss

javax.swing.JMenuItem mntmChangerStausAss

dtm

javax.swing.table.DefaultTableModel dtm

lblSeleccionaUnaFila

javax.swing.JLabel lblSeleccionaUnaFila

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

Class vue.commande.ListAssiettesCommandes extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

tableAssComm

javax.swing.JTable tableAssComm

dtmList

javax.swing.table.DefaultTableModel dtmList

scrollPaneAssComm

javax.swing.JScrollPane scrollPaneAssComm

btnAssCommCancelar

javax.swing.JButton btnAssCommCancelar

popupMenuAssComm

javax.swing.JPopupMenu popupMenuAssComm

lblAssietesComandes

javax.swing.JLabel lblAssietesComandes

llen

java.lang.Object[][] llen

contador

int contador

detalle

java.lang.String detalle

precio

float precio

total

float total

lblSeleccionaUnaFila

javax.swing.JLabel lblSeleccionaUnaFila

label

javax.swing.JLabel label

label_1

javax.swing.JLabel label_1

label_2

javax.swing.JLabel label_2

mntmModificarASCom

javax.swing.JMenuItem mntmModificarASCom

Class vue.commande.ModifyLigne extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

txtMLCom

javax.swing.JTextField txtMLCom

txtMLPersonne

javax.swing.JTextField txtMLPersonne

txtMLLig

javax.swing.JTextField txtMLLig

lblOrden

javax.swing.JLabel lblOrden

lblComensal

javax.swing.JLabel lblComensal

lblLinea

javax.swing.JLabel lblLinea

lblNomAssiette

javax.swing.JLabel lblNomAssiette

lblTypeAssiette

javax.swing.JLabel lblTypeAssiette

btnMLEnregistrer

javax.swing.JButton btnMLEnregistrer

cmbMLType

javax.swing.JComboBox<E> cmbMLType

txtMLPrix

javax.swing.JTextField txtMLPrix

lblPrix

javax.swing.JLabel lblPrix

btnMLAnnuler

javax.swing.JButton btnMLAnnuler

label

javax.swing.JLabel label

cmbMLMAss

javax.swing.JComboBox<E> cmbMLMAss

dec

java.text.DecimalFormat dec

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

Class vue.commande.NewCommande extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblTitle

javax.swing.JLabel lblTitle

txtNTab

javax.swing.JTextField txtNTab

txtNomPers

javax.swing.JTextField txtNomPers

txtEmplo

javax.swing.JTextField txtEmplo

btnGenerar

javax.swing.JButton btnGenerar

btnAnnuler

javax.swing.JButton btnAnnuler

calendario

org.freixas.jcalendar.JCalendarCombo calendario

txtNComm

javax.swing.JTextField txtNComm

lblNumComm

javax.swing.JLabel lblNumComm

lblNmeroTable

javax.swing.JLabel lblNmeroTable

lblNPers

javax.swing.JLabel lblNPers

lblNumEmpl

javax.swing.JLabel lblNumEmpl

lblStat

javax.swing.JLabel lblStat

lblEnProceso

javax.swing.JLabel lblEnProceso

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

Class vue.commande.NouvelleStat extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lbletat

javax.swing.JLabel lbletat

lblEtatAct

javax.swing.JLabel lblEtatAct

btnChEst

javax.swing.JButton btnChEst

btnAnnuler

javax.swing.JButton btnAnnuler

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

Class vue.commande.PaiementGroup extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblIndividual

javax.swing.JLabel lblIndividual

lblNoOrden

javax.swing.JLabel lblNoOrden

lblComensal

javax.swing.JLabel lblComensal

scrollTablaG

javax.swing.JScrollPane scrollTablaG

tabAssiG

javax.swing.JTable tabAssiG

txtTotalG

javax.swing.JTextField txtTotalG

lblTotalAPagar

javax.swing.JLabel lblTotalAPagar

dtm

javax.swing.table.DefaultTableModel dtm

lblIngresaElMonto

javax.swing.JLabel lblIngresaElMonto

txtNoCommG

javax.swing.JTextField txtNoCommG

txtNoPersG

javax.swing.JTextField txtNoPersG

txtMontoG

javax.swing.JTextField txtMontoG

txtMonnG

javax.swing.JTextField txtMonnG

lblElCambioEs

javax.swing.JLabel lblElCambioEs

btnPayerG

javax.swing.JButton btnPayerG

btnAnnulerG

javax.swing.JButton btnAnnulerG

btnMonnaieG

javax.swing.JButton btnMonnaieG

label

javax.swing.JLabel label

lbleuro

javax.swing.JLabel lbleuro

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblLblemplo

javax.swing.JLabel lblLblemplo

Class vue.commande.PaiementIndiv extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblIndividual

javax.swing.JLabel lblIndividual

lblNoOrden

javax.swing.JLabel lblNoOrden

lblComensal

javax.swing.JLabel lblComensal

scrollTabla

javax.swing.JScrollPane scrollTabla

tabAssi

javax.swing.JTable tabAssi

txtTotal

javax.swing.JTextField txtTotal

lblTotalAPagar

javax.swing.JLabel lblTotalAPagar

dtm

javax.swing.table.DefaultTableModel dtm

lblIngresaElMonto

javax.swing.JLabel lblIngresaElMonto

txtNoComm

javax.swing.JTextField txtNoComm

txtNoPers

javax.swing.JTextField txtNoPers

txtMonto

javax.swing.JTextField txtMonto

txtMonn

javax.swing.JTextField txtMonn

lblElCambioEs

javax.swing.JLabel lblElCambioEs

btnSuivante

javax.swing.JButton btnSuivante

btnAnnuler

javax.swing.JButton btnAnnuler

btnMonnaie

javax.swing.JButton btnMonnaie

label

javax.swing.JLabel label

lbleuro

javax.swing.JLabel lbleuro

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblEmplo

javax.swing.JLabel lblEmplo

Class vue.commande.PayerCommande extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblEligeElTipo

javax.swing.JLabel lblEligeElTipo

txtNoTab

javax.swing.JTextField txtNoTab

lblEncabezado

javax.swing.JLabel lblEncabezado

lblIngresaElNumero

javax.swing.JLabel lblIngresaElNumero

rdbtnSeul

javax.swing.JRadioButton rdbtnSeul

rdbtnParTab

javax.swing.JRadioButton rdbtnParTab

btnGenerer

javax.swing.JButton btnGenerer

btnAnnuler

javax.swing.JButton btnAnnuler

lblMendsaje

javax.swing.JLabel lblMendsaje

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

btnchercher

javax.swing.JButton btnchercher

Package vue.employe

Class vue.employe.AjoEmploye extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblNom

javax.swing.JLabel lblNom

lblApellidoPaterno

javax.swing.JLabel lblApellidoPaterno

lblDateNaiss

javax.swing.JLabel lblDateNaiss

lblSexe

javax.swing.JLabel lblSexe

lblEmploi

javax.swing.JLabel lblEmploi

lblVille

javax.swing.JLabel lblVille

lblNmero

javax.swing.JLabel lblNmero

lblPays

javax.swing.JLabel lblPays

lblTelf

javax.swing.JLabel lblTelf

lblRue

javax.swing.JLabel lblRue

lblStat

javax.swing.JLabel lblStat

lblStatus

javax.swing.JLabel lblStatus

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblBase3

javax.swing.JLabel lblBase3

lblAjouterEmp

javax.swing.JLabel lblAjouterEmp

rdbtnHomme

javax.swing.JRadioButton rdbtnHomme

rdbtnFemme

javax.swing.JRadioButton rdbtnFemme

btnAddEmploi

javax.swing.JButton btnAddEmploi

btnSortirAjoEmp

javax.swing.JButton btnSortirAjoEmp

txtNom

javax.swing.JTextField txtNom

txtPrenom

javax.swing.JTextField txtPrenom

txtTel

javax.swing.JTextField txtTel

txtRue

javax.swing.JTextField txtRue

txtNum

javax.swing.JTextField txtNum

txtVille

javax.swing.JTextField txtVille

txtPay

javax.swing.JTextField txtPay

cmbEmploi

javax.swing.JComboBox<E> cmbEmploi

calendario

org.freixas.jcalendar.JCalendarCombo calendario

lblUser

javax.swing.JLabel lblUser

txtUserS

javax.swing.JTextField txtUserS

txtPassS

javax.swing.JPasswordField txtPassS

lblPassword

javax.swing.JLabel lblPassword

lblIDAjo

javax.swing.JLabel lblIDAjo

Class vue.employe.ConEmploye extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

scrollPane

javax.swing.JScrollPane scrollPane

tblemp

javax.swing.JTable tblemp

dTblMdl

javax.swing.table.DefaultTableModel dTblMdl

lblemp

javax.swing.JLabel lblemp

btnConEmpSortir

javax.swing.JButton btnConEmpSortir

cmbConEmpPuesto

javax.swing.JComboBox<E> cmbConEmpPuesto

lblSeleccioneTipoDe

javax.swing.JLabel lblSeleccioneTipoDe

rdbtnConEmpTous

javax.swing.JRadioButton rdbtnConEmpTous

rdbtnConEmpPue

javax.swing.JRadioButton rdbtnConEmpPue

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblBase3

javax.swing.JLabel lblBase3

lblBase4

javax.swing.JLabel lblBase4

lblBase5

javax.swing.JLabel lblBase5

Class vue.employe.DelEmploye extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

scrollPane

javax.swing.JScrollPane scrollPane

tblDelEmp

javax.swing.JTable tblDelEmp

dTblMdl

javax.swing.table.DefaultTableModel dTblMdl

lblemp

javax.swing.JLabel lblemp

btnDelEmpSortir

javax.swing.JButton btnDelEmpSortir

cmbDelEmpPuesto

javax.swing.JComboBox<E> cmbDelEmpPuesto

lblSeleccioneTipoDe

javax.swing.JLabel lblSeleccioneTipoDe

rdbtnDelEmpTous

javax.swing.JRadioButton rdbtnDelEmpTous

rdbtnDelEmpPuesto

javax.swing.JRadioButton rdbtnDelEmpPuesto

mntmEliminar

javax.swing.JMenuItem mntmEliminar

popupMenu

javax.swing.JPopupMenu popupMenu

lblELI

javax.swing.JLabel lblELI

lblDaClicDerecho

javax.swing.JLabel lblDaClicDerecho

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblBase3

javax.swing.JLabel lblBase3

lblBase4

javax.swing.JLabel lblBase4

lblBase5

javax.swing.JLabel lblBase5

Class vue.employe.MenuEmployes extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

btnMEmpNouveau

javax.swing.JButton btnMEmpNouveau

btnMEmpModifier

javax.swing.JButton btnMEmpModifier

btnMEmpConsulter

javax.swing.JButton btnMEmpConsulter

btnmEmpEffacer

javax.swing.JButton btnmEmpEffacer

btnMEmpSalir

javax.swing.JButton btnMEmpSalir

lblMEmp

javax.swing.JLabel lblMEmp

lblIcono

javax.swing.JLabel lblIcono

Class vue.employe.MenuManager extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

btnMenManEmp

javax.swing.JButton btnMenManEmp

lblMEN

javax.swing.JLabel lblMEN

btnMenManAss

javax.swing.JButton btnMenManAss

lblBase1

javax.swing.JLabel lblBase1

Class vue.employe.ModEmploye extends javax.swing.JFrame implements Serializable

Serialized Fields

contentPane

javax.swing.JPanel contentPane

lblemp

javax.swing.JLabel lblemp

btnModEmpEditarReg

javax.swing.JButton btnModEmpEditarReg

btnModEmpSortir

javax.swing.JButton btnModEmpSortir

lblIntroduceElNo

javax.swing.JLabel lblIntroduceElNo

lblNoEmpleado

javax.swing.JLabel lblNoEmpleado

textModEmplNo

javax.swing.JTextField textModEmplNo

lblNom

javax.swing.JLabel lblNom

txtModEmpNom

javax.swing.JTextField txtModEmpNom

lblModEmpPrenom

javax.swing.JLabel lblModEmpPrenom

txtModEmpPrenom

javax.swing.JTextField txtModEmpPrenom

lblFechaNac

javax.swing.JLabel lblFechaNac

lblSexe

javax.swing.JLabel lblSexe

txtModEmpRue

javax.swing.JTextField txtModEmpRue

txtModEmpNum

javax.swing.JTextField txtModEmpNum

txtModEmpVille

javax.swing.JTextField txtModEmpVille

txtModEmpPays

javax.swing.JTextField txtModEmpPays

txtModEmpTel

javax.swing.JTextField txtModEmpTel

rdbtnModEmpHomme

javax.swing.JRadioButton rdbtnModEmpHomme

rdbtnModEmpFemme

javax.swing.JRadioButton rdbtnModEmpFemme

lblVille

javax.swing.JLabel lblVille

lblNmero

javax.swing.JLabel lblNmero

lblRue

javax.swing.JLabel lblRue

lblPays

javax.swing.JLabel lblPays

lblTelfono

javax.swing.JLabel lblTelfono

btnModEmpSearch

javax.swing.JButton btnModEmpSearch

calModEmp

org.freixas.jcalendar.JCalendarCombo calModEmp

edad

int edad

anios

int anios

an

int an

m

int m

d

int d

lblPuesto

javax.swing.JLabel lblPuesto

cmbModEmpNouPuesto

javax.swing.JComboBox<E> cmbModEmpNouPuesto

cmbModEmpPuesto

javax.swing.JComboBox<E> cmbModEmpPuesto

lblPuesto_1

javax.swing.JLabel lblPuesto_1

cmbModEmpNom

javax.swing.JComboBox<E> cmbModEmpNom

ruta

java.lang.String ruta

nombre

java.lang.String nombre

lblBase1

javax.swing.JLabel lblBase1

lblBase2

javax.swing.JLabel lblBase2

lblBase3

javax.swing.JLabel lblBase3

lblUser

javax.swing.JLabel lblUser

txtModEmpPass

javax.swing.JPasswordField txtModEmpPass

txtModEmpUser

javax.swing.JTextField txtModEmpUser

lblPassword

javax.swing.JLabel lblPassword

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
package org.jivesoftware.smackx.workgroup.ext.notes;

import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;

/**
 * IQ packet for retrieving and adding Chat Notes.
 */
public class ChatNotes extends IQ {

    /**
     * Element name of the packet extension.
     */
    public static final String ELEMENT_NAME = "chat-notes";

    /**
     * Namespace of the packet extension.
     */
    public static final String NAMESPACE = "http://jivesoftware.com/protocol/workgroup";

    private String sessionID;
    private String notes;

    public String getSessionID() {
        return sessionID;
    }

    public void setSessionID(String sessionID) {
        this.sessionID = sessionID;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String getChildElementXML() {
        StringBuilder buf = new StringBuilder();

        buf.append("<").append(ELEMENT_NAME).append(" xmlns=\"").append(NAMESPACE).append("\">");
        buf.append("<sessionID>").append(getSessionID()).append("</sessionID>");

        if (getNotes() != null) {
            buf.append("<notes>").append(getNotes()).append("</notes>");
        }
        buf.append("</").append(ELEMENT_NAME).append("> ");

        return buf.toString();
    }

    /**
     * An IQProvider for ChatNotes packets.
     *
     * @author Derek DeMoro
     */
    public static class Provider implements IQProvider {

        public Provider() {
            super();
        }

        public IQ parseIQ(XmlPullParser parser) throws Exception {
            ChatNotes chatNotes = new ChatNotes();

            boolean done = false;
            while (!done) {
                int eventType = parser.next();
                if (eventType == XmlPullParser.START_TAG) {
                    if (parser.getName().equals("sessionID")) {
                        chatNotes.setSessionID(parser.nextText());
                    }
                    else if (parser.getName().equals("text")) {
                        String note = parser.nextText();
                        note = note.replaceAll("\\\\n", "\n");
                        chatNotes.setNotes(note);
                    }
                }
                else if (eventType == XmlPullParser.END_TAG) {
                    if (parser.getName().equals(ELEMENT_NAME)) {
                        done = true;
                    }
                }
            }

            return chatNotes;
        }
    }

    /**
     * Replaces all instances of oldString with newString in string.
     *
     * @param string    the String to search to perform replacements on
     * @param oldString the String that should be replaced by newString
     * @param newString the String that will replace all instances of oldString
     * @return a String will all instances of oldString replaced by newString
     */
    public static final String replace(String string, String oldString, String newString) {
        if (string == null) {
            return null;
        }
        // If the newString is null or zero length, just return the string since there's nothing
        // to replace.
        if (newString == null) {
            return string;
        }
        int i = 0;
        // Make sure that oldString appears at least once before doing any processing.
        if ((i = string.indexOf(oldString, i)) >= 0) {
            // Use char []'s, as they are more efficient to deal with.
            char[] string2 = string.toCharArray();
            char[] newString2 = newString.toCharArray();
            int oLength = oldString.length();
            StringBuilder buf = new StringBuilder(string2.length);
            buf.append(string2, 0, i).append(newString2);
            i += oLength;
            int j = i;
            // Replace all remaining instances of oldString with newString.
            while ((i = string.indexOf(oldString, i)) > 0) {
                buf.append(string2, j, i - j).append(newString2);
                i += oLength;
                j = i;
            }
            buf.append(string2, j, string2.length - j);
            return buf.toString();
        }
        return string;
    }
}

redpajama_set_name: RedPajamaGithub


text:
package dialogflow

import (
	fmt "fmt"
	proto "github.com/golang/protobuf/proto"
	_struct "github.com/golang/protobuf/ptypes/struct"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	math "math"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package

// The request message for a webhook call.
type WebhookRequest struct {
	// The unique identifier of detectIntent request session.
	// Can be used to identify end-user inside webhook implementation.
	// Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
	Session string `protobuf:"bytes,4,opt,name=session,proto3" json:"session,omitempty"`
	// The unique identifier of the response. Contains the same value as
	// `[Streaming]DetectIntentResponse.response_id`.
	ResponseId string `protobuf:"bytes,1,opt,name=response_id,json=responseId,proto3" json:"response_id,omitempty"`
	// The result of the conversational query or event processing. Contains the
	// same value as `[Streaming]DetectIntentResponse.query_result`.
	QueryResult *QueryResult `protobuf:"bytes,2,opt,name=query_result,json=queryResult,proto3" json:"query_result,omitempty"`
	// Alternative query results from KnowledgeService.
	AlternativeQueryResults []*QueryResult `protobuf:"bytes,5,rep,name=alternative_query_results,json=alternativeQueryResults,proto3" json:"alternative_query_results,omitempty"`
	// Optional. The contents of the original request that was passed to
	// `[Streaming]DetectIntent` call.
	OriginalDetectIntentRequest *OriginalDetectIntentRequest `protobuf:"bytes,3,opt,name=original_detect_intent_request,json=originalDetectIntentRequest,proto3" json:"original_detect_intent_request,omitempty"`
	XXX_NoUnkeyedLiteral        struct{}                     `json:"-"`
	XXX_unrecognized            []byte                       `json:"-"`
	XXX_sizecache               int32                        `json:"-"`
}

func (m *WebhookRequest) Reset()         { *m = WebhookRequest{} }
func (m *WebhookRequest) String() string { return proto.CompactTextString(m) }
func (*WebhookRequest) ProtoMessage()    {}
func (*WebhookRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_e44190e355d0ffbc, []int{0}
}

func (m *WebhookRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_WebhookRequest.Unmarshal(m, b)
}
func (m *WebhookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_WebhookRequest.Marshal(b, m, deterministic)
}
func (m *WebhookRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WebhookRequest.Merge(m, src)
}
func (m *WebhookRequest) XXX_Size() int {
	return xxx_messageInfo_WebhookRequest.Size(m)
}
func (m *WebhookRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_WebhookRequest.DiscardUnknown(m)
}

var xxx_messageInfo_WebhookRequest proto.InternalMessageInfo

func (m *WebhookRequest) GetSession() string {
	if m != nil {
		return m.Session
	}
	return ""
}

func (m *WebhookRequest) GetResponseId() string {
	if m != nil {
		return m.ResponseId
	}
	return ""
}

func (m *WebhookRequest) GetQueryResult() *QueryResult {
	if m != nil {
		return m.QueryResult
	}
	return nil
}

func (m *WebhookRequest) GetAlternativeQueryResults() []*QueryResult {
	if m != nil {
		return m.AlternativeQueryResults
	}
	return nil
}

func (m *WebhookRequest) GetOriginalDetectIntentRequest() *OriginalDetectIntentRequest {
	if m != nil {
		return m.OriginalDetectIntentRequest
	}
	return nil
}

// The response message for a webhook call.
type WebhookResponse struct {
	// Optional. The text to be shown on the screen. This value is passed directly
	// to `QueryResult.fulfillment_text`.
	FulfillmentText string `protobuf:"bytes,1,opt,name=fulfillment_text,json=fulfillmentText,proto3" json:"fulfillment_text,omitempty"`
	// Optional. The collection of rich messages to present to the user. This
	// value is passed directly to `QueryResult.fulfillment_messages`.
	FulfillmentMessages []*Intent_Message `protobuf:"bytes,2,rep,name=fulfillment_messages,json=fulfillmentMessages,proto3" json:"fulfillment_messages,omitempty"`
	// Optional. This value is passed directly to `QueryResult.webhook_source`.
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// Optional. This value is passed directly to `QueryResult.webhook_payload`.
	// See the related `fulfillment_messages[i].payload field`, which may be used
	// as an alternative to this field.
	//
	// This field can be used for Actions on Google responses.
	// It should have a structure similar to the JSON message shown here. For more
	// information, see
	// [Actions on Google Webhook
	// Format](https://developers.google.com/actions/dialogflow/webhook)
	//
{
	//   "google": {
	//     "expectUserResponse": true,
	//     "richResponse": {
	//       "items": [
	//         {
	//           "simpleResponse": {
	//             "textToSpeech": "this is a simple response"
	//           }
	//         }
	//       ]
	//     }
	//   }
	// }

	Payload *_struct.Struct `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	// Optional. The collection of output contexts. This value is passed directly
	// to `QueryResult.output_contexts`.
	OutputContexts []*Context `protobuf:"bytes,5,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
	// Optional. Makes the platform immediately invoke another `DetectIntent` call
	// internally with the specified event as input.
	FollowupEventInput *EventInput `protobuf:"bytes,6,opt,name=followup_event_input,json=followupEventInput,proto3" json:"followup_event_input,omitempty"`
	// Optional. Indicates that this intent ends an interaction. Some integrations
	// (e.g., Actions on Google or Dialogflow phone gateway) use this information
	// to close interaction with an end user. Default is false.
	EndInteraction       bool     `protobuf:"varint,8,opt,name=end_interaction,json=endInteraction,proto3" json:"end_interaction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *WebhookResponse) Reset()         { *m = WebhookResponse{} }
func (m *WebhookResponse) String() string { return proto.CompactTextString(m) }
func (*WebhookResponse) ProtoMessage()    {}
func (*WebhookResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_e44190e355d0ffbc, []int{1}
}

func (m *WebhookResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_WebhookResponse.Unmarshal(m, b)
}
func (m *WebhookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_WebhookResponse.Marshal(b, m, deterministic)
}
func (m *WebhookResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_WebhookResponse.Merge(m, src)
}
func (m *WebhookResponse) XXX_Size() int {
	return xxx_messageInfo_WebhookResponse.Size(m)
}
func (m *WebhookResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_WebhookResponse.DiscardUnknown(m)
}

var xxx_messageInfo_WebhookResponse proto.InternalMessageInfo

func (m *WebhookResponse) GetFulfillmentText() string {
	if m != nil {
		return m.FulfillmentText
	}
	return ""
}

func (m *WebhookResponse) GetFulfillmentMessages() []*Intent_Message {
	if m != nil {
		return m.FulfillmentMessages
	}
	return nil
}

func (m *WebhookResponse) GetSource() string {
	if m != nil {
		return m.Source
	}
	return ""
}

func (m *WebhookResponse) GetPayload() *_struct.Struct {
	if m != nil {
		return m.Payload
	}
	return nil
}

func (m *WebhookResponse) GetOutputContexts() []*Context {
	if m != nil {
		return m.OutputContexts
	}
	return nil
}

func (m *WebhookResponse) GetFollowupEventInput() *EventInput {
	if m != nil {
		return m.FollowupEventInput
	}
	return nil
}

func (m *WebhookResponse) GetEndInteraction() bool {
	if m != nil {
		return m.EndInteraction
	}
	return false
}

// Represents the contents of the original request that was passed to
// the `[Streaming]DetectIntent` call.
type OriginalDetectIntentRequest struct {
	// The source of this request, e.g., `google`, `facebook`, `slack`. It is set
	// by Dialogflow-owned servers.
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Optional. The version of the protocol used for this request.
	// This field is AoG-specific.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Optional. This field is set to the value of `QueryParameters.payload` field
	// passed in the request.
	//
	// This field is used for the telephony gateway. It should have a
	// structure similar to this JSON message:
	//
{
	//  "telephony": {
	//    "caller_id": "+18558363987"
	//  }
	// }

	// Note: The caller ID field (`caller_id`) will be in
	// [E.164 format](https://en.wikipedia.org/wiki/E.164) and is only supported
	// for Enterprise Edition and not for Standard Edition agents. When the
	// telephony gateway is used with a standard tier agent the `caller_id` field
	// above will have a value of `REDACTED_IN_STANDARD_TIER_AGENT`.
	Payload              *_struct.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (m *OriginalDetectIntentRequest) Reset()         { *m = OriginalDetectIntentRequest{} }
func (m *OriginalDetectIntentRequest) String() string { return proto.CompactTextString(m) }
func (*OriginalDetectIntentRequest) ProtoMessage()    {}
func (*OriginalDetectIntentRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_e44190e355d0ffbc, []int{2}
}

func (m *OriginalDetectIntentRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_OriginalDetectIntentRequest.Unmarshal(m, b)
}
func (m *OriginalDetectIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_OriginalDetectIntentRequest.Marshal(b, m, deterministic)
}
func (m *OriginalDetectIntentRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_OriginalDetectIntentRequest.Merge(m, src)
}
func (m *OriginalDetectIntentRequest) XXX_Size() int {
	return xxx_messageInfo_OriginalDetectIntentRequest.Size(m)
}
func (m *OriginalDetectIntentRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_OriginalDetectIntentRequest.DiscardUnknown(m)
}

var xxx_messageInfo_OriginalDetectIntentRequest proto.InternalMessageInfo

func (m *OriginalDetectIntentRequest) GetSource() string {
	if m != nil {
		return m.Source
	}
	return ""
}

func (m *OriginalDetectIntentRequest) GetVersion() string {
	if m != nil {
		return m.Version
	}
	return ""
}

func (m *OriginalDetectIntentRequest) GetPayload() *_struct.Struct {
	if m != nil {
		return m.Payload
	}
	return nil
}

func init() {
	proto.RegisterType((*WebhookRequest)(nil), "google.cloud.dialogflow.v2beta1.WebhookRequest")
	proto.RegisterType((*WebhookResponse)(nil), "google.cloud.dialogflow.v2beta1.WebhookResponse")
	proto.RegisterType((*OriginalDetectIntentRequest)(nil), "google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest")
}

func init() {
	proto.RegisterFile("google/cloud/dialogflow/v2beta1/webhook.proto", fileDescriptor_e44190e355d0ffbc)
}

var fileDescriptor_e44190e355d0ffbc = []byte{
	// 603 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xcf, 0x6e, 0xd4, 0x30,
	0x10, 0xc6, 0x95, 0x5d, 0xe8, 0x1f, 0x6f, 0xd5, 0x45, 0xa6, 0xa2, 0xa1, 0x45, 0x74, 0x55, 0x0e,
	0x2c, 0xa2, 0x24, 0x6a, 0x39, 0xc2, 0xa9, 0x2d, 0xa0, 0x3d, 0xa0, 0xb6, 0x01, 0x81, 0x84, 0x84,
	0x22, 0x6f, 0x32, 0x9b, 0x46, 0xb8, 0x9e, 0x34, 0xb6, 0x77, 0xdb, 0x23, 0x1c, 0x79, 0x0c, 0x8e,
	0x7d, 0x10, 0x9e, 0x89, 0x23, 0x8a, 0xed, 0xb0, 0xe1, 0x50, 0x52, 0x8e, 0x33, 0x9e, 0xef, 0xe7,
	0xf1, 0x97, 0x99, 0x90, 0x67, 0x19, 0x62, 0xc6, 0x21, 0x4c, 0x38, 0xea, 0x34, 0x4c, 0x73, 0xc6,
	0x31, 0x9b, 0x70, 0x9c, 0x85, 0xd3, 0xbd, 0x31, 0x28, 0xb6, 0x1b, 0xce, 0x60, 0x7c, 0x8a, 0xf8,
	0x25, 0x28, 0x4a, 0x54, 0x48, 0xb7, 0x6c, 0x79, 0x60, 0xca, 0x83, 0x79, 0x79, 0xe0, 0xca, 0x37,
	0x1e, 0x38, 0x1e, 0x2b, 0xf2, 0x90, 0x09, 0x81, 0x8a, 0xa9, 0x1c, 0x85, 0xb4, 0xf2, 0x8d, 0xd6,
	0xdb, 0x12, 0x14, 0x0a, 0x2e, 0x94, 0x2b, 0xdf, 0x69, 0x2b, 0xcf, 0x85, 0x02, 0xa1, 0x6e, 0x0a,
	0x97, 0x20, 0x65, 0x8e, 0xc2, 0x95, 0xd7, 0x9d, 0x9a, 0x68, 0xac, 0x27, 0xa1, 0x54, 0xa5, 0x4e,
	0x1c, 0x6c, 0xfb, 0x7b, 0x97, 0xac, 0x7e, 0xb4, 0x4f, 0x8f, 0xe0, 0x5c, 0x83, 0x54, 0xd4, 0x27,
	0x8b, 0x8e, 0xe0, 0xdf, 0x1a, 0x78, 0xc3, 0xe5, 0xa8, 0x0e, 0xe9, 0x16, 0xe9, 0x95, 0x20, 0x0b,
	0x14, 0x12, 0xe2, 0x3c, 0xf5, 0x3d, 0x73, 0x4a, 0xea, 0xd4, 0x28, 0xa5, 0x47, 0x64, 0xe5, 0x5c,
	0x43, 0x79, 0x19, 0x97, 0x20, 0x35, 0x57, 0x7e, 0x67, 0xe0, 0x0d, 0x7b, 0x7b, 0x3b, 0x41, 0x8b,
	0x9b, 0xc1, 0x49, 0x25, 0x8a, 0x8c, 0x26, 0xea, 0x9d, 0xcf, 0x03, 0x7a, 0x4a, 0xee, 0x33, 0xae,
	0xa0, 0x14, 0x4c, 0xe5, 0x53, 0x88, 0x9b, 0x70, 0xe9, 0xdf, 0x1e, 0x74, 0xff, 0x9b, 0xbe, 0xde,
	0xc0, 0x35, 0xf2, 0x92, 0x7e, 0xf5, 0xc8, 0x43, 0x2c, 0xf3, 0x2c, 0x17, 0x8c, 0xc7, 0x29, 0x28,
	0x48, 0x54, 0x6c, 0x6d, 0x8f, 0x4b, 0x6b, 0x8c, 0xdf, 0x35, 0xaf, 0x79, 0xd9, 0x7a, 0xdf, 0x91,
	0xc3, 0x1c, 0x1a, 0xca, 0xc8, 0x40, 0x9c, 0xb9, 0xd1, 0x26, 0x5e, 0x7f, 0xb8, 0xfd, 0xb3, 0x4b,
	0xfa, 0x7f, 0x3e, 0x86, 0x35, 0x95, 0x3e, 0x21, 0x77, 0x26, 0x9a, 0x4f, 0x72, 0xce, 0xcf, 0xaa,
	0x5e, 0xaa, 0xa9, 0x71, 0xc6, 0xf7, 0x1b, 0xf9, 0xf7, 0x70, 0xa1, 0xe8, 0x98, 0xac, 0x35, 0x4b,
	0xcf, 0x40, 0x4a, 0x96, 0x81, 0xf4, 0x3b, 0xc6, 0xa7, 0xb0, 0xb5, 0x6f, 0xdb, 0x4c, 0xf0, 0xd6,
	0xea, 0xa2, 0xbb, 0x0d, 0x98, 0xcb, 0x49, 0x7a, 0x8f, 0x2c, 0x48, 0xd4, 0x65, 0x02, 0xc6, 0x8d,
	0xe5, 0xc8, 0x45, 0x74, 0x97, 0x2c, 0x16, 0xec, 0x92, 0x23, 0x4b, 0xcd, 0xd0, 0xf4, 0xf6, 0xd6,
	0xeb, 0xeb, 0xea, 0xb9, 0x0b, 0xde, 0x99, 0xb9, 0x8b, 0xea, 0x3a, 0x7a, 0x42, 0xfa, 0xa8, 0x55,
	0xa1, 0x55, 0xec, 0xb6, 0xa1, 0xfe, 0xa2, 0xc3, 0xd6, 0x4e, 0x0f, 0xac, 0x20, 0x5a, 0xb5, 0x00,
	0x17, 0x4a, 0xfa, 0x99, 0xac, 0x4d, 0x90, 0x73, 0x9c, 0xe9, 0x22, 0x86, 0x69, 0x65, 0x42, 0x2e,
	0x0a, 0xad, 0xfc, 0x05, 0xd3, 0xd2, 0xd3, 0x56, 0xee, 0xab, 0x4a, 0x33, 0xaa, 0x24, 0x11, 0xad,
	0x41, 0xf3, 0x1c, 0x7d, 0x4c, 0xfa, 0x20, 0x52, 0x33, 0x16, 0x25, 0x4b, 0xaa, 0x85, 0xf7, 0x97,
	0x06, 0xde, 0x70, 0x29, 0x5a, 0x05, 0x91, 0x8e, 0xe6, 0xd9, 0xed, 0x6f, 0x1e, 0xd9, 0xfc, 0xc7,
	0x14, 0x34, 0x5c, 0xf4, 0xfe, 0x72, 0xd1, 0x27, 0x8b, 0x53, 0x28, 0xcd, 0xea, 0x75, 0xec, 0xea,
	0xb9, 0xb0, 0xe9, 0x6f, 0xf7, 0x66, 0xfe, 0xee, 0x5f, 0x79, 0xe4, 0x51, 0x82, 0x67, 0x6d, 0x8f,
	0xde, 0x5f, 0x71, 0x23, 0x77, 0x5c, 0x81, 0x8e, 0xbd, 0x4f, 0x23, 0x27, 0xc8, 0x90, 0x33, 0x91,
	0x05, 0x58, 0x66, 0x61, 0x06, 0xc2, 0x5c, 0x13, 0xda, 0x23, 0x56, 0xe4, 0xf2, 0xda, 0xdf, 0xcf,
	0x8b, 0x79, 0xea, 0x97, 0xe7, 0xfd, 0xe8, 0x74, 0x0e, 0x5f, 0x5f, 0x75, 0xb6, 0xde, 0x58, 0xe6,
	0x81, 0x69, 0xe2, 0x70, 0xde, 0xc4, 0x07, 0x2b, 0x1a, 0x2f, 0x18, 0xfe, 0xf3, 0xdf, 0x01, 0x00,
	0x00, 0xff, 0xff, 0x42, 0x28, 0x28, 0xef, 0xa8, 0x05, 0x00, 0x00,
}


text:
<?xml version="1.0" encoding="UTF-8"?>

<!--
   Copyright 2008 University of Rochester

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!--
    Document   : ivy.xml
    Created on : November 22, 2008, 3:52 PM
    Author     : Nathan Sarr
    Description:
        Purpose of the document follows.
-->

<ivy-module version="2.0">
    <info organisation="file_db_service" module="file_db_service"/>
    <dependencies>
        <dependency org="file_db_hibernate" name="file_db_hibernate" rev="2.2" changing="true" />
    </dependencies>
</ivy-module>


text:
DEMO - https://naveenjamdagani.github.io/portfolio/

----------

* Single page showcase of my Resume
* Responsively designed page
* Clean UI and smooth UX
* Informative


text:
require 'shellwords'
class Updater
  module Network
    protected

    WRITE_FILES_MUTEX = Mutex.new

    def get_paths_by_type(dir, file_re, recursive = true)
      get_file_paths(dir, recursive).select { |path| path =~ file_re }
    end

    def get_file_paths(dir, recursive = true)
      get_tree(get_tree_sha(dir), recursive)['tree'].select { |f| f['type'] == 'blob' }.map { |f| f['path'] }
    end

    def file_url(path)
      "https://raw.githubusercontent.com/#@repo/#@branch_sha/#{path}"
    end

    def read_files(path, files)
      path_url = file_url path
      contents = read_cached_files(path, files)
      log_http_get_files contents.keys, path_url, true if contents.keys
      files -= contents.keys
      log_http_get_files files, path_url, false
      files.map do |name|
        Thread.start {
          begin
            url = "#{path_url}/#{name}"
            contents[name] = URI.open(url).read
          rescue Exception => e
            log "Error downloading #{url}: #{e}"
            exit 1
          end
          WRITE_FILES_MUTEX.synchronize { write_cached_files path, name => contents[name] }
        }
      end.each(&:join)
      contents
    end

    def read_cached_files(path, files)
      full_path = "#@cache_path/#@branch_sha/#{path}"
      contents  = {}
      if File.directory?(full_path)
        files.each do |name|
          path = "#{full_path}/#{name}"
          contents[name] = File.read(path, mode: 'rb') if File.exists?(path)
        end
      end
      contents
    end

    def write_cached_files(path, files)
      full_path = "./#@cache_path/#@branch_sha/#{path}"
      files.each do |name, content|
        FileUtils.mkdir_p File.dirname(File.join(full_path, name))
        File.open("#{full_path}/#{name}", 'wb') { |f| f.write content }
      end
    end

    def get_file(url)
      uri = URI(url)
      cache_path = "./#@cache_path#{uri.path}#{uri.query.tr('?&=', '-') if uri.query}"
      FileUtils.mkdir_p File.dirname(cache_path)
      if File.exists?(cache_path)
        log_http_get_file url, true
        File.read(cache_path, mode: 'rb')
      else
        log_http_get_file url, false
        content = URI.open(url).read
        File.open(cache_path, 'wb') { |f| f.write content }
        content
      end
    end

    # get sha of the branch (= the latest commit)
    def get_branch_sha
      @branch_sha ||= begin
        if @branch =~ /\A[0-9a-f]{40,}\z/
          @branch
        else
          cmd = "git ls-remote #{Shellwords.escape "https://github.com/#@repo"} #@branch"
          log cmd
          result = %x[#{cmd}]
          raise 'Could not get branch sha!' unless $?.success? && !result.empty?
          result.split(/\s+/).first
        end
      end
    end

    # Get the sha of a dir
    def get_tree_sha(dir, tree = get_trees)
      tree['tree'].find { |t| t['path'] == dir }['sha']
    end

    def get_trees
      @trees ||= get_tree(@branch_sha)
    end

    def get_tree(sha, recursive = true)
      get_json("https://api.github.com/repos/#@repo/git/trees/#{sha}#{'?recursive=1' if recursive}")
    end

    def get_json(url)
      JSON.parse get_file(url)
    end
  end
end


text:
package sagex.phoenix.db;

import sagex.phoenix.util.Pair;
import sagex.phoenix.vfs.IMediaResource;
import sagex.phoenix.vfs.filters.IResourceFilter;

public class ORFilter extends Pair<IResourceFilter, IResourceFilter> implements IResourceFilter {
    public ORFilter() {
        super();
    }

    public ORFilter(IResourceFilter first) {
        super(first, null);
    }

    @Override
    public boolean accept(IMediaResource res) {
        return first().accept(res) || second().accept(res);
    }

    public String toString() {
        return "(" + first() + " OR " + second() + ")";
    }
}


text:
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'

test do

  defaults domain: 'example.com'

  with_user_agent :chrome

  header [
    { name: 'Accept-Encoding', value: 'gzip,deflate,sdch' },
    { name: 'Accept', value: 'text/javascript, text/html, application/xml, text/xml, */*' }
  ]

  step  name: 'stepping thread group example',
        total_threads: 200,
        initial_delay: 0,
        start_threads: 20,
        add_threads: 0,
        start_every: 30,
        stop_threads: 50,
        stop_every: 5,
        flight_time: 1800,
        rampup: 5 do

    random_timer 1000, 3000

    get name: 'home', url: '/'
  end
end.run(path: '/usr/share/jmeter/bin/', gui: true)


text:
Unit test utilities for the ZK web framework.

## Requirements
ZK 7.0.3
JUnit 4.12
Hamcrest 1.3
Powermock 1.6.1

## User Guide
zkunit has three main components which can be used individually or combined as needed.

### 1) ZKTest
ZK utilizes a number of static classes which makes testing difficult. `org.zkoss.zkunit.ZKTest` is an abstract class
which your JUnit tests extend to quickly and easily mock out these static classes.

More than just saving you the boilerplate of mocking out the static classes, some of the functionality is implemented
back in to help in particular kinds of test.

#### `Selectors`
Mocked out with no functionality implemented. Use Mockito to inject your `@Wire` and `@WireVariable` dependencies.

#### `Clients`
Mocked out with no functionality implemented. Very useful for verifying ZK interaction with the client.

Consider the following toy example:
````java
    @Test
    public void shouldVeryClientsAlert() {
        // Given
        Button button = new WinnerButton();
        // When
        ZKUtils.simulateEvent(new Event(Events.ON_CLICK, button));
        // Then
        verifyStatic(times(1));
        Clients.alert("You win!");
    }

    public class WinnerButton extends Button {
        public WinnerButton() {
            super("Click me!");
            addEventListener(Events.ON_CLICK, new EventListener<Event>() {
                @Override
                public void onEvent(Event event) throws Exception {
                    Clients.alert("You win!");
                }
            });
        }
    }
````
Here we verify that a client side alert is displayed when the user clicks the `WinnerButton`.

Other `Clients` functions that are useful to verify include `Clients.showBusy`, `Clients.clearBusy`,
`Clients.showNotification`, `Clients.scrollIntoView`, and `Clients.evalJavaScript`.

### `Executions`
Mocked out with no functionality implemented. Very useful for verifying ZK execution behavior.

Consider another toy example with the same structure as the previous:
````java
    @Test
    public void shouldVeryExecutionsSendRedirect() {
        // Given
        Button button = new LogoutButton();
        // When
        ZKUtils.simulateEvent(new Event(Events.ON_CLICK, button));
        // Then
        verifyStatic(times(1));
        Executions.sendRedirect("/logout.zul");
    }

    private static class LogoutButton extends Button {
        public LogoutButton() {
            super("Click me!");
            addEventListener(Events.ON_CLICK, new EventListener<Event>() {
                @Override
                public void onEvent(Event event) throws Exception {
                    Executions.sendRedirect("/logout.zul");
                }
            });
        }
    }
````
Here, we are verifying that the user is redirected when they click the `LogoutButton`.

Another common use of the `Executions` static in ZK is `Executions.getCurrent()`. The uses of this are so varied,
however, we didn't provide any default mock behavior. Instead, it's best you provide your own if needed, e.g.:
````java
    @Test
    public void shouldReturnProvidedMockExecution() {
        // Given
        String query = "ZK";
        Execution current = mock(Execution.class);
        when(current.getParameter("query")).thenReturn(query);
        when(Executions.getCurrent()).thenReturn(current);
        SearchService searchService = mock(SearchService.class);
        // When
        new SearchComposer(searchService);
        // Then
        verify(searchService, times(1)).search(query);
    }

    private static class SearchComposer extends SelectorComposer<Window> {

        public SearchComposer(SearchService searchService) {
            String query = Executions.getCurrent().getParameter("query");
            Collection results = searchService.search(query);
            // display results ..
        }
    }

    private interface SearchService {
        Collection<String> search(String query);
    }
````

#### `Events`

#### `EventQueues`

### 2) `ZKUtils`
`org.zkoss.zkunit.ZKUtils` is a trivially simple set of utilities for working ZK in unit tests. In a live ZK
environment, ZK will work some magic for you which isn't available in unit tests. These utilities reimplement some of
that magic to simplify testing.

#### `ZKUtils.simulateEvent`
This can be a real lifesaver as you saw in the `ZKTest` examples above. Long story short, we enable you to fire events
on Components, simulating user interactions of server side events.

Here's a simple example where we simulate the user clicking a button and verify the button's behavior:
````java
    @Test
    public void shouldDisableButtonOnClick() {
        // Given
        SingleUseButton button = new SingleUseButton();
        // When
        ZKUtils.simulateEvent(new Event(Events.ON_CLICK, button));
        // Then
        assertTrue(button.isDisabled());
    }

    private static class SingleUseButton extends Button {

        private SingleUseButton() {
            super("Click me once, shame on you.");
            addEventListener(Events.ON_CLICK, new EventListener<Event>() {
                @Override
                public void onEvent(Event event) {
                    setDisabled(true);
                    setLabel("Click me twice, well, you can get clicked again.");
                }
            });
        }
    }
````
Note that, if there is no `Events.ON_CLICK` event listener registered on the button, an assertion error will fail the
test giving you a meaningful failure message.

#### `ZKUtils.getGrid()`
Returns a new ZK `Grid` initialized with `Columns` and `Rows` children.

In a live ZK environment, you can declare a `grid` in your zul file and ZK will add in the `columns` and `rows` for you.
In a unit test, however, if you create a `Grid` object, it has no children; you must add the `Columns` and `Rows`
manually before interacting with the grid.

### 3) `ZKAssert`
`org.zkoss.zkunit.ZKAssert` provides a number of assertions useful for validating the state of your ZK user interface.
Here I will demonstrate the use of a few, but it's best to familiarize yourself with the API to fully understand what
you can assert.

Here's an example where, similar to the examples above, we simulate the user clicking a button, but we then use
`ZKAssert` to verify the changes the button made to the user interface:
````java
    @Test
    public void shouldClearMessagesWhenClearButtonClicked() {
        // Given
        Component messagesList = new Vlayout();
        for (int i = 0; i < 10; i++) {
            messagesList.appendChild(new A("Message #" + i));
        }
        Button clearButton = new ClearMessagesButton(messagesList);
        // When
        ZKUtils.simulateEvent(new Event(Events.ON_CLICK, clearButton));
        // Then
        ZKAssert.assertHasNoChildren(messagesList);
    }

    private static class ClearMessagesButton extends Button {

        public ClearMessagesButton(final Component messagesList) {
            super("Clear Messages");
            addEventListener(Events.ON_CLICK, new EventListener<Event>() {
                @Override
                public void onEvent(Event event) {
                    messagesList.getChildren().clear();
                    Clients.showNotification("Messages cleared..");
                }
            });
        }
    }
````


text:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import logging
import time

from django.db import connection

from django_logutils.conf import settings

logger = logging.getLogger(__name__)

def create_log_dict(request, response):
    """
    Create a dictionary with logging data.
    """
    remote_addr = request.META.get('REMOTE_ADDR')
    if remote_addr in getattr(settings, 'INTERNAL_IPS', []):
        remote_addr = request.META.get(
            'HTTP_X_FORWARDED_FOR') or remote_addr

    user_email = "-"
    if hasattr(request, 'user'):
        user_email = getattr(request.user, 'email', '-')

    if response.streaming:
        content_length = 'streaming'
    else:
        content_length = len(response.content)

    return {
        # 'event' makes event-based filtering possible in logging backends
        # like logstash
        'event': settings.LOGUTILS_LOGGING_MIDDLEWARE_EVENT,
        'remote_address': remote_addr,
        'user_email': user_email,
        'method': request.method,
        'url': request.get_full_path(),
        'status': response.status_code,
        'content_length': content_length,
        'request_time': -1,  # NA value: real value added by LoggingMiddleware
    }

def create_log_message(log_dict, use_sql_info=False, fmt=True):
    """
    Create the logging message string.
    """
    log_msg = (
        "%(remote_address)s %(user_email)s %(method)s %(url)s %(status)d "
        "%(content_length)d (%(request_time).2f seconds)"
    )
    if use_sql_info:
        sql_time = sum(
            float(q['time']) for q in connection.queries) * 1000
        extra_log = {
            'nr_queries': len(connection.queries),
            'sql_time': sql_time}
        log_msg += " (%(nr_queries)d SQL queries, %(sql_time)f ms)"
        log_dict.update(extra_log)
    return log_msg % log_dict if fmt else log_msg

class LoggingMiddleware(object):
    """
    Capture request info and logs it.

    Logs all requests with log level info. If request take longer than
    REQUEST_TIME_THRESHOLD, log level warningis used.

    Logging middleware that captures the following:
        * logging event.
        * remote address (whether proxied or direct).
        * if authenticated, then user email address.
        * request method (GET/POST etc).
        * request full path.
        * response status code (200, 404 etc).
        * content length.
        * request process time.
        * if DEBUG=True or REQUEST_TIME_THRESHOLD is exceeded, also logs SQL
          query information - number of queries and how long they too.

    Based on: https://djangosnippets.org/snippets/2624/

    """
    def __init__(self, *args, **kwargs):
        """
        Add initial empty start_time.
        """
        self.start_time = None

    def process_request(self, request):
        """
        Add start time to request.
        """
        self.start_time = time.time()

    def process_response(self, request, response):
        """
        Create the logging message..
        """
        try:
            log_dict = create_log_dict(request, response)

            # add the request time to the log_dict; if no start time is
            # available, use -1 as NA value
            request_time = (
                time.time() - self.start_time if hasattr(self, 'start_time')
                and self.start_time else -1)
            log_dict.update({'request_time': request_time})

            is_request_time_too_high = (
                request_time > float(settings.LOGUTILS_REQUEST_TIME_THRESHOLD))
            use_sql_info = settings.DEBUG or is_request_time_too_high

            log_msg = create_log_message(log_dict, use_sql_info, fmt=False)

            if is_request_time_too_high:
                logger.warning(log_msg, log_dict, extra=log_dict)
            else:
                logger.info(log_msg, log_dict, extra=log_dict)
        except Exception as e:
            logger.exception(e)

        return response


text:
//
//  echo_server.cpp
//  fibio
//
//  Created by Chen Xu on 14-3-20.
//  Copyright (c) 2014 0d0a.com. All rights reserved.
//

#include <iostream>
#include <chrono>
#include <signal.h>
#include <boost/asio/basic_waitable_timer.hpp>
#include <boost/asio/signal_set.hpp>
#include <fibio/fiber.hpp>
#include <fibio/stream/iostream.hpp>
#include <fibio/fiberize.hpp>
#include <fibio/asio.hpp>

using namespace fibio;
std::string address("0::0");

// We don't need atomic or any other kind of synchronization as console and
// main_watchdog fibers are always running in the same thread with main_fiber
bool should_exit=false;

// Active connection counter
// Need to be atomic as this counter will be used across multiple threads
std::atomic<size_t> connections(0);

typedef boost::asio::basic_waitable_timer<std::chrono::steady_clock> watchdog_timer_t;

void hello(std::ostream &s) {
    s << "Fiberized.IO echo_server listening at " << address << std::endl;
}

void help_message() {
    std::cout << "Available commands:" << std::endl;
    std::cout << "quit:\tquit the application" << std::endl;
    std::cout << "info:\tshow the number of active connections" << std::endl;
    std::cout << "help:\tshow this message" << std::endl;
}

/**
 * console handler, set the exit flag on "quit" command
 */
void console() {
    // Hello message
    hello(std::cout);

    // Help message
    help_message();

    // Flush `std::cout` before getting input
    std::cin.tie(&std::cout);

    // Read a line from `std::cin` and process commands
    while(!should_exit && std::cin) {
        std::string line;
        // Command line prompt
        std::cout << "> ";
        // `std::cout` is automatically flushed before reading as it's tied to std::cout
        std::getline(std::cin, line);
        // Ignore empty line
        if(line.empty()) continue;
        if(line=="quit") {
            // Set the exit flag on `quit` command
            break;
        } else if (line=="info") {
            // Output the number of active connections
            std::cout << "Active connections: " << connections << std::endl;
        } else if (line=="help") {
            // Show help message
            help_message();
        } else {
            std::cout << "Invalid command" << std::endl;
            help_message();
        }
    }

    // Set the exit flag
    should_exit=true;
}

/**
 * watchdog for servant, close connection on timeout
 */
void servant_watchdog(watchdog_timer_t &timer, tcp_stream &s) {
    boost::system::error_code ignore_ec;
    while (s.is_open()) {
        timer.async_wait(asio::yield[ignore_ec]);
        // close the stream on timeout
        if (timer.expires_from_now() <= std::chrono::seconds(0)) {
            s.close();
        }
    }
}

/**
 * connection handler fiber
 */
void echo_servant(tcp_stream &s) {
    /**
     * Active connection counter
     */
    struct conn_counter {
        conn_counter() {connections+=1;}
        ~conn_counter() {connections-=1;}
    } counter;

    // Timeout timer
    watchdog_timer_t timer(asio::get_io_service());

    // Set connection timeout
    timer.expires_from_now(std::chrono::seconds(3));

    // Start watchdog fiber, close connection on timeout
    // ASIO sockets are *not* thread-safe, watchdog must not run in
    // different thread with handler
    fiber watchdog(fiber::attributes(fiber::attributes::stick_with_parent),
                   servant_watchdog,
                   std::ref(timer),
                   std::ref(s) );
    // Hello message
    hello(s);

    // Read a line and send it back
    std::string line;
    while (std::getline(s, line)) {
        s << line << std::endl;
        // Reset timeout timer on input
        timer.expires_from_now(std::chrono::seconds(3));
    }

    // Ask watchdog to exit
    timer.expires_from_now(std::chrono::seconds(0));
    timer.cancel();

    // Make sure watchdog has ended
    watchdog.join();
}

/**
 * Watchdog for main fiber, check the exit flag and signals once every second,
 * close main listener when flag is set or received signal
 */
void signal_watchdog(tcp_listener &l) {
    boost::asio::signal_set ss(asio::get_io_service(),
                               SIGINT,
                               SIGTERM);
#ifdef SIGQUIT
    ss.add(SIGQUIT);
#endif

    // Get a future, the future is ready if there is a signal
    future<int> sig=ss.async_wait(asio::use_future);

    while(!should_exit
          && sig.wait_for(std::chrono::seconds(1))!=future_status::ready)
    {}

    // Set the exit flag
    should_exit=true;

    // Stop main listener
    l.stop();
}

/**
 * main fiber, create acceptor to accept incoming connections,
 * starts a servant fiber to handle connection
 */
int fibio::main(int argc, char *argv[]) {
    if (argc!=2) {
        std::cerr << "Usage:" << "\t" << argv[0] << " [address:]port" << std::endl;
        return 1;
    }
    address=argv[1];

    // Start more work threads
    this_fiber::get_scheduler().add_worker_thread(3);

    // Start console
    fiber(console).detach();

    // Listener
    tcp_listener l(address);

    // Start watchdog
    fiber(signal_watchdog, std::ref(l)).detach();

    // Start listener
    int r=l(echo_servant).value();

    std::cout << "Echo server existing..." << std::endl;
    return r;
}


text:
ROOT = ../../../../..

DIR = Providers/ManagedSystem/UNIXProviders/SharingDependency

include $(ROOT)/mak/config.mak

LIBRARY = UNIX_SharingDependencyProvider

EXTRA_INCLUDES += -I/usr/local/include -I./..

SOURCES = \
	../CIMHelper.cpp \
	UNIX_SharingDependencyMain.cpp \
	UNIX_SharingDependency.cpp \
	UNIX_SharingDependencyProvider.cpp

ifeq ($(OS), aix)
	SOURCES += UNIX_SharingDependency_AIX.cpp
endif
ifeq ($(OS), darwin)
	SOURCES += UNIX_SharingDependency_DARWIN.cpp
endif
ifeq ($(OS), freebsd)
	SOURCES += UNIX_SharingDependency_FREEBSD.cpp
endif
ifeq ($(OS), hpux)
	SOURCES += UNIX_SharingDependency_HPUX.cpp
endif
ifeq ($(OS), linux)
	SOURCES += UNIX_SharingDependency_LINUX.cpp
endif
ifeq ($(OS), solaris)
	SOURCES += UNIX_SharingDependency_SOLARIS.cpp
endif
ifeq ($(OS), tru64)
	SOURCES += UNIX_SharingDependency_TRU64.cpp
endif
ifeq ($(OS), vms)
	SOURCES += UNIX_SharingDependency_VMS.cpp
endif
ifeq ($(OS), win32)
	SOURCES += UNIX_SharingDependency_WIN32.cpp
endif
ifeq ($(OS), zos)
	SOURCES += UNIX_SharingDependency_ZOS.cpp
endif
ifeq (, $(filter aix,darwin,freebsd,hpux,linux,solaris,tru64,vms,win32,zos $(OS)))

else
	SOURCES += UNIX_SharingDependency_STUB.cpp
endif

LIBRARIES = \
	pegprovider \
	pegclient \
	pegcommon \
	pegquerycommon \
	pegqueryexpression \
	pegcql \
	pegwql

EXTRA_LIBRARIES = \
	-pthread \
	-lutil \
	-lgeom \
	-lkvm \
	-lcam

include $(ROOT)/mak/dynamic-library.mak


text:
package org.apache.activemq.artemis.core.protocol.core.impl.wireformat;

import java.util.Arrays;

import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
import org.apache.activemq.artemis.core.journal.EncodingSupport;
import org.apache.activemq.artemis.core.protocol.core.impl.PacketImpl;
import org.apache.activemq.artemis.utils.DataConstants;

public final class ReplicationPrepareMessage extends PacketImpl {

   private long txId;

   /**
    * 0 - BindingsImpl, 1 - MessagesJournal
    */
   private byte journalID;

   private EncodingSupport encodingData;

   private byte[] recordData;

   public ReplicationPrepareMessage() {
      super(PacketImpl.REPLICATION_PREPARE);
   }

   public ReplicationPrepareMessage(final byte journalID, final long txId, final EncodingSupport encodingData) {
      this();
      this.journalID = journalID;
      this.txId = txId;
      this.encodingData = encodingData;
   }

   @Override
   public int expectedEncodeSize() {
      return PACKET_HEADERS_SIZE +
             DataConstants.SIZE_BYTE + // buffer.writeByte(journalID);
             DataConstants.SIZE_LONG + // buffer.writeLong(txId);
             DataConstants.SIZE_INT + // buffer.writeInt(encodingData.getEncodeSize());
             encodingData.getEncodeSize(); // encodingData.encode(buffer);
   }

   @Override
   public void encodeRest(final ActiveMQBuffer buffer) {
      buffer.writeByte(journalID);
      buffer.writeLong(txId);
      buffer.writeInt(encodingData.getEncodeSize());
      encodingData.encode(buffer);
   }

   @Override
   public void decodeRest(final ActiveMQBuffer buffer) {
      journalID = buffer.readByte();
      txId = buffer.readLong();
      int size = buffer.readInt();
      recordData = new byte[size];
      buffer.readBytes(recordData);
   }

   public long getTxId() {
      return txId;
   }

   /**
    * @return the journalID
    */
   public byte getJournalID() {
      return journalID;
   }

   /**
    * @return the recordData
    */
   public byte[] getRecordData() {
      return recordData;
   }

   @Override
   public int hashCode() {
      final int prime = 31;
      int result = super.hashCode();
      result = prime * result + ((encodingData == null) ? 0 : encodingData.hashCode());
      result = prime * result + journalID;
      result = prime * result + Arrays.hashCode(recordData);
      result = prime * result + (int) (txId ^ (txId >>> 32));
      return result;
   }

   @Override
   public boolean equals(Object obj) {
      if (this == obj) {
         return true;
      }
      if (!super.equals(obj)) {
         return false;
      }
      if (!(obj instanceof ReplicationPrepareMessage)) {
         return false;
      }
      ReplicationPrepareMessage other = (ReplicationPrepareMessage) obj;
      if (encodingData == null) {
         if (other.encodingData != null) {
            return false;
         }
      } else if (!encodingData.equals(other.encodingData)) {
         return false;
      }
      if (journalID != other.journalID) {
         return false;
      }
      if (!Arrays.equals(recordData, other.recordData)) {
         return false;
      }
      if (txId != other.txId) {
         return false;
      }
      return true;
   }
}


text:
import { expect } from "chai";

import { createElement } from "./CreateElement";

describe("createElement", () => {
    it("creates an element when given a tag name", () => {
        // Arrange
        const tagName = "div";

        // Act
        const element = createElement(tagName);

        // Assert
        expect(element.tagName).to.be.equal("DIV");
    });

    it("appends children to the element when given children", () => {
        // Arrange
        const children = [createElement("p"), createElement("span")];

        // Act
        const element = createElement("div", { children });

        // Assert
        expect([].slice.call(element.children)).to.be.deep.equal(children);
    });

    it("sets the className of the element when given a className", () => {
        // Arrange
        const className = "abc def";

        // Act
        const element = createElement("div", { className });

        // Assert
        expect(element.className).to.be.equal(className);
    });

    it("sets the textContent of the element when given a textContent", () => {
        // Arrange
        const textContent = "abc def";

        // Act
        const element = createElement("div", { textContent });

        // Assert
        expect(element.textContent).to.be.equal(textContent);
    });

    it("adds style properties to the element when given a style", () => {
        // Arrange
        const style: Partial<CSSStyleDeclaration> = {
            backgroundColor: "blue",
            color: "red",
        };

        // Act
        const element = createElement("div", { style });

        // Assert
        expect(element.style).to.contain(style);
    });
});


text:
<?php

/**
 *       \file       htdocs/bookmarks/fiche.php
 *       \brief      Page display/creation of bookmarks
 *       \ingroup    bookmark
 *       \version    $Id: fiche.php,v 1.26 2010/08/19 20:29:55 eldy Exp $
 */

require("../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/bookmarks/class/bookmark.class.php");

$langs->load("other");

$action=isset($_GET["action"])?$_GET["action"]:$_POST["action"];
$title=isset($_GET["title"])?$_GET["title"]:$_POST["title"];
$url=isset($_GET["url"])?$_GET["url"]:$_POST["url"];
$target=isset($_GET["target"])?$_GET["target"]:$_POST["target"];
$userid=isset($_GET["userid"])?$_GET["userid"]:$_POST["userid"];
$position=isset($_GET["position"])?$_GET["position"]:$_POST["position"];

/*
 * Actions
 */

if ($action == 'add' || $action == 'addproduct' || $action == 'update')
{
	if ($_POST["cancel"])
	{
		$urlsource=(! empty($_REQUEST["urlsource"]))?$_REQUEST["urlsource"]:((! empty($url))?$url:DOL_URL_ROOT.'/bookmarks/liste.php');
        header("Location: ".$urlsource);
        exit;
	}

    $mesg='';

    $bookmark=new Bookmark($db);
    if ($action == 'update') $bookmark->fetch($_POST["id"]);
    $bookmark->fk_user=$userid;
    $bookmark->title=$title;
    $bookmark->url=$url;
    $bookmark->target=$target;
    $bookmark->position=$position;

    if (! $title) $mesg.=($mesg?'
':'').$langs->trans("ErrorFieldRequired",$langs->trans("BookmarkTitle"));
    if (! $url)   $mesg.=($mesg?'
':'').$langs->trans("ErrorFieldRequired",$langs->trans("UrlOrLink"));

    if (! $mesg)
    {
        $bookmark->favicon='none';

        if ($action == 'update') $res=$bookmark->update();
        else $res=$bookmark->create();

        if ($res > 0)
        {
			$urlsource=! empty($_REQUEST["urlsource"])?urldecode($_REQUEST["urlsource"]):DOL_URL_ROOT.'/bookmarks/liste.php';
            header("Location: ".$urlsource);
            exit;
        }
        else
        {
        	if ($bookmark->errno == 'DB_ERROR_RECORD_ALREADY_EXISTS')
        	{
        		$langs->load("errors");
            	$mesg='
'.$langs->trans("WarningBookmarkAlreadyExists").'
';
        	}
        	else
        	{
            	$mesg='
'.$bookmark->error.'
';
        	}
        	$action='create';
        }
    }
    else
    {
        $mesg='
'.$mesg.'
';
        $action='create';
    }
}

if ($_GET["action"] == 'delete')
{
    $bookmark=new Bookmark($db);
    $bookmark->id=$_GET["bid"];
    $bookmark->url=$user->id;
    $bookmark->target=$user->id;
    $bookmark->title='xxx';
    $bookmark->favicon='xxx';

    $res=$bookmark->remove();
    if ($res > 0)
    {
        header("Location: ".$_SERVER["PHP_SELF"]);
        exit;
    }
    else
    {
        $mesg='
'.$bookmark->error.'
';
    }
}

/*
 * View
 */

llxHeader();

$html=new Form($db);

if ($action == 'create')
{
    /*
     * Fact bookmark creation mode
     */

    print '<form action="fiche.php" method="post" enctype="multipart/form-data">'."\n";
    print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
    print '<input type="hidden" name="action" value="add">';

    print_fiche_titre($langs->trans("NewBookmark"));

    if ($mesg) print "$mesg
";

    print '
';

    print '
'.$langs->trans("BookmarkTitle").'	<input class="flat" name="title" size="30" value="'.$title.'">	'.$langs->trans("SetHereATitleForLink").'
';

    print '
'.$langs->trans("UrlOrLink").'	<input class="flat" name="url" size="50" value="'.$url.'">	'.$langs->trans("UseAnExternalHttpLinkOrRelativeDolibarrLink").'
';

    print '
'.$langs->trans("BehaviourOnClick").'	';
    $liste=array(0=>$langs->trans("ReplaceWindow"),1=>$langs->trans("OpenANewWindow"));
    print $html->selectarray('target',$liste,1);
    print '	'.$langs->trans("ChooseIfANewWindowMustBeOpenedOnClickOnBookmark").'
';

    print '
'.$langs->trans("Owner").'	';
    $html->select_users(isset($_POST['userid'])?$_POST['userid']:$user->id,'userid',1);
    print '
';

    // Position
    print '
'.$langs->trans("Position").'	';
    print '<input class="flat" name="position" size="5" value="'.(isset($_POST["position"])?$_POST["position"]:$bookmark->position).'">';
    print '
';

    print '
';
    print '<input type="submit" class="button" value="'.$langs->trans("CreateBookmark").'" name="create">   ';
    print '<input type="submit" class="button" value="'.$langs->trans("Cancel").'" name="cancel">';
    print '
';

    print '
';

    print '</form>';
}

if ($_GET["id"] > 0 && ! preg_match('/^add/i',$_GET["action"]))
{
    /*
     * Fact bookmark mode or visually edition
     */
    $bookmark=new Bookmark($db);
    $bookmark->fetch($_GET["id"]);

    dol_fiche_head($head, $hselected, $langs->trans("Bookmark"),0,'bookmark');

    if ($_GET["action"] == 'edit')
    {
    	print '<form name="edit" method="POST" action="'.$_SERVER["PHP_SELF"].'" enctype="multipart/form-data">';
    	print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
    	print '<input type="hidden" name="action" value="update">';
    	print '<input type="hidden" name="id" value="'.$bookmark->id.'">';
    	print '<input type="hidden" name="urlsource" value="'.DOL_URL_ROOT.'/bookmarks/fiche.php?id='.$bookmark->id.'">';
    }

    print '
';

    print '
'.$langs->trans("Ref").'	'.$bookmark->ref.'
';

    print '
'.$langs->trans("BookmarkTitle").'	';
    if ($_GET["action"] == 'edit') print '<input class="flat" name="title" size="30" value="'.(isset($_POST["title"])?$_POST["title"]:$bookmark->title).'">';
    else print $bookmark->title;
    print '
';

    print '
'.$langs->trans("UrlOrLink").'	';
    if ($_GET["action"] == 'edit') print '<input class="flat" name="url" size="80" value="'.(isset($_POST["url"])?$_POST["url"]:$bookmark->url).'">';
    else print 'url)?$bookmark->url:DOL_URL_ROOT.$bookmark->url).'"'.($bookmark->target?' target="_blank"':'').'>'.$bookmark->url.'';
    print '
';

    print '
'.$langs->trans("BehaviourOnClick").'	';
    if ($_GET["action"] == 'edit')
    {
	    $liste=array(1=>$langs->trans("OpenANewWindow"),0=>$langs->trans("ReplaceWindow"));
	    print $html->selectarray('target',$liste,isset($_POST["target"])?$_POST["target"]:$bookmark->target);
   	}
    else
    {
    	if ($bookmark->target == 0) print $langs->trans("ReplaceWindow");
    	if ($bookmark->target == 1) print $langs->trans("OpenANewWindow");
    }
    print '
';

    print '
'.$langs->trans("Owner").'	';
    if ($_GET["action"] == 'edit' && $user->admin)
    {
	    $html->select_users(isset($_POST['userid'])?$_POST['userid']:($bookmark->fk_user?$bookmark->fk_user:''),'userid',1);
    }
    else
    {
	    if ($bookmark->fk_user)
	    {
		    $fuser=new User($db);
		    $fuser->fetch($bookmark->fk_user);
		    //$fuser->nom=$fuser->login; $fuser->prenom='';
		    print $fuser->getNomUrl(1);
		}
		else
		{
			print $langs->trans("Public");
		}
    }
    print '
';

    // Position
    print '
'.$langs->trans("Position").'	';
    if ($_GET["action"] == 'edit') print '<input class="flat" name="position" size="5" value="'.(isset($_POST["position"])?$_POST["position"]:$bookmark->position).'">';
    else print $bookmark->position;
    print '
';

    // Date creation
    print '
'.$langs->trans("DateCreation").'	'.dol_print_date($bookmark->datec,'dayhour').'
';

    if ($_GET["action"] == 'edit') print '
<input class="button" type="submit" name="save" value="'.$langs->trans("Save").'">     <input class="button" type="submit" name="cancel" value="'.$langs->trans("Cancel").'">
';

    print '
';

    if ($_GET["action"] == 'edit') print '</form>';

    print "
\n";

    print "
\n";

    // Edit
    if ($user->rights->bookmark->creer && $_GET["action"] != 'edit')
    {
        print "  id."&action=edit\">".$langs->trans("Edit")."\n";
    }

    // Remove
    if ($user->rights->bookmark->supprimer && $_GET["action"] != 'edit')
    {
        print "  id."&action=delete\">".$langs->trans("Delete")."\n";
    }

    print '
';

}

$db->close();

llxFooter('$Date: 2010/08/19 20:29:55 $ - $Revision: 1.26 $');
?>


text:
<?php
require_once(getabspath("classes/listpage_simple.php"));
class MembersPage extends ListPage_Simple
{
	/**
	 * Groups array from DB
	 *
	 * @var array
	 */
	var $groups = array();
	var $groupFullChecked = array();
	/**
	 * Members array from DB
	 *
	 * @var array
	 */
	var $members = array();
	/**
	 * Users array from DB
	 *
	 * @var array
	 */
	var $users = array();
	/**
	 * If sort by group - number of group, else false
	 *
	 * @var int
	 */
	var $sortByGroup = false;
	/**
	* If sort by username or display name - name of field, else ""
	*
	* @var string
	*/
	var $sortField = "";
	/**
	 * Sort order for group sorting
	 *
	 * @var string
	 */
	var $m_sortOrder = "";

	var $addSaveButtons = false;

	var $listAjax = false;
	/**
	 * Contructor
	 *
	 * @param array $params
	 * @return MembersPage
	 */
	function MembersPage(&$params)
	{
		// call parent
		parent::ListPage_Simple($params);

		$this->listAjax = false;
	}
	/**
	 * Override, add admin_members specific assignments
	 *
	 */
	function commonAssign()
	{
		// call parent
		parent::commonAssign();

		if ($this->addSaveButtons)
		{
			///$this->xt->assign("recordcontrols_block",true);
			$this->xt->assign("savebuttons_block", true);
			$this->xt->assign("savebutton_attrs","id=\"saveBtn\"");
			$this->xt->assign("resetbutton_attrs", "id=\"resetBtn\"");
		}

		//$this->xt->assign("toplinks_block",true);
		$this->xt->assign("search_records_block",true);
		// The user might rewrite $_SESSION["UserName"] value with HTML code in an event, so no encoding will be performed while printing this value.
		$this->xt->assign("username", $_SESSION["UserName"]);
		$this->xt->assign("displayusername", $_SESSION["UserName"]);
		$this->xt->assign("shiftstyle_block",true);
		$this->xt->assign("security_block",true);
		$this->xt->assign("logoutbutton",isSingleSign());
		$this->xt->assign("left_block",true);

		$this->xt->assign("message_block", true);
		$this->xt->displayBrickHidden("message");

		$userheaderlink_attrs = "href=\"".GetTableLink($this->tName, "list", "orderby=AUsername")."\"";

		//for display name
		$displayuserheaderlink_attrs = "href=\"".GetTableLink($this->tName, "list", "orderby="."AName")."\"";

		if ($this->sortByGroup === false && $this->sortField != "")
		{
			if ($this->sortField == "Username")
			{
				$userheaderlink_attrs = "href=\"".GetTableLink($this->tName, "list", "orderby=");
				if($this->m_sortOrder == "A") {
					$this->xt->assign("users_orderimg", '');
					$userheaderlink_attrs.="DUsername";
				} else {
					$this->xt->assign("users_orderimg", '');
					$userheaderlink_attrs.="AUsername";
				}
				$userheaderlink_attrs.="\"";
			}
			else if ($this->sortField == "Name")
			{
				$displayuserheaderlink_attrs = "href=\"".GetTableLink($this->tName, "list", "orderby=");
				if($this->m_sortOrder == "A") {
					$this->xt->assign("displayusers_orderimg", '');
					$displayuserheaderlink_attrs.="DName";
				} else {
					$this->xt->assign("displayusers_orderimg", '');
					$displayuserheaderlink_attrs.="AName";
				}
				$displayuserheaderlink_attrs.="\"";
			}
		}
		$this->xt->assign("userheaderlink_attrs",$userheaderlink_attrs);
		$this->xt->assign("displayuserheaderlink_attrs",$displayuserheaderlink_attrs);
		$this->xt->assign("menu_block",true);
	}

	/**
	 * save member assignments
	 *

	function save()
	{
		if(postvalue("a")=="save")
		{
			$useridx=0;
			foreach(postvalue("username") as $user)
			{
				$useridx++;
				//	delete records which are not needed
				$sql="delete from `tbs_ugmembers` where UserName=".db_prepare_string($user);
				if($user==$_SESSION["UserID"])
					$sql.=" and GroupID<>-1";
				db_exec($sql,$this->conn);
				if(count($_POST["cb_".$useridx]))
				{
					$glist="";
					foreach(@$_POST["cb_".$useridx] as $g)
					{
						if($g<0)
						{
							if($user==$_SESSION["UserID"] && $g==-1)
								continue;
							$sql="insert into `tbs_ugmembers` (UserName,GroupID) values (".db_prepare_string(runner_htmlspecialchars($user)).",".$g.")";
							db_exec($sql,$this->conn);
						}
						else
						{
							if($glist!="")
								$glist.=",";
							$glist.=$g;
						}
					}
					if($glist!="")
					{
						$sql="insert into `tbs_ugmembers` (UserName,GroupID) select ".db_prepare_string(runner_htmlspecialchars($user)).",GroupID from `tbs_uggroups` where GroupID in (".$glist.")";
						db_exec($sql,$this->conn);
					}
				}
			}
		}
	} */

	/**
	 * Fills grid rows and headers
	 *
	 */
	function fillGridData()
	{
		$rowClass = false;
		//	fill $rowInfo array
		$rowInfo = array();
		// add grid data
		$data = $this->beforeProccessRow();
		// like usual grid data fill
		while($data && ($this->sortByGroup !== false || $this->recNo <= $this->pageSize || $this->pageSize==-1))
		{
			$row = array();

			$row["rowclass"] = "";
			if(!$rowClass)
			{
				$row["rowclass"] .= "interlaced";
				$rowClass = true;
			}
			else
				$rowClass = false;

			$row["rowattrs"] = "rowid=\"".$this->recNo."\"";
			$row["grid_record"] = array();
			$row["grid_record"]["data"] = array();

			//	create checkboxes
			$member_indexes=array();
			foreach($this->members as $idx=>$m)
			{
				if($m[1]==$data["Username"])
					$member_indexes[]=$idx;
			}
			$rowgroups = array();
			$userfullchecked = true;
			foreach($this->groups as $idx => $g)
			{
				$checked=false;
				$smarty_group=array();
				foreach($member_indexes as $i)
				{
					if($this->members[$i][0]==$g[0])
					{
						$checked = true;
						break;
					}
				}
				if($_SESSION["UserID"] != $data["Username"] || $g[0] != -1)
				{
					$smarty_group["groupbox_attrs"] = "id=\"cb".$g[0]."_".count($this->users)."_\" value=\"1\"";

					$smarty_group["checked"] = 0;
					if(!$checked)
					{
						$userfullchecked = false;
						$groupfullchecked[$idx] = false;
					}
					else
					{
						if(!isset($groupfullchecked[$idx]))
							$groupfullchecked[$idx] = true;
						$smarty_group["groupbox_attrs"] .= " checked";
						$smarty_group["checked"] = 1;
					}

					$smarty_group["group"] = $g[0];
					$rowgroups[] = array("usergroup_box" => array("data" => array($smarty_group)));
				}
				else
					$rowgroups[] = array();
					//$smarty_group["groupbox_attrs"] = 'style="display:"';
				//$rowgroups[] = $smarty_group;
			}
			$row["usergroup_boxes"] = array("data" => $rowgroups);
			$usercheckbox_attrs = "";
			if($userfullchecked)
				$usercheckbox_attrs .= " checked";

			//$row["begin"] = "<input type=hidden name=\"username[]\" value=\"".runner_htmlspecialchars($data["Username"])."\">";

			$row["username"] = runner_htmlspecialchars($data["Username"]);
			$row["displayusername"] = runner_htmlspecialchars($data["Name"]); //runner_htmlspecialchars($data["Username"]);
			$row["user"] = $data["Username"];
			$usercheckbox_attrs.=" name=\"user_".count($this->users)
				."\" id=\"".count($this->users)."\"";

			$this->users[] = runner_htmlspecialchars($data["Username"]);

			if($this->sortByGroup === false)
				$usercheckbox_attrs.= " rowid=".$this->recNo;
			$row["usercheckbox_attrs"] = $usercheckbox_attrs;
			$row["recNo"] = $this->recNo;
			$this->recNo++;

	//	assign row spacings for vertical layout
			$row["grid_rowspace"]=true;
			$row["grid_recordspace"] = array("data"=>array());
			for($i=0;$i<$this->colsOnPage*2-1;$i++)
				$row["grid_recordspace"]["data"][]=true;

			if($this->eventExists("BeforeMoveNextList"))
				$this->eventsObject->BeforeMoveNextList($data,$row,$record, $this);
			$rowInfo[]=$row;

			$data = $this->beforeProccessRow();
		}

		// fill headers array
		foreach($this->groups as $g)
		{
			$smartyGroups[]=array("groupname"=>runner_htmlspecialchars($g[1]),
				"groupheaderlink_attrs"=>"href=\"".GetTableLink($this->tName, "list", "orderby=a".$g[0])."\"",
				"groupheaderbox_attrs"=>"id=\"cb".$g[0]."\" value=\"".$g[0]."\""
			);
		}
		// fill group checkbox attrs
		foreach($smartyGroups as $idx=>$g)
		{
			if(isset($groupfullchecked[$idx]) && $groupfullchecked[$idx])
			{
				$smartyGroups[$idx]["groupheaderbox_attrs"].=" checked";
			}
		}
		// add sort arrow to groups
		$this->sortGroups($smartyGroups);
		// sort by group header
		$this->doSortByGroup($rowInfo);
		// assign grid rows
		$this->xt->assign_loopsection("grid_row", $rowInfo);
		// assign grid headers
		$this->xt->assign_loopsection("usergroup_header", $smartyGroups);

		if (count($rowInfo))
		{
			$this->addSaveButtons = true;
		}

	}
	/**
	 * For group array sorting
	 *
	 * @param link $rowInfo
	 */
	function DPOrderUsers(&$rowInfo)
	{
		// deal with global vars
		global $sortgroup, $sortorder;
		$sortgroup = $this->sortByGroup;
		$sortorder = $this->m_sortOrder;

		sortMembers($rowInfo);
	}

	/**
	 * Fill members array from DB, call after save
	 *
	 */
	function fillMembers()
	{
		//	select members list
		$trs = db_query("select `UserName`,`GroupID` from `tbs_ugmembers` order by `UserName`,`GroupID`",$this->conn);
		while($tdata = db_fetch_numarray($trs))
		{
			$this->members[] = array($tdata[1],$tdata[0]);
		}
	}

	/**
	 * Fill groups array from DB, call after save
	 *
	 */
	function fillGroups()
	{
		$this->groups[] = array(-1,"<"."Admin".">");
		$this->groupFullChecked[] = true;

		$trs = db_query("select `GroupID`,`Label` from `tbs_uggroups` order by `Label`",$this->conn);
		while($tdata = db_fetch_numarray($trs))
		{
			$this->groups[] = array($tdata[0],$tdata[1]);
			$this->groupFullChecked[] = true;
		}
	}
	/**
	 * Sort rows headers by group
	 *
	 * @param link $smartyGroups
	 */
	function sortGroups(&$smartyGroups)
	{
		//		assign sort links
		foreach($this->groups as $i=>$g)
		{
			if($this->sortByGroup==$g[0] && $this->m_sortOrder=="a")
			{
				$smartyGroups[$i]["groupheaderlink_attrs"]="href=\"".GetTableLink($this->tName, "list", "orderby=d".$g[0])."\"";
				$smartyGroups[$i]["groupheader_img"] = '';
			}
			elseif($this->sortByGroup==$g[0] && $this->m_sortOrder=="d")
				$smartyGroups[$i]["groupheader_img"] = '';
			}
		}

	function prepareForResizeColumns()
	{
		return true;
	}

	/**
	 * PRG rule, to avoid POSTDATA resend
	 * call after save
	 *
	 */
	function rulePRG()
	{
		if(no_output_done() && (postvalue("a")=="save"/* || count($this->selectedRecs)*/))
		{
			// redirect, add a=return param for saving SESSION
			HeaderRedirect($this->shortTableName, $this->getPageType(), "a=return");
			// turned on output buffering, so we need to stop script
			exit();
		}
	}
	/**
	 * Parse session
	 *
	 */
	function setSessionVariables()
	{
		// call parent
		parent::setSessionVariables();
		// order vars are simple

		if (substr($_SESSION[$this->sessionPrefix."_orderby"],1) == "Username" || substr($_SESSION[$this->sessionPrefix."_orderby"],1) =="Name"){
			$this->sortByGroup = false;
			$this->sortField = substr($_SESSION[$this->sessionPrefix."_orderby"],1);
		}
		else
			$this->sortByGroup = substr($_SESSION[$this->sessionPrefix."_orderby"],1);

		$this->m_sortOrder = substr($_SESSION[$this->sessionPrefix."_orderby"], 0, 1);

	}

	/**
	 * Sort rows by groups
	 *
	 * @param link $rowInfo
	 */
	function doSortByGroup(&$rowInfo)
	{
		if ($this->sortByGroup!==false)
		{
			$this->DPOrderUsers($rowInfo);

		// apply pagination
			$firstindex=$this->pageSize*($this->myPage-1);
			for($i=0;$i<$firstindex;$i++)
				array_shift($rowInfo);
			if(count($rowInfo)>$this->pageSize)
				array_splice($rowInfo,$this->pageSize,0);
			$this->recNo=1;
			for($i=0;$i<count($rowInfo);$i++)
			{
				$rowInfo[$i]["usercheckbox_attrs"].= " rowid=".$this->recNo;
				for($j=0;$j<count($rowInfo[$i]["usergroup_boxes"]["data"]);$j++)
				{
					$rowInfo[$i]["usergroup_boxes"]["data"][$j]["groupbox_attrs"]="name=\"cb_"
						.$this->recNo."[]\" value=\""
						.$rowInfo[$i]["usergroup_boxes"]["data"][$j]["group"]."\"";
					if($rowInfo[$i]["usergroup_boxes"]["data"][$j]["checked"])
						$rowInfo[$i]["usergroup_boxes"]["data"][$j]["groupbox_attrs"].=" checked";
				}
				$this->recNo++;
			}
		}
	}
	/**
	 * Build order query only for users header
	 */
	function buildOrderParams()
	{
		if ($this->sortByGroup !== false || $this->sortField == "")
			return;

		$this->strOrderBy = "Order by ".$this->pSet->getFullNameField( $this->sortField );
		if ($this->m_sortOrder == "A")
			$this->strOrderBy .= " asc";
		else
			$this->strOrderBy .= " desc";
	}

	/**
	 * Main function, call to build page
	 * Do not change methods call oreder!!
	 *
	 */
	function prepareForBuildPage()
	{
		// save recs
		//$this->save();
		// PRG rule, to avoid POSTDATA resend
		$this->rulePRG();
		//Sorting fields
		$this->buildOrderParams();
		// fill data
		$this->fillMembers();
		$this->fillGroups();
		// build sql query
		$this->buildSQL();
		// build pagination block
		$this->buildPagination();
		// seek page must be executed after build pagination
		if ($this->sortByGroup===false)
			$this->seekPageInRecSet($this->querySQL);
		else
			$this->recSet = db_query($this->querySQL, $this->conn);
		// fill grid data
		$this->fillGridData();

		// add common js code
		$this->addCommonJs();
		// add common html code
		$this->addCommonHtml();
		// Set common assign
		$this->commonAssign();
		// build admin block
		$this->assignAdmin();
	}

	/**
	 * show page at the end of its proccess, depending on mode
	 *
	 */
	function showPage()
	{
		$this->display($this->templatefile);
	}

	/**
	 * Add js files and scripts
	 *
	 */
	function addCommonJs()
	{
		// call parent if need RunnerJS API
		RunnerPage::addCommonJs();

		$this->addJsGroupsAndRights();
	}

	/**
	 * Prepare JS arrays with groups and tables data
	 *
	 */
	function addJsGroupsAndRights()
	{
		$this->jsSettings['tableSettings'][$this->tName]['usersList'] = $this->users;
		$this->jsSettings['tableSettings'][$this->tName]['rightsGroups'] = array();

		foreach ($this->groups as $grArr)
			$this->jsSettings['tableSettings'][$this->tName]['rightsGroups'][] = $grArr[0];
	}
}

?>