tutorials.de Buch-Aktion 05/2012
ERLEDIGT
NEIN
ANTWORTEN
3
ZUGRIFFE
1186
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    bloodbearer bloodbearer ist offline Grünschnabel
    Registriert seit
    Jan 2012
    Beiträge
    2
    Hallo

    Ich habe folgendes Problem:

    Ich möchte Daten aus einer HTML auslesen und in Access ausgeben. Problem bei der HTML ist, ich muss auf den Inhalt zugreifen, was ich mit einem String definiere. Aber so ganz funktioniert das noch nicht.
    Ich wäre euch sehr dankbar, wenn mir jmd den entscheiden Lösungsvorschlag bringt.

    Dazu der Code:
    Code vb:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    
    Function getAWB2()
     
    'On Error GoTo ErrHdl
     
    Dim strAWB As String
    Dim strURL As String
    Dim IEApp As Object, IEDoc As Object
     
    If Not IsNull(DLookup("[ID]", "MSysObjects", "[Name]='tblAWBInfo'")) Then
       DoCmd.DeleteObject acTable, "tblAWBInfo"
    End If
     
    Set tdf = CurrentDb.CreateTableDef
    tdf.Name = "tblAWBInfo"
    Set fld = tdf.CreateField("strAWB", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("strInfos", dbMemo)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Checkpoint", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Station", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Location", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Date/Time", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Pcs", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Route", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Cycle", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Stat", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("PgIn", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Count", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Last", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Remarks", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Comments", dbText, 255)
    tdf.Fields.Append fld
    CurrentDb.TableDefs.Append tdf
    CurrentDb.TableDefs.Refresh
     
    Set rs = CurrentDb.OpenRecordset("tblAWBInfo", dbOpenDynaset)
     
    'strAWB = InputBox("AWB")
       
    Set IEApp = CreateObject("InternetExplorer.Application")
    IEApp.Visible = True
     
    Set rsbold = CurrentDb.OpenRecordset("tblAWB", dbOpenSnapshot)
    rsbold.MoveFirst
     
     
    Do Until rsbold.EOF
         strURL = "http://npts2.apis.dhl.com:6010/npts/ShipmentDataFetchServlet?action=14&querycriteria=QUERY_BY_AWB&queryData=" & Trim(rsbold!AWB)
         IEApp.Navigate strURL
        Do
            If UseDoEvents = True Then DoEvents
            Loop Until IEApp.Busy = False Or bBreak = True
        Set IEDoc = IEApp.Document
        Do: Loop Until IEDoc.ReadyState = "complete"
     
    '    On Error GoTo ErrHdl1
     
        i = 20
        ValNoCP = Trim(Mid(Trim(IEDoc.all.tags("tr").Item(18).innerText), InStr(IEDoc.all.tags("tr").Item(18).innerText, "No of Distinct Checkpoints:") + 27, 3))
       
    'MsgBox(valNoCP)
     
            Do Until i > ValNoCP + 19
    'MsgBox (i)
                strInfos = Trim(IEApp.Document.all.tags("tr").Item(i).innerHTML)
                If strInfos = "" Then
                    strInfos = " "
                End If
                rs.AddNew
                rs!strAWB = Trim(rsbold!AWB)
                rs!strInfos = strInfos
                rs.Update
                i = i + 1
            Loop
    rsbold.MoveNext
    'ErrHdl1: rsbold.MoveNext
     
    Loop
     
    If IEApp.Visible = True Then
        IEApp.Quit
    End If
     
    Exit Function
    ErrHdl:
     
    MsgBox (Err.Number & ": " & Err.Description)
    End Function
     
    Function selectInfo()
     
    Set db = CurrentDb
    Set rs = db.OpenRecordset("tblAWBInfo", dbOpenDynaset)
    'db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,' class=grayTdNormal', '')"
    'db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,' class=whiteTdNormal', '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,' ', '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'</A>', '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'</TD>', '[/E]')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'< TD>', '[/E]')"
     
     
     
     
    rs.MoveFirst
     
     
    'strng = Mid(strng, _
    '           InStr(strng, "</2>") + 20, _
    '           InStr( _
    '              InStr(strng, "</2>") + 20, _
    '              strng, _
    '              "</2>") _
    '            - InStr(strng, "</2>") + 20)
    'Set rs2 = duba
     
    Do Until rs.EOF
           Do While InStr(rs!strInfos, "<") > 0
            Strng = rs!strInfos
            leftstr = Mid(Strng, InStr(Strng, "<"), 3)
            Strng = Replace(Strng, _
                        Mid(Strng, _
                        InStr(Strng, "<"), _
                        InStr(Strng, ">") - InStr(Strng, "<") + 1), _
                    IIf(leftstr = "<A ", "", IIf(leftstr = "<TD", "[B/]", "KAT")), _
                    1, 1)
            rs.Edit
            rs!strInfos = Strng
            rs.Update
           Loop
        rs.MoveNext
    Loop
     
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,chr(10), '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&gt;','>')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&lt;','<')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&amp;','&')"
     
    rs.MoveFirst
    Do Until rs.EOF
        i = 0 '0
        Do Until i > 12 '11
            strig = rs!strInfos
            strig = Mid(strig, InStr(strig, "[B/]") + 4, InStr(strig, "[/E]") - InStr(strig, "[B/]") - 4)
            strig = Trim(strig)
            If strig = "" Then
               strig = " "
            End If
            rs.Edit
            rs(i + 2) = strig
            rs.Update
     
            strug = rs!strInfos
            strug = Replace(strug, Left(strug, InStr(strug, "[/E]") + 4), "", 1, 1)
            If strug = "" Then
               strug = rs!strInfos
            End If
            rs.Edit
            rs!strInfos = strug
            rs.Update
            i = i + 1
        Loop
        rs.MoveNext
    Loop
     
    rs.Close
    db.Close
     
    End Function

    Sitze da nun schon seit wochen dran, um das Problem zu beheben. Bitte helft mir.

    Danke
    Geändert von sheel (18.01.12 um 09:32 Uhr) Grund: Codetags
     

  2. #2
    Avatar von Yaslaw
    Yaslaw Yaslaw ist offline n/a
    tutorials.de Moderator
    Registriert seit
    Dec 2007
    Ort
    Winterthur(CH)
    Beiträge
    5.205
    Hallo erst mal.

    item: Kannst du bitte dein Code formatiert in VB-Tags setzen? Dann wird er lesbar
    [VB]Dein code[/VB]

    item: Deine Aussage 'Aber so ganz funktioniert das noch nicht.' ist nicht wirklich hilfreich in sovielen Code-Zeilen ein Problem zu finden. Also, was geht nicht?

    item: ggf währee s auch schön, einen Beispiel-HTML-String zu haben und ein passendes Tabellenbeispiel. Also 'Das hab ich' und 'Das will ich'
     
    ---------------------------------------------------------------------------------------------------
    item: Ich habe es mir aus gesundheitlichen Gründen abgewöhnt unformatierten Code zu lesen (Auch SQL-Statements kann man formatieren!)
    item: Tutorial: [PHP][MySQL] Debug Queries
    item: Schreibt mir keine PN mit Fragen die im Forum beantwortet werden können - ich mache kein persönliches coaching
    item: Bitte zur besseren Lesbarkeit PHP-Code in [PHP]...[/PHP], SQL in [SQL]...[/SQL], Visual Basic in [VB]...[/VB] etc. schreiben

  3. #3
    bloodbearer bloodbearer ist offline Grünschnabel
    Registriert seit
    Jan 2012
    Beiträge
    2
    Das mein code:
    Code vb:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    
    Function getAWB2()
     
    'On Error GoTo ErrHdl
     
    Dim strAWB As String
    Dim strURL As String
    Dim IEApp As Object, IEDoc As Object
     
    If Not IsNull(DLookup("[ID]", "MSysObjects", "[Name]='tblAWBInfo'")) Then
       DoCmd.DeleteObject acTable, "tblAWBInfo"
    End If
     
    Set tdf = CurrentDb.CreateTableDef
    tdf.Name = "tblAWBInfo"
    Set fld = tdf.CreateField("strAWB", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("strInfos", dbMemo)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Checkpoint", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Station", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Location", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Date/Time", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Pcs", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Route", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Cycle", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Stat", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("PgIn", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Count", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Last", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Remarks", dbText, 255)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Comments", dbText, 255)
    tdf.Fields.Append fld
    CurrentDb.TableDefs.Append tdf
    CurrentDb.TableDefs.Refresh
     
    Set rs = CurrentDb.OpenRecordset("tblAWBInfo", dbOpenDynaset)
     
    'strAWB = InputBox("AWB")
       
    Set IEApp = CreateObject("InternetExplorer.Application")
    IEApp.Visible = True
     
    Set rsbold = CurrentDb.OpenRecordset("tblAWB", dbOpenSnapshot)
    rsbold.MoveFirst
     
     
    Do Until rsbold.EOF
         strURL = "http://npts2.apis.dhl.com:6010/npts/ShipmentDataFetchServlet?action=14&querycriteria=QUERY_BY_AWB&queryData=" & Trim(rsbold!AWB)
         IEApp.Navigate strURL
        Do
            If UseDoEvents = True Then DoEvents
            Loop Until IEApp.Busy = False Or bBreak = True
        Set IEDoc = IEApp.Document
        Do: Loop Until IEDoc.ReadyState = "complete"
     
    '    On Error GoTo ErrHdl1
     
        i = 20
        ValNoCP = Trim(Mid(Trim(IEDoc.all.tags("tr").Item(18).innerText), InStr(IEDoc.all.tags("tr").Item(18).innerText, "No of Distinct Checkpoints:") + 27, 3))
       
    'MsgBox(valNoCP)
     
            Do Until i > ValNoCP + 19
    'MsgBox (i)
                strInfos = Trim(IEApp.Document.all.tags("tr").Item(i).innerHTML)
                If strInfos = "" Then
                    strInfos = " "
                End If
                rs.AddNew
                rs!strAWB = Trim(rsbold!AWB)
                rs!strInfos = strInfos
                rs.Update
                i = i + 1
            Loop
    rsbold.MoveNext
    'ErrHdl1: rsbold.MoveNext
     
    Loop
     
    If IEApp.Visible = True Then
        IEApp.Quit
    End If
     
    Exit Function
    ErrHdl:
     
    MsgBox (Err.Number & ": " & Err.Description)
    End Function
     
    Function selectInfo()
     
    Set db = CurrentDb
    Set rs = db.OpenRecordset("tblAWBInfo", dbOpenDynaset)
    'db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,' class=grayTdNormal', '')"
    'db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,' class=whiteTdNormal', '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&nbsp;', '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'</A>', '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'</TD>', '[/E]')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'< TD>', '[/E]')"
     
     
     
     
    rs.MoveFirst
     
     
    'strng = Mid(strng, _
    '           InStr(strng, "</2>") + 20, _
    '           InStr( _
    '              InStr(strng, "</2>") + 20, _
    '              strng, _
    '              "</2>") _
    '            - InStr(strng, "</2>") + 20)
    'Set rs2 = duba
     
    Do Until rs.EOF
           Do While InStr(rs!strInfos, "<") > 0
            Strng = rs!strInfos
            leftstr = Mid(Strng, InStr(Strng, "<"), 3)
            Strng = Replace(Strng, _
                        Mid(Strng, _
                        InStr(Strng, "<"), _
                        InStr(Strng, ">") - InStr(Strng, "<") + 1), _
                    IIf(leftstr = "<A ", "", IIf(leftstr = "<TD", "[B/]", "KAT")), _
                    1, 1)
            rs.Edit
            rs!strInfos = Strng
            rs.Update
           Loop
        rs.MoveNext
    Loop
     
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,chr(10), '')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&gt;','>')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&lt;','<')"
    db.Execute "UPDATE tblAWBInfo SET tblAWBInfo.strInfos = Replace(tblAWBInfo.strInfos,'&amp;','&')"
     
    rs.MoveFirst
    Do Until rs.EOF
        i = 0 '0
        Do Until i > 12 '11
            strig = rs!strInfos
            strig = Mid(strig, InStr(strig, "[B/]") + 4, InStr(strig, "[/E]") - InStr(strig, "[B/]") - 4)
            strig = Trim(strig)
            If strig = "" Then
               strig = " "
            End If
            rs.Edit
            rs(i + 2) = strig
            rs.Update
     
            strug = rs!strInfos
            strug = Replace(strug, Left(strug, InStr(strug, "[/E]") + 4), "", 1, 1)
            If strug = "" Then
               strug = rs!strInfos
            End If
            rs.Edit
            rs!strInfos = strug
            rs.Update
            i = i + 1
        Loop
        rs.MoveNext
    Loop
     
    rs.Close
    db.Close
     
    End Function

    Das ist der HTML String:
    Code javascript:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    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
    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
    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
    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
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    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
    
    <html>
    <head>
    <title> WebFSQ - ShipmentDetails </title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <link  rel="Stylesheet"  type="text/css" href = "/npts/js/common/style.css">
    <script language="JavaScript1.3" src="/npts/js/webfsq/WebFSQImages.js"></script>
    <script language="JavaScript1.3" src="/npts/js/common/common.js"></script>
     
    <script language="JavaScript1.3">
    <!--
     
    //Start Change: rahul_shah: WO CS0143: WFSQ2.1.0: 07-01-2003
     
    //For opening a new window object.
    var controlObject = new Object( );
    var viewImageWindow = null;
    var chkPtInfoWindow = null;
    var dupChkPtInfoWindow = null;
    var shipperReferenceWindow = null;
    var titleMessage = "";
    var nptsHelpPageId ="";
     
    //End Change: rahul_shah: WO CS0143: WFSQ2.1.0: 07-01-2003
     
    /*
      * DESCRIPTION   : This function is called to display additional Checkpoint Informations.
      * parameter    : value.
    */
    function checkPointClicked ( value )
    {
        titleMessage = "Checkpoint Details From Shipment Detail"  ;
        nptsHelpPageId = "WF05";
        jspURL = '/npts/jsp/webfsq/CheckPointInfo.jsp?id=' + value
        var popupUrl = "/npts/jsp/common/NPTSPopup.jsp";
        popupUrl =  popupUrl + "?" + "POPUP_SRC_URL" + "=";
        popupUrl =  popupUrl + escape( jspURL );
     
     
        var w = 500;
        var h = 400;
     
        var leftVal = getLeftPosition ( w );
        var topVal  = getTopPosition ( h );
     
        winAttributes = 'width=' + w + ',height=' + h + ',left=' + leftVal + ',top=' + topVal;
     
        winAttributes = winAttributes + ',scrollbars=no,titlebar=no'
        winAttributes = winAttributes + ',resizable=yes, status=yes'
     
     
     
     //   winAttributes = 'width=500,height=400,scrollbars=no,screenX=0,screenY=0,resizable=yes,status=yes'
        chkPtInfoWindow = window.open( popupUrl ,'chkPtInfo', winAttributes );
        chkPtInfoWindow.focus( );
     
     
     
    }
     
     
     
    /*
      * DESCRIPTION   : This function is called to display Piece Details.
      * parameter    : value.
    */
    function pieceClicked( awb )
     
    {
        titleMessage = "Piece Details From Shipment Detail" ;
        nptsHelpPageId = "WF07";
        url = '/npts/ShipmentDataFetchServlet?';
        url += 'action=';
        url += '17';
        url += '&ALL_PIECE_INFO_AWB=';
        url += awb;
        var popupUrl = "/npts/jsp/common/NPTSPopup.jsp";
        popupUrl =  popupUrl + "?" + "POPUP_SRC_URL" + "=";
        popupUrl =  popupUrl + escape( url );
     
        var w = 600;
        var h = 500;
     
        var leftVal = getLeftPosition ( w );
        var topVal  = getTopPosition ( h );
     
        winAttributes = 'width=' + w + ',height=' + h + ',left=' + leftVal + ',top=' + topVal;
     
        winAttributes = winAttributes + ',scrollbars=no,titlebar=no'
        winAttributes = winAttributes + ',resizable=yes, status=yes'
     
    //    winAttributes = 'width=600,height=500,scrollbars=no,screenX=0,screenY=0,resizable=yes,status=yes'
        pieceDetailWindow = window.open( popupUrl ,'pieceDetail', winAttributes );
        pieceDetailWindow.focus( );
    }
     
     
    /*
      * DESCRIPTION   : This function is called to display Duplicated Checkpoint Informations..
      * parameter    : value.
    */
    function dupChkPtClicked ( value )
    {
        if( value != "" )
        {
            titleMessage = "Duplicate Checkpoint Details From Shipment Detail" ;
            nptsHelpPageId = "WF06";
            jspURL = '/npts/jsp/webfsq/DupChkPtInfo.jsp?id=' + value
            var popupUrl = "/npts/jsp/common/NPTSPopup.jsp";
            popupUrl =  popupUrl + "?" + "POPUP_SRC_URL" + "=";
            popupUrl =  popupUrl + escape( jspURL );
     
            var w = 800;
            var h = 500;
     
            var leftVal = getLeftPosition ( w );
            var topVal  = getTopPosition ( h );
     
            winAttributes = 'width=' + w + ',height=' + h + ',left=' + leftVal + ',top=' + topVal;
     
            winAttributes = winAttributes + ',scrollbars=no,titlebar=no'
            winAttributes = winAttributes + ',resizable=yes, status=yes'
     
     
    //      winAttributes = 'width=800,height=500,scrollbars=no,screenX=0,screenY=0,resizable=yes,status=yes'
            dupChkPtInfoWindow = window.open( popupUrl ,'dupChkPtInfo', winAttributes );
            dupChkPtInfoWindow.focus( );
        }
    }
    // This function loads the title in the top frame.
    function loadTitle()
    {
        if( window.name == "mainFrame" )
        {
            updatePageTitle( "Shipment Details", "WF03" );
        }
    }
     
     
    /*
      * DESCRIPTION   : This function is called to trap key ctrl+shift+key events for
                        IE/Nav4 browser.
      * parameter    : key id.
    */
    function func_trap_key( keyid )
    {
        switch ( keyid )
        {
             case 3: buttonClicked('cycle');// Ctrl-Shift-c
                      break;
             case 8:  buttonClicked('help'); // Ctrl-Shift-h
                      break;
             case 16: buttonClicked('back');// Ctrl-Shift-p
                      break;         
             case 18: buttonClicked('reverse');// Ctrl-Shift-r
                      break;
             case 17: buttonClicked('ttQuery');// Ctrl-Shift-q
                      break;
             case 20: buttonClicked('trace');// Ctrl-Shift-t
                      break;
             
        }
    }
     
    //-->
    </script>
    </head>
     
     
     
     
     
     
     
     
    <script>
     
    //Start Change: rahul_shah: WO CS0143: WFSQ2.1.0: 07-01-2003
     
    //For opening a new window properties.
    winHeight = '400';
    winWidth = '600';
    wintop = ( window.screen.height -  winHeight ) / 2;
    windLeft = ( window.screen.width - winWidth ) / 2;
    winAttributes = 'left='+ windLeft +', top='+ wintop;
    winAttributes += ',width='+ winWidth +',height='+winHeight;
    winAttributes += 'titlebar=no, resizable=yes, menubar=yes, status=yes, scrollbars=yes';
     
    /*
      * DESCRIPTION   : This function is called when 'ok' or 'clear' button is clicked.
      * parameter    : option ie 'ok' or 'clear'.
    */
    function buttonClicked( option )
    {
        var targetServlet = '/npts/ShipmentDataFetchServlet?';
        airWayBillNum = "1024953720";
     
        switch ( option )
        {
            case 'reverse' :
            {
                url = targetServlet;
                url += 'action=';
                url += '2';
                self.document.shipmentDetailsForm.action = url;
                self.document.shipmentDetailsForm.submit();
                break;
            }
            case 'cycle' :
            {
                url = targetServlet;
                url += 'action=';
                url += '3';
                self.document.shipmentDetailsForm.action = url;
                self.document.shipmentDetailsForm.submit();
                break;
            }
            case 'trace' :
            {
                if( airWayBillNum.length <= 10 )
                {
                    url = targetServlet;
                    url += 'action=';
                    url += '5';
                    self.document.shipmentDetailsForm.action = url;
                    self.document.shipmentDetailsForm.submit();
                }
                else
                {
                    controlObject = self.document.shipmentDetailsForm;
                    showAlertPopUp("Trace request is available only for White DHL Shipments!");
                }
                break;
            }
            case 'ttQuery' :
            {
                
     
                        if( airWayBillNum.length <= 10 )
                        {
                            url = targetServlet;
                            url += 'action=';
                            url += '4';
                            self.document.shipmentDetailsForm.action = url;
                            self.document.shipmentDetailsForm.submit();
                        }
                        else
                        {
                            controlObject = self.document.shipmentDetailsForm;
                            showAlertPopUp("TTQuery is available only for White DHL Shipments!");
                        }
                        break;
                 
     
            }
            case 'shipperReference' :
            {
                titleMessage = "Shipper Reference Details From Shipment Detail";
                nptsHelpPageId = "WF04";
                jspURL = '/npts/jsp/webfsq/ShipperReference.jsp'
                var popupUrl = "/npts/jsp/common/NPTSPopup.jsp";
                popupUrl =  popupUrl + "?" + "POPUP_SRC_URL" + "=";
                popupUrl =  popupUrl + escape( jspURL );
     
     
                var w = 600;
                var h = 500;
     
                var leftVal = getLeftPosition ( w );
                var topVal  = getTopPosition ( h );
     
                winAttributes = 'width=' + w + ',height=' + h + ',left=' + leftVal + ',top=' + topVal;
     
                winAttributes = winAttributes + ',scrollbars=no,titlebar=no'
                winAttributes = winAttributes + ',resizable=yes, status=yes'
     
     
    //          winAttributes = 'width=600,height=500,scrollbars=no,screenX=0,screenY=0,resizable=yes,status=yes'
                shipperReferenceWindow = window.open( popupUrl ,'shipperReference', winAttributes );
                shipperReferenceWindow.focus( );
     
                break;
            }
            case 'help' :
            {
                onHelp( self.document.shipmentDetailsForm.helpPageId.value );
                break;
            }
            case 'back' :
            {
                 url = "/npts/HAWBQueryServlet?action=2222&key=";
                 url += "";
                 self.document.shipmentDetailsForm.action = url;
                 self.document.shipmentDetailsForm.submit();
                 break;
            }
        }
    }
     
    /*
      * DESCRIPTION   : This function is called to view Airwaybill Images from CIA.
    */
    function viewAirWayBill()
    {
        /*
        imageURL = "";
        airWayBillNum = "1024953720";
        viewAwbApi = "doc_type1=AWB&response=L&doc_id=";
        url= imageURL+viewAwbApi+airWayBillNum;
     
        //To check CIA server is up or not. If not then set url of error page.
        if ( "" == "" )
        {
            url = '/npts/jsp/webfsq/ViewErrorMsg.jsp';
        }
     
        viewImageWindow = window.open( url, 'ViewImg', winAttributes );
        viewImageWindow.focus();
        */
    }
     
    /*
      * DESCRIPTION   : This function is called to view Invoice Images from CIA.
    */
    function viewInvoice()
    {
        /*
        imageURL = "";
        airWayBillNum = "1024953720";
        viewAwbApi = "doc_type1=INV&response=L&doc_id=";
        url= imageURL+viewAwbApi+airWayBillNum;
     
        //To check CIA server is up or not. If not then set url of error page.
        if ( "" == "" )
        {
            url = '/npts/jsp/webfsq/ViewErrorMsg.jsp';
        }
     
        viewImageWindow = window.open( url, 'ViewImg', winAttributes );
        viewImageWindow.focus();
        */
    }
     
    /*
      * DESCRIPTION   : This function is called to view Proof Of Delivery image
      *                 from CIA.
    */
    function viewProofOfDelivery()
    {
        /*
        imageURL = "";
        viewAwbApi = "doc_type1=POD&response=L&business_rule=P&doc_id=";
        mulPodVal = "No";
        url= imageURL+viewAwbApi+mulPodVal;
     
        //To check CIA server is up or not. If not then set url of error page.
        if ( "" == "" )
        {
            url = '/npts/jsp/webfsq/ViewErrorMsg.jsp';
        }
     
        viewImageWindow = window.open( url, 'ViewImg', winAttributes );
        viewImageWindow.focus();
        */
    }
     
     
    /*
    * This method goes to the servlet to validate the url and check the
    * server status. If server is running and image is available then it
    * displays the image in the pop up window.
    *
    * parameter : imageUrl      Imager Url AWB/Piece/POD
    *
    */
    function showImage( type, podValue )
    {
        url = "";
        url += '/npts/ShipmentDataFetchServlet?';
     
        var w = 500;
        var h = 400;
     
        var leftVal = getLeftPosition ( w );
        var topVal  = getTopPosition ( h );
     
        winAttributes = 'width=' + w + ',height=' + h + ',left=' + leftVal + ',top=' + topVal;
     
        winAttributes = winAttributes + ',scrollbars=yes,titlebar=no'
        winAttributes = winAttributes + ',resizable=yes, menubar=0'
     
     
     
        //create url on the basis of the link clicked
        // call the servlet here ********
        switch ( type )
        {
            case 'AWB':
                url += 'action=';
                url += '11';
                break;
            case 'INV':
                url += 'action=';
                url += '12';
                break;
            case 'POD':
                url += 'action=';
                url += '13';
                url += '&MULTIPLE_POD=';
                url += 'No';
                break;
            case 'ALLPOD':
                url += 'action=';
                url += '13';
                url += '&MULTIPLE_POD=';
                url += podValue;
                break;
            default:
                break;
        }
    /*    url +="&AWBNumber=";
          url +="1024953720";*/
        viewImageWindow = window.open( url ,'imageWin', winAttributes );
        viewImageWindow.focus( );
    }
     
    /*
      * DESCRIPTION   : This function is called to view Proof Of Delivery image
      *                 from CIA on click of 'pgln' link.
    */
    function viewPODFromPgln( url )
    {
        /*
        //To check CIA server is up or not. If not then set url of error page.
        if ( "" == "" )
        {
            url = '/npts/jsp/webfsq/ViewErrorMsg.jsp';
        }
     
        viewImageWindow = window.open( url, 'ViewImg', winAttributes );
        viewImageWindow.focus();
        */
    }
     
    /*
      * DESCRIPTION   : This function is called to view Signature image from CIA
      *                 on click of 'pgln' link.
    */
    function viewSigFromPgln( value )
    {
        /*
        jspURL = '/npts/jsp/webfsq/ViewSigImage.jsp?id=' + value
     
        //To check CIA server is up or not. If not then set url of error page.
        if ( "" == "" )
        {
            jspURL = '/npts/jsp/webfsq/ViewErrorMsg.jsp';
        }
     
        viewImageWindow = window.open( jspURL, 'ViewImg', winAttributes );
        viewImageWindow.focus();
        */
    }
     
    //  Start Change Add    Bhaveshs    27-Jun-2003 for change request
     
    /*
      * DESCRIPTION   : To view all the POD images of checkpoint for
      *                 corrosponding route & cycle.
    */
    function viewAllPODImages( value )
    {
        /*
        //To check CIA server is
        imageURL = "";
        viewAwbApi = "doc_type1=POD&response=L&business_rule=P&doc_id=";
        url= imageURL+viewAwbApi+value;
     
        //To check CIA server is up or not. If not then set url of error page.
        if ( "" == "" )
        {
            url = '/npts/jsp/webfsq/ViewErrorMsg.jsp';
        }
     
        viewImageWindow = window.open( url, 'ViewImg', winAttributes );
        viewImageWindow.focus();
        */
    }
     
    /*
      * DESCRIPTION   : This function is called to view Signature image from CIA
      *                 on click of 'pgln' link.
    */
    function viewPODImages( ckhptCount )
    {
        targetServlet = '/npts/ShipmentDataFetchServlet?';
        url = targetServlet;
        url += 'action=';
        url += '10&';
        url += 'CHECK_POINT_COUTNT=';
        url += ckhptCount;
     
        viewImageWindow = window.open( url, 'ViewImg', winAttributes );
        viewImageWindow.focus();
     
    }
     
    //  End Change Add    Bhaveshs    27-Jun-2003 for change request
     
    /*
    * DESCRIPTION : This function closes all child windows onUnload
    *               parent window.
    */
    function closeChildWindow ( )
    {
        closeMe( viewImageWindow );
        closeMe( chkPtInfoWindow );
        closeMe( dupChkPtInfoWindow );
        closeMe( shipperReferenceWindow );
    }
     
     
    //Closes the Pop window and makes the handle null
    function closeMe( popUpHandle )
    {
        if ( popUpHandle != null )
        {
            popUpHandle.close();
            popUpHandle = null;
        }
    }
     
    //End Change: rahul_shah: WO CS0143: WFSQ2.1.0: 07-01-2003
     
    //-->
    </script>
     
    <body onLoad="javascript:loadTitle()" onUnload="closeChildWindow()">
    <form name="shipmentDetailsForm" method="post" action="" >
    <input type="hidden" name="helpPageId" value="WF03">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
    <tr>
         <td><img src="/npts/images/blank.gif" width="28"></img></td>
         <td>
     
            <table border="0" cellspacing="0" width="100%" >
            <tr valign="center">
                <td  class="blackHeadingLeft"> Shipment Details  </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td></td>
            </tr>
            </table>
     
            <table border="0" cellspacing="0" width="100%" >
            <tr>
                <td  class="whiteTd" height="21" >&nbsp;AWB:
                </td>
                <td class="whiteTdNormal" height="21" nowrap>&nbsp;
                    1024953720
                </td>
                <td class="whiteTd" height="21" nowrap>&nbsp;No of Shipment Details:
                </td>
                <td class="whiteTdNormal" height="21" nowrap>&nbsp;
                    1
                </td>
                <td class="whiteTdNormal" height="21" width="100%">&nbsp;</td>
            </tr>
            </table>
            <table border="0" cellspacing="1" width="100%" >
            <tr >
                <td class="grayTd" height="21" width= "5%" >&nbsp;Details</td>
                <td class="grayTd" height="21" width= "5%" align="center" >&nbsp;Orig</td>
                <td class="grayTd" height="21" width= "8%" align="center" >&nbsp;Location</td>
                <td class="grayTd" height="21" width= "7%" >&nbsp;Dest</td>
                <td class="grayTd" height="21" width= "5%" align="center" >&nbsp;Pcs</td>
                <td class="grayTd" height="21" width= "5%" >&nbsp;Weight(kg)</td>
                <td class="grayTd" height="21" width= "11%">&nbsp;Volumetric Weight(kg)</td>
                <td class="grayTd" height="21" width= "9%">&nbsp;Date/Time</td>
                <td class="grayTd" height="21" width= "8%" >&nbsp;Route/Cycle</td>
                <td class="grayTd" height="21" width= "8%" >&nbsp;Post Code</td>
                <td class="grayTd" height="21" width= "6%" >&nbsp;Product</td>
                <td class="grayTd" height="21" width= "9%" >&nbsp;Amount US$</td>
                <td class="grayTd" height="21" width= "9%" >&nbsp;Duplicate</td>
            </tr>
     
            <tr valign="TOP">
                
                    <td class="whiteTdNormal" height="21" >1&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;</td>
     
                
                        <td class="whiteTdNormal" height="21" align="center" >&nbsp;0</td>
                
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;0.0</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;0.0</td>
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;0.0</td>
                    <td class="whiteTdNormal" height="21" align="center" >&nbsp;No</td>
                
            </tr>
         </table>
     
         <table border="0" cellspacing="1" width="100%" >
            <tr >
                <td width="22%" height="21" class="grayTd">&nbsp;Shipper</td>
                 
                    <td width="15%" height="21" class="grayTd">&nbsp;Shipper Ref</td>
                
                <td width="10%" height="21" class="grayTd">&nbsp;Account</td>
                <td width="10%" height="21" class="grayTd">&nbsp;Tel</td>
                <td width="31%" height="21" class="grayTd">&nbsp;Address</td>
                <td width="10%" height="21" class="grayTd">&nbsp;Payer Account</td>
            </tr>
            <tr valign="TOP">
                
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                    <td class="whiteTdNormal" height="21" >&nbsp;</td>
                
            </tr>
        </table >
     
        <table border="0" cellspacing="1" width="100%" >
            <tr >
                <td width="22%" class="grayTd" height="21" >&nbsp;Consignee</td>
                <td width="15%" class="grayTd" height="21" >&nbsp;Tel</td>
                <td class="grayTd" height="21" >&nbsp;Address</td>
                
            </tr>
     
            <tr valign="TOP">
            
                <td class="whiteTdNormal" height="21" >&nbsp;</td>
                <td class="whiteTdNormal" height="21"  >&nbsp;</td>
                <td class="whiteTdNormal" height="21" >&nbsp;</td>
                
            </tr>
     
            <tr align="left" valign="center">
                <td>&nbsp;</td>
            </tr>
        </table>
     
        
        <table border="0" cellspacing="1" width="100%" >
            <tr>
                <td colspan="3" class="blackHeadingLeft" width="100%" >  View Images  </td>
            </tr>
            <tr  valign="TOP" >
                <td width="33%" class="whiteTdNormal" height="21" >&nbsp;<a href="javascript:showImage( 'AWB', 'Null' )">View AirwayBills</a></td>
                <td width="33%" class="whiteTdNormal" height="21" >&nbsp;<a href="javascript:showImage( 'INV', 'Null' )">View Invoices</a></td>
                <td width="33%" class="whiteTdNormal" height="21" >&nbsp;<a href="javascript:showImage( 'POD', 'Null' )">View Proof of Delivery</a></td>
            </tr>
            <tr>
                <td colspan="3" align="right">&nbsp;</td>
            </tr>
        </table>
        
        
            <table width="100%" border="0" cellpadding="0" cellspacing="0" >
        
                                    <td width="100%" valign="middle" nowrap >
                                    </td>
        
                                    <td valign="middle" nowrap align="right" ><div align="right">
                                        <a href="#" onMouseUp= "swapImg(11);return true;"
                                                    onMouseOut="swapImg(11);return true;"
                                                    onMouseDown="swapImg(12);return true;">
                                        <img alt="Reverse Checkpoint Details( Ctrl+Shift+R )" src="/npts/buttons/Reverse.gif"
                                            onClick="javascript:buttonClicked('reverse')" border=0 name="Reverse"></a></div>
                                    </td>
                                    <td valign="middle" nowrap >&nbsp;
                                    </td>
        
                                    <td valign="middle" nowrap align="right" ><div align="right">
                                        <a href="#" onMouseUp= "swapImg(9);return true;"
                                                    onMouseOut="swapImg(9);return true;"
                                                    onMouseDown="swapImg(10);return true;">
                                        <img alt="Cycle Shipment Details( Ctrl+Shift+C )" src="/npts/buttons/Cycle.gif"
                                            onClick="javascript:buttonClicked('cycle')" border=0 name="Cycle"></a></div>
                                    </td>
                                    <td valign="middle" nowrap >&nbsp;
                                    </td>
        
                                    <td valign="middle" nowrap align="right" ><div align="right">
                                        <a href="#" onMouseUp= "swapImg(13);return true;"
                                                    onMouseOut="swapImg(13);return true;"
                                                    onMouseDown="swapImg(14);return true;">
                                        <img alt="Trace Request ( Ctrl+Shift+T) " src="/npts/buttons/Trace.gif"
                                            onClick="javascript:buttonClicked('trace')" border=0 name="Trace"></a></div>
                                    </td>
                                    <td valign="middle" nowrap >&nbsp;
                                    </td>
        
                                    <td valign="middle" nowrap align="right" ><div align="right">
                                        <a href="#" onMouseUp= "swapImg(17);return true;"
                                                    onMouseOut="swapImg(17);return true;"
                                                    onMouseDown="swapImg(18);return true;">
                                        <img alt="TTQuery Request( Ctrl+Shift+Q ) " src="/npts/buttons/TTQuery.gif"
                                            onClick="javascript:buttonClicked('ttQuery')" border=0 name="TTQuery"></a></div>
                                    </td>
                                    <td valign="middle" nowrap >&nbsp;
                                    </td>
        
                                    <td valign="middle" nowrap align="right" ><div align="right">
                                        <a href="#" onMouseUp= "swapImg(3);return true;"
                                                    onMouseOut="swapImg(3);return true;"
                                                    onMouseDown="swapImg(4);return true;">
                                        <img alt="Help( Ctrl+Shift+H ) " src="/npts/buttons/Help.gif"
                                            onClick="javascript:buttonClicked('help')" border=0 name="Help"></a></div>
                                    </td>
                                </table>
     
            
        <table border="0" cellspacing="0" width="100%" >
            <tr>
                <td align="right"></td>
            </tr>
        </table>
     
        
     
        <table border="0" cellspacing="0" width="100%" >
            <tr>
                <td  class="blackHeadingLeft" width="100%">&nbsp;Checkpoint Details</td>
                <td></td>
            </tr>
        </table>
     
        <table border="0" cellspacing="0" width="100%" >
            <tr  valign="TOP" >
                <td class="grayTd" nowrap height="21" >&nbsp;No of Distinct Checkpoints:
                </td>
                <td class="grayTdNormal" height="21" nowrap>&nbsp;1</td>
                <td class="grayTdNormal"  height="21" width="2%">&nbsp;</td>
                <td class="grayTd" nowrap height="21" >&nbsp;Duplicated Checkpoints Query:
                </td>
                <td class="grayTdNormal" height="21" nowrap >
                &nbsp;No</td>
                
                
                <td class="grayTdNormal" height="21"  width="2%">&nbsp;</td>
                <td class="grayTd" height="21" nowrap>&nbsp;Last Checkpoint Summary:
                </td>
                <td class="grayTdNormal" height="21" nowrap  >&nbsp;Shipment Ppwk Imaged
                on 18Jan2012 15:23:43 at LEJ</td>
                
                <td class="grayTdNormal" height="21" width="100%">&nbsp;</td>
            </tr>
        </table>
     
        <table border="0" cellspacing="1" width="100%" >
            <tr align="left" >
                <td width="11%" class="blackHeading">Checkpoint</td>
                <td width="4%" class="blackHeading">Stn</td>
                <td width="5%" class="blackHeading">Location</td>
                <td width="12%" class="blackHeading">Date/Time</td>
                <td width="3%" class="blackHeading">Pcs</td>
                <td width="6%" class="blackHeading">Route</td>
                <td width="5%" class="blackHeading">Cycle</td>
                <td width="8%" class="blackHeading">Stat</td>
                <td width="8%" class="blackHeading">Pgln</td>
                <td width="7%" class="blackHeading">Count</td>
                <td width="5%" class="blackHeading">Last</td>
                <td width="10%" class="blackHeading">Remarks</td>
                <td width="15%" class="blackHeading">Comments</td>
            </tr>
        
            
            <tr align="left" valign="TOP" >
                
                <td class="grayTdNormal" height="21" >&nbsp;
                    <a href="javascript:checkPointClicked('0')" >Shipment Ppwk Imaged</a>
                </td>
                
                <td class="grayTdNormal" height="21" >&nbsp;LEJ</td>
                <td class="grayTdNormal" height="21" >&nbsp;HUB</td>
                <td class="grayTdNormal" height="21" >&nbsp;18Jan2012 15:23:43</td>
                <td class="grayTdNormal" height="21" >&nbsp;0</td>
                <td class="grayTdNormal" height="21" >&nbsp; </td>
                <td class="grayTdNormal" height="21" >&nbsp; </td>
                <td class="grayTdNormal" height="21" >&nbsp;IA</td>
     
            
                <td class="grayTdNormal" height="21">&nbsp;</td>
            
     
            
                <td class="grayTdNormal" height="21">&nbsp;1</td>
            
                <td class="grayTdNormal" height="21">&nbsp;</td>
                <td class="grayTdNormal" height="21">&nbsp;</td>
                <td class="grayTdNormal" height="21">&nbsp;</td>
            </tr>
            
        </table>
        </td>
      </table>
     
    </form>
    </body>
    </html>
    Problem ist folgendes:
    Ich kann zwar definieren von welcher Datei ich die Daten auslesen möchte, in dem ich sie vorher in der Tabelle tblAWB einlesen, allerdings gibt er mir nicht den spezifischen Inhalt aus.

    Mir geht es darum, das in der HTML folgendes eingelesen wird:

    No of Distinct Checkpoints <- gibt die Anzahl der Inhaltszeilen an

    Und den Inhalt dieser besagten Zeilen will ich gerne ausgegeben haben.
    Das soll das Modul solange tun bis die entsprechende Anzahl an Zeilen eingelesen wurde und dann soll er zur nächsten Datei springen.

    Danke schonmal im vorraus
     

  4. #4
    Avatar von sheel
    sheel sheel ist offline Moderator
    tutorials.de Moderator
    Registriert seit
    Jul 2007
    Beiträge
    4.506
    Zitat Zitat von Yaslaw Beitrag anzeigen
    Kannst du bitte dein Code formatiert in VB-Tags setzen? Dann wird er lesbar
    Das auch bitte bei HTML/JS machen, vor allem bei solchen Mengen.
    [javascript]...[/javascript]
    usw...

    Eine Liste der Möglichkeiten ist in meiner Signatur verlinkt.
     
    Netiquette (vA §15) und Nutzungsregeln (vA §4.8) einhalten! Programmcode in Codetags/Codeboxen.
    Sehr gute Beiträge bitte Bewerten (Stern darunter oder "Danke").
    "Funktioniert nicht" ist zu ungenau! Code, Fehlermeldungen, Verhalten des Programms, ...?

Ähnliche Themen

  1. Antworten: 0
    Letzter Beitrag: 05.01.11, 09:05
  2. Antworten: 3
    Letzter Beitrag: 20.05.07, 14:22
  3. Import von Daten aus einer 2. Tabelle? [Access)
    Von Deletemaster im Forum Relationale Datenbanksysteme
    Antworten: 12
    Letzter Beitrag: 25.08.06, 13:46
  4. Antworten: 3
    Letzter Beitrag: 06.12.05, 21:07
  5. daten auslesen und in einer textbox wiedergeben
    Von CoderX im Forum Visual Basic 6.0
    Antworten: 6
    Letzter Beitrag: 08.05.05, 00:23

Stichworte