Location: PHPKode > projects > Article Manager > pm30/cgi/templates/admin/ta_export.htm
%%TEMPLATE:adminheader%%
%%TEMPLATE:adminheader_db%%

<SCRIPT LANGUAGE="JavaScript">
<!-- 
	function Select(x){
		l=document.exportform;n=l.elements.length;var i=0;
		for(i=0;i<n-13;i++){
			l.elements[i].checked=x;
		}
	}
	function checkFirstline(){
		document.forms[0].firstline_names.checked = true;
	}
	function startExport(){
		if(document.forms[0].format[2].checked == true){
			document.forms[0].action = 'admin.cgi/pm.xls';
		}
		document.forms[0].submit();
	}
//-->
</script>

<center>
<font color="#333333" size="2" face="Verdana, Verdana"><b>
Export Database
</b></font>
<table border=0>
<tr><td>

<form action=admin.cgi method=post name=exportform>
<input type=hidden name=realaction value=exported>

<table border=0 cellpadding=3 cellspacing=3>
<tr>
 <td>
	<font size=2 face="Verdana,Verdana">
	Select database fields to be exported:
	</font>
	<br>
	<table border=1 cellpadding=3 cellspacing=3 disabledbgcolor=#efefef valign=top>
	<tr valign=top><td valign=top>
	%%base_checkbox%%
	<font size=1><a href="javascript:Select(1)">Check</a> or 
	<a href="javascript:Select(0)">uncheck</a> all fields.</font>
	</td></tr>
	</table>

<p>
 </td>
 </tr>
 <tr>
 <td valign=top>
	<font size=2 face="Verdana,Verdana">
	<input type=checkbox name=firstline_names value=yes checked>
	Put field names to the first line.

	<br>
	<input type=checkbox name=remove_duplicates value=yes>
	Remove duplicates.

	<br>
	Export only where <select name=only1_field> %%base_dropdown%% </select> equals to <input type=text size=20 name=only1_text>
	<br>
	Export only where <select name=only2_field> %%base_dropdown%% </select> equals to <input type=text size=20 name=only2_text>
	<br>
	Export only where <select name=only3_field> %%base_dropdown%% </select> equals to <input type=text size=20 name=only3_text>

	<p>

	Export Format: 
		<input type=radio name=format value=delimited checked> Delimeted  with <input type=text name=delimiter size=2 value="|">
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type=radio name=format value=csv onClick="checkFirstline()"> CSV
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type=radio name=format value=excel onClick="checkFirstline()"> Excel %%excel_warning%%
 </td>
</tr>
</table>
<input type=button name=button value=Export onClick="startExport()">
</form>

<SCRIPT LANGUAGE="JavaScript">
<!--
%%last_checked%%
//-->
</script>

</td></tr>
</table>
</center>

%%TEMPLATE:adminfooter%%
Return current item: Article Manager