Import.html 4.44 KB
Newer Older
1
<table border="0" cellpadding="1" cellspacing="1" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers">
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
	<tr>
		<th colspan="2"><f:translate key="importdata_selectFileToImport" /></th>
	</tr>
	<tr>
		<td valign="top">
			<f:translate key="importdata_file" />
			<f:be.buttons.csh table="xMOD_tx_impexp" field="importFile" />
		</td>
		<td>
			<f:form.select name="tx_impexp[file]" value="{inData.file}" options="{fileSelectOptions}" />
			<br />
			{importPath}
			<f:if condition="{import.compress}">
				<f:then></f:then>
				<f:else><br /><span class="text-danger"><f:translate key="importdata_noteNoDecompressorAvailable" /></span></f:else>

			</f:if>
		</td>
	</tr>
	<tr>
		<th colspan="2">
			<f:translate key="importdata_importOptions" />
		</th>
	</tr>
	<tr>
		<td valign="top">
			<f:translate key="importdata_update" />
			<f:be.buttons.csh table="xMOD_tx_impexp" field="update" />
		</td>
		<td>
			<f:form.checkbox name="tx_impexp[do_update]" id="checkDo_update" value="1"
											 checked="{inData.do_update} == 1" />

			<label for="checkDo_update"><f:translate key="importdata_updateRecords" /></label>
			<br/>
			<em>(<f:translate key="importdata_thisOptionRequiresThat" />)</em>
			<f:if condition="{inData.do_update}">
				<hr/>
				<input type="checkbox" name="tx_impexp[global_ignore_pid]" id="checkGlobal_ignore_pid" value="1"
							 checked="{inData.global_ignore_pid} == 1" />
				<label for="checkGlobal_ignore_pid"><f:translate key="importdata_ignorePidDifferencesGlobally" /></label><br/>
				<em>(<f:translate key="importdata_ifYouSetThis" />)</em>
			</f:if>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<f:translate key="importdata_options" />
			<f:be.buttons.csh table="xMOD_tx_impexp" field="options" />
		</td>
		<td>
			<f:form.checkbox name="tx_impexp[notShowDiff]" id="checkNotShowDiff" value="1"
						 checked="{inData.notShowDiff} == 1" />
			<label for="checkNotShowDiff"><f:translate key="importdata_doNotShowDifferences" /></label><br/>
			<em>(<f:translate key="importdata_greenValuesAreFrom" />)</em>
			<br/><br/>
			<f:if condition="{isAdmin}">
				<f:form.checkbox name="tx_impexp[allowPHPScripts]" id="checkAllowPHPScripts" value="1"
												 checked="{inData.allowPHPScripts} == 1" />
				<label for="checkAllowPHPScripts"><f:translate key="importdata_allowToWriteBanned" /></label><br/>
				<f:if condition="!{inData.do_update}">
					<br/>
					<f:form.checkbox name="tx_impexp[force_all_UIDS]" id="checkForce_all_UIDS" value="1"
													 checked="{inData.force_all_UIDS} == 1" />
					<label for="checkForce_all_UIDS">
						<span class="text-danger">
							<f:translate key="importdata_force_all_UIDS" />
						</span>
					</label><br/>
					<em>(<f:translate key="importdata_force_all_UIDS_descr" />)</em>
				</f:if>
			</f:if>
		</td>
	</tr>
	<tr>
		<td valign="top">
			<f:translate key="importdata_action" />
			<f:be.buttons.csh table="xMOD_tx_impexp" field="action" />
		</td>
		<td>
			<f:if condition="{inData.import_file}">
				<f:then>
					<input class="btn btn-default" type="submit" name="tx_impexp[new_import]" value="{f:translate(key: 'importdata_newImport')}" />
				</f:then>
				<f:else>
					<input class="btn btn-default" type="submit" value="{f:translate(key: 'importdata_preview')}" />
					<f:if condition="{inData.file}">
						- <input type="hidden" name="not-set" value="1" id="t3js-submit-field" />
						<f:if condition="{inData.do_update}">
							<f:then>
								<input class="btn btn-default t3js-confirm-trigger" type="button" value="{f:translate(key: 'importdata_update_299e')}" />
							</f:then>
							<f:else>
								<input class="btn btn-default t3js-confirm-trigger" type="button" value="{f:translate(key: 'importdata_import')}"
											 name="tx_impexp[import_file]" data-title="{f:translate(key: 'pleaseConfirm')}" data-message="{f:translate(key: 'importdata_areYouSure')}" />
							</f:else>
						</f:if>
					</f:if>
				</f:else>
			</f:if>
			<input type="hidden" name="tx_impexp[action]" value="import" />
		</td>
	</tr>
	<tr>
		<td valign="top">
			<f:translate key="importdata_enableLogging" />
			<f:be.buttons.csh table="xMOD_tx_impexp" field="enableLogging" />
		</td>
		<td>
			<f:form.checkbox name="tx_impexp[enableLogging]" id="checkEnableLogging" value="1"
											 checked="{inData.enableLogging} == 1" />
			<label for="checkEnableLogging"><f:translate key="importdata_writeIndividualDbActions" /></label><br/>
			<em>(<f:translate key="importdata_thisIsDisabledBy" />)</em>
		</td>
	</tr>
</table>