-
Notifications
You must be signed in to change notification settings - Fork 2
/
添加单文件上传字段和关联字段.patch
1776 lines (1775 loc) · 75.5 KB
/
添加单文件上传字段和关联字段.patch
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
Index: README.md
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/fields.inc.php (date 1618384967000)
+++ phpcms_code/phpcms/modules/content/fields/fields.inc.php (date 1618385775000)
@@ -21,9 +21,11 @@
'readpoint'=>'积分、点数',
'linkage'=>'联动菜单',
'downfile'=>'镜像下载',
+ 'file'=>'文件上传',
'downfiles'=>'多文件上传',
'map'=>'地图字段',
'omnipotent'=>'万能字段',
+ 'linkfield'=>'关联字段',
'video'=>'视频库',
);
//不允许删除的字段,这些字段讲不会在字段添加处显示
Index: phpcms_code/phpcms/modules/content/fields/file/config.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/file/config.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/file/config.inc.php (date 1618385775000)
@@ -0,0 +1,12 @@
+<?php
+defined('IN_ADMIN') or exit('No permission resources.');
+
+$field_type = 'varchar'; //字段数据库类型
+$field_basic_table = 0; //是否允许作为主表字段
+$field_allow_index = 0; //是否允许建立索引
+$field_minlength = 0; //字符长度默认最小值
+$field_maxlength = ''; //字符长度默认最大值
+$field_allow_search = 0; //作为搜索条件
+$field_allow_fulltext = 0; //作为全站搜索信息
+$field_allow_isunique = 0; //是否允许值唯一
+?>
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/file/field_add_form.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/file/field_add_form.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/file/field_add_form.inc.php (date 1618385775000)
@@ -0,0 +1,20 @@
+
+<table cellpadding="2" cellspacing="1" width="98%">
+ <tr>
+ <td width="100">文本框长度</td>
+ <td><input type="text" name="setting[size]" size="10" class="input-text" value="70"></td>
+ </tr>
+ <tr>
+ <td>默认值</td>
+ <td><input type="text" name="setting[defaultvalue]" size="40" class="input-text"></td>
+ </tr>
+ <tr>
+ <td>允许上传的文件类型</td>
+ <td><input type="text" name="setting[upload_allowext]" value="pdf|doc|docx|xls|wps|rar|zip|7z|jpg|jpeg|png|bmp" size="60" class="input-text"></td>
+ </tr>
+ <tr>
+ <td>是否从已上传中选择</td>
+ <td><input type="radio" name="setting[isselectfile]" value="1" checked> 是 <input type="radio" name="setting[isselectimage]" value="0" > 否</td>
+ </tr>
+
+</table>
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/file/field_edit_form.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/file/field_edit_form.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/file/field_edit_form.inc.php (date 1618385775000)
@@ -0,0 +1,19 @@
+<table cellpadding="2" cellspacing="1" width="98%">
+ <tr>
+ <td width="100">文本框长度</td>
+ <td><input type="text" name="setting[size]" value="<?php echo $setting['size'];?>" size="10" class="input-text"></td>
+ </tr>
+ <tr>
+ <td>默认值</td>
+ <td><input type="text" name="setting[defaultvalue]" value="<?php echo $setting['defaultvalue'];?>" size="40" class="input-text"></td>
+ </tr>
+ <tr>
+ <td>允许上传的文件类型</td>
+ <td><input type="text" name="setting[upload_allowext]" value="<?php echo $setting['upload_allowext'];?>" size="40" class="input-text"></td>
+ </tr>
+ <tr>
+ <td>是否从已上传中选择</td>
+ <td><input type="radio" name="setting[isselectimage]" value="1" <?php if($setting['isselectimage']) echo 'checked';?>> 是 <input type="radio" name="setting[isselectimage]" value="0" <?php if(!$setting['isselectimage']) echo 'checked';?>> 否</td>
+ </tr>
+
+</table>
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/file/form.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>GBK
===================================================================
--- phpcms_code/phpcms/modules/content/fields/file/form.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/file/form.inc.php (date 1618385775000)
@@ -0,0 +1,26 @@
+ function file($field, $value, $fieldinfo) {
+ $list_str = $str = '';
+ extract(string2array($fieldinfo['setting']));
+ if($value){
+ $value_arr = explode('|',$value);
+ $value = $value_arr['0'];
+ $sel_server = $value_arr['1'] ? explode(',',$value_arr['1']) : '';
+ $edit = 1;
+ } else {
+ $edit = 0;
+ }
+
+
+
+ if(!defined('IMAGES_INIT')) {
+ $str = '<script type="text/javascript" src="'.JS_PATH.'swfupload/swf2ckeditor.js"></script>';
+ define('IMAGES_INIT', 1);
+ }
+
+
+ $authkey = upload_key("$upload_number,$upload_allowext,$isselectimage");
+ $string .= $str."<input type='text' name='info[$field]' id='$field' value='$value' class='input-text' size='$size' /> <input type='button' class='button' onclick=\"javascript:flashupload('{$field}_downfield', '".L('attachment_upload')."','{$field}',submit_attachment,'{$upload_number},{$upload_allowext},{$isselectimage}','content','$this->catid','{$authkey}')\"/ value='".L('attachment_upload')."'>";
+
+
+ return $string;
+ }
Index: phpcms_code/phpcms/modules/content/fields/file/input.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>GBK
===================================================================
--- phpcms_code/phpcms/modules/content/fields/file/input.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/file/input.inc.php (date 1618385775000)
@@ -0,0 +1,3 @@
+ function file($field, $value) {
+ return trim($value);
+ }
Index: phpcms_code/phpcms/modules/content/fields/linkfield/config.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/linkfield/config.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/linkfield/config.inc.php (date 1618385775000)
@@ -0,0 +1,19 @@
+<?php
+/**
+ * linkfield 获取数据表关联字段及数据功能
+ *
+ * @contact qq:1027758988
+ * @author Abel Lan
+ * @lastmodify 2017-9-28
+ */
+defined('IN_ADMIN') or exit('No permission resources.');
+
+$field_type = 'varchar'; //字段数据库类型
+$field_basic_table = 1; //是否允许作为主表字段
+$field_allow_index = 1; //是否允许建立索引
+$field_minlength = 0; //字符长度默认最小值
+$field_maxlength = ''; //字符长度默认最大值
+$field_allow_search = 1; //作为搜索条件
+$field_allow_fulltext = 1; //作为全站搜索信息
+$field_allow_isunique = 1; //是否允许值唯一
+?>
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/linkfield/field_add_form.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/linkfield/field_add_form.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/linkfield/field_add_form.inc.php (date 1618385775000)
@@ -0,0 +1,152 @@
+<?php
+pc_base::load_sys_class('db_factory');
+$database = pc_base::load_config('database');
+$pdo_name = 'default';
+$db = db_factory::get_instance($database)->get_database($pdo_name);
+$tbl_show = $db->query("SHOW TABLE STATUS FROM `".$database[$pdo_name]['database']."`");
+$web_tables = array();
+$web_tables_info = array();
+$pre = $database[$pdo_name]['tablepre'];
+//排除系统关键信息数据表
+$sys_tables = array($pre.'admin', $pre.'admin_panel', $pre.'admin_role', $pre.'admin_role_priv', $pre.'block', $pre.'block_history', $pre.'cache', $pre.'dbsource', $pre.'log', $pre.'urlrule', $pre.'session', $pre.'sso_admin', $pre.'sso_applications', $pre.'sso_members', $pre.'sso_messagequeue', $pre.'sso_session', $pre.'sso_settings', $pre.'site', $pre.'queue', $pre.'release_point');
+while(($rs = $db->fetch_next()) != false) {
+ if(strpos($rs['Name'], $pre) === 0 && !in_array($rs['Name'], $sys_tables) && !preg_match('/'.$pre.'poster_(\d){6}/i',$rs['Name'])) {
+ $web_tables[] = $rs['Name'];
+ }
+}
+foreach($web_tables as $key => $table) {
+ $data =$db->get_fields($table);
+ $web_tables_info[$table] = array_keys($data);
+}
+$json_web_tables_info = json_encode($web_tables_info);
+$db->free_result($tbl_show);
+?>
+<table cellpadding="2" cellspacing="1" onclick="javascript:$('#minlength').val(0);$('#maxlength').val(255);">
+ <tr>
+ <td>搜索类型</td>
+ <td><input name="setting[link_type]" type="radio" value="1" checked /> 下拉选择框 <input name="setting[link_type]" type="radio" value="0" /> 搜索选择</td>
+ </tr>
+ <tr>
+ <td>关联表名</td>
+ <td>
+ <?php if(is_array($web_tables)){?>
+ <select name="setting[table_name]" id="st_name">
+ <?php
+ foreach($web_tables as $key => $v){
+ ?>
+ <option value='<?php echo $v?>'><?php echo $v?></option>
+ <?php } ?>
+ </select>
+ <?php }?>
+
+ <script type="text/javascript">
+ <!--
+ var json_web_tables_info =eval(<?php echo $json_web_tables_info?>);
+ $(document).ready(function() {
+
+ updatemenu($('#st_name').val());
+ $("#st_name").change(function() {
+ updatemenu($(this).trigger("select").val());
+ $('#select_title').val('');
+ });
+
+ function updatemenu(table_name) {
+ var data = '';
+ $.each(json_web_tables_info, function(i,n){
+ if(i == table_name){
+ data = n;
+ return false;
+ }else{
+ return true;
+ }
+ });
+ if (data != '') {
+ var str = '';
+ $.each(data, function(i,n){
+ str += '<option>'+n+'</option>';
+ });
+ $('#like_title').html(str);
+ $('#set_title').html(str);
+ $('#set_id').html(str);
+ }else{
+ alert('数据查询错误!');
+ }
+ }
+
+ var linkage_arr = ['like_title','set_title','set_id'];
+ var linkage_value_arr = [];
+ $("#like_title").change(function() {
+ linkagechange('like_title','select_title',$(this).trigger("select").val());
+ });
+ $("#set_title").change(function() {
+ $("#like_title").val($(this).trigger("select").val());
+ linkagechange('set_title','select_title',$(this).trigger("select").val());
+ });
+ $("#set_id").change(function() {
+ linkagechange('set_id','select_title',$(this).trigger("select").val());
+ });
+
+ function linkagechange(ele_from,ele_to,value){
+ var toVal = $('#'+ele_to).val();
+ var toValArr = [];
+ if(toVal){
+ toValArr = toVal.split(',');
+ if($.inArray(value,toValArr) === -1)
+ toValArr.push(value);
+ var source_value = linkage_value_arr[ele_from + '_value'];
+ var other_value = true;
+ $.each(linkage_arr, function(i,n){
+ if(n != ele_from){
+ if($('#' + n).val() == source_value){
+ other_value = false;
+ return false;
+ }
+ if($.inArray($('#' + n).val(),toValArr) === -1)
+ toValArr.push($('#' + n).val());
+ }
+ });
+ if(other_value){
+ var i = $.inArray(source_value,toValArr);
+ if(i !== -1 && source_value !== value)
+ toValArr.splice(i,1);
+ }
+ }else{
+ toValArr.push(value);
+ $.each(linkage_arr, function(i,n){
+ if(n != ele_from){
+ if($.inArray($('#' + n).val(),toValArr) === -1)
+ toValArr.push($('#' + n).val());
+ linkage_value_arr[n + '_value'] = $('#' + n).val();
+ }
+ });
+ }
+ $('#'+ele_to).val(toValArr.join(','));
+ linkage_value_arr[ele_from + '_value'] = value;
+ }
+ });
+ //-->
+ </script>
+ </td>
+ </tr>
+ <tr>
+ <td>主键</td>
+ <td><select name="setting[set_id]" id="set_id"></select> 用于返回值赋值给管理字段作为存入ID。(表里面唯一标示,比如主键)</td>
+ </tr>
+ <tr>
+ <td>赋值字段</td>
+ <td><select name="setting[set_title]" id="set_title"></select> 用于返回值赋值给管理字段作为存入标题。</td>
+ </tr>
+ <tr>
+ <td>like字段</td>
+ <td><select name="setting[like_title]" id="like_title"></select> 选择like字段。(解读为where '【字段名】' like '%张三%')</td>
+ </tr>
+ <tr>
+ <td>查询字段</td>
+ <td><input type="text" name="setting[select_title]" id="select_title" value="" size="40" class="input-text"> 请填写字段名如:id,title (为空则表示全部查询。非空时必须包含like字段、赋值字段、主键)</td>
+ </tr>
+ <tr>
+ <td>存入数据方式</td>
+ <td><input type="radio" name="setting[insert_type]" value="id" checked="checked"/>ID存入<input type="radio" name="setting[insert_type]" value="title"/>标题存入<input name="setting[insert_type]" type="radio" value="title_id"/>
+标题+ID存入<input name="setting[insert_type]" type="radio" value="multiple_id" id="multiple_id"/>多选ID存入</td>
+ </tr>
+</table>
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/linkfield/field_edit_form.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/linkfield/field_edit_form.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/linkfield/field_edit_form.inc.php (date 1618385775000)
@@ -0,0 +1,168 @@
+<?php
+pc_base::load_sys_class('db_factory');
+$database = pc_base::load_config('database');
+$pdo_name = 'default';
+$db = db_factory::get_instance($database)->get_database($pdo_name);
+$tbl_show = $db->query("SHOW TABLE STATUS FROM `".$database[$pdo_name]['database']."`");
+$web_tables = array();
+$web_tables_info = array();
+$pre = $database[$pdo_name]['tablepre'];
+//排除系统关键信息数据表
+$sys_tables = array($pre.'admin', $pre.'admin_panel', $pre.'admin_role', $pre.'admin_role_priv', $pre.'block', $pre.'block_history', $pre.'cache', $pre.'dbsource', $pre.'log', $pre.'urlrule', $pre.'session', $pre.'sso_admin', $pre.'sso_applications', $pre.'sso_members', $pre.'sso_messagequeue', $pre.'sso_session', $pre.'sso_settings', $pre.'site', $pre.'queue', $pre.'release_point');
+while(($rs = $db->fetch_next()) != false) {
+ if(strpos($rs['Name'], $pre) === 0 && !in_array($rs['Name'], $sys_tables) && !preg_match('/'.$pre.'poster_(\d){6}/i',$rs['Name'])) {
+ $web_tables[] = $rs['Name'];
+ }
+}
+foreach($web_tables as $key => $table) {
+ $data =$db->get_fields($table);
+ $web_tables_info[$table] = array_keys($data);
+}
+$json_web_tables_info = json_encode($web_tables_info);
+$db->free_result($tbl_show);
+?>
+<table cellpadding="2" cellspacing="1" onclick="javascript:$('#minlength').val(0);$('#maxlength').val(255);">
+ <tr>
+ <td>搜索类型</td>
+ <td><input name="setting[link_type]" type="radio" value="1"<?php if ($setting['link_type']==1){;?> checked<?php };?> /> 下拉选择框 <input name="setting[link_type]" type="radio" value="0"<?php if ($setting['link_type']==0){;?> checked<?php };?> /> 搜索选择</td>
+ </tr>
+ <tr>
+ <td>关联表名</td>
+ <td>
+ <?php if(is_array($web_tables)){?>
+ <select name="setting[table_name]" id="st_name">
+ <?php
+ foreach($web_tables as $key => $v){
+ if($v == $setting['table_name']) $select = 'selected';
+ else $select = '';
+ ?>
+ <option value='<?php echo $v?>' <?php echo $select?>><?php echo $v?></option>
+ <?php } ?>
+ </select>
+ <?php }?>
+
+ <script type="text/javascript">
+ <!--
+ var json_web_tables_info =eval(<?php echo $json_web_tables_info?>);
+ $(document).ready(function() {
+ updatemenu($('#st_name').val(),true);
+
+ $("#st_name").change(function() {
+ updatemenu($(this).trigger("select").val(),false);
+ $('#select_title').val('');
+ });
+
+ function updatemenu(table_name,seltype) {
+ var data = '';
+ $.each(json_web_tables_info, function(i,n){
+ if(i == table_name){
+ data = n;
+ return false;
+ }else{
+ return true;
+ }
+ });
+ if (data != '') {
+ update(data,'like_title','<?php echo $setting['like_title'];?>',seltype);
+ update(data,'set_id','<?php echo $setting['set_id'];?>',seltype);
+ update(data,'set_title','<?php echo $setting['set_title'];?>',seltype);
+ }else{
+ alert('数据查询错误!');
+ }
+ }
+ function update(data,rid,riddata,seltype) {
+ var str = selected = '';
+ $.each(data, function(i,n){
+ if(seltype){
+ if (n == riddata) {
+ selected ='selected';
+ }else{
+ selected ='';
+ }
+ }else{
+ selected ='';
+ }
+ str += '<option '+selected+'>'+n+'</option>';
+ });
+ $('#'+rid).html(str);
+ }
+
+ var linkage_arr = ['like_title','set_title','set_id'];
+ var linkage_value_arr = [];
+ linkage_value_arr['like_title_value'] = $("#like_title").val();
+ linkage_value_arr['set_title_value'] = $("#set_title").val();
+ linkage_value_arr['set_id_value'] = $("#set_id").val();
+ $("#like_title").change(function() {
+ linkagechange('like_title','select_title',$(this).trigger("select").val());
+ });
+ $("#set_title").change(function() {
+ $("#like_title").val($(this).trigger("select").val());
+ linkagechange('set_title','select_title',$(this).trigger("select").val());
+ });
+ $("#set_id").change(function() {
+ linkagechange('set_id','select_title',$(this).trigger("select").val());
+ });
+
+ function linkagechange(ele_from,ele_to,value){
+ var toVal = $('#'+ele_to).val();
+ var toValArr = [];
+ if(toVal){
+ toValArr = toVal.split(',');
+ if($.inArray(value,toValArr) === -1)
+ toValArr.push(value);
+ var source_value = linkage_value_arr[ele_from + '_value'];
+ var other_value = true;
+ $.each(linkage_arr, function(i,n){
+ if(n != ele_from){
+ if($('#' + n).val() == source_value){
+ other_value = false;
+ return false;
+ }
+ if($.inArray($('#' + n).val(),toValArr) === -1)
+ toValArr.push($('#' + n).val());
+ }
+ });
+ if(other_value){
+ var i = $.inArray(source_value,toValArr);
+ if(i !== -1 && source_value !== value)
+ toValArr.splice(i,1);
+ }
+ }else{
+ toValArr.push(value);
+ $.each(linkage_arr, function(i,n){
+ if(n != ele_from){
+ if($.inArray($('#' + n).val(),toValArr) === -1)
+ toValArr.push($('#' + n).val());
+ linkage_value_arr[n + '_value'] = $('#' + n).val();
+ }
+ });
+ }
+ $('#'+ele_to).val(toValArr.join(','));
+ linkage_value_arr[ele_from + '_value'] = value;
+ }
+ });
+ //-->
+ </script>
+ </td>
+ </tr>
+ <tr>
+ <td>主键</td>
+ <td><select name="setting[set_id]" id="set_id"></select> 用于返回值赋值给管理字段作为存入ID。(表里面唯一标示,比如主键)</td>
+ </tr>
+ <tr>
+ <td>赋值字段</td>
+ <td><select name="setting[set_title]" id="set_title"></select> 用于返回值赋值给管理字段作为存入标题。</td>
+ </tr>
+ <tr>
+ <td>like字段</td>
+ <td><select name="setting[like_title]" id="like_title"></select> 选择like字段。(解读为where '【字段名】' like '%张三%')</td>
+ </tr>
+ <tr>
+ <td>查询字段</td>
+ <td><input type="text" name="setting[select_title]" id="select_title" value="<?php echo $setting['select_title'];?>" size="40" class="input-text"> 请填写字段名如:id,title (为空则表示全部查询。非空时必须包含like字段、赋值字段、主键)</td>
+ </tr>
+ <tr>
+ <td>存入数据方式</td>
+ <td><input type="radio" name="setting[insert_type]" value="id" <?php if($setting['insert_type']=='id') echo 'checked';?> />ID存入<input type="radio" name="setting[insert_type]" value="title" <?php if($setting['insert_type']=='title') echo 'checked';?> />标题存入<input type="radio" name="setting[insert_type]" value="title_id" <?php if($setting['insert_type']=='title_id') echo 'checked';?> />标题+ID存入<input name="setting[insert_type]" type="radio" value="multiple_id" id="multiple_id" <?php if($setting['insert_type']=='multiple_id') echo 'checked';?> />多选ID存入</td>
+ </tr>
+</table>
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/linkfield/form.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- phpcms_code/phpcms/modules/content/fields/linkfield/form.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/linkfield/form.inc.php (date 1618385775000)
@@ -0,0 +1,168 @@
+ function linkfield($field, $value, $fieldinfo) {
+ extract($fieldinfo);
+ $setting = string2array($setting);
+
+ $get_db = pc_base::load_model("get_model");
+
+ $sel_tit=$setting['select_title']?$setting['select_title']:'*';
+
+ $sql = "SELECT ".$sel_tit." FROM `".$setting['table_name']."`";
+ $r= $get_db->query($sql);
+ while(($s = $get_db->fetch_next()) != false) {
+ $dataArr[] = $s;
+ }
+
+ if($fieldinfo['link_type']){
+ $value = str_replace('&','&',$value);
+
+ if($fieldinfo['insert_type'] == "multiple_id"){
+ $data = '<link href="statics/plugin/multiple_select/multiple-select.css" rel="stylesheet">
+ <script type="text/javascript" src="statics/plugin/multiple_select/multiple-select.js"></script>
+ <script>$(function() {
+ $("#'.$fieldinfo['field'].'").multipleSelect({width:"100%", filter: true, minimumCountSelected: 4, placeholder:"≡请选择≡", selectAll:false, allSelected:"全部被选中", countSelected: "# / % 已选择"});
+ });</script>';
+ $data1 = $data2 = '';
+ $data .= '<input type="hidden" name="info['.$fieldinfo['field'].'][]" value="-99"><select name="info['.$fieldinfo['field'].'][]" id="'.$fieldinfo['field'].'" multiple="multiple">';
+ }else{
+ $data = '<select name="info['.$fieldinfo['field'].']" id="'.$fieldinfo['field'].'"><option>≡请选择≡</option>';
+ }
+
+ foreach($dataArr as $v) {
+ if($fieldinfo['insert_type']=="id"){
+ $output_type = $v[$fieldinfo['set_id']];
+ }elseif($fieldinfo['insert_type']=="title"){
+ $output_type = $v[$fieldinfo['set_title']];
+ }elseif($fieldinfo['insert_type']=="title_id"){
+ $output_type = $v[$fieldinfo['set_title']].'_'.$v[$fieldinfo['set_id']];
+ }else{
+ $output_type = $v[$fieldinfo['set_id']];
+ }
+
+ if($fieldinfo['insert_type'] == "multiple_id" && $value){
+ $value = trim($value,'|');
+ $arr_value = explode('|',$value);
+ if(in_array($output_type,$arr_value))
+ $data1 .= "<option value='".$output_type."' selected>".$v[$fieldinfo['set_title']]."</option>\n";
+ else
+ $data2 .= "<option value='".$output_type."'>".$v[$fieldinfo['set_title']]."</option>\n";
+ }else{
+ if($output_type == $value) $select = 'selected';
+ else $select = '';
+ $data .= "<option value='".$output_type."' ".$select.">".$v[$fieldinfo['set_title']]."</option>\n";
+ }
+ }
+ if($fieldinfo['insert_type'] == "multiple_id" && $value)
+ $data .= $data1.$data2;
+ $data .= '</select>';
+
+ }else{
+ $multiple_field_value = '';
+ $multiple_field_value_escape = '';
+ $cat_field_value = '';
+ $data_json = json_encode($dataArr);
+
+ if($fieldinfo['insert_type'] == "multiple_id"){
+ if(strpos($value, '_') !== false)
+ $value = preg_match('/(\d+)/',$value,$a) ? $a[1] : '';
+
+ $value = trim($value,'|');
+ $value_escape = str_replace('|',',',$value);
+
+ if($value && preg_match('/^[0-9,]+$/i',$value_escape)){
+ $value_arr = explode(',', $value_escape);
+ foreach($dataArr as $v) {
+ if(in_array($v[$fieldinfo['set_id']],$value_arr))
+ $multiple_field_value .= '<li class="search_view" id="search_view_' . $v[$fieldinfo['set_id']] . '"><span>' . $v[$fieldinfo['set_title']] . '</span><a href="javascript:;" class="close" onclick="remove_serach' . $field . '(\'' . $v[$fieldinfo['set_title']] . '\',\'' . $v[$fieldinfo['set_id']] . '\')"></a></li>';
+ }
+
+ $multiple_field_value_escape = str_replace("'","\'",$multiple_field_value);
+ }else{
+ $value = '';
+ }
+ }elseif($fieldinfo['insert_type'] == "title_id" && $value){
+ $exp_value = explode('_',$value);
+ $cat_field_value = $exp_value[0];
+ }elseif($fieldinfo['insert_type'] == "title" && $value){
+ $cat_field_value = $value;
+ }
+ $data = <<<EOT
+ <style type="text/css">
+ .content_div{ margin-top:0px; font-size:14px; position:relative}
+ #search_div{$field}{z-index: 2; position:absolute; top:23px; border:1px solid #dfdfdf; text-align:left; padding:1px; left:0px;*left:0px; width:263px;*width:260px; background-color:#FFF; display:none; font-size:12px;}
+ #search_div{$field} li{ line-height:24px;cursor:pointer}
+ #search_div{$field} li a{ padding-left:6px;display:block}
+ #search_div{$field} li a:hover, #search_div{$field} li:hover{ background-color:#e2eaff}
+ #search_view{$field}{padding-bottom:0;}
+ #search_view{$field} li.search_view{float: left;margin: 3px 10px 3px 0;padding-left: 5px;padding-bottom: 2px;}
+ #search_view{$field} li.search_view span{margin-right: 30px;}
+ </style>
+ <div class="content_div">
+ <input type="text" size="41" id="cat_search{$field}" value="{$cat_field_value}" onfocus="if(this.value == this.defaultValue) this.value = ''" onblur="if(this.value.replace(' ','') == '') this.value = this.defaultValue;" class='input-text'><input name="info[{$fieldinfo['field']}]" id="{$fieldinfo['field']}" type="hidden" class='input-text' value="{$value}" size="41"/>
+ <ul id="search_div{$field}"></ul>
+ <ul id="search_view{$field}" class="list-dot">{$multiple_field_value}</ul>
+ </div>
+ <script type="text/javascript" language="javascript" >
+ var str_title = '{$multiple_field_value_escape}';
+ var data_json = eval({$data_json});
+ function remove_serach{$field}(title,id){
+ $('#search_view_'+id).remove();
+ str_title = $('#search_view{$field}').html();
+ var ele_value = $("#{$fieldinfo['field']}").val();
+ ele_value = ele_value.replace('|' + id,'');
+ ele_value = ele_value.replace(id,'');
+ $("#{$fieldinfo['field']}").val(ele_value);
+ }
+ function setvalue{$field}(title,id){
+ var title = title;
+ var id = id;
+ var type = "{$fieldinfo['insert_type']}";
+ if(type == "id"){
+ $("#{$fieldinfo['field']}").val(id);
+ }else if(type == "title"){
+ $("#{$fieldinfo['field']}").val(title);
+ }else if(type == "title_id"){
+ $("#{$fieldinfo['field']}").val(title+'_'+id);
+ }
+ else if(type == "multiple_id"){
+ var elem_value = $("#{$fieldinfo['field']}").val();
+ if(title && elem_value.indexOf(id) < 0){
+ str_title = str_title + '<li class="search_view" id="search_view_' + id + '"><span>' + title + '</span><a href="javascript:;" class="close" onclick="remove_serach{$field}(\'' + title + '\',\'' + id + '\')"></a></li>';
+ elem_value = (elem_value)?elem_value + '|' + id:id;
+ $("#{$fieldinfo['field']}").val(elem_value);
+ $('#search_view{$field}').html(str_title);
+ }
+ }
+ $("#cat_search{$field}").val(title);
+ $('#search_div{$field}').hide();
+ }
+
+ $(document).ready(function(){
+ $('#cat_search{$field}').keyup(function(){
+ var value = $("#cat_search{$field}").val();
+ if (value.length > 0){
+ var str = '';
+ var ele_value = $("#{$fieldinfo['field']}").val();
+ var ele_value_arr = ele_value.split('|');
+ value = value.replace(/^\s+|\s+$/gm,'');
+ $.each(data_json, function(i,n){
+ if($.inArray(n.{$fieldinfo['set_id']}, ele_value_arr) === -1){
+ if(n.{$fieldinfo['like_title']}.indexOf(value) !== -1 || value == '')
+ str += '<li onclick=\'setvalue{$field}("'+n.{$fieldinfo['set_title']}+'","'+n.{$fieldinfo['set_id']}+'");\'>'+n.{$fieldinfo['set_title']}+'</li>';
+ }
+ });
+ if (str != null && str!= '') {
+ $('#search_div{$field}').html(str);
+ $('#search_div{$field}').show();
+ } else {
+ $('#search_div{$field}').hide();
+ }
+ } else {
+ $('#search_div{$field}').hide();
+ }
+ });
+ })
+ </script>
+EOT;
+ }
+ return $data;
+ }
\ No newline at end of file
Index: phpcms_code/phpcms/modules/content/fields/linkfield/input.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>GBK
===================================================================
--- phpcms_code/phpcms/modules/content/fields/linkfield/input.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/linkfield/input.inc.php (date 1618385775000)
@@ -0,0 +1,10 @@
+ function linkfield($field, $value) {
+ if($this->fields[$field]['link_type'] && $this->fields[$field]['insert_type'] == 'multiple_id') {
+ if(!is_array($value) || empty($value)) return false;
+ array_shift($value);
+ $value = implode("|",$value);
+ return $value;
+ } else {
+ if(!empty($value)) return $value;
+ }
+ }
Index: phpcms_code/phpcms/modules/content/fields/linkfield/output.inc.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>GBK
===================================================================
--- phpcms_code/phpcms/modules/content/fields/linkfield/output.inc.php (date 1618385775000)
+++ phpcms_code/phpcms/modules/content/fields/linkfield/output.inc.php (date 1618385775000)
@@ -0,0 +1,3 @@
+ function linkfield($field, $value) {
+ return $value;
+ }
\ No newline at end of file
Index: phpcms_code/statics/plugin/multiple_select/multiple-select.css
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>GBK
===================================================================
--- phpcms_code/statics/plugin/multiple_select/multiple-select.css (date 1618385775000)
+++ phpcms_code/statics/plugin/multiple_select/multiple-select.css (date 1618385775000)
@@ -0,0 +1,191 @@
+/**
+ * @author zhixin wen <wenzhixin2010@gmail.com>
+ */
+
+.ms-parent {
+ display: inline-block;
+ position: relative;
+ vertical-align: middle;
+}
+
+.ms-choice {
+ display: block;
+ width: 100%;
+ height: 26px;
+ padding: 0;
+ overflow: hidden;
+ cursor: pointer;
+ border: 1px solid #aaa;
+ text-align: left;
+ white-space: nowrap;
+ line-height: 26px;
+ color: #444;
+ text-decoration: none;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ background-color: #fff;
+}
+
+.ms-choice.disabled {
+ background-color: #f4f4f4;
+ background-image: none;
+ border: 1px solid #ddd;
+ cursor: default;
+}
+
+.ms-choice > span {
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 20px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: block;
+ padding-left: 8px;
+}
+
+.ms-choice > span.placeholder {
+ color: #999;
+}
+
+.ms-choice > div {
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 20px;
+ height: 25px;
+ background: url('multiple-select.png') left top no-repeat;
+}
+
+.ms-choice > div.open {
+ background: url('multiple-select.png') right top no-repeat;
+}
+
+.ms-drop {
+ width: 100%;
+ overflow: hidden;
+ display: none;
+ margin-top: -1px;
+ padding: 0;
+ position: absolute;
+ z-index: 1000;
+ background: #fff;
+ color: #000;
+ border: 1px solid #aaa;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+}
+
+.ms-drop.bottom {
+ top: 100%;
+ -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
+ -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
+ box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
+}
+
+.ms-drop.top {
+ bottom: 100%;
+ -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
+ -moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
+ box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
+}
+
+.ms-search {
+ display: inline-block;
+ margin: 0;
+ min-height: 26px;
+ padding: 4px;
+ position: relative;
+ white-space: nowrap;
+ width: 100%;
+ z-index: 10000;
+}
+
+.ms-search input {
+ width: 100%;
+ height: auto !important;
+ min-height: 24px;
+ padding: 0 20px 0 5px;
+ margin: 0;
+ outline: 0;
+ font-family: sans-serif;
+ font-size: 1em;
+ border: 1px solid #aaa;
+ -webkit-border-radius: 0;
+ -moz-border-radius: 0;
+ border-radius: 0;
+ -webkit-box-shadow: none;
+ -moz-box-shadow: none;
+ box-shadow: none;
+ background: #fff url('multiple-select.png') no-repeat 100% -22px;
+ background: url('multiple-select.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
+ background: url('multiple-select.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
+ background: url('multiple-select.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
+ background: url('multiple-select.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
+ background: url('multiple-select.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
+ background: url('multiple-select.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
+}
+
+.ms-search, .ms-search input {
+ -webkit-box-sizing: border-box;
+ -khtml-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ -ms-box-sizing: border-box;
+ box-sizing: border-box;
+}
+
+.ms-drop ul {
+ overflow: auto;
+ margin: 0;
+ padding: 5px 8px;
+}
+
+.ms-drop ul > li {
+ list-style: none;
+ display: list-item;
+ background-image: none;
+ position: static;
+}
+
+.ms-drop ul > li .disabled {
+ opacity: .35;
+ filter: Alpha(Opacity=35);
+}
+
+.ms-drop ul > li.multiple {
+ display: block;
+ float: left;
+}
+
+.ms-drop ul > li.group {
+ clear: both;
+}
+
+.ms-drop ul > li.multiple label {
+ width: 100%;
+ display: block;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.ms-drop ul > li label {
+ font-weight: normal;
+ display: block;
+ white-space: nowrap;
+}
+
+.ms-drop ul > li label.optgroup {
+ font-weight: bold;
+}
+
+.ms-drop input[type="checkbox"] {
+ vertical-align: middle;
+}
+
+.ms-drop .ms-no-results {
+ display: none;
+}
Index: phpcms_code/statics/plugin/multiple_select/multiple-select.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>GBK
===================================================================
--- phpcms_code/statics/plugin/multiple_select/multiple-select.js (date 1618385775000)
+++ phpcms_code/statics/plugin/multiple_select/multiple-select.js (date 1618385775000)
@@ -0,0 +1,782 @@
+/**
+ * @author zhixin wen <wenzhixin2010@gmail.com>
+ * @version 1.2.1
+ *
+ * http://wenzhixin.net.cn/p/multiple-select/
+ */
+
+(function ($) {
+
+ 'use strict';
+
+ // it only does '%s', and return '' when arguments are undefined
+ var sprintf = function (str) {
+ var args = arguments,
+ flag = true,
+ i = 1;
+
+ str = str.replace(/%s/g, function () {
+ var arg = args[i++];
+
+ if (typeof arg === 'undefined') {
+ flag = false;
+ return '';
+ }
+ return arg;
+ });
+ return flag ? str : '';
+ };
+
+ var removeDiacritics = function (str) {
+ var defaultDiacriticsRemovalMap = [
+ {'base':'A', 'letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},
+ {'base':'AA','letters':/[\uA732]/g},
+ {'base':'AE','letters':/[\u00C6\u01FC\u01E2]/g},
+ {'base':'AO','letters':/[\uA734]/g},
+ {'base':'AU','letters':/[\uA736]/g},
+ {'base':'AV','letters':/[\uA738\uA73A]/g},
+ {'base':'AY','letters':/[\uA73C]/g},
+ {'base':'B', 'letters':/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},
+ {'base':'C', 'letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},
+ {'base':'D', 'letters':/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},
+ {'base':'DZ','letters':/[\u01F1\u01C4]/g},
+ {'base':'Dz','letters':/[\u01F2\u01C5]/g},
+ {'base':'E', 'letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},
+ {'base':'F', 'letters':/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},
+ {'base':'G', 'letters':/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},
+ {'base':'H', 'letters':/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},
+ {'base':'I', 'letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},
+ {'base':'J', 'letters':/[\u004A\u24BF\uFF2A\u0134\u0248]/g},
+ {'base':'K', 'letters':/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},
+ {'base':'L', 'letters':/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},
+ {'base':'LJ','letters':/[\u01C7]/g},
+ {'base':'Lj','letters':/[\u01C8]/g},
+ {'base':'M', 'letters':/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},
+ {'base':'N', 'letters':/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},
+ {'base':'NJ','letters':/[\u01CA]/g},
+ {'base':'Nj','letters':/[\u01CB]/g},
+ {'base':'O', 'letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},
+ {'base':'OI','letters':/[\u01A2]/g},
+ {'base':'OO','letters':/[\uA74E]/g},
+ {'base':'OU','letters':/[\u0222]/g},
+ {'base':'P', 'letters':/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},
+ {'base':'Q', 'letters':/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},
+ {'base':'R', 'letters':/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},
+ {'base':'S', 'letters':/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},
+ {'base':'T', 'letters':/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},
+ {'base':'TZ','letters':/[\uA728]/g},
+ {'base':'U', 'letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},
+ {'base':'V', 'letters':/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},
+ {'base':'VY','letters':/[\uA760]/g},
+ {'base':'W', 'letters':/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},
+ {'base':'X', 'letters':/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},
+ {'base':'Y', 'letters':/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},
+ {'base':'Z', 'letters':/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},
+ {'base':'a', 'letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},
+ {'base':'aa','letters':/[\uA733]/g},
+ {'base':'ae','letters':/[\u00E6\u01FD\u01E3]/g},
+ {'base':'ao','letters':/[\uA735]/g},