<!-- 

	All content on this website (including text, images, source
	code and any other original works), unless otherwise noted,
	is licensed under a Creative Commons License.
	
	http://creativecommons.org/licenses/by-nc-sa/2.5/
	
	Copyright (C) Open-Xchange Inc., 2006-2011
	Mail: info@open-xchange.com 
	
	@author Andreas Mayer <andreas.mayer@open-xchange.com>

 -->

<div xmlns:ox="http://localhost/html/dtd/ox.dtd">
<ox:popupwindow id="attachPopupTemplate" class="floatingdivAttachments" caption="Select Attachments">
	<div id="attachmentsGrid">
		<div class="greywrapper">
		 	<table width="100%" cellpadding="2" cellspacing="2" border="0" STYLE="table-layout:fixed">		
			 	<colgroup>
				    <col width="12%" />
				    <col width="25%" />
				    <col width="40%" />
				    <col width="23%" />
				</colgroup>
				<tr>
			 		<td style="padding-left:5px;" ox:i18n="">File:</td>
					<td style="padding-top:5px;padding-bottom:5px" colspan="3">
					 	<form name="attFile" action="" method="post" enctype="multipart/form-data" target="hiddenframe" style="margin: 0; padding: 0;" accept-charset="UTF-8">
						</form>			 	
					</td>				
			 	</tr>				
				<tr>
					<td style="padding-left:5px; padding-right: 5px; vertical-align: middle;" rowspan="2" ox:i18n="">Attachment</td>
					<td style="vertical-align:bottom;">
						<ox:button class="greyground" style="margin: 0; width: 100%;" onclick="triggerEvent('OX_Attachments_Add_File');" ox:i18n="">Add -&gt;</ox:button>
					</td>						
					<td colspan="2" rowspan="2">
						<div id="sel_files_area" class="background-color-content borderDefault border-color-design" style="overflow:auto; width:29em; height:100px; position:relative"></div>
<!--						<select id="selectedFilesArea" size="5" multiple="multipe" style="width: 100%;"></select>-->
					</td>
				</tr>
				<tr>
					<td style="vertical-align:top;">
						<ox:button class="greyground" style="margin: 0; width: 100%;" onclick="triggerEvent('OX_Attachments_Remove_File');" ox:i18n="">Remove</ox:button>
					</td>
				</tr>
		 	</table>
		</div>         
	 	<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>	
				<td>
					<ox:button class="blueground" style="float:right;" ox:i18n="" onclick="triggerEvent('OX_Attachment_Dialog_Cancel');">Cancel</ox:button>
					<ox:button class="blueground" style="float:right;" ox:i18n="" onclick="triggerEvent('OX_Attachment_Dialog_OK');">OK</ox:button>					
				</td>						
			</tr>	
	 	</table>
	</div>
</ox:popupwindow>

<ox:popupwindow id="attachInfostorePopupTemplate" class="floatingdivAttachments" caption="Select Attachments" style="height:400px;">
	<div id="attachInfostoreGrid">
		<div class="greywrapper">
			<table width="100%" cellpadding="0" cellspacing="2" border="0" STYLE="table-layout:fixed">	
				<colgroup>
				    <col width="40%" />
				    <col width="60%" />
				</colgroup>	
				<tr>
			 		<td style="vertical-align:top; border: 1px solid #c0c0c0; background-color: #fff;">
			 			<div id="folder_tree_attachment" style="height:318px; width: 100%" class="tree-popup-inner-div border-color-image">&#x00a0;&#x00a0;</div>
			 		</td>
					<td style="vertical-align:top; border: 1px solid #c0c0c0; background-color: #fff;">
		 				<div id="attachInfostorGridHeader" style="height: 1.6em;"></div>
		 				<div style="height:300px; overflow:auto">
		 					<div id="attachInfostorGridContent" style="position: relative; height: 300px;"></div>
		 				</div>
					</td>				
			 	</tr>			 					
		 	</table>
		</div>         
	 	<table width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>	
				<td>
					<ox:button class="blueground" style="float:right;" ox:i18n="" onclick="triggerEvent('OX_AttachInfostore_Dialog_Cancel');">Cancel</ox:button>
					<ox:button class="blueground" style="float:right;" ox:i18n="" onclick="triggerEvent('OX_AttachInfostore_OK');">OK</ox:button>					
				</td>						
			</tr>	
	 	</table>
	</div>
</ox:popupwindow>
</div>