| 
									
										
										
										
											2015-08-26 20:16:53 +03:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2015-12-16 17:57:44 +03:00
										 |  |  | script('richdocuments', 'admin'); | 
					
						
							| 
									
										
										
										
											2015-08-26 20:16:53 +03:00
										 |  |  | ?>
 | 
					
						
							| 
									
										
										
										
											2014-04-01 18:27:11 +02:00
										 |  |  | <div class="section" id="documents"> | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 	<h2><?php p($l->t('Documents')) ?></h2>
 | 
					
						
							| 
									
										
										
										
											2014-06-13 16:19:09 +03:00
										 |  |  | 	<p><?php p($l->t('MS Word support (requires openOffice/libreOffice)')) ?></p>
 | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 	<p> | 
					
						
							|  |  |  | 		<input type="radio" name="docs_converter" value="local" id="docs_converter_local"  | 
					
						
							| 
									
										
										
										
											2014-11-06 19:31:25 +03:00
										 |  |  | 			   <?php print_unescaped($_['converter']=='local' ? 'checked="checked"' : '') ?> 
 | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 			   /> | 
					
						
							|  |  |  | 		<label for="docs_converter_local"><?php p($l->t('Local')) ?></label><br>
 | 
					
						
							| 
									
										
										
										
											2014-06-13 16:19:09 +03:00
										 |  |  | 		<em><?php p($l->t('openOffice/libreOffice is installed on this server. Path to binary is provided via preview_libreoffice_path in config.php')) ?></em>
 | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 	</p> | 
					
						
							|  |  |  | 	<p> | 
					
						
							|  |  |  | 		<input type="radio" name="docs_converter" value="external" id="docs_converter_external" | 
					
						
							| 
									
										
										
										
											2014-11-06 19:31:25 +03:00
										 |  |  | 			   <?php print_unescaped($_['converter']=='external' ? 'checked="checked"' : '') ?> 
 | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 			   /> | 
					
						
							|  |  |  | 		<label for="docs_converter_external"><?php p($l->t('External')) ?></label><br>
 | 
					
						
							| 
									
										
										
										
											2014-06-13 16:19:09 +03:00
										 |  |  | 		<em><?php p($l->t('openOffice/libreOffice is installed on external server running a format filter server')) ?></em>
 | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 	</p> | 
					
						
							| 
									
										
										
										
											2014-11-06 19:31:25 +03:00
										 |  |  | 	<p> | 
					
						
							|  |  |  | 		<input type="radio" name="docs_converter" value="off" id="docs_converter_off" | 
					
						
							|  |  |  | 			   <?php print_unescaped($_['converter']=='off' ? 'checked="checked"' : '') ?> 
 | 
					
						
							|  |  |  | 			   /> | 
					
						
							|  |  |  | 		<label for="docs_converter_off"><?php p($l->t('Disabled')) ?></label><br>
 | 
					
						
							|  |  |  | 		<em><?php p($l->t('No MS Word support')) ?></em>
 | 
					
						
							|  |  |  | 	</p> | 
					
						
							|  |  |  | 	<div id="docs_extra" <?php print_unescaped($_['converter']!=='external' ? 'style="display:none"' : '') ?>>
 | 
					
						
							| 
									
										
										
										
											2014-03-31 20:27:07 +03:00
										 |  |  | 	<input type="text" name="docs_url" id="docs_url"  | 
					
						
							|  |  |  | 		   value="<?php p($_['converter_url'])?>"  | 
					
						
							|  |  |  | 		   original-title="<?php p($l->t('scheme://domain.tld[:port]')) ?>"  | 
					
						
							|  |  |  | 		   style="width:250px;" | 
					
						
							|  |  |  | 		   /> | 
					
						
							|  |  |  | 	<br /><em><?php p($l->t('Server URL')) ?></em>
 | 
					
						
							|  |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2014-07-09 18:43:48 +03:00
										 |  |  | 	<br /><button type="button" id="docs_apply"><?php p($l->t('Apply and test')) ?></button>
 | 
					
						
							|  |  |  | 	<span id="documents-admin-msg" class="msg"></span> | 
					
						
							| 
									
										
										
										
											2014-04-01 18:27:11 +02:00
										 |  |  | </div> |