/
postalook old2.php
815 lines (718 loc) · 38.5 KB
/
postalook old2.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
<?php
require("fs_folders/php_functions/connect.php");
require("fs_folders/php_functions/function.php");
require("fs_folders/php_functions/myclass.php");
require("fs_folders/php_functions/library.php");
require("fs_folders/php_functions/source.php");
$ri = new resizeImage ( );
$mc = new myclass();
$mc->auto_detect_path();
$_SESSION['mno'] = $mc->get_cookie( 'mno' , 136 );
$mno = $mc->get_cookie( 'mno' , 136 );
if (!empty($_SESSION['adm_no'])) {
#can edit
}
else if ($mno == 136 ) {
$mc->save_current_page_visited( 'post-look-upload' );
$mc->go('login');
}
echo "<div style='display:none' >";
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
// echo " this is is to be edited look = ".tobe_edite_look_id().'<br>';
if( is_edit_look( tobe_edite_look_id() ) ) {
// echo "edite look";
$plno=tobe_edite_look_id();
$pl_info=$mc->posted_look_info($plno);
// print_r($pl_info);
// echo 'lnmae '.$pl_info['lookName'].' ldesc'.$pl_info['lookAbout'];
// echo " total tags = ".count($pl_info['pltags']);
// for ($i=0; $i < count($pl_info['pltags']) ; $i++) {
// $pl_info[$i][]
// echo " pltags = ";
// }
$lookAbout = $pl_info['lookAbout'];
$pltags = $pl_info['pltags'];
$lookName = $pl_info['lookName'];
$occasion = $pl_info['occasion'];
$season = $pl_info['season'];
$style = $pl_info['style'];
$article_link = $pl_info['article_link'];
$pltags = $pl_info['pltags'];
$Ttag = count($pl_info['pltags']);
$_SESSION['last_look_uploaded'] = $plno;
$_SESSION['look_edit'] = true;
// echo "plno = $plno";
echo"<span id='type' style='display:none'>".$_GET['type']."</span>";
echo"<span id='plno' style='display:none'>".$_GET['kooldi']."</span>";
// echo "edit";
}
else {
// echo " new uploaded look ";
$lookAbout = "";
$pltags = "";
$lookName = "";
$occasion = "";
$season = "";
$style = "";
$article_link = "";
// echo "from posted look";
$plno = user_last_look_uploaded();
$_SESSION['last_look_uploaded'] = $plno;
$_SESSION['look_edit'] = false;
// set notification
// $_SESSION['modal_posted'] = 1;
// $mc->set_notification_info( 'postedlooks' , $plno , ' posted a new look' , 0 , 0 );
$type = ( !empty( $_GET['type']) ) ? $_GET['type'] : null ;
switch ( $type ) {
case 'cropped':
break;
default:
#this is not being cropped
$mc->resize_posted_look( $plno , $mc->look_folder );
break;
}
}
// echo'LOOK ID '.$plno.'<BR>';
// print_r($pl_info['pltags']);
$h1 = 600; # height of the look container
$w1 = 889; # width of the look container
//$plno = '396';
$img = "$mc->look_folder_lookdetails/$plno.jpg";
$lookmodalssize = $mc->lookdetails_set_size_of_the_look( $img , $ri );
// $li = $mc->posted_look_info($_GET['id']);
$mc->header_attribute(
"OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration | Fashion Sponge " ,
"Fashion Sponge is the easiest & fastest way to: Show your ootd, see the latest trends, discover fashionable people & blogs, get beauty & style tips & find fashion inspiration.",
"OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration "
);
echo " </div>";
?>
<html>
<head>
<title> Label a Look </title>
<link rel="stylesheet" type="text/css" href="fs_folders/labellok_items/css/style.css">
<script src="fs_folders/labellok_items/js/plugin.js"></script>
<?php
include('fs_folders/labellok_items/js/js_function.php');
include('fs_folders/labellok_items/js/init.php');
include('fs_folders/labellok_items/js/ajax.php');
include('fs_folders/labellok_items/js/image_click.php');
// require("fb-sdk.php");
?>
<script type="text/javascript">
var lName;
var tAbt;
function share_fb(){
if(getID("fb_").checked){
lName = $('.look_name').val();
tAbt = $('.textarea').val();
PopupCenter("http://www.facebook.com/sharer.php?s=100&p[title]="+lName+"&p[summary]="+tAbt+"&p[url]=http://fashionsponge.com/fs/lookdetails.php?id=<?php echo $r[0]; ?>&p[images][0]=http://fashionsponge.com/fs/images/members/posted looks/<?php echo $r[0]; ?>.jpg&p[via]=FashionSponge",tAbt,660,330);
}
}
function share_tw(){
if(getID("tw_").checked){
lName = $('.look_name').val();
PopupCenter("http://twitter.com/share?url=http://fashionsponge.com/fs/lookdetails.php?id=<?php echo $rs[0]; ?>&text="+lName+"\n","",660,330);
}
}
</script>
</head>
<body style="padding-bottom:0px; margin-bottom:0px;padding-top:0px; margin-top:0px;" id='label-look-body' >
<center>
<!-- <div id="new-postalook-label-container" > -->
<input type='text' class='about' style='display:none' value='<?php echo $lookAbout; ?> '/>
<div id='' class='pl_tags_edit' style='display:none' >
<?php
// $pltags = $pl_info;
if (!empty($pltags)) {
# code...
// echo "not empty";
for ($i=0; $i < count($pltags) ; $i++) {
for ($j=2; $j < 11; $j++) {
if ($i==0 and $j==2) {
// first color
$firstcolor = $pltags[$i][$j];
echo "<div id='fcolor' id='fcolor' >$firstcolor</div>";
}
echo $pltags[$i][$j].',';
}
echo "-,";
}
}else {
// echo "empty";
}
?>
</div>
<div id='Ttag_edit' class='Ttag_edit' style='display:none' >
<?php
if (!empty($pltags)) {
echo count($pltags);
}else {
echo 0;
}
?>
</div>
<div id='divCoord' style='position:fixed;display:none'>
this is the position
<!-- coordinate -->
</div>
<div id='block_barrer' style=" visibility:hidden " >
<span id='ins_label' style='display:none;' >
<b>LABEL YOUR ITEMS</b>
</br>
<span>click this photo to label what you're wearing</span>
</span>
<span id='ins_del' >
<b> DOUBLE CLICK </b>
<br>
<span> to remove </span>
this is the best !
</span>
</div>
<div id='del_tag_option'>
</div>
<div id='container' style="border:1px solid none; padding-top:50px;" >
<!-- <div id="divCoord"> coordinates </div> -->
<div id="new-postalook-label-wrapper" >
<div id="new-postalook-header-div" style="display:none" >
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td style="width:280px;" > <div style="color:#b32727;font-size:60px;font-family:misoLight " > LABEL LOOK </div> </td>
<td> <div> mao ni ang look nga imong gi submit dap l sa look daun img label sa look daun look a look daun look daun img label sa look daun i e check if sakto ba or dili g label sa look daun imni sya sakto. daghang salamat sa inyong pag supporta sa amoang cog label sa look daun img label sa look daun immpany. </div> </td>
</table>
</div>
<div id='body' >
<center>
<table>
<tr>
<td id='left_side' style="border:1px solid red; height:500px" >
<!-- upload image -->
<form action="photo.resize.php?type=upload-look-and-resize" method="POST" enctype="multipart/form-data" id="upload-modal" >
<div style="position:absolute" >
<input type='file' id="modal-image-file" name="file" runat="server" style="display:block;" />
<input type="button" value="upload" onclick="$('#modal-image-file').click( );" />
</div>
</form>
<!-- images -->
<div id='block_circle_tags' title="single click to show the keywords and double click to remove the tag" >
</div>
<center>
<!-- <div id="modal-image" > -->
<img src=" " style='<?php echo $lookmodalssize; ?>' id="modal-image" />
<!-- </div> -->
</center>
</td>
<tr>
<td>
<!-- bottom colors -->
<div style="border-top:1px solid grey" >
<?php
if ( !empty($pltags) ) {
$c=0;
echo "
<div id='new-postalook-color-underimage-div' >
<table border='0' cellpadding='0' cellspacing='0' >
<tr>";
for ($i=0; $i < 15 ; $i++) {
$c++;
$plt_color = (!empty($pltags[$i]["plt_color"])) ? $pltags[$i]["plt_color"] : null ;
$tc = $mc->get_html_colo_code( str_replace(" ","",$plt_color));
if ($c <= count($pltags)) {
# sa mga tag nga naay color
if ( $i==0 ) {
#sugod td sa color pallete
$style = "display:block; background-color:#$tc; border-radius:0 0 0 5px;";
}
else if ( $i== count($pltags)-1 ) {
#last print td sa color pallete
$style = "display:block; background-color:#$tc; border-radius:0 0 5px 0;";
}
else{
$style = "display:block; background-color:#$tc";
}
}
else{
# kong ang td is walay sulod nga color
$style = 'display:none';
}
echo "
<td id='new-postalook-tagcolor-td$c' class='new-postalook-tagcolor-td$c' style='$style' > <div> </div></td>
";
}
echo "
</table>
</div>
";
}
else {
echo "
<div id='new-postalook-color-underimage-div' >
<table border='0' cellpadding='0' cellspacing='0' >
<tr>
<td id='new-postalook-tagcolor-td1' class='new-postalook-tagcolor-td1' > <div></div></td>
<td id='new-postalook-tagcolor-td2' class='new-postalook-tagcolor-td2' > <div></div></td>
<td id='new-postalook-tagcolor-td3' class='new-postalook-tagcolor-td3' > <div></div></td>
<td id='new-postalook-tagcolor-td4' class='new-postalook-tagcolor-td4' > <div></div></td>
<td id='new-postalook-tagcolor-td5' class='new-postalook-tagcolor-td5' > <div></div></td>
<td id='new-postalook-tagcolor-td6' class='new-postalook-tagcolor-td6' > <div></div></td>
<td id='new-postalook-tagcolor-td7' class='new-postalook-tagcolor-td7' > <div></div></td>
<td id='new-postalook-tagcolor-td8' class='new-postalook-tagcolor-td8' > <div></div></td>
<td id='new-postalook-tagcolor-td9' class='new-postalook-tagcolor-td9' > <div></div></td>
<td id='new-postalook-tagcolor-td10' class='new-postalook-tagcolor-td10' > <div></div></td>
<td id='new-postalook-tagcolor-td11' class='new-postalook-tagcolor-td11' > <div></div></td>
<td id='new-postalook-tagcolor-td12' class='new-postalook-tagcolor-td12' > <div></div></td>
<td id='new-postalook-tagcolor-td13' class='new-postalook-tagcolor-td13' > <div></div></td>
<td id='new-postalook-tagcolor-td14' class='new-postalook-tagcolor-td14' > <div></div></td>
<td id='new-postalook-tagcolor-td15' class='new-postalook-tagcolor-td15' > <div></div></td>
</table>
</div>
";
}
?>
</div>
</td>
</table>
</center>
</div>
<table border="0" cellpadding="0" cellspacing="0" style="width:100%;margin-top:30px;" >
<tr>
<td>
<div id='right_side' style="display:block; z-index:100;height:320px" >
<table border="0" cellpadding="0" cellspacing="0" style="width:100%; " >
<tr>
<td>
<div style="color:#b32727;font-size:30px;font-family:'misoRegular';display:none" >
DETAILS
</div>
</td>
<tr>
<td style="padding-top:10px;" >
<div style="padding-bottom:10px;" >
Title (160 characters max)
</div>
<div>
<input placeholder='160 characters max' type='text' id='onetwo' class='look_name' maxlength='160' title="Name your look(160) character " style="width:100%;" value='<?php echo $lookName; ?>' /><br><br>
</div>
</td>
<tr>
<td style="padding-top:10px;" >
<div style="padding-bottom:10px;" > Article link (URL) </div>
<div>
<input type="text" class="look-article-field" value="<?php echo $article_link; ?>" placeholder='URL' style="width:100%; border:1px solid none; " />
</div>
</td>
<tr>
<td style="padding-top:10px;" >
<div style="padding-bottom:10px;" >
Description (320 characters max)
</div>
<textarea placeholder='320 characters max' rows='10' cols='30' maxlength='320' id='onetwo' class='textarea' title="What’s the story behind your look?" style="height:50px;" >
</textarea>
</td>
<tr>
<td style="padding-top:10px;" >
<table border="0" cellpadding="0" cellspacing="0" width="100%;" >
<tr>
<td> <div style="padding-bottom:5px;" > Style</div> </td>
<td> <div style="padding-bottom:5px;margin-left:4px;" >Occasion </div> </td>
<td> <div style="padding-bottom:5px;margin-left:4px;" >Season </div> </td>
<tr>
<td style="background:white; border:1px solid white" >
<div>
<select style="width:100%;padding:5px;border:none;color:#284372" id="style" >
<option>Chic</option>
<option>Menswear</option>
<option>Preppy</option>
<option>Streetwear</option>
</select>
</div>
</td>
<td style="background:white; border:1px solid white" >
<input style="width:100%;display:none; border:1px solid none; " type='text' value='<?php echo $occasion; ?>' id='input345' class='occasion' placeholder='Where can you wear this?' onclick="hide_all_open_dropdown('none','res_occasion','none')"; >
<div style='' class='res_occasion' id='res_occasion' >
<?php
$a = array('Amusement Park','Baby Shower','BBQ','Beach','Birthday Dinner','Blind Date','Bridal Shower','Brunch','Casual Party','Clubbing','Cocktail','College','Company Event','Conference','Dinner Date','Dinner Party','Everyday','Formal Event','High School','Internship','Interview','Lunch Date','Movie Night','Music Concert','Photo shoot','Picnic','Pool Party','Prom','Romantic Dinner','Theater / Play / Opera','Wedding','Wine Tasting','Work');
$c=0;
echo "<span onclick='close_x()' class='x_out' title='(close)' >x</span>";
echo " <br> <center> <span>Occasion </span></center> <br>";
echo "<table border=0>" ;
for ($i=0; $i < count($a) ; $i++) {
$c++;
$b=$a[$i];
echo "<td><p onclick='hide_x_beore_accasion_name(\"$i\");remove_Selected_taggs(\"$b\")' id='remove_tags_$i' class='remove_tags_occasion'>x</p></td>
<td onclick='get_clicked_accation(\"$b\",\"$i\")' style='' > $b </td>
";
if ($c%5==0) {
echo "<tr>";
}
}
echo "</table>";
?>
</div>
<!-- new version -->
<input style="width:100%; padding:5px;border:none" id="occasion" placeholder='Where can you wear this?' type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'occasion' , 'autocomplete-dropdown-loader-occasion' , 'autocomplete-dropdown-container-occasion' , 'occasion' , '' , true )" />
<div id="label-look-dropdown-container" style="margin-top:33px;width:243px;" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-occasion" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-occasion" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-occasion" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<td style="background:white; border:1px solid white" >
<input style="width:100%;display:none" type='text' value='<?php echo $season; ?>' id='input345' class='season' placeholder='During what seasons can you wear this?' style="width:248px; border:1px solid none;float:right" onclick="hide_all_open_dropdown('none','res_season','none')"; >
<div style='' class='res_season' id='res_season'>
<?php
$a =array('Winter','Spring','Summer','Fall');
$c=0;
echo "<span onclick='close_x()' class='x_out' title='(close)' >x</span>";
echo " <br> <center> <span>Session </span></center> <br>";
echo "<table border=0>" ;
for ($i=0; $i < count($a) ; $i++) {
$c++;
$b=$a[$i];
echo "
<td><p onclick='remove_Selected_taggs(\"$b\");hide_x_beore_session_name(\"$i\")' id='remove_tags_session_$i' class='remove_tags_session' >x</p></td>
<td onclick='get_clicked_session(\"$b\",\"$i\")' style='' > $b </td>
";
if ($c%5==0) {
echo "<tr>";
}
}
echo "</table>";
?>
</div>
<!-- new version -->
<input style="width:100%; padding:5px;border:none" id="season" placeholder='During what seasons can you wear this?' type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'season' , 'autocomplete-dropdown-loader-season' , 'autocomplete-dropdown-container-season' , 'season' , '' , true )" />
<div id="label-look-dropdown-container" style="margin-top:33px;width:244px;" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-season" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-season" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-season" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<td style="background:white; border:1px solid white" >
<!-- new version -->
<input type="text" placeholder='keyword' style="width:100%;display:none" />
<input style="width:100%; padding:5px;border:none" id="keyword" placeholder='keyword' type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'keyword' , 'autocomplete-dropdown-loader-keyword' , 'autocomplete-dropdown-container-keyword' , 'keyword' , '' , true )" />
<div id="label-look-dropdown-container" style="margin-top:33px;width:243px;" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-keyword" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-keyword" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-keyword" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<td style='display:none' >
<input style="width:100%" type='text' value='<?php echo $style; ?>' id='input345' class='style' onclick='retrieve_style_list()' >
<div style='' class='res_style' id='res_style'>
</div>
</td>
</table>
</td>
</table>
</div>
</td>
<tr>
<td>
<div id='footer' >
<div id='tag_list' style='display:block; border:1px solid none; width:100%; ' >
<ul style="display:none" >
<li><div style="color:#b32727;font-size:30px;font-family:'misoRegular';" > TAGS </div> </li>
<li><div style='margin-left:20px;padding-top:4px;' >
When labeling all items in this photo only fill in the fields that relate to the item.
</div></li>
</ul>
<br><br><br>
<div id='tag1'>
<?php
$c=0;
for ($i=1; $i <16 ; $i++) {
$c++;
// if ( $c%2==0) {
// $background = 'background-color:#f6f7f8';
// }
// else{
// $background = 'background-color:none';
// }
$background = '';
//echo " <table border='0' id='table_container_$c' class='item' style='border-radius:5px; height:0px;$background;z-index:100' onmousemove='show_dropdown( \"#table_container_$c\" , \"block\" )' onmouseout='show_dropdown( \"#table_container_$c\" , \"none\" )' cellspacing='0' cellpadding='5' >" // this is for mouse over show
echo " <table border='0' id='table_container_$c' class='item' style='border-radius:5px; height:0px;$background;z-index:100' cellspacing='0' cellpadding='5' >"
?>
<style type="text/css">
#table_container_<?php echo $c ?>{
display: none;
/*border:1px solid #fff; */
}
#COLOR<?php echo $c ?> ,
#BRAND<?php echo $c ?> ,
#GARMENT<?php echo $c ?> ,
#MATERIAL<?php echo $c ?> ,
#PATTERN<?php echo $c ?> ,
#PRICE<?php echo $c ?> ,
#PURCHASED<?php echo $c ?>{
}
</style><?php
if ($c < 10 ) {
echo "
<style type='text/css'>
.item1_$c {
border: 1px solid none;
padding: 4px;
}
</style>
";
$w = '60px';
}
else{
$w = '68px';
}
?>
<tr>
<td style="height:20px;background:none !important">
<!-- <img src="<?php echo "$mc->genImgs/upper-bubble.png"; ?>" style='width:100%' /> -->
</td>
<tr>
<td style="padding-top:0px;padding-bottom:0px; border-radius:5px 5px 0px 0px;" >
<table border='0' cellpadding='0' cellspacing='0' style='width:100%' >
<tr>
<td>
<div style="padding-bottom:5px;padding-top:5px;" >Color</div>
</td>
<td>
<center> <div id='close-taggin-dropdown' title='close' onclick="show_dropdown ( '<?php echo "#table_container_$c"; ?>' , 'none' )" > x </div> </center>
</td>
</table>
<div id='COLOR<?php echo $c; ?>' class='static_div_input' onclick='retrieve_color(this.id)' >
</div>
<div style=" position:absolute; width:100%; margin-left: 95px;" >
<div class='ajax_color<?php echo $c; ?>' id='ajax_color<?php echo $c; ?>' >
</div>
</div>
</td>
<tr>
<td style="padding-top:0px;padding-bottom:0px;border:1px solid none" >
<div style="padding-bottom:5px;padding-top:5px;" >Brand</div>
<!-- old version -->
<div style="display:none" >
<input style="width:157px;font-size:14px;" type='text' id='BRAND<?php echo $c; ?>' class='not_static_input' value='' onkeyup='retrieve_brands(this.id)' >
<div style="position:absolute;z-index:102; margin-left:70px; margin-top:10px;" >
<img src="fs_folders/images/attr/loading 2.gif" style="display:none;height:10px;" id="brand_loader_<?php echo $c; ?>" >
</div>
<div class='ajax_BRAND<?php echo $c; ?>' id='ajax_BRAND<?php echo $c; ?>' style='display:none; background:#284372;border:1px solid none; border:1px solid none; height:30px; width:157px; position:absolute;' >
</div>
</div>
<!-- new version -->
<input style="width:157px;padding:5px;" id="brand<?php echo $c; ?>" type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'brand' , 'autocomplete-dropdown-loader-brand<?php echo $c ?>' , 'autocomplete-dropdown-container-brand<?php echo $c; ?>' , 'brand<?php echo $c; ?>' )" />
<div id="label-look-dropdown-container" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-brand<?php echo $c; ?>" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-brand<?php echo $c; ?>" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-brand$c" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<tr>
<td style="padding-top:0px;padding-bottom:0px;" >
<div style="padding-bottom:5px;padding-top:5px;" >Garment</div>
<!-- old version -->
<div style="display:none" >
<div id='GARMENT<?php echo $c; ?>'class='static_div_input' onclick='retrieve_garment(this.id)' >
</div>
<div class='ajax_GARMENT<?php echo $c; ?>' id='ajax_GARMENT<?php echo $c; ?>' > </div>
</div>
<!-- new version -->
<input style="width:157px;padding:5px;" id="garment<?php echo $c; ?>" type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'garment' , 'autocomplete-dropdown-loader-garment<?php echo $c ?>' , 'autocomplete-dropdown-container-garment<?php echo $c; ?>' , 'garment<?php echo $c; ?>' )" />
<div id="label-look-dropdown-container" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-garment<?php echo $c; ?>" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-garment<?php echo $c; ?>" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-garment$c" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<tr>
<td style="padding-top:0px;padding-bottom:0px;" >
<div style="padding-bottom:5px;padding-top:5px;" >Material</div>
<div style="display:none" >
<div id='MATERIAL<?php echo $c; ?>' class='static_div_input' onclick='retrieve_material(this.id)' >
</div>
<div class='ajax_MATERIAL<?php echo $c; ?>' id='ajax_MATERIAL<?php echo $c; ?>' >
</div>
</div>
<input style="width:157px;padding:5px;" id="material<?php echo $c; ?>" type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'material' , 'autocomplete-dropdown-loader-material<?php echo $c ?>' , 'autocomplete-dropdown-container-material<?php echo $c; ?>' , 'material<?php echo $c; ?>' )" />
<div id="label-look-dropdown-container" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-material<?php echo $c; ?>" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-material<?php echo $c; ?>" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-material$c" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<tr>
<td style="padding-top:0px;padding-bottom:0px;padding-bottom:10px;border-radius:0px 0px 5px 5px;" >
<div style="padding-bottom:5px;padding-top:5px;" >Pattern</div>
<div style="display:none" >
<div id='PATTERN<?php echo $c; ?>' class='static_div_input' onclick='retrieve_pattern(this.id)' >
</div>
<div class='ajax_PATTERN<?php echo $c; ?>' id='ajax_PATTERN<?php echo $c; ?>' >
</div>
</div>
<input style="width:157px;padding:5px;" id="pattern<?php echo $c; ?>" type='text' onkeyup="modal( 'modal-attribute' , 'search' , 'pattern' , 'autocomplete-dropdown-loader-pattern<?php echo $c ?>' , 'autocomplete-dropdown-container-pattern<?php echo $c; ?>' , 'pattern<?php echo $c; ?>' )" />
<div id="label-look-dropdown-container" >
<div class="autocomplete-dropdown-container" id="autocomplete-dropdown-container-pattern<?php echo $c; ?>" >
<center><div id="autocomplete-dropdown-loader-cotainer" class="autocomplete-dropdown-loader-cotainer-pattern<?php echo $c; ?>" > <?php $mc->image( array( 'type'=>'loader' , 'id'=>"autocomplete-dropdown-loader-pattern$c" ,'style'=>'visibility:visible;height:10px;' ) ); ?></div></center>
</div>
</div>
</td>
<tr>
<td style="display:none" >
<div id='PRICE<?php echo $c; ?>'class='static_div_input' onclick='retrieve_price(this.id)' >
</div>
<div class='ajax_PRICE<?php echo $c; ?>' id='ajax_PRICE<?php echo $c; ?>' >
</div>
</td>
<tr>
<td style="display:none" >
<input type='text' id='PURCHASED<?php echo $c; ?>' class='not_static_input' value='PURCHASED AT' onkeyup='retrieve_purchased_at(this.id)' >
<div class='ajax_PURCHASED'<?php echo $c; ?> id='ajax_PURCHASED<?php echo $c; ?>'>
</div>
</td>
<tr>
<td style='display:none' >
<input type='text' id='pos_x_y<?php echo $c; ?>' class=' ' value='' onkeyup='' />
</td>
</table >
<?php } ?>
</div>
</div>
<br>
<style type="text/css">
.tagged_occasion {
color: #fff;
}
</style>
<!-- the block box -->
<div id='hastag_box_list' style='display:none; border: 1px solid none'>
<table border=0>
<?php
$c=0;
echo "
<table>
<td>Accasion:</td> <td><a href='#'><span class='hashtag_occasion'></span></a></td><tr>
<td>Season:</td> <td><a href='#'><span class='hashtag_season'></span></a></td><tr>
<td>Style :</td> <td><a href='#'><span class='hashtag_style'></span></a></td><tr>
</table> ";
for ($i=0; $i <15 ; $i++) {
$c++;
?>
<style type="text/css">
#tagged_list_<?php echo $c ?>{
display: none;
}
</style>
<?php
echo " <table border=1 id='tagged_list_$c' class='tagged_list_' > ";
echo "<td id='tagged_num_$c' style='cursor:pointer;width:61px'> Item# $c </td> ";
for ($j=0; $j <6 ; $j++) {
echo "<td>";
echo "<a href='#'><span style='display:block;color:white !important' id=hashtag_".$c."_".$j." ></span><span> hashtag_".$c."_".$j." </span></a>";
echo "</td>";
}
echo "<table>";
}
?>
</table>
</div>
<!-- save buttons and shares -->
<br><br><br><br><br>
<div id='into_ready_to_be_saved_in_db' style='display:none' ></div>
<div id='db_res' style='display:none' > result here</div>
<br><br>
<div id='post_on' style="display:none" >
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td style="width:300px;" >
<span style="color:#b32727;font-size:30px;font-family:'misoRegular';" >POST THIS LOOK ON:</span><br>
<table border="0" cellpadding="0" cellspacing="0" style="width:220px;" >
<tr>
<td style="width:20px;" >
<img src="fs_folders/images/genImg/postalook-grey-check.png" id="new-postalook-label-share-to-fb-check" onclick='new_postalook_label_share( "#new-postalook-label-share-to-fb" )' /> <br>
<input type="text" value="not share fb" id="new-postalook-label-share-to-fb" />
</td>
<td>
<span onclick='new_postalook_label_share( "#new-postalook-label-share-to-fb" )' style='cursor:pointer' >Facebook</span>
</td>
<tr>
<td style="width:20px;" >
<img src="fs_folders/images/genImg/postalook-grey-check.png" id="new-postalook-label-share-to-tw-check" onclick='new_postalook_label_share( "#new-postalook-label-share-to-tw" )' >
<input type="text" value="not share tw" id="new-postalook-label-share-to-tw" />
</td>
<td>
<span onclick='new_postalook_label_share( "#new-postalook-label-share-to-tw" )' style='cursor:pointer' > Twitter</span>
</td>
</table>
</td>
<td>
<span style="color:#b32727;font-size:30px;font-family:'misoRegular';" > WANT FEEDBACK? </span><br>
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td style="width:20px;" >
<img src="fs_folders/images/genImg/postalook-grey-check.png" id="new-postalook-label-constructive-feedback-check" onclick='new_postalook_label_share( "#new-postalook-label-constructive-feedback" )' >
<input type="text" value="no feedback" id="new-postalook-label-constructive-feedback" />
</td>
<td>
<span style='cursor:pointer' onclick='new_postalook_label_share( "#new-postalook-label-constructive-feedback" )' >
Receive constructive feedback to help improve your styling ability.
</span>
</td>
<tr>
<td style="visibility:hidden" > v </td><td style="visibility:hidden" > <span>hidden </span> </td>
</table>
</td>
</table>
<!-- <span id='fbtw' > <input type='checkbox' onclick="share_fb()" id='fb_' />Facebook <input type='checkbox' onclick='share_tw()' id='tw_' /> Twitter</span> -->
</div>
<div id='save' style="border:1px solid none;width:142px; margin-top:-100px;" >
<div id="new-postalook-post-cancel-submit" >
<!-- <div> -->
<table>
<tr>
<td>
<input type="button" value="post modal" onclick="modal ( 'modal-attribute' , 'insert' , 'post-modal' ) " />
</td>
<td>
<?php $mc->image( array( 'type'=>'loader' , 'id'=>"post-modal" ,'style'=>'visibility:hidden;height:10px;width:10px;' ) ); ?>
</td>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="display:none" >
<tr>
<td>
<div style="margin-top:5px;" >
<a href="\" onmousemove=" mousein_change_button ( '#new-postalook-upload-button-cancel' , 'fs_folders/images/genImg/new-postalook-post-cancel-hover.png' )" onmouseout=" mousein_change_button ( '#new-postalook-upload-button-cancel' , 'fs_folders/images/genImg/new-postalook-post-cancel.png' )" >
<img src="fs_folders/images/genImg/new-postalook-post-cancel.png" id="new-postalook-upload-button-cancel" />
</a>
</div>
<td>
<td>
<div >
<input type="submit" name="uploadNow" value="" onclick='save_all_data_to_db()' id ='submt' onmousemove="mousein_change_background_image ( '#submt' , 'url(fs_folders/images/genImg/postalook-upload-look-mouse-over.png)' )" onmouseout="mouseout_change_background_image ( '#submt' , 'url(fs_folders/images/genImg/postalook-upload-look.png)' )" />
</div>
</td>
</table>
<!-- </div> -->
</div>
<!-- <img src="fs_folders/images/genImg/postalook-submit-look.png" style="cursor:pointer" id ='submt' onclick='save_all_data_to_db()'/> -->
<!-- <input type='submit' value = 'SAVE' onclick='save_all_data_to_db()' id ='submt' /> -->
</div>
</div>
</td>
<tr>
</table>
</div>
</div>
</center>
</body>
<html>
<?php
function loading_image(){
echo "<div style='background-color:#000; text-align:center; width:121px;height:25;position:absolute'>";
echo "<img src='labellok_items/images/loading 2.gif' style='height:25px'> ";
echo "</div>";
}
?>
<style type="text/css">
.static_div_input,.not_static_input , #input345 , #onetwo{
background-color:#fff;
/*border: 1px solid #000;*/
}
</style>