/
finalize_recipients.php
1309 lines (1155 loc) · 61.8 KB
/
finalize_recipients.php
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
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
861
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
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
<?php
include './admin/config.php';
include './admin/db_connection.php';
error_reporting(0);
if($_SESSION['sohorepro_companyid'] == '')
{
header("Location:index.php");
exit;
}
// Made the Repository
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<!-- Mirrored from buckart.com/srsite/SoHoRepro-WebsitePages/store/store.html by HTTrack Website Copier/3.x [XR&CO'2013], Sat, 21 Sep 2013 08:44:50 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title> SohoRepro </title>
<!-- base href="http://soho.thinkdesign.com/" -->
<link rel="stylesheet" href="store_files/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/theme.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/jquery.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/tiptip.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/ajaxLoader.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/flexigrid.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/ui.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/slick.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/kendo.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/kendo_002.css" type="text/css" media="screen">
<link rel="stylesheet" href="store_files/style_002.css" type="text/css" media="screen">
<link href="style/popup_style.css" rel="stylesheet" type="text/css" media="all" />
<!--<link rel="shortcut icon" href="http://soho.thinkdesign.com/favicon.ico" type="image/x-icon">-->
<link rel="stylesheet" type="text/css" href="store_files/style_layout.css">
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie_7_hacks.css" />
<![endif]-->
<script src="store_files/jquery.min.js"></script>
<link rel="stylesheet" href="js/jquery-ui.css" />
<script src="js/jquery-ui_service.js"></script>
<script>
function dtls_reveal(ID)
{
var slide_up = $("#slide_id").val();
$("#plotting_details_"+ID).slideToggle();
if(slide_up != ID){
$("#plotting_details_"+slide_up).slideUp();
}
$("#slide_id").val(ID);
}
function delete_plot(ID)
{
//alert(ID);
}
$(document).ready(function() {
var top = $('#fixed_header').offset().top - parseFloat($('#fixed_header').css('marginTop').replace(/auto/, 100));
$(window).scroll(function(event) {
// what the y position of the scroll is
var y = $(this).scrollTop();
// whether that's below the form
if (y >= top) {
// if so, ad the fixed class
$('#fixed_header').addClass('fixed_1');
} else {
// otherwise remove it
$('#fixed_header').removeClass('fixed_1');
}
});
});
</script>
<style>
.fixed_1{border-style:solid;border-width:0px; position: fixed; width: 761px; top: 0; z-index: 1; background: #DFDFDF;}
#result_ref
{
background-color: #f3f3f3;
border-top: 0 none;
box-shadow: 0 0 5px #ccc;
display: none;
margin-top: 0;
overflow: hidden;
padding: 10px;
position: absolute;
right: 0;
text-align: left;
top: 19px;
width: 185px;
}
.auto_reference{
cursor: pointer;
list-style-type: none;
}
.auto_reference li:hover
{
background:#FF7E00;
color:#FFF;
cursor:pointer;
}
.auto_reference li
{
border-bottom: 1px #999 dashed;
}
.auto_reference span{
font-size: 18px;
}
.none{
display: none;
}
.progress { position:relative; width:100%; border: 1px solid #ddd; padding: 1px; border-radius: 3px; }
.bar { background-color: #F99B3E; width:0%; height:20px; border-radius: 3px; }
.percent { position:absolute; display:inline-block; top:3px; left:48%; }
.upload_file_prog{
width: 30% !important;
padding: 1.5px;
-webkit-border-radius: 5px;
border: 1px solid #8f8f8f !important;
}
.arch_radio li{
list-style: none;
padding: 0px !important;
padding-left: 0px !important;
padding-bottom: 0px !important;
}
.increse_act{width: 12px;float: left;}
.increse_act img{width: 12px;float: left;}
.shaddows{
background: white;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
box-shadow: 0px 0px 8px rgba(0,0,0,0.3);
position: relative;
z-index: 90;
margin-bottom: 10px;
}
/* Ribbon Style */
#ribbon_final{
position: absolute !important;
left: -5px !important;
top: -5px !important;
z-index: 1 !important;
overflow: hidden !important;
width: 75px !important;
height: 75px !important;
text-align: right !important;
}
.ribbon {
position: absolute !important;
left: -5px !important;
top: -5px !important;
z-index: 1 !important;
overflow: hidden !important;
width: 75px !important;
height: 75px !important;
text-align: right !important;
}
.ribbon span {
font-size: 10px;
font-weight: bold;
color: #FFF;
text-transform: uppercase;
text-align: center;
line-height: 20px;
transform: rotate(-45deg);
width: 100px;
display: block;
background: #79A70A;
background: linear-gradient(#BFC5CD 0%, #83878C 100%);
box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
position: absolute;
top: 19px; left: -21px;
}
.ribbon span::before {
content: "";
position: absolute; left: 0px; top: 100%;
z-index: -1;
border-left: 3px solid #83878C;
border-right: 3px solid transparent;
border-bottom: 3px solid transparent;
border-top: 3px solid #83878C;
}
.ribbon span::after {
content: "";
position: absolute; right: 0px; top: 100%;
z-index: -1;
border-left: 3px solid transparent;
border-right: 3px solid #83878C;
border-bottom: 3px solid transparent;
border-top: 3px solid #83878C;
}
.details_div{
float: left;
margin-top: 15px;
}
#multi_recipients{
margin-top: 5px;
}
</style>
</head>
<body>
<div id="loading" class="none" style="position: fixed;top: 35%;left: 48%;padding: 5px;z-index: 10;">
<img src="admin/images/login_loader.gif" border="0" />
</div>
<div id="body_container">
<div id="body_content" class="body_wrapper">
<div id="body_content-inner" class="body_wrapper-inner">
<?php include "includes/header_sidebar.php"; ?>
<div id="content_output">
<?php include "includes/top_nav.php"; ?>
<div id="content_output-data" style="margin-bottom:20px;">
<!--- TABLE START -->
<?php // include "./service_nav.php"; ?>
<div id="orderWapper">
<!--
<div class="orderBreadCrumb">
</div>
-->
<?php
$job_reference_final = ShowOrderedSets($_SESSION['ordere_sequence']);
?>
<h2 class="headline-interior orange">
ORDER COMPLETE: ORDER# : <?php echo $job_reference_final[0]['order_sequence'];?>
</h2>
<span class="orange" style="font-size: 25px;">JOB REFERENCE: <?php echo $job_reference_final[0]['reference']; ?></span>
<?php
if ($result == "success_plotting") {
?>
<div style="color:#007F2A; text-align:center; padding-bottom:10px;">Set Added Successfully</div>
<script>setTimeout("location.href=\'service_plotting.php\'", 1000);</script>
<?php
} elseif ($result == "failure_plotting") {
?>
<div style="color:#F00; text-align:center; padding-bottom:10px;">Set Added Not Successfully</div>
<script>setTimeout("location.href=\'service_plotting.php\'", 1000);</script>
<?php
} elseif($_GET['save_set'] == "1") { ?>
<div style="color:#007F2A; text-align:center; padding-bottom:10px;">Set Added Successfully</div>
<script>setTimeout("location.href=\'service_plotting.php\'", 1000);</script>
<?php
}
?>
<div id="set_form">
<div id="plotting" action="" method="post" class="systemForm orderform">
<!--<form id="plotting" action="" method="post" class="systemForm orderform" >-->
<input type="hidden" name="plotting_set" value="0" />
<input type="hidden" name="user_session" id="user_session" value="<?php echo $_SESSION['sohorepro_userid']; ?>" />
<input type="hidden" name="user_session_comp" id="user_session_comp" value="<?php echo $_SESSION['sohorepro_companyid']; ?>" />
<input type="hidden" name="jobref_id" id="jobref_id" value="" />
<input type="hidden" name="company_id" id="company_id" value="" />
<input type="hidden" name="pri_inc_val" id="pri_inc_val" value="1" />
<div style="border-top: 1px solid #FF7E00;"></div>
<ul>
<?php
$user_session_comp = $_SESSION['sohorepro_companyid'];
$user_session = $_SESSION['sohorepro_userid'];
$entered_needed_sets = SetsOrderedFinalize($job_reference_final[0]['id']);
$total_sets = SetsOrderedFinalizeCountOfSets($job_reference_final[0]['id']);
$upload_file_exist = UploadFileExistFinalize($user_session_comp, $user_session, $job_reference_final[0]['id']);
?>
<li>
<div id="multi_recipients">
<div style="margin-top: 10px;margin-bottom: 10px;font-weight: bold;">
If you have any questions regarding this order: Call (212) 925 7575 x 100
</div>
<div style="float: left;margin-top: 12px;margin-bottom: 20px;" class="shaddows">
<div class="ribbon" id="ribbon_final"><span style="background: #79A70A !important;">ORIGINAL</span></div>
<div style="width: 100%;float: left;margin-top: 25px;margin-bottom: 10px;">
<div class="details_div">
<!-- Customer Details Start -->
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">Customer Details: </div>
<div style="float: left;width: 33%;margin-left: 30px;">
<?php
$cust_add = getCustomeInfo($user_session_comp);
$cust_add_2 = ($cust_add[0]['comp_business_address2'] != '') ? $cust_add[0]['comp_business_address2']. '<br>' : '';
echo $cust_add[0]['comp_name'] . '<br>' . $cust_add[0]['comp_business_address1'] . '<br>' . $cust_add_2 . $cust_add[0]['comp_city'] . ' ' . $cust_add[0]['comp_state'] . ' ' . $cust_add[0]['comp_zipcode'].'<br>'.$cust_add[0]['comp_contact_phone'];
?>
</div>
<!-- Customer Details End -->
<!-- Customer User Details Start -->
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">User Details: </div>
<div style="float: left;width: 33%;margin-left: 30px;">
<?php
$cust_user_add = UserLoginDtls($user_session);
$cust_user_name = $cust_user_add[0]['cus_fname'].' '.$cust_user_add[0]['cus_lname'];
$cust_mail_id = $cust_user_add[0]['cus_email'];
$cust_phone_num = $cust_user_add[0]['cus_contact_phone'];
echo $cust_user_name . '<br>' . $cust_mail_id . '<br>' . $cust_phone_num. '<br>Date: '. date('m-d-Y h:i A', time());
?>
</div>
<!-- Customer User Details End -->
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">PACKING LIST: </div>
<div style="float: left;width: 80%;margin-left: 30px;margin-top: 5px;">
<?php
$cust_original_order = EnteredPlotRecipientsMulti($user_session_comp, $user_session, $job_reference_final[0]['id']);
$cust_original_order_final = SetsOrderedFinalizeOriginal($job_reference_final[0]['id']);
$total_sets_plott = SetsOrderedFinalizeCountOfSets($job_reference_final[0]['id']);
$total_sets_arch = SetsOrderedFinalizeCountOfSetsArch($job_reference_final[0]['id']);
$total_plot_needed = ($total_sets_plott[0]['total_sets'] != '0') ? $total_sets_plott[0]['total_sets'] : $total_sets_arch[0]['total_sets'];
$cust_needed_sets = ($cust_original_order[0]['print_ea'] != '0') ? $cust_original_order[0]['print_ea'] : $cust_original_order[0]['arch_needed'];
$cust_order_type = ($cust_original_order[0]['arch_needed'] != '0') ? 'Architectural Copies' : 'Plotting on Bond';
$option = ($cust_original_order[0]['arch_needed'] != '0') ? 'Pickup Options:' : 'File Options:';
//$cust_original_oo = EnteredPlotRecipients($user_session_comp, $user_session);
$cust_needed_originals_oo = $cust_original_order_final[0]['origininals'];
$cust_needed_originals_oo_1 = $cust_original_order_final[1]['origininals'];
?>
<table border="1" style="width: 100%;">
<tr bgcolor="#BFC5CD">
<td style="font-weight: bold;">Option</td>
<td style="font-weight: bold;">Originals</td>
<td style="font-weight: bold;">Sets</td>
<td style="font-weight: bold;">Order Type</td>
<td style="font-weight: bold;">Size</td>
<td style="font-weight: bold;">Output</td>
<td style="font-weight: bold;">Media</td>
<td style="font-weight: bold;">Binding</td>
<td style="font-weight: bold;">Folding</td>
</tr>
<?php
foreach ($cust_original_order as $original){
$cust_needed_sets = ($original['print_ea'] != '0') ? $original['print_ea'] : $original['arch_needed'];
$cust_order_type = ($original['plot_arch'] == '0') ? 'Architectural Copies' : 'Plotting on Bond';
$size = ($original['size'] == 'undefined') ? $original['arch_size'] : $original['size'];
$output = ($original['output'] == 'undefined') ? $original['arch_output'] : $original['output'];
$media = ($original['media'] == 'undefined') ? $original['arch_media'] : $original['media'];
$binding = ($original['binding'] == 'undefined') ? $original['arch_binding'] : $original['binding'];
$folding = ($original['folding'] == 'undefined') ? $original['arch_folding'] : $original['folding'];
?>
<tr bgcolor="#F8F8F8">
<td><?php echo $original['options']; ?></td>
<td><?php echo $original['origininals']; ?></td>
<td><?php echo $cust_needed_sets; ?></td>
<td><?php echo $cust_order_type; ?></td>
<td><?php echo $size; ?></td>
<td><?php echo $output; ?></td>
<td><?php echo $media; ?></td>
<td><?php echo $binding; ?></td>
<td><?php echo $folding; ?></td>
</tr>
<?php } ?>
</table>
</div>
<?php
if($cust_original_order[0]['size'] == 'Custom'){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<div style="font-weight: bold;width: 100%;float: left;">
Custom Size Details:
</div>
<div style="padding-top: 3px;">
<?php echo $cust_original_order[0]['custome_details']; ?>
</div>
</div>
<?php } ?>
<?php
if($cust_original_order[0]['output'] == 'Both'){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<div style="font-weight: bold;width: 100%;float: left;">
Color Page Number :
</div>
<div style="padding-top: 3px;">
<?php echo $cust_original_order[0]['output_both']; ?>
</div>
</div>
<?php } ?>
<?php
if(($cust_original_order_final[0]['pick_up'] != '0') || ($cust_original_order_final[0]['drop_off'] != '0') || ($cust_original_order_final[0]['ftp_link'] != '0'))
{
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;"><?php echo $option; ?></div>
<?php
}
?>
<?php
if($cust_original_order_final[0]['pick_up'] != '0'){?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
Pick up: <?php echo $cust_original_order_final[0]['pick_up']; ?>
</div>
<?php
}
?>
<?php
if($cust_original_order_final[0]['drop_off'] != '0'){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
Drop off at Soho Repro: <?php echo $cust_original_order_final[0]['drop_off']; ?>
</div>
<?php
}
?>
<?php
if($cust_original_order_final[0]['ftp_link'] != '0'){
$link = ($cust_original_order_final[0]['ftp_link'] != '0') ? $cust_original_order_final[0]['ftp_link'] : '';
$user_name = ($cust_original_order_final[0]['user_name'] != '0') ? $cust_original_order_final[0]['user_name'] : '';
$password = ($cust_original_order_final[0]['password'] != '0') ? $cust_original_order_final[0]['password'] : '';
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;font-weight:bold;">
Provide Link to File
</div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
FTP Link: <?php echo $link; ?>
</div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
User Name: <?php echo $user_name; ?>
</div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
Password: <?php echo $password; ?>
</div>
<?php
}
?>
<?php if(count($upload_file_exist) > 0){ ?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">File Options: </div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;text-decoration: underline;">Upload File: </div>
<?php
foreach ($upload_file_exist as $files){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<a href="http://cipldev.com/supply-new.sohorepro.com/uploads/<?php echo $files['file_name']; ?>" target="_blank"><?php echo $files['file_name']; ?></a>
</div>
<?php
}
}
?>
<?php
if($cust_original_order_final[0]['spl_instruction'] != ''){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">Special Instructions: </div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<?php echo $cust_original_order_final[0]['spl_instruction']; ?>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php
// echo '<pre>';
// print_r($_SESSION);
// echo '</pre>';
// exit;
$r = 1;
foreach ($entered_needed_sets as $entered_sets){
if(($entered_sets['shipp_id'] == 'P1') && ($entered_sets['shipp_id'] == 'P2')){
$shipp_add = AddressBookPickupSohoCap($entered_sets['shipp_id']);
}else{
$shipp_add = editAddressServices($entered_sets['shipp_id']);
}
$needed_options = $entered_sets['option_id'];
$needed_sets = ($entered_sets['plot_needed'] != '0') ? $entered_sets['plot_needed'] : $entered_sets['arch_needed'];
$order_type = ($entered_sets['arch_needed'] != '0') ? 'Architectural Copies' : 'Plotting on Bond';
$plot_binding = ($entered_sets['binding'] == '0') ? '' : ','.$entered_sets['binding'];
$plot_folding = ($entered_sets['folding'] == '0') ? '' : ','.$entered_sets['folding'];
$arch_binding = ($entered_sets['arch_binding'] == '0') ? '' : ','.$entered_sets['arch_binding'];
$arch_folding = ($entered_sets['arch_folding'] == '0') ? '' : ','.$entered_sets['arch_folding'];
$size = ($entered_sets['size'] == 'undefined') ? $entered_sets['arch_size'] : $entered_sets['size'];
$output = ($entered_sets['output'] == 'undefined') ? $entered_sets['arch_output'] : $entered_sets['output'];
$media = ($entered_sets['media'] == 'undefined') ? $entered_sets['arch_media'] : $entered_sets['media'];
$binding = ($entered_sets['binding'] == 'undefined') ? $entered_sets['arch_binding'] : $entered_sets['binding'];
$folding = ($entered_sets['folding'] == 'undefined') ? $entered_sets['arch_folding'] : $entered_sets['folding'];
?>
<div style="float: left;" class="shaddows">
<div class="ribbon" id="ribbon_final"><span>RECIPIENT <?php echo $r; ?></span></div>
<div style="width: 100%;float: left;margin-top: 10px;margin-bottom: 10px;">
<div class="details_div">
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 10px;font-weight: bold;">Send to: </div>
<div style="float: left;width: 33%;margin-left: 30px;">
<?php
if(($entered_sets['shipp_id'] != 'P1') && ($entered_sets['shipp_id'] != 'P2')){
$add_2 = ($shipp_add[0]['address_2'] == '') ? '' : $shipp_add[0]['address_2'] . '<br>';
$att = ($entered_sets['attention_to'] != "undefined") ? '<br>Attention: '.$entered_sets['attention_to'] : '';
$phone = ($entered_sets['contact_ph'] != "undefined") ? '<br>'.'Contact: '.$entered_sets['contact_ph'] : '';
echo $shipp_add[0]['company_name'].$att.$phone.'<br>'. $shipp_add[0]['address_1'] . '<br>' . $add_2 . $shipp_add[0]['city'] . ' ' . StateName($shipp_add[0]['state']) . ' ' . $shipp_add[0]['zip'].'<br>'.$shipp_add[0]['phone'];
} else { //echo $shipp_add[0]['address'];
$shipp_add_p = AddressBookPickupSohoCap($entered_sets['shipp_id']);
echo $shipp_add_p[0]['address'];
}
?>
</div>
<!-- Address Show End -->
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;font-weight: bold;">PACKING LIST: </div>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<table border="1" style="width: 100%;">
<tr bgcolor="#BFC5CD">
<td style="font-weight: bold;">Option</td>
<td style="font-weight: bold;">Sets</td>
<td style="font-weight: bold;">Order Type</td>
<td style="font-weight: bold;">Size</td>
<td style="font-weight: bold;">Output</td>
<td style="font-weight: bold;">Media</td>
<td style="font-weight: bold;">Binding</td>
<td style="font-weight: bold;">Folding</td>
</tr>
<?php
if ($entered_sets['plot_needed'] == '1') {
?>
<tr bgcolor="#F8F8F8">
<td><?php echo $needed_options; ?></td>
<td><?php echo $needed_sets; ?></td>
<td><?php echo $order_type; ?></td>
<td><?php echo $size; ?></td>
<td><?php echo $output; ?></td>
<td><?php echo $media; ?></td>
<td><?php echo $binding; ?></td>
<td><?php echo $folding; ?></td>
</tr>
<?php
}
if ($entered_sets['plot_needed'] == '0') {
?>
<tr bgcolor="#F8F8F8">
<td><?php echo $needed_options; ?></td>
<td><?php echo $needed_sets; ?></td>
<td><?php echo $order_type; ?></td>
<td><?php echo $size; ?></td>
<td><?php echo $output; ?></td>
<td><?php echo $media; ?></td>
<td><?php echo $binding; ?></td>
<td><?php echo $folding; ?></td>
</tr>
<?php } ?>
</table>
<!-- 1. <?php // echo $entered_sets['plot_needed'] . ' Sets Plotting on Bond,' . $entered_sets['size'] . ',' . $entered_sets['output'] . $plot_binding . $plot_folding; ?></br>-->
<!-- 2. <?php // echo $entered_sets['arch_needed'].' Sets Plotting on Bond,'. $entered_sets['arch_size'].','.$entered_sets['arch_output'].$arch_binding.$arch_folding; ?> -->
</div>
<?php
if($entered_sets['size'] == 'Custom'){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<div style="font-weight: bold;width: 100%;float: left;">
Custom Size Details:
</div>
<div style="padding-top: 3px;">
<?php echo $entered_sets['custome_details']; ?>
</div>
</div>
<?php } ?>
<?php
if($entered_sets['output'] == 'Both'){
?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 5px;">
<div style="font-weight: bold;width: 100%;float: left;">
Color Page Number :
</div>
<div style="padding-top: 3px;">
<?php echo $entered_sets['output_page_number']; ?>
</div>
</div>
<?php } ?>
<div style="float: left;width: 65%;margin-left: 30px;margin-top: 7px;">
<?php
$date_asap = ($entered_sets['shipp_time'] != 'ASAP') ? ' ' . $entered_sets['shipp_time'] : '';
?>
<span style="font-weight: bold;">When Needed: </span><?php echo $entered_sets['shipp_date'].$date_asap; ?>
</div>
<?php
if ($entered_sets['delivery_type'] != '0') {
?>
<div style="width: 100%;float: left;margin-left: 30px;margin-top: 7px;">
<span style="font-weight: bold;">Send Via: </span>
</div>
<div style="width: 100%;float: left;margin-left: 30px;margin-top: 7px;">
<?php
if ($entered_sets['delivery_type'] == '1') {
$delivery_type = 'Next Day Air';
} elseif ($entered_sets['delivery_type'] == '2') {
$delivery_type = 'Two Day Air';
} elseif ($entered_sets['delivery_type'] == '3') {
$delivery_type = 'Three Day Air';
} elseif ($entered_sets['delivery_type'] == '4') {
$delivery_type = 'Ground';
}
$ship_type_1 = ($entered_sets['shipp_comp_1'] == '0') ? '' : $entered_sets['shipp_comp_1'];
$ship_type_2 = ($entered_sets['shipp_comp_2'] == '0') ? '' : $entered_sets['shipp_comp_2'];
$ship_type_3 = ($entered_sets['shipp_comp_3'] == '0') ? '' : $entered_sets['shipp_comp_3'];
echo $ship_type_1 . $ship_type_2 . $ship_type_3 . ', ' . $delivery_type . ', Account # ' . $entered_sets['billing_number'];
?>
</div>
<?php } else { ?>
<div style="width: 100%;float: left;margin-left: 30px;margin-top: 7px;">
<span style="font-weight: bold;">Send Via: </span>
</div>
<div style="width: 100%;float: left;margin-left: 30px;margin-top: 7px;">
SOHO TO ARRANGE DELIVERY
</div>
<?php } ?>
<div style="width: 100%;float: left;margin-left: 30px;margin-top: 7px;">
<span style="font-weight: bold;">Special Instructions: </span>
</div>
<div style="width: 100%;float: left;margin-left: 30px;margin-top: 7px;">
<?php echo $entered_sets['spl_inc']; ?>
</div>
</div>
</div>
</div>
<?php
$r++;
}
?>
</div>
</div>
<div style="border:1px solid #F99B3E;width: 100%;float: left;margin-top: 12px;"></div>
<div style="float:left;width:100%;padding-top: 10px;">
<select style="width: 25% !important;">
<option value="copy">Copy Shop</option>
</select>
<input class="addproductActionLink" value="Continue" style="cursor: pointer;font-size: 12px; padding: 1.5px; width: 135px; margin-right: 14px; -moz-border-radius: 5px; -webkit-border-radius: 5px;border:1px solid #8f8f8f;margin-top: -0px !important;" type="button" onclick="return goto_index('<?php echo $user_session_comp; ?>','<?php echo $user_session; ?>');" />
</div>
<li class="clear" style="list-style: none;">
<span>
<div style="height:29px;">
</div>
<div style="clear:both">
</div>
</span>
</li>
</ul>
</div>
</div>
</div>
<style>
.set_ul{
list-style: none;
width: 90%;
margin: 0 auto;
margin-top: 10px;
}
.set_ul li{
width: 100%;
float: left;
padding: 5px;
}
.head_plat{
background: #ff7e00 !important;
padding: 5px;
}
.head_plat span{
font-size: 14px !important;
font-weight: bold;
}
.set_ul li span{
width: 33%;
text-align: center;
float: left;
}
</style>
</div>
<div class="login_loader"></div>
<div id="backgroundPopup"></div>
<?php
//echo '<pre>';
//print_r($_SESSION);
//echo '</pre>';
?>
<!-----TABLE END--->
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<div class="footerSRwapper" style="margin:auto;height:61px;">
<div id="body_footer-inner" class="body_wrapper-inner">
<ul class="navigation footer">
<li><a href="#"><span>About SohoRepro</span></a></li>
<li><a href="#"><span>FAQs</span></a></li>
<li><a href="#"><span>Privacy Policy</span></a></li>
<li><a href="#"><span>Security</span></a></li>
<li><a href="#"><span>Terms of Use</span></a></li>
<li><a href="#"><span>Contact</span></a></li>
<div class="clear"></div>
</ul>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
<div id="dynamicAppender" style="postion:absolute;top:-5000px"></div>
<script>
function multiple_recipient()
{
var multi = document.getElementById('del_type_multi').checked;
if(multi == true){
$.ajax
({
type: "POST",
url: "get_recipients.php",
data: "recipients=1",
beforeSend: loadStart,
complete: loadStop,
success: function(option)
{
$('#multi_recipients').slideDown();
$('#multi_recipients').html(option);
$('#add_recipients').slideDown();
}
});
}else{
alert('Mohamed');
}
}
function everything_return()
{
var everything_return = document.getElementById('everything_return').checked;
if(everything_return == true){
$('#multi_recipients').slideUp();
$('#add_recipients').slideUp();
}
}
function send_everything_to()
{
var send_everything_to = document.getElementById('send_everything_to').checked;
if(send_everything_to == true){
$('#multi_recipients').slideUp();
$('#add_recipients').slideUp();
}
}
function pickup_soho()
{
var pickup_soho = document.getElementById('pickup_soho').checked;
if(pickup_soho == true){
$('#multi_recipients').slideUp();
$('#add_recipients').slideUp();
}
}
function add_recipients(){
var shipping_id = $("#address_book_rp").val();
var user_session = $("#user_session").val();
var user_session_comp = $("#user_session_comp").val();
var avl_sets_1 = $("#avl_sets_1").val();
var need_sets_1 = $("#need_sets_1").val();
var size_sets_1 = $("#size_sets_1").val();
var output_sets_1 = $("#output_sets_1").val();
var binding_sets_1_pre = $("#binding_sets_1").val();
var folding_sets_1 = $("#folding_sets_1").val();
var binding_sets_1 = (binding_sets_1_pre != '') ? binding_sets_1_pre : '0' ;
var avl_sets_2 = $("#avl_sets_2").val();
var need_sets_2 = $("#need_sets_2").val();
var size_sets_2 = $("#size_sets_2").val();
var output_sets_2 = $("#output_sets_2").val();
var binding_sets_2_pre = $("#binding_sets_2").val();
var binding_sets_2 = (binding_sets_2_pre != '') ? binding_sets_2_pre : '0' ;
var folding_sets_2 = $("#folding_sets_2").val();
var date_needed = $("#date_needed").val();
var spl_recipient = $("#spl_recipient").val();
var arrange_del = document.getElementById('arrange_del').checked;
var delivery_comp = (arrange_del == false) ? document.getElementById("delivery_comp").value : '0';
var bill_number = (arrange_del == false) ? document.getElementById("bill_number").value : '0';
if(arrange_del == false)
{
var shipp_comp_1 = document.getElementById('shipp_comp_1').checked;
var shipp_comp_1_f = (shipp_comp_1 == true) ? document.getElementById("shipp_comp_1").value : '0';
var shipp_comp_2 = document.getElementById('shipp_comp_2').checked;
var shipp_comp_2_f = (shipp_comp_2 == true) ? document.getElementById("shipp_comp_2").value : '0';
var shipp_comp_3 = document.getElementById('shipp_comp_3').checked;
var shipp_comp_3_f = (shipp_comp_3 == true) ? document.getElementById("shipp_comp_3").value : '0';
}else{
var shipp_comp_1_f = '0';
var shipp_comp_2_f = '0';
var shipp_comp_3_f = '0';
}
if(shipping_id == '0'){
alert('Please select send to address');
$("#address_book_rp").focus();
return false;
}
if(date_needed == ''){
alert('Please select when needed');
$("#date_needed").focus();
return false;
}
$.ajax
({
type: "POST",
url: "get_recipients.php",
data: "recipients=9&shipping_id_rec="+encodeURIComponent(shipping_id)+"&avl_sets_1="+encodeURIComponent(avl_sets_1)+"&need_sets_1="+encodeURIComponent(need_sets_1)+"&size_sets_1="+encodeURIComponent(size_sets_1)+"&output_sets_1="+encodeURIComponent(output_sets_1)+"&binding_sets_1="+encodeURIComponent(binding_sets_1)+"&avl_sets_2="+encodeURIComponent(avl_sets_2)+"&need_sets_2="+encodeURIComponent(need_sets_2)+"&size_sets_2="+encodeURIComponent(size_sets_2)+"&output_sets_2="+encodeURIComponent(output_sets_2)+"&binding_sets_2="+encodeURIComponent(binding_sets_2)+"&user_session="+encodeURIComponent(user_session)+"&user_session_comp="+encodeURIComponent(user_session_comp)+"&date_needed="+encodeURIComponent(date_needed)+"&spl_recipient="+encodeURIComponent(spl_recipient)+"&delivery_type="+encodeURIComponent(delivery_comp)+"&bill_number="+encodeURIComponent(bill_number)+"&shipp_comp_1_f="+encodeURIComponent(shipp_comp_1_f)+"&shipp_comp_2_f="+encodeURIComponent(shipp_comp_2_f)+"&shipp_comp_3_f="+encodeURIComponent(shipp_comp_3_f)+"&folding_sets_1="+encodeURIComponent(folding_sets_1)+"&folding_sets_2="+encodeURIComponent(folding_sets_2),
beforeSend: loadStart,
complete: loadStop,
success: function(option)
{
$('#multi_recipients').slideDown();
$('#multi_recipients').html(option);
$('#add_recipients').slideDown();
}
});
}
function continue_recipient(){
var shipping_id = $("#address_book_rp").val();
var user_session = $("#user_session").val();
var user_session_comp = $("#user_session_comp").val();
var avl_sets_1 = $("#avl_sets_1").val();
var need_sets_1 = $("#need_sets_1").val();
var size_sets_1 = $("#size_sets_1").val();
var output_sets_1 = $("#output_sets_1").val();
var binding_sets_1_pre = $("#binding_sets_1").val();
var folding_sets_1 = $("#folding_sets_1").val();
var binding_sets_1 = (binding_sets_1_pre != '') ? binding_sets_1_pre : '0' ;
var avl_sets_2 = $("#avl_sets_2").val();
var need_sets_2 = $("#need_sets_2").val();
var size_sets_2 = $("#size_sets_2").val();
var output_sets_2 = $("#output_sets_2").val();
var binding_sets_2_pre = $("#binding_sets_2").val();
var binding_sets_2 = (binding_sets_2_pre != '') ? binding_sets_2_pre : '0' ;
var folding_sets_2 = $("#folding_sets_2").val();
var date_needed = $("#date_needed").val();
var spl_recipient = $("#spl_recipient").val();
var arrange_del = document.getElementById('arrange_del').checked;
var delivery_comp = (arrange_del == false) ? document.getElementById("delivery_comp").value : '0';
var bill_number = (arrange_del == false) ? document.getElementById("bill_number").value : '0';
if(arrange_del == false)
{
var shipp_comp_1 = document.getElementById('shipp_comp_1').checked;
var shipp_comp_1_f = (shipp_comp_1 == true) ? document.getElementById("shipp_comp_1").value : '0';
var shipp_comp_2 = document.getElementById('shipp_comp_2').checked;
var shipp_comp_2_f = (shipp_comp_2 == true) ? document.getElementById("shipp_comp_2").value : '0';
var shipp_comp_3 = document.getElementById('shipp_comp_3').checked;
var shipp_comp_3_f = (shipp_comp_3 == true) ? document.getElementById("shipp_comp_3").value : '0';
}else{
var shipp_comp_1_f = '0';
var shipp_comp_2_f = '0';
var shipp_comp_3_f = '0';
}
if(shipping_id == '0'){
alert('Please select send to address');
$("#address_book_rp").focus();
return false;
}
if(date_needed == ''){
alert('Please select when needed');
$("#date_needed").focus();
return false;
}
$.ajax
({
type: "POST",
url: "get_recipients.php",
data: "recipients=9&shipping_id_rec="+encodeURIComponent(shipping_id)+"&avl_sets_1="+encodeURIComponent(avl_sets_1)+"&need_sets_1="+encodeURIComponent(need_sets_1)+"&size_sets_1="+encodeURIComponent(size_sets_1)+"&output_sets_1="+encodeURIComponent(output_sets_1)+"&binding_sets_1="+encodeURIComponent(binding_sets_1)+"&avl_sets_2="+encodeURIComponent(avl_sets_2)+"&need_sets_2="+encodeURIComponent(need_sets_2)+"&size_sets_2="+encodeURIComponent(size_sets_2)+"&output_sets_2="+encodeURIComponent(output_sets_2)+"&binding_sets_2="+encodeURIComponent(binding_sets_2)+"&user_session="+encodeURIComponent(user_session)+"&user_session_comp="+encodeURIComponent(user_session_comp)+"&date_needed="+encodeURIComponent(date_needed)+"&spl_recipient="+encodeURIComponent(spl_recipient)+"&delivery_type="+encodeURIComponent(delivery_comp)+"&bill_number="+encodeURIComponent(bill_number)+"&shipp_comp_1_f="+encodeURIComponent(shipp_comp_1_f)+"&shipp_comp_2_f="+encodeURIComponent(shipp_comp_2_f)+"&shipp_comp_3_f="+encodeURIComponent(shipp_comp_3_f)+"&folding_sets_1="+encodeURIComponent(folding_sets_1)+"&folding_sets_2="+encodeURIComponent(folding_sets_2),
beforeSend: loadStart,
complete: loadStop,
success: function(option)
{
window.location = "view_all_recipients.php";
}
});
}
function increase_qty(ID){
var need_sets = $("#need_sets_"+ID).val();
var avl_sets = $("#avl_sets_"+ID).val();
need_sets++;
if(need_sets <= avl_sets){
$('#need_sets_'+ID).val(need_sets);
}
}
function decrease_qty(ID)
{
var need_sets = $("#need_sets_"+ID).val();
var avl_sets = $("#avl_sets_"+ID).val();
need_sets--;
if(need_sets != '0')
{
$('#need_sets_'+ID).val(need_sets);
}
}
function increase_qty_avl(ID,USR_ID,COMP_ID,TYPE,REC_ID)
{
var avl_sets = $("#avl_sets_"+ID).val();
var need_sets_1 = $("#need_sets_1").val();
var need_sets_2 = $("#need_sets_2").val();
avl_sets++;
if(avl_sets != '0'){
$('#avl_sets_'+ID).val(avl_sets);
$.ajax
({
type: "POST",
url: "get_recipients.php",
data: "recipients=5&inc_avl_user_id="+USR_ID+"&inc_avl_comp_id="+COMP_ID+"&inc_avl_type="+TYPE+"&inc_avl_rec_id="+REC_ID+"&need_sets_current_1="+need_sets_1+"&need_sets_current_2="+need_sets_2,
success: function(option)
{
$('#sets_grid_new').html(option);
}
});
}
}
function increase_qty_avl_copies(ID,USR_ID,COMP_ID,TYPE)
{
var avl_sets = $("#avl_sets_"+ID).val();
avl_sets++;