mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	show date attributes as range
This commit is contained in:
		
							parent
							
								
									6ead3fe425
								
							
						
					
					
						commit
						cc7618fde1
					
				|  | @ -263,7 +263,14 @@ function typeahead() { /* {{{ */ | |||
| ?>
 | ||||
| <tr> | ||||
| 	<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
 | ||||
| 	<td><?php $this->printAttributeEditField($attrdef, isset($attributes[$attrdef->getID()]) ? $attributes[$attrdef->getID()] : '', 'attributes', true) ?></td>
 | ||||
| 	<td> | ||||
| <?php | ||||
| 					if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_date) | ||||
| 						echo $this->getAttributeEditField($attrdef, !empty($attributes[$attrdef->getID()]['from']) ? getReadableDate(makeTsFromDate($attributes[$attrdef->getID()]['from'])) : '', 'attributes', true, 'from').'  '.getMLText('to').' '.$this->getAttributeEditField($attrdef, !empty($attributes[$attrdef->getID()]['to']) ? getReadableDate(makeTsFromDate($attributes[$attrdef->getID()]['to'])) : '', 'attributes', true, 'to'); | ||||
| 					else | ||||
| 						$this->printAttributeEditField($attrdef, isset($attributes[$attrdef->getID()]) ? $attributes[$attrdef->getID()] : '', 'attributes', true) | ||||
| ?>
 | ||||
| 	</td> | ||||
| </tr> | ||||
| 
 | ||||
| <?php | ||||
|  | @ -370,7 +377,13 @@ function typeahead() { /* {{{ */ | |||
| ?>
 | ||||
| <tr> | ||||
| 	<td><?php echo htmlspecialchars($attrdef->getName()); ?>:</td>
 | ||||
| 	<td><?php $this->printAttributeEditField($attrdef, isset($attributes[$attrdef->getID()]) ? $attributes[$attrdef->getID()] : '', 'attributes', true) ?></td>
 | ||||
| 	<td> | ||||
| <?php | ||||
| 					if($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_date) | ||||
| 						echo $this->getAttributeEditField($attrdef, !empty($attributes[$attrdef->getID()]['from']) ? getReadableDate(makeTsFromDate($attributes[$attrdef->getID()]['from'])) : '', 'attributes', true, 'from').'  '.getMLText('to').' '.$this->getAttributeEditField($attrdef, !empty($attributes[$attrdef->getID()]['to']) ? getReadableDate(makeTsFromDate($attributes[$attrdef->getID()]['to'])) : '', 'attributes', true, 'to'); | ||||
| 					else | ||||
| 						$this->printAttributeEditField($attrdef, isset($attributes[$attrdef->getID()]) ? $attributes[$attrdef->getID()] : '', 'attributes', true) | ||||
| ?></td>
 | ||||
| </tr> | ||||
| 
 | ||||
| <?php | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann