[Tool/Web/Other] Developer's swiss knife
#10

Small update in zone editor - plain text export format removed.
Added customizable template - now user defines, how result should look like.

Example (exporting to something like SQL query):
PHP Code:
('<(MinX)>''<(MaxX)>''<(MinY)>''<(MaxY)>''<(ColorHex)>'), 
(I pressed Enter in the end, and added line break. Now all templates will have their own line in result)

Result:
PHP Code:
('-1291.01''-791.01''1960.32''2460.32''ffffff'),
(
'-830.69''-330.69''1050.26''1550.26''ffffff'),
(
'-2407.41''-1907.41''1246.03''1746.03''ffffff'),
(
'555.56''1055.56''1785.71''2285.71''ffffff'), 
Now only have to add few lines, and query is done:
PHP Code:
INSERT INTO `my_table` (`min_x`, `max_x`, `min_y`, `max_y`, `color`) VALUES  
('-1291.01''-791.01''1960.32''2460.32''ffffff'),
(
'-830.69''-330.69''1050.26''1550.26''ffffff'),
(
'-2407.41''-1907.41''1246.03''1746.03''ffffff'),
(
'555.56''1055.56''1785.71''2285.71''ffffff'); 
All available variables (such as <(Name)>, <(ColorHex)>...) are listed in export menu.
Hope this thing will help anyone a bit.
Reply


Messages In This Thread
Developer's swiss knife - by therainycat - 25.04.2014, 17:01
Re: Developer's swiss knife - by Alex Magaсa - 25.04.2014, 17:13
Re: Developer's swiss knife - by Pottus - 25.04.2014, 20:06
Re: Developer's swiss knife - by Jochemd - 25.04.2014, 20:10
Re: Developer's swiss knife - by therainycat - 26.04.2014, 13:27
Re: Developer's swiss knife - by forgottenkings - 26.04.2014, 14:10
Re: Developer's swiss knife - by LeGGGeNNdA - 26.04.2014, 14:20
Re: Developer's swiss knife - by therainycat - 26.04.2014, 14:24
Re: Developer's swiss knife - by Djole1337 - 26.04.2014, 17:07
Re: Developer's swiss knife - by therainycat - 26.04.2014, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)