Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
3053 connectés 

 


 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  12  13  14  ..  188  189  190  191  192  193
Auteur Sujet :

[Topic Outil] sauvegardez le contenu de votre presse papier

n°663518
uriel
blood pt.2
Posté le 04-03-2004 à 20:36:39  profilanswer
 

Reprise du message précédent :


 
http://www.examineur.com/articles/87_2.html
 [:zaib3k] merci pour la recherche google --


---------------
IVG en france
mood
Publicité
Posté le 04-03-2004 à 20:36:39  profilanswer
 

n°663519
drasche
Posté le 04-03-2004 à 20:36:54  profilanswer
 

http://www.examineur.com/articles/87_2.html
 

Citation :

Nous nous adressons à un public de CSP+, parisien, actif, friqué et open-minded.


 
d'anthologie \o/


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°663521
uriel
blood pt.2
Posté le 04-03-2004 à 20:38:16  profilanswer
 

drasche a écrit :

http://www.examineur.com/articles/87_2.html
 

Citation :

Nous nous adressons à un public de CSP+, parisien, actif, friqué et open-minded.


 
d'anthologie \o/


 
[:prosterne] -- ForEver[:prosterne2]


---------------
IVG en france
n°663525
the real m​oins moins
Posté le 04-03-2004 à 20:39:23  profilanswer
 

[:franck75]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°668727
drasche
Posté le 09-03-2004 à 17:05:21  profilanswer
 

Code :
  1. Option Explicit
  2. ' Name: clsStringAppend
  3. ' Domain: framework
  4. ' Description: optimise string concatenations by inserting multiple strings
  5. '              into one single buffer.
  6. ' String buffer
  7. Private ppvstrBuf As String
  8. ' Current position in buffer
  9. Private ppvlBufIdx As Long
  10. ' Initial buffer length
  11. Private ppvlIniBufLen As Long
  12. ' Buffer length supplemental (used if needed)
  13. Private ppvlBufLenSup As Long
  14. ' Actual Buffer length
  15. Private ppvlBufLen As Long
  16. ' Buffer ended? (no more update possible)
  17. Private ppvfBufEnd As Boolean
  18. ' Carriage return symbol
  19. Private ppvstrCarRet As String
  20. ' Get buffer
  21. Public Property Get strBuf() As String
  22.     strBuf = ppvstrBuf
  23. End Property
  24. ' Class initialisation
  25. Public Sub Init(ByVal lIniBufLen As Long, ByVal lBufLenSup As Long, Optional ByRef strCarRet As String = "" )
  26.     ppvstrBuf = Space$(lIniBufLen)
  27.     ppvlBufIdx = 1
  28.     ppvlBufLen = lIniBufLen
  29.     ppvlIniBufLen = lIniBufLen
  30.     ppvlBufLenSup = lBufLenSup
  31.     ppvstrCarRet = strCarRet
  32.     ' Update possible
  33.     ppvfBufEnd = False
  34. End Sub
  35. ' Add a substring to the buffer
  36. '   The buffer length will be updated if necessary
  37. Public Function AddString(ByRef strString As String) As Long
  38.     ' Substring length
  39.     Dim lStrLen As Long
  40.     ' New buffer length
  41.     Dim lNewBufLen As Long
  42.     ' Buffer length needed for the operation
  43.     Dim lCurBufLen As Long
  44.     ' Integrity check
  45.     If Not ppvfBufEnd Then
  46.         ' Get substring length
  47.         lStrLen = Len(strString)
  48.         ' Check possible buffer overflow
  49.         lNewBufLen = ppvlBufIdx + lStrLen
  50.         lCurBufLen = ppvlBufLen
  51.         ' Determine new needed buffer size
  52.         Do While lNewBufLen > lCurBufLen
  53.             lCurBufLen = lCurBufLen + ppvlBufLenSup
  54.         Loop
  55.         ' Apply buffer size if needed
  56.         If lCurBufLen > ppvlBufLen Then
  57.             ppvstrBuf = ppvstrBuf & Space$(lCurBufLen - ppvlBufLen)
  58.             ppvlBufLen = lCurBufLen
  59.         End If
  60.         ' Add substring to the buffer
  61.         Mid$(ppvstrBuf, ppvlBufIdx, lStrLen) = strString
  62.         ' Update buffer index
  63.         ppvlBufIdx = ppvlBufIdx + lStrLen
  64.     End If
  65. End Function
  66. '
  67. Public Function EndString()
  68.     ' Cut unneeded spaces
  69.     ppvstrBuf = Left$(ppvstrBuf, ppvlBufIdx - 1)
  70.     ' Apply carriage returns if needed
  71.     If ppvstrCarRet <> "" Then
  72.         ppvstrBuf = Replace(ppvstrBuf, ppvstrCarRet, vbCrLf)
  73.     End If
  74.     ' No more update
  75.     ppvfBufEnd = True
  76. End Function


Message édité par drasche le 09-03-2004 à 17:05:31

---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°668729
the real m​oins moins
Posté le 09-03-2004 à 17:12:25  profilanswer
 

:/


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°668734
mareek
Et de 3 \o/
Posté le 09-03-2004 à 17:19:17  profilanswer
 

sComboList=.Cell(flexcpText, Row, lCOL_FAMILLE)


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°668735
mareek
Et de 3 \o/
Posté le 09-03-2004 à 17:20:28  profilanswer
 

drasche a écrit :

Public Function EndString()
    ' Cut unneeded spaces
    ppvstrBuf = Left$(ppvstrBuf, ppvlBufIdx - 1)
    ' Apply carriage returns if needed
    If ppvstrCarRet <> "" Then
        ppvstrBuf = Replace(ppvstrBuf, ppvstrCarRet, vbCrLf)
    End If
    ' No more update
    ppvfBufEnd = True
End Function


Tu connais la fonction trim ?


Message édité par mareek le 09-03-2004 à 17:21:01

---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°668792
drasche
Posté le 09-03-2004 à 18:21:35  profilanswer
 

mareek a écrit :

Tu connais la fonction trim ?


Trim doit encore tester où commencent les espaces, et vu que j'ai l'info, je prends Left$.
 
Moins Moins> quoi? :o  c'est un topic créé par un VBiste :o Donc j'y fous du VB :o


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°668805
mareek
Et de 3 \o/
Posté le 09-03-2004 à 18:34:09  profilanswer
 

drasche a écrit :


Moins Moins> quoi? :o  c'est un topic créé par un VBiste :o Donc j'y fous du VB :o


Faut le comprendre, -- considérent que toute personne touchant à VB devrait être abattu sur le champs. Alors voir du code VB est devenu qqch d'insupportable pour lui :/


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
mood
Publicité
Posté le 09-03-2004 à 18:34:09  profilanswer
 

n°668812
the real m​oins moins
Posté le 09-03-2004 à 18:42:30  profilanswer
 

mais n'importe quoi [:kiki]


---------------
Hey toi, tu veux acheter des minifigurines Lego, non ?
n°668818
mareek
Et de 3 \o/
Posté le 09-03-2004 à 18:47:51  profilanswer
 


ah bon ? [:opus dei]


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°668821
drasche
Posté le 09-03-2004 à 18:50:24  profilanswer
 


pourtant, les gens forcés à faire du VB devraient être considérés comme des martyrs :o
 
et les autres (ceux que ça intéresse) devraient finir avec un pieu dans le coeur :o


---------------
Whichever format the fan may want to listen is fine with us – vinyl, wax cylinders, shellac, 8-track, iPod, cloud storage, cranial implants – just as long as it’s loud and rockin' (Billy Gibbons, ZZ Top)
n°676692
mareek
Et de 3 \o/
Posté le 17-03-2004 à 23:57:56  profilanswer
 

   oLigneAbsenceDetaille.NBJours = oAbsence.ValeurJours


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°684669
uriel
blood pt.2
Posté le 26-03-2004 à 09:57:01  profilanswer
 

Code :
  1. public class HelloWorld extends TypedAtomicActor {
  2.      public HelloWorld(CompositeEntity container, String name)
  3.             throws NameDuplicationException, IllegalActionException  {
  4.         super(container, name);
  5.         userName = new Parameter(this, "userName", new StringToken("" ));
  6.         output = new TypedIOPort(this, "output", false, true);
  7.         output.setTypeEquals(BaseType.STRING);
  8.         _attachText("_iconDescription", "<svg>\n" +
  9.                 "<rect x=\"0\" y=\"0\" "
  10.                 + "width=\"60\" height=\"20\" "
  11.                 + "style=\"fill:white\"/>\n" +
  12.                 "</svg>\n" );
  13.     }
  14.       public TypedIOPort output = null;
  15.       public Parameter userName;
  16.     public void fire() throws IllegalActionException {
  17.         super.fire();
  18.         String userNameStr = ((StringToken)userName.getToken()).stringValue();
  19.         output.send(0, new StringToken("Hello " + userNameStr + "!" ));
  20.     }
  21. }


 
[:volta] ca marche...


Message édité par uriel le 26-03-2004 à 09:57:27

---------------
IVG en france
n°685351
mareek
Et de 3 \o/
Posté le 26-03-2004 à 19:47:51  profilanswer
 

Code :
  1. SELECT MYAFFCH.IDSALARIE, MYAFFCH.IDAFFCH,  MYAFFCH.DT, MYAFFCH.IDCHDOUBLE, MYAFFCH.DUREEJOUR,  MYAFFCH.DUREEJOURCHDOUBLE,  MYAFFCH.VALIDER, MYAFFCH.MODIFIER,  MYAFFCH.DTECRASEMENT, MYAFFCH.NIVEAUPREV, MYAFFCH.COMMENTAIRE IDAFFCH_COMMENTAIRE, MYAFFCH.ADRESSEIP, MYAFFCH.TIMESTAMP, MYAFFCH.IDUEP, MYAFFCH.IDCH, MYAFFPH.IDAFFPH, MYAFFPH.HEUREDEBUT , MYAFFPH.HEUREFIN, MYAFFPH.DUREE, MYAFFPH.COMMENTAIRE, MYAFFPH.TIMESTAMP, MYAFFPH.DOUBLEAFF, MYAFFPH.IDACTIVITE, MYAFFPH.ORDRE, MYAFFCH.IDCYCLE_CH, MYAFFCH.IDCOMPETENCE FROM ( SELECT * FROM AFFCH WHERE IDETAT <> 3 ) MYAFFCH,( SELECT * FROM AFFPH WHERE IDETAT <> 3 ) MYAFFPH WHERE MYAFFCH.IDAFFCH = MYAFFPH.IDAFFCH (+) AND  MYAFFCH.IDSALARIE IN ('1041', '1015', '1043', '1045', '1005', '1047', '1025', '1019', '1003', '1009', '1001', '1031', '1011', '399', '399', '400', '400', '381', '381', '382', '382', '383', '383', '384', '384', '385', '385', '386', '386', '387', '387', '388', '388', '389', '389', '390', '391', '392', '393', '394', '395', '396', '397', '398', '401', '40
  2. 2', '403', '404', '405', '406', '407', '408', '409', '410', '411', '412', '413', '414', '415', '416', '417', '418', '419', '420', '421', '422', '423', '424', '425', '426', '427', '428', '429', '430', '431', '432', '433', '434', '435', '436', '437', '438', '439', '440', '441', '442', '443', '444', '445', '446', '447', '448', '449', '450', '451', '452', '453', '454', '455', '456', '457', '458', '459', '460', '461', '462', '463', '464', '465', '466', '467', '468', '469', '470', '471', '472', '473', '474', '475', '476', '477', '478', '479', '480', '481', '482', '483', '484', '485', '486', '487', '488', '489', '490', '491', '492', '493', '494', '495', '496', '497', '498', '499', '500', '501', '502', '503', '504', '505', '506', '507', '508', '509', '510', '511', '512', '513', '514', '515', '516', '517', '518', '519', '520', '521', '522', '523', '524', '525', '526', '527', '528', '529', '530', '531', '532', '533', '534', '535', '536', '537', '538', '539', '540', '541', '542', '543', '544', '545', '546', '547', '548
  3. ', '549', '550', '551', '552', '553', '554', '555', '556', '557', '558', '559', '560', '561', '562', '563', '564', '565', '566', '567', '568', '569', '570', '571', '572', '573', '574', '575', '576', '577', '578', '579', '580', '581', '582', '583', '584', '585', '586', '587', '588', '589', '590', '591', '592', '593', '594', '595', '596', '597', '598', '599', '600', '601', '602', '603', '604', '605', '606', '607', '608', '609', '610', '611') OR MYAFFCH.IDSALARIE IN ('612', '613', '614', '615', '616', '617', '618', '619', '620', '621', '622', '623', '624', '625', '626', '627', '628', '629', '630', '631', '632', '633', '634', '635', '636', '637', '638', '639', '640', '641', '642', '643', '644', '645', '646', '647', '648', '649', '650', '651', '652', '653', '654', '655', '656', '657', '658', '659', '660', '661', '662', '663', '664', '665', '666', '667', '668', '669', '670', '671', '672', '673', '674', '675', '676', '677', '678', '679', '680', '681', '682', '683', '684', '685', '686', '687', '688', '689', '690', '
  4. 691', '692', '693', '694', '695', '696', '697', '698', '699', '700', '701', '702', '703', '704', '705', '706', '707', '708', '709', '710', '711', '712', '713', '714', '715', '716', '717', '718', '719', '720', '721', '722', '723', '724', '725', '726', '727', '728', '729', '730', '731', '732', '733', '734', '735', '736', '737', '738', '739', '740', '741', '742', '743', '744', '745', '746', '747', '748', '749', '750', '751', '752', '753', '754', '755', '756', '757', '758', '759', '760', '785', '786', '787', '788', '789', '790', '791', '792', '793', '794', '795', '796', '797', '798', '799', '800', '801', '802', '803', '804', '805', '806', '807', '808', '809', '810', '811', '812', '813', '814', '815', '816', '817', '818', '819', '820', '821', '822', '823', '824', '825', '826', '827', '828', '829', '830', '831', '832', '833', '834', '835', '836', '837', '838', '839', '840', '841', '842', '843', '844', '845', '846', '847', '848', '849', '850', '851', '852', '853', '854', '855', '856', '857', '858', '859', '860', '8
  5. 61', '862', '863', '864', '865', '866', '867', '868', '869', '870', '871', '872', '873', '874', '875', '876', '877', '878', '879', '880', '881', '882', '883', '884', '885', '886', '887', '888', '889', '890') OR MYAFFCH.IDSALARIE IN ('891', '892', '893', '894', '895', '896', '897', '898', '899', '900', '901', '902', '903', '904', '905', '906', '907', '908', '909', '910', '911', '912', '913', '914', '915', '916', '917', '918', '919', '920', '921', '922', '923', '924', '925', '926', '927', '928', '929', '930', '931', '932', '933', '934', '935', '936', '937', '938', '939', '940', '941', '942', '943', '944', '945', '946', '947', '948', '949', '950', '951', '952', '953', '954', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '966', '967', '968', '969', '970', '971', '972', '973', '974', '975', '976', '977', '978', '979', '980', '981', '982', '983', '984', '985', '986', '987', '988', '989', '990', '991', '992', '993', '994', '995', '996', '997', '998', '999', '1000', '1002', '1004', '10
  6. 06', '1008', '1010', '1012', '1014', '1016', '1018', '1020', '1022', '1024', '1026', '1028', '1030', '1032', '1034', '1036', '1038', '1040', '1042', '1044', '1046', '1048', '1049', '1050', '1051', '1052', '1053', '1054', '1055', '1056', '1057', '1058', '1059', '1060', '1061', '1062', '1063', '1064', '1065', '1066', '1067', '1068', '1069', '1070', '1071', '1072', '1073', '1074', '1075', '1076', '1077', '1078', '1079', '1080', '1081', '1082', '1083', '1084', '1085', '1086', '1087', '1088', '1089', '1090', '1091', '1092', '1093', '1094', '1095', '1096', '1097', '1098', '1099', '1100', '1101', '1102', '1103', '1104', '1105', '1106', '1107', '1108', '1109', '1110', '1111', '1112', '1113', '1114', '1115', '1116', '1117', '1118', '1119', '1120', '1148', '1149', '1150', '1151', '1152', '1153', '1154', '1155', '1156', '1157', '1158', '1159', '1160', '1161', '1162', '1163', '1164', '1165', '1166', '1167', '1168', '1169', '1170', '1171', '1172', '1173', '1174', '1175', '1176', '1177', '1178', '1179', '1180', '1181', '1
  7. 182', '1183', '1184', '1185', '1186', '1187', '1188', '1189', '1190', '1191', '1192', '1193', '1194', '1195', '1196') OR MYAFFCH.IDSALARIE IN ('1197', '1198', '1199', '1200', '1201', '1202', '1203', '1204', '1205', '1206', '1207', '1208', '1209', '1210', '1211', '1212', '1213', '1214', '1215', '1216', '1217', '1218', '1219', '1220', '1221', '1222', '1223', '1224', '1225', '1226', '1227', '1228', '1229', '1230', '1231', '1232', '1233', '1234', '1235', '1236', '1237', '1238', '1239', '1240', '1241', '1242', '1243', '1244', '1245', '1246', '1247', '1248', '1249', '1250', '1251', '1252', '1253', '1254', '1255', '1256', '1257', '1258', '1259', '1260', '1261', '1262', '1263', '1264', '1265', '1266', '1267', '1268', '1269', '1270', '1271', '1272', '1273', '1274', '1275', '1276', '1277', '1278', '1279', '1280', '1281', '1282', '1283', '1284', '1285', '1286', '1287', '1288', '1289', '1290', '1291', '1292', '1293', '1294', '1295', '1296', '1297', '1298', '1299', '1300', '1301', '1302', '1303', '1304', '1305', '1306',
  8. '1307', '1308', '1309', '1310', '1311', '1312', '1313', '1314', '1315', '1316', '1317', '1318', '1319', '1320', '1321', '1322', '1323', '1324', '1325', '1326', '1327', '1328', '1329', '1330', '1331', '1332', '1333', '1334', '1335', '1336', '1337', '1338', '1339', '1340', '1341', '1342', '1343', '1344', '1345', '1346', '1347', '1348', '1349', '1350', '1351', '1352', '1353', '1354', '1355', '1356', '1357', '1358', '1359', '1360', '1361', '1362', '1363', '1364', '1365', '1366', '1367', '1368', '1369', '1370', '1371', '1372', '1373', '1374', '1375', '1376', '1377', '1378', '1379', '1380', '2427', '2428', '2429', '2430', '2431', '2432', '2433', '2434', '2435', '2436', '2437', '2438', '2439', '2440', '2441', '2442', '2443', '2444', '2445', '2446', '2447', '2448', '2449', '2450', '2403', '2404', '2405', '2406', '2407', '2408', '2409', '2410', '2411', '2412', '2413', '2414', '2415', '2416', '2417', '2418', '2419', '2420', '2421', '2422', '2423', '2424', '2425', '2426', '2401', '2402', '2506', '2507', '2508', '2509',
  9. '2510', '1023', '1027', '1037', '1039', '1013', '1033', '1021', '1017', '1029', '1035', '1007') AND          MYAFFCH.IDPLAN = 'PPL' AND     (MYAFFCH.DT >= TO_DATE('01/01/2004 00:00:00', 'DD/MM/YYYY HH24:MI:SS') AND      MYAFFCH.DT <= TO_DATE('31/12/2004 00:00:00', 'DD/MM/YYYY HH24:MI:SS'))  ORDER BY MYAFFCH.IDSALARIE, MYAFFCH.DT, MYAFFPH.ORDRE


 
ça marche pas :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°685384
Mara's dad
Yes I can !
Posté le 26-03-2004 à 21:15:17  profilanswer
 

Y z'ont quoi de particulier les salariés dont les IDS poluent ton presse papier ?


---------------
Laissez l'Etat dans les toilettes où vous l'avez trouvé.
n°685416
mareek
Et de 3 \o/
Posté le 26-03-2004 à 22:18:37  profilanswer
 

Mara's dad a écrit :

Y z'ont quoi de particulier les salariés dont les IDS poluent ton presse papier ?

je veux récupérer leur planning, mais cette saloperie d'oracle veut pas :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°685419
mareek
Et de 3 \o/
Posté le 26-03-2004 à 22:24:59  profilanswer
 

Presque la même mais qui marche cette fois:

Code :
  1. SELECT MYAFFCH.IDSALARIE, MYAFFCH.IDAFFCH,  MYAFFCH.DT, MYAFFCH.IDCHDOUBLE, MYAFFCH.DUREEJOUR,  MYAFFCH.DUREEJOURCHDOUBLE,  MYAFFCH.VALIDER, MYAFFCH.MODIFIER,  MYAFFCH.DTECRASEMENT, MYAFFCH.NIVEAUPREV, MYAFFCH.COMMENTAIRE IDAFFCH_COMMENTAIRE, MYAFFCH.ADRESSEIP, MYAFFCH.TIMESTAMP, MYAFFCH.IDUEP, MYAFFCH.IDCH, MYAFFPH.IDAFFPH, MYAFFPH.HEUREDEBUT , MYAFFPH.HEUREFIN, MYAFFPH.DUREE, MYAFFPH.COMMENTAIRE, MYAFFPH.TIMESTAMP, MYAFFPH.DOUBLEAFF, MYAFFPH.IDACTIVITE, MYAFFPH.ORDRE, MYAFFCH.IDCYCLE_CH, MYAFFCH.IDCOMPETENCE FROM ( SELECT * FROM AFFCH WHERE IDETAT <> 3 ) MYAFFCH,( SELECT * FROM AFFPH WHERE IDETAT <> 3 ) MYAFFPH WHERE MYAFFCH.IDAFFCH = MYAFFPH.IDAFFCH (+) AND  (MYAFFCH.IDSALARIE IN ('1041', '1015', '1043', '1045', '1005', '1047', '1025', '1019', '1003', '1009', '1001', '1031', '1011', '399', '399', '400', '400', '381', '381', '382', '382', '383', '383', '384', '384', '385', '385', '386', '386', '387', '387', '388', '388', '389', '389', '390', '391', '392', '393', '394', '395', '396', '397', '398', '401', '40
  2. 2', '403', '404', '405', '406', '407', '408', '409', '410', '411', '412', '413', '414', '415', '416', '417', '418', '419', '420', '421', '422', '423', '424', '425', '426', '427', '428', '429', '430', '431', '432', '433', '434', '435', '436', '437', '438', '439', '440', '441', '442', '443', '444', '445', '446', '447', '448', '449', '450', '451', '452', '453', '454', '455', '456', '457', '458', '459', '460', '461', '462', '463', '464', '465', '466', '467', '468', '469', '470', '471', '472', '473', '474', '475', '476', '477', '478', '479', '480', '481', '482', '483', '484', '485', '486', '487', '488', '489', '490', '491', '492', '493', '494', '495', '496', '497', '498', '499', '500', '501', '502', '503', '504', '505', '506', '507', '508', '509', '510', '511', '512', '513', '514', '515', '516', '517', '518', '519', '520', '521', '522', '523', '524', '525', '526', '527', '528', '529', '530', '531', '532', '533', '534', '535', '536', '537', '538', '539', '540', '541', '542', '543', '544', '545', '546', '547', '548
  3. ', '549', '550', '551', '552', '553', '554', '555', '556', '557', '558', '559', '560', '561', '562', '563', '564', '565', '566', '567', '568', '569', '570', '571', '572', '573', '574', '575', '576', '577', '578', '579', '580', '581', '582', '583', '584', '585', '586', '587', '588', '589', '590', '591', '592', '593', '594', '595', '596', '597', '598', '599', '600', '601', '602', '603', '604', '605', '606', '607', '608', '609', '610', '611') OR MYAFFCH.IDSALARIE IN ('612', '613', '614', '615', '616', '617', '618', '619', '620', '621', '622', '623', '624', '625', '626', '627', '628', '629', '630', '631', '632', '633', '634', '635', '636', '637', '638', '639', '640', '641', '642', '643', '644', '645', '646', '647', '648', '649', '650', '651', '652', '653', '654', '655', '656', '657', '658', '659', '660', '661', '662', '663', '664', '665', '666', '667', '668', '669', '670', '671', '672', '673', '674', '675', '676', '677', '678', '679', '680', '681', '682', '683', '684', '685', '686', '687', '688', '689', '690', '
  4. 691', '692', '693', '694', '695', '696', '697', '698', '699', '700', '701', '702', '703', '704', '705', '706', '707', '708', '709', '710', '711', '712', '713', '714', '715', '716', '717', '718', '719', '720', '721', '722', '723', '724', '725', '726', '727', '728', '729', '730', '731', '732', '733', '734', '735', '736', '737', '738', '739', '740', '741', '742', '743', '744', '745', '746', '747', '748', '749', '750', '751', '752', '753', '754', '755', '756', '757', '758', '759', '760', '785', '786', '787', '788', '789', '790', '791', '792', '793', '794', '795', '796', '797', '798', '799', '800', '801', '802', '803', '804', '805', '806', '807', '808', '809', '810', '811', '812', '813', '814', '815', '816', '817', '818', '819', '820', '821', '822', '823', '824', '825', '826', '827', '828', '829', '830', '831', '832', '833', '834', '835', '836', '837', '838', '839', '840', '841', '842', '843', '844', '845', '846', '847', '848', '849', '850', '851', '852', '853', '854', '855', '856', '857', '858', '859', '860', '8
  5. 61', '862', '863', '864', '865', '866', '867', '868', '869', '870', '871', '872', '873', '874', '875', '876', '877', '878', '879', '880', '881', '882', '883', '884', '885', '886', '887', '888', '889', '890') OR MYAFFCH.IDSALARIE IN ('891', '892', '893', '894', '895', '896', '897', '898', '899', '900', '901', '902', '903', '904', '905', '906', '907', '908', '909', '910', '911', '912', '913', '914', '915', '916', '917', '918', '919', '920', '921', '922', '923', '924', '925', '926', '927', '928', '929', '930', '931', '932', '933', '934', '935', '936', '937', '938', '939', '940', '941', '942', '943', '944', '945', '946', '947', '948', '949', '950', '951', '952', '953', '954', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '966', '967', '968', '969', '970', '971', '972', '973', '974', '975', '976', '977', '978', '979', '980', '981', '982', '983', '984', '985', '986', '987', '988', '989', '990', '991', '992', '993', '994', '995', '996', '997', '998', '999', '1000', '1002', '1004', '10
  6. 06', '1008', '1010', '1012', '1014', '1016', '1018', '1020', '1022', '1024', '1026', '1028', '1030', '1032', '1034', '1036', '1038', '1040', '1042', '1044', '1046', '1048', '1049', '1050', '1051', '1052', '1053', '1054', '1055', '1056', '1057', '1058', '1059', '1060', '1061', '1062', '1063', '1064', '1065', '1066', '1067', '1068', '1069', '1070', '1071', '1072', '1073', '1074', '1075', '1076', '1077', '1078', '1079', '1080', '1081', '1082', '1083', '1084', '1085', '1086', '1087', '1088', '1089', '1090', '1091', '1092', '1093', '1094', '1095', '1096', '1097', '1098', '1099', '1100', '1101', '1102', '1103', '1104', '1105', '1106', '1107', '1108', '1109', '1110', '1111', '1112', '1113', '1114', '1115', '1116', '1117', '1118', '1119', '1120', '1148', '1149', '1150', '1151', '1152', '1153', '1154', '1155', '1156', '1157', '1158', '1159', '1160', '1161', '1162', '1163', '1164', '1165', '1166', '1167', '1168', '1169', '1170', '1171', '1172', '1173', '1174', '1175', '1176', '1177', '1178', '1179', '1180', '1181', '1
  7. 182', '1183', '1184', '1185', '1186', '1187', '1188', '1189', '1190', '1191', '1192', '1193', '1194', '1195', '1196') OR MYAFFCH.IDSALARIE IN ('1197', '1198', '1199', '1200', '1201', '1202', '1203', '1204', '1205', '1206', '1207', '1208', '1209', '1210', '1211', '1212', '1213', '1214', '1215', '1216', '1217', '1218', '1219', '1220', '1221', '1222', '1223', '1224', '1225', '1226', '1227', '1228', '1229', '1230', '1231', '1232', '1233', '1234', '1235', '1236', '1237', '1238', '1239', '1240', '1241', '1242', '1243', '1244', '1245', '1246', '1247', '1248', '1249', '1250', '1251', '1252', '1253', '1254', '1255', '1256', '1257', '1258', '1259', '1260', '1261', '1262', '1263', '1264', '1265', '1266', '1267', '1268', '1269', '1270', '1271', '1272', '1273', '1274', '1275', '1276', '1277', '1278', '1279', '1280', '1281', '1282', '1283', '1284', '1285', '1286', '1287', '1288', '1289', '1290', '1291', '1292', '1293', '1294', '1295', '1296', '1297', '1298', '1299', '1300', '1301', '1302', '1303', '1304', '1305', '1306',
  8. '1307', '1308', '1309', '1310', '1311', '1312', '1313', '1314', '1315', '1316', '1317', '1318', '1319', '1320', '1321', '1322', '1323', '1324', '1325', '1326', '1327', '1328', '1329', '1330', '1331', '1332', '1333', '1334', '1335', '1336', '1337', '1338', '1339', '1340', '1341', '1342', '1343', '1344', '1345', '1346', '1347', '1348', '1349', '1350', '1351', '1352', '1353', '1354', '1355', '1356', '1357', '1358', '1359', '1360', '1361', '1362', '1363', '1364', '1365', '1366', '1367', '1368', '1369', '1370', '1371', '1372', '1373', '1374', '1375', '1376', '1377', '1378', '1379', '1380', '2427', '2428', '2429', '2430', '2431', '2432', '2433', '2434', '2435', '2436', '2437', '2438', '2439', '2440', '2441', '2442', '2443', '2444', '2445', '2446', '2447', '2448', '2449', '2450', '2403', '2404', '2405', '2406', '2407', '2408', '2409', '2410', '2411', '2412', '2413', '2414', '2415', '2416', '2417', '2418', '2419', '2420', '2421', '2422', '2423', '2424', '2425', '2426', '2401', '2402', '2506', '2507', '2508', '2509',
  9. '2510', '1023', '1027', '1037', '1039', '1013', '1033', '1021', '1017', '1029', '1035', '1007')) AND          MYAFFCH.IDPLAN = 'PPL' AND     (MYAFFCH.DT >= TO_DATE('01/01/2004 00:00:00', 'DD/MM/YYYY HH24:MI:SS') AND      MYAFFCH.DT <= TO_DATE('31/12/2004 00:00:00', 'DD/MM/YYYY HH24:MI:SS'))  ORDER BY MYAFFCH.IDSALARIE, MYAFFCH.DT, MYAFFPH.ORDRE


 
 
la partie importante étant:

Citation :

(+) AND  (MYAFFCH.IDSALARIE IN ( [...] , '1007'))


saloperie de merde d'oracle :o


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°686143
Mr yvele
yvele n'est plus.
Posté le 28-03-2004 à 21:23:17  profilanswer
 

Code :
  1. arrayCopy(theData,(short)0,mData,(short)(mTable[mCurrentHandle].mOffset+mPutCpt),(((short)(mPutCpt+theData.length)>(short)mTable[mCurrentHandle].mAllocatedLength)?((short)(mTable[mCurrentHandle].mAllocatedLength-mPutCpt)):((short)theData.length)));


 
 :D


Message édité par Mr yvele le 28-03-2004 à 21:23:30

---------------
yvele n'est plus.
n°686352
Mara's dad
Yes I can !
Posté le 29-03-2004 à 11:08:57  profilanswer
 

mareek a écrit :

je veux récupérer leur planning, mais cette saloperie d'oracle veut pas :o


Ce que je veux dire c'est : t'as pas un critère pour sélectionner les salariés, au lieu de lister les IDs en dur dans la requête ?


---------------
Laissez l'Etat dans les toilettes où vous l'avez trouvé.
n°686470
mareek
Et de 3 \o/
Posté le 29-03-2004 à 13:10:21  profilanswer
 

Mara's dad a écrit :


Ce que je veux dire c'est : t'as pas un critère pour sélectionner les salariés, au lieu de lister les IDs en dur dans la requête ?


non, c'est l'utilisateur qui les choisit à la main.


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°687759
mareek
Et de 3 \o/
Posté le 30-03-2004 à 19:31:46  profilanswer
 

Private Const lNB_COLS_UEP As Long = 4


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°687797
Mr yvele
yvele n'est plus.
Posté le 30-03-2004 à 20:37:50  profilanswer
 

ISOException.throwIt((short)(0x6200));


---------------
yvele n'est plus.
n°687893
simogeo
j'ai jamais tué de chats, ...
Posté le 30-03-2004 à 22:28:42  profilanswer
 

&nbsp;


---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
n°693466
walli
Posté le 06-04-2004 à 12:00:47  profilanswer
 

var TT = prochaine personne TT; "~~ Libérez " +TT+" !! ~~"


---------------
NP :
n°693472
skeye
Posté le 06-04-2004 à 12:04:40  profilanswer
 

#define PIX_SORT(a,b) { if ((a)>(b)) PIX_SWAP((a),(b)); }
#define PIX_SWAP(a,b) { float temp=(a);(a)=(b);(b)=temp; }
 
float opt_med9(float * p)
{
    PIX_SORT(p[1], p[2]) ; PIX_SORT(p[4], p[5]) ; PIX_SORT(p[7], p[8]) ;
    PIX_SORT(p[0], p[1]) ; PIX_SORT(p[3], p[4]) ; PIX_SORT(p[6], p[7]) ;
    PIX_SORT(p[1], p[2]) ; PIX_SORT(p[4], p[5]) ; PIX_SORT(p[7], p[8]) ;
    PIX_SORT(p[0], p[3]) ; PIX_SORT(p[5], p[8]) ; PIX_SORT(p[4], p[7]) ;
    PIX_SORT(p[3], p[6]) ; PIX_SORT(p[1], p[4]) ; PIX_SORT(p[2], p[5]) ;
    PIX_SORT(p[4], p[7]) ; PIX_SORT(p[4], p[2]) ; PIX_SORT(p[6], p[4]) ;
    PIX_SORT(p[4], p[2]) ; return(p[4]) ;
}
 
(merci moktar1er!)

n°694051
mareek
Et de 3 \o/
Posté le 06-04-2004 à 19:12:37  profilanswer
 

Private Function dateAddSelonPortee(dDate As Date, ePortee As PORTEE, lAddValeur As Long) As Date
   
  Select Case ePortee
    Case PORTEE.PORTEE_ANNEE
      dateAddSelonPortee = DateAdd("yyyy", lAddValeur, dDate)
    Case PORTEE.PORTEE_MOIS
      dateAddSelonPortee = DateAdd("m", lAddValeur, dDate)
    Case PORTEE.PORTEE_SEMAINE
      dateAddSelonPortee = DateAdd("ww", lAddValeur, dDate)
    Case PORTEE.PORTEE_JOUR
      dateAddSelonPortee = DateAdd("d", lAddValeur, dDate)
    Case Else
      dateAddSelonPortee = DateAdd("d", lAddValeur, dDate)
  End Select
   
End Function
 
 


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°694099
simogeo
j'ai jamais tué de chats, ...
Posté le 06-04-2004 à 19:56:59  profilanswer
 

case 'sdi':
            DisplaySearchSdi($str, $type);  
            break;


---------------
from here and there -- \o__________________________________ -- la révolution de la terre, en silence
n°694463
Moktar1er
No one replies...
Posté le 07-04-2004 à 10:42:36  profilanswer
 

xJl28iRo7ac02

n°695020
mareek
Et de 3 \o/
Posté le 07-04-2004 à 18:50:12  profilanswer
 

If IsObject(.RowData(lRow)) And IsObject(.Cell(flexcpData, lRow, lCOL_COMMENTAIRE)) Then


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°695197
darklord
You're welcome
Posté le 07-04-2004 à 21:42:29  profilanswer
 

ta mère

n°702001
nraynaud
lol
Posté le 18-04-2004 à 02:22:43  profilanswer
 

Code :
  1. // This library is free software; you can redistribute it and/or modify
  2. // it under the terms of the GNU Library General Public License as published by
  3. // the Free Software Foundation; either version 2 of the License, or
  4. // (at your option) any later version.
  5. //
  6. // This library is distributed in the hope that it will be useful,
  7. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. // GNU Library General Public License for more details.
  10. //
  11. // You should have received a copy of the GNU Library General Public License
  12. // along with this program; if not, write to the Free Software
  13. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. //  
  15. // Benjamin Michotte <binny@baby-linux.net>
  16. // Dark VACHOR <http://linuxfr.org/users/?a=vu&user_id=1857>
  17. package jcoincoin.gui;
  18. import java.awt.BorderLayout;
  19. import java.awt.Dimension;
  20. import java.awt.Font;
  21. import java.awt.GridBagConstraints;
  22. import java.awt.GridBagLayout;
  23. import java.awt.Toolkit;
  24. import java.awt.event.ActionEvent;
  25. import java.awt.event.ActionListener;
  26. import java.awt.event.WindowAdapter;
  27. import java.awt.event.WindowEvent;
  28. import java.util.Iterator;
  29. import java.util.Map;
  30. import javax.swing.JButton;
  31. import javax.swing.JCheckBox;
  32. import javax.swing.JComponent;
  33. import javax.swing.JFrame;
  34. import javax.swing.JLabel;
  35. import javax.swing.JMenu;
  36. import javax.swing.JMenuBar;
  37. import javax.swing.JMenuItem;
  38. import javax.swing.JOptionPane;
  39. import javax.swing.JPanel;
  40. import javax.swing.JPopupMenu;
  41. import javax.swing.JTabbedPane;
  42. import javax.swing.SwingUtilities;
  43. import javax.swing.UIManager;
  44. import javax.swing.event.PopupMenuEvent;
  45. import javax.swing.event.PopupMenuListener;
  46. import jcoincoin.JCoinCoin;
  47. import jcoincoin.MessageQueue;
  48. import jcoincoin.OutputMessage;
  49. import jcoincoin.SenderThread;
  50. import jcoincoin.http.JCoinEnvoyeur;
  51. import jcoincoin.plugins.cowboy.cowboyEvent;
  52. import jcoincoin.utils.TribuneOptions;
  53. /**
  54. * Description: GUI principale
  55. * @author Benjamin Michotte
  56. * @author : Dark VACHOR
  57. */
  58. public class JCoinGui
  59. extends JFrame
  60. implements ActionListener, PopupMenuListener {
  61. // trucs d'information
  62. private JLabel jLabelInfo;
  63. private JPopupMenu jPopupMenu;
  64. // panneau des tribunes
  65. private JTabbedPane jtPane;
  66. // panneau de saisie
  67. private JCoinTextField jTextField;
  68. private JPanel jPanelButtons;
  69. private JCheckBox jCheckBoxAnonymous;
  70. //private boolean iWantToBeAnonymous = false;
  71. //private JComboBox jComboBox;
  72. //private JTextPane ivjJEditorPane1;
  73. //private JScrollPane ivjJScrollPane1;
  74. // TODO ajouter le traducteur cowboy (inutilise pour le moment)
  75. private cowboyEvent traducteur;
  76. // flags HTML
  77. private final int HTML_BOLD = 0;
  78. private final int HTML_ITALIC = 1;
  79. private final int HTML_UNDERLINE = 2;
  80. private final int HTML_STRIKE = 3;
  81. private final int HTML_DELETE = 4;
  82. private final int HTML_MOMENT = 5;
  83. private final MessageQueue outputQueue = new MessageQueue();
  84. /**
  85.  * Default constructor
  86.  *
  87.  */
  88. public JCoinGui() {
  89.  new SenderThread(outputQueue).start();
  90.  /* on donne le titre, la dimension et on dit que quand
  91.   * on clique sur la croix, ben JCoinCoin, il se ferme
  92.   */
  93.  setTitle("JCoinCoin v " + JCoinCoin.getOptions().getVersion());
  94.  //setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
  95.  addWindowListener(new WindowAdapter() {
  96.   public void windowClosing(WindowEvent e) {
  97.    System.exit(0);
  98.   }
  99.  });
  100.  // creation de la barre de menu
  101.  setJMenuBar(createMenuBar());
  102.  // creation du panneau du haut
  103.  getContentPane().add(createLabelInfo(), BorderLayout.NORTH);
  104.  // creation du panneau du centre
  105.  getContentPane().add(createPanelCentre(), BorderLayout.CENTER);
  106.  // creation du panneau du bas
  107.  getContentPane().add(createPanelBas(), BorderLayout.SOUTH);
  108.  setSize(450, 450);
  109.  setResizable(true);
  110.  Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
  111.  this.setLocation(
  112.   (screenSize.width - this.getWidth()) / 2,
  113.   (screenSize.height - this.getHeight()) / 2);
  114. }
  115. /**
  116.  * CrÈation des menus
  117.  * @return
  118.  */
  119. private JMenuBar createMenuBar() {
  120.  JMenuBar jMenuBar = new JMenuBar();
  121.  // menu principal
  122.  JMenu mainMenu = new JMenu("Menu" );
  123.  jMenuBar.add(mainMenu);
  124.  JMenuItem config = new JMenuItem("Options" );
  125.  config.addActionListener(this);
  126.  config.setActionCommand("config" );
  127.  mainMenu.add(config);
  128.  mainMenu.addSeparator();
  129.  JMenuItem about = new JMenuItem("A propos" );
  130.  about.addActionListener(this);
  131.  about.setActionCommand("about" );
  132.  mainMenu.add(about);
  133.  JMenuItem quit = new JMenuItem("Quitter" );
  134.  quit.addActionListener(this);
  135.  quit.setActionCommand("quitter" );
  136.  mainMenu.add(quit);
  137.  // menu des plugins
  138.  JMenu pluginMenu = new JMenu("Plugins" );
  139.  jMenuBar.add(pluginMenu);
  140.  JMenuItem cowboy = new JMenuItem("Cowboy" );
  141.  pluginMenu.add(cowboy);
  142.  // pas encore d'action associe au plugin cowboy
  143.  return jMenuBar;
  144. }
  145. /**
  146.  * Creation du panneau du haut
  147.  * @return
  148.  */
  149. private JComponent createLabelInfo() {
  150.  jLabelInfo = new JLabel();
  151.  jLabelInfo.setFont(new Font("Verdana", 0, 12));
  152.  jLabelInfo.setToolTipText("Infos JCoinCoin" );
  153.  setStatusMessage("JCoinCoin \\_o<~" );
  154.  return jLabelInfo;
  155. }
  156. /**
  157.  * Creation du panneau du centre
  158.  * @return
  159.  */
  160. private JComponent createPanelCentre() {
  161.  // create jtabbedpane
  162.  jtPane = new JTabbedPane();
  163.  Iterator iterator =
  164.   JCoinCoin.getOptions().getTribunesHashtable().entrySet().iterator();
  165.  while (iterator.hasNext()) {
  166.   // on recupere la clef
  167.   Map.Entry entry = (Map.Entry) iterator.next();
  168.   String tribuneName = (String) entry.getKey();
  169.   // on crÈÈe le panel de cette tribune
  170.   TribunePanel tribunePanel =
  171.    new TribunePanel(this, (TribuneOptions) entry.getValue());
  172.   tribunePanel.setOpaque(true);
  173.   tribunePanel.setName(tribuneName);
  174.   // on l'attache au JTabbedPanel
  175.   jtPane.add(tribuneName, tribunePanel);
  176.  }
  177.  // on place le select sur le premier panel
  178.  if (jtPane.getTabCount() > 0)
  179.   jtPane.setSelectedIndex(0);
  180.  return jtPane;
  181. }
  182. /**
  183.  * Creation du panneau du bas
  184.  * @return
  185.  */
  186. // TODO (nraynaud) : cut this in methods.
  187. private JPanel createPanelBas() {
  188.  JPanel p = new JPanel();
  189.  p.setLayout(new GridBagLayout());
  190.  GridBagConstraints constraints = new GridBagConstraints();
  191.  // Creation du JTextField de saisie des messages
  192.  jTextField = new JCoinTextField(300);
  193.  jTextField.addActionListener(this);
  194.  jTextField.setActionCommand("send" );
  195.  // on donne le focus au textfield de saisie
  196.  jTextField.requestFocus();
  197.  //jTextField.addKeyListener(traducteur);
  198.  constraints.gridx = 0;
  199.  constraints.gridy = 1;
  200.  constraints.weightx = 1.0;
  201.  constraints.fill = GridBagConstraints.HORIZONTAL;
  202.  constraints.gridwidth = GridBagConstraints.REMAINDER;
  203.  p.add(jTextField, constraints);
  204.  JButton b = new JButton("<html><b>B</b></html>" );
  205.  b.setToolTipText("Texte en gras" );
  206.  b.addActionListener(this);
  207.  b.setActionCommand("html_bold" );
  208.  constraints.gridx = 0;
  209.  constraints.gridy = 0;
  210.  constraints.weightx = 0.0;
  211.  constraints.gridwidth = 1;
  212.  p.add(b, constraints);
  213.  JButton i = new JButton("<html><i>I</i></html>" );
  214.  i.setToolTipText("Texte en italique" );
  215.  i.addActionListener(this);
  216.  i.setActionCommand("html_italic" );
  217.  constraints.gridx = 1;
  218.  p.add(i, constraints);
  219.  JButton u = new JButton("<html><u>U</u></html>" );
  220.  u.setToolTipText("Texte soulignÈ" );
  221.  u.addActionListener(this);
  222.  u.setActionCommand("html_underline" );
  223.  constraints.gridx = 2;
  224.  p.add(u, constraints);
  225.  JButton s = new JButton("<html><s>S</s></html>" );
  226.  s.setToolTipText("Texte barrÈ" );
  227.  s.addActionListener(this);
  228.  s.setActionCommand("html_strike" );
  229.  constraints.gridx = 3;
  230.  p.add(s, constraints);
  231.  JButton m = new JButton("=>M<=" );
  232.  m.setToolTipText("====> Moment <====" );
  233.  m.addActionListener(this);
  234.  m.setActionCommand("html_moment" );
  235.  constraints.gridx = 4;
  236.  p.add(m, constraints);
  237.  jCheckBoxAnonymous = new JCheckBox();
  238.  jCheckBoxAnonymous.setText("Anon." );
  239.  jCheckBoxAnonymous.setToolTipText("Permet de poster anonymement..." );
  240.  //jCheckBoxAnonymous.addActionListener(this);
  241.  //jCheckBoxAnonymous.setActionCommand("anonyme" );
  242.  constraints.gridx = 5;
  243.  p.add(jCheckBoxAnonymous, constraints);
  244.  JButton jRefreshMainWindowButton = new JButton("Tasser" );
  245.  jRefreshMainWindowButton.setActionCommand("tasser" );
  246.  jRefreshMainWindowButton.addActionListener(this);
  247.  constraints.gridx = 6;
  248.  p.add(jRefreshMainWindowButton, constraints);
  249.  return p;
  250. }
  251. /**
  252.  * Init des elements graphiques (inutile)
  253.  *
  254.  */
  255. private void initGui() {
  256.  /*
  257.   * panel du dessus contenant
  258.   *  - le taux CPU
  259.   *  - vos XP
  260.   *  - le troll-level
  261.   *  - le nombre de messages que vous avez
  262.   *  - un belle progressbar qd jcoincoin bosse
  263.   */
  264.  jPopupMenu.setLabel("Infos perso" );
  265.  jPopupMenu.addPopupMenuListener(this);
  266.  /*
  267.    jPanelButtons.setLayout(new FlowLayout(FlowLayout.LEFT));
  268.    String[] plok = { "<b>", "<i>", "<u>", "<s>", "delete", "moment" };
  269.    jComboBox = new JComboBox(plok);
  270.    jComboBox.addActionListener(this);
  271.    jComboBox.setActionCommand("html_wanted" );
  272.    jPanelButtons.add(jComboBox);
  273.  
  274.    jCheckBoxAnonymous.setText("Anonyme" );
  275.    jCheckBoxAnonymous.setToolTipText("Permet de poster anonymement..." );
  276.    jCheckBoxAnonymous.addActionListener(this);
  277.    jCheckBoxAnonymous.setActionCommand("anonyme" );
  278.    jPanelButtons.add(jCheckBoxAnonymous);
  279.    JButton jRefreshMainWindowButton = new JButton("Tasser le texte" );
  280.    jRefreshMainWindowButton.setActionCommand("tasser" );
  281.    jRefreshMainWindowButton.addActionListener(this);
  282.    jPanelButtons.add(jRefreshMainWindowButton);
  283.    jStatusLabel = new JLabel("messages..." );
  284.    jPanelButtons.add(jStatusLabel);
  285.  
  286.    jPanel3.add(jPanelButtons);
  287.    */
  288. }
  289. /**
  290.  * les ActionPerformed
  291.  */
  292. public void actionPerformed(ActionEvent e) {
  293.  // menu > quitter
  294.  if (e.getActionCommand() == "quitter" )
  295.   System.exit(0);
  296.  // menu > about
  297.  else if (e.getActionCommand() == "about" ) {
  298.   JOptionPane.showMessageDialog(
  299.    this,
  300.    "JCoinCoin v "
  301.     + JCoinCoin.getOptions().getVersion()
  302.     + " by :\nBenjamin Michotte - binny@baby-linux.net"
  303.     + "\nFredx - fredlx1@yahoo.fr\n",
  304.    "About",
  305.    JOptionPane.INFORMATION_MESSAGE);
  306.  }
  307.  // menu > config
  308.  else if (e.getActionCommand() == "config" ) {
  309.   final OptionsFrame aOptions =
  310.    new OptionsFrame(JCoinCoin.getOptions());
  311.   aOptions.pack();
  312.   //aOptions.show();
  313.   java.awt.Insets insets = aOptions.getInsets();
  314.   aOptions.setSize(
  315.    aOptions.getWidth() + insets.left + insets.right,
  316.    aOptions.getHeight() + insets.top + insets.bottom);
  317.   aOptions.setVisible(true);
  318.   aOptions.addWindowListener(new java.awt.event.WindowAdapter() {
  319.    public void windowClosing(java.awt.event.WindowEvent e) {
  320.     aOptions.setVisible(false);
  321.    };
  322.   });
  323.  }
  324.  // we want to send a beautiful message
  325.  else if (e.getActionCommand() == "send" ) {
  326.   setStatusMessage(
  327.    "Envoi du message vers " + getSelectedTribuneName());
  328.   JCoinEnvoyeur monEnvoyeur =
  329.    new JCoinEnvoyeur(
  330.     JCoinCoin.getOptions().getTribuneOptions(
  331.      getSelectedTribuneName()),
  332.     jCheckBoxAnonymous.isSelected());
  333.   if (jTextField.getText().length() <= 255) {
  334.    // traitement du resultat
  335.    outputQueue.put(
  336.     new OutputMessage(
  337.      jTextField.getText(),
  338.      JCoinCoin.getOptions().getTribuneOptions(
  339.       getSelectedTribuneName())));
  340.     int res = 0 ;//monEnvoyeur.send(jTextField.getText());
  341. if (res == 404) {
  342.     setStatusMessage("Erreur 404 sur la page..." );
  343.    } else if (res == 502) {
  344.     setStatusMessage("Erreur 502 sur la page..." );
  345.    } else if (res == 200) {
  346.     setStatusMessage("Erreur d'authentification..." );
  347.    } else if (res == -9) {
  348.     setStatusMessage("Le message est pas parti..." );
  349.    } else if (res == -1) {
  350.     setStatusMessage("Le message est pas parti..." );
  351.    } else {
  352.     jTextField.setText("" );
  353.     clearStatusMessage();
  354.    }
  355.   } else
  356.    JCoinError.displayError("Message trop long" );
  357.  }
  358.  // anonymous / authentified
  359.  /*
  360.  else if (e.getActionCommand() == "anonyme" ) {
  361.   if (jCheckBoxAnonymous.isSelected())
  362.    iWantToBeAnonymous = true;
  363.   else
  364.    iWantToBeAnonymous = false;
  365.  }*/
  366.  // on veut quelque chose du combo TODO: supprimer cette partie
  367.  /*
  368.  else if (e.getActionCommand() == "html_wanted" ) {
  369.   if (jComboBox.getSelectedIndex() == HTML_BOLD)
  370.    insertHtml(HTML_BOLD);
  371.   if (jComboBox.getSelectedIndex() == HTML_ITALIC)
  372.    insertHtml(HTML_ITALIC);
  373.   if (jComboBox.getSelectedIndex() == HTML_UNDERLINE)
  374.    insertHtml(HTML_UNDERLINE);
  375.   if (jComboBox.getSelectedIndex() == HTML_STRIKE)
  376.    insertHtml(HTML_STRIKE);
  377.   if (jComboBox.getSelectedIndex() == HTML_DELETE)
  378.    jTextField.setText("" );
  379.   if (jComboBox.getSelectedIndex() == HTML_MOMENT)
  380.    insertHtml(HTML_MOMENT);
  381.  }*/
  382.  // operations sur le texte
  383.  else if (e.getActionCommand() == "html_bold" )
  384.   insertHtml(HTML_BOLD);
  385.  else if (e.getActionCommand() == "html_italic" )
  386.   insertHtml(HTML_ITALIC);
  387.  else if (e.getActionCommand() == "html_underline" )
  388.   insertHtml(HTML_UNDERLINE);
  389.  else if (e.getActionCommand() == "html_strike" )
  390.   insertHtml(HTML_STRIKE);
  391.  else if (e.getActionCommand() == "html_moment" )
  392.   insertHtml(HTML_MOMENT);
  393.  // on veut tasser le texte
  394.  else if (e.getActionCommand() == "tasser" ) {
  395.   setStatusMessage("Ce sera fait au prochain refresh..." );
  396.   getSelectedTribune().setFirstTime(true);
  397.   getSelectedTribune().setLastId(0);
  398.  }
  399. }
  400. /**
  401.  * PopupListener
  402.  */
  403. public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
  404. }
  405. public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
  406. }
  407. public void popupMenuCanceled(PopupMenuEvent e) {
  408. }
  409. /**
  410.  * InsËre les tags HTML dÈfinis
  411.  * @param e
  412.  */
  413. private void insertHtml(final int e) {
  414.  String foo1 = new String();
  415.  String foo2 = new String();
  416.  switch (e) {
  417.   case HTML_BOLD :
  418.    foo1 = "<b>";
  419.    foo2 = "</b>";
  420.    break;
  421.   case HTML_ITALIC :
  422.    foo1 = "<i>";
  423.    foo2 = "</i>";
  424.    break;
  425.   case HTML_STRIKE :
  426.    foo1 = "<s>";
  427.    foo2 = "</s>";
  428.    break;
  429.   case HTML_UNDERLINE :
  430.    foo1 = "<u>";
  431.    foo2 = "</u>";
  432.    break;
  433.   case HTML_MOMENT :
  434.    foo1 = "<b>====> Moment ";
  435.    foo2 = " <====</b>";
  436.    break;
  437.  }
  438.  // on chope l'endroit ou le curseur est
  439.  int oldCaret = jTextField.getCaretPosition();
  440.  int newCaret = 0;
  441.  String tmp = new String();
  442.  // si on n'est pas a la fin du texte
  443.  if (oldCaret < jTextField.getText().length()) {
  444.   tmp = jTextField.getText().substring(0, oldCaret);
  445.   tmp += foo1;
  446.   newCaret = tmp.length();
  447.   tmp += foo2;
  448.   tmp
  449.    += jTextField.getText().substring(
  450.     oldCaret,
  451.     jTextField.getText().length());
  452.  } else {
  453.   tmp = jTextField.getText() + foo1;
  454.   newCaret = tmp.length();
  455.   tmp += foo2;
  456.  }
  457.  // on remet le texte  
  458.  jTextField.setText(tmp);
  459.  // on replace le curseur au milieu
  460.  jTextField.setCaretPosition(newCaret);
  461.  // on rend le focus au textfield
  462.  jTextField.requestFocus();
  463. }
  464. /**
  465.  * Met a jour le message de statut de JCoinCoin
  466.  * @param message ? afficher dans la boite de statut
  467.  */
  468. public void setStatusMessage(String msg) {
  469.  assert msg != "";
  470.  assert msg != "\n";
  471.  jLabelInfo.setText(msg);
  472. }
  473. /**
  474.  * efface le message de statut
  475.  * En r?alit?, affiche un "\n" de fa?on que la hauteur du label reste constante.
  476.  *
  477.  */
  478. public void clearStatusMessage() {
  479.  jLabelInfo.setText("\n" );
  480. }
  481. /**
  482.  * Identifie la tribune qui a le focus
  483.  * @return le nom de la tribune qui a le focus
  484.  */
  485. public String getSelectedTribuneName() {
  486.  return jtPane.getSelectedComponent().getName();
  487. }
  488. /**
  489.   * Renvoie la tribune qui a le focus
  490.   * @return la tribune qui a le focus
  491.   */
  492. public TribunePanel getSelectedTribune() {
  493.  return (TribunePanel) jtPane.getSelectedComponent();
  494. }
  495. /**
  496.  * Renvoie le champ de saisie du texte  
  497.  * @return
  498.  */
  499. public JCoinTextField getTextField() {
  500.  return jTextField;
  501. }
  502. /**
  503.  * Setting Look & Feel for main frame
  504.  * @param lnfName
  505.  */
  506. public void setLookAndFeel(String lnfName) {
  507.  try {
  508.   UIManager.setLookAndFeel(lnfName);
  509.   SwingUtilities.updateComponentTreeUI(this);
  510.   this.pack();
  511.  } catch (Exception e) {
  512.  }
  513. }
  514. /**
  515.  * @return
  516.  */
  517. public MessageQueue getOutputQueue() {
  518.  return outputQueue;
  519. }
  520. }


 
(c'est chaud quand eclipse dit : "save failed : assertion failed" )


---------------
trainoo.com, c'est fini
n°702004
mareek
Et de 3 \o/
Posté le 18-04-2004 à 02:29:54  profilanswer
 

http://www.hardware.fr/articles/327/page5.html


---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°708929
Mr yvele
yvele n'est plus.
Posté le 26-04-2004 à 17:29:36  profilanswer
 

gh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjvgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfjgh rtuf ju fjhfj

n°708999
mareek
Et de 3 \o/
Posté le 26-04-2004 à 18:34:53  profilanswer
 

Code :
  1. Private Sub UserControl_Resize()
  2.   Dim lVertMove As Long
  3.   Dim lHorizMove As Long
  4.  
  5.   If Not mLockResize Then
  6.     mLockResize = True
  7.     If UserControl.Width < lMINWIDTH Then
  8.       UserControl.Width = lMINWIDTH
  9.     End If
  10.    
  11.     If UserControl.Height < lMINHEIGHT Then
  12.       UserControl.Height = lMINHEIGHT
  13.     End If
  14.    
  15.     lVertMove = UserControl.Height - mOldHeight
  16.     lHorizMove = UserControl.Width - mOldWidth
  17.    
  18.    
  19.     LstShowAndOrder1.Height = LstShowAndOrder1.Height + lVertMove
  20.    
  21.     CtlSearchAgents1.Width = CtlSearchAgents1.Width + lHorizMove
  22.     LstShowAndOrder1.Width = LstShowAndOrder1.Width + lHorizMove
  23.    
  24.     mOldHeight = UserControl.Height
  25.     mOldWidth = UserControl.Width
  26.     mLockResize = False
  27.   End If
  28. End Sub


Message édité par mareek le 26-04-2004 à 18:35:13

---------------
"I wonder if the internal negative pressure in self pumping toothpaste tubes is adjusted for different market altitudes." John Carmack
n°726911
mareek
Et de 3 \o/
Posté le 15-05-2004 à 17:59:29  profilanswer
 

Skynet2611

n°727022
Profil sup​primé
Posté le 15-05-2004 à 21:10:00  answer
 

echo "<div style=\"text-align:left;\">";
 //delete the news, edit it or show it
 $newz = new news;
 if (isset($_GET["del"]) && $user->auth==9 && $_GET["id"]==$news->id)
  $newz->DelNews($news->id);
 elseif (isset($_GET["edit"]) && $user->auth==9 && $_GET["id"]==$news->id)  
  $newz->EdNews($news->id);
 else echo format($news->msg);
 echo "</div>";

avait jamais vu ce thread :o

n°728830
schnapsman​n
Zaford Beeblefect
Posté le 17-05-2004 à 12:34:12  profilanswer
 

  vsprintf(0x7fffffff, 0x5e0ef0, 0xffbef4c0, 0xbe9f0000, 0x3fefbd34,
 0xfe8ebd34)
   _doprnt(0x0, 0xffbef4c0, 0x0, 0xff093789, 0x4, 0x5e0ef2)
  strlen(0x0, 0x3ae8, 0x0, 0x73, 0xff054370, 0x55)
   StRlEn(0x0, 0x4, 0x3fefbcdc, 0x7efefeff, 0x81010100, 0x0)

n°728833
Profil sup​primé
Posté le 17-05-2004 à 12:35:17  answer
 

$tv_forum->name.
 
:/

n°731350
Mara's dad
Yes I can !
Posté le 19-05-2004 à 12:58:27  profilanswer
 

<xsl:apply-templates select="page[@heading-group-id=//heading-group/@id][position() mod 5 = 1]" mode="ligne" />


---------------
Laissez l'Etat dans les toilettes où vous l'avez trouvé.
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  12  13  14  ..  188  189  190  191  192  193

Aller à :
Ajouter une réponse
 

Sujets relatifs
Récupérer le contenu d'une frame[ASP] Récupérer le contenu du buffer
afficher le contenu d'un requette SQL dans 1 DataGrid ou autre ?Recherche un outil de help-desk
effacer le contenu d'une text areaRécupérer le contenu d'un fichier distant. readfile(), include().
Lire une page web (php) à partir de vb pour afficher le contenuoutil de test de charge
(HTML/JS aussi)Recuperation de valeur contenu entre les TAGtype contenu ds un vector
Plus de sujets relatifs à : [Topic Outil] sauvegardez le contenu de votre presse papier


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)