Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/sql_tree_import.htm
<!-- TITLE: Import Categories -->


<script type="text/javascript">

 function OpenPIDWin(){
   var winX = window.screen.width/2 - 250;
   var winY = window.screen.height/2 - 75;

   popUp('##PAGE_URL##pg=pid_popup&cid='+document.frm.pid.value,
     'SQLTreePopUp_'+Math.floor(Math.random()*1000), winX, winY, 500, 150);
 }

</script>


<form method="post" name="frm" enctype="multipart/form-data">

<input type=hidden name=token value="##TOKEN##">
<input type=hidden name=go value=1>


<table border=0 cellspacing=0 cellpadding=1 width="100%">

        <tr>
          <td><b>Target ##CATEGORY##</td>
          <td>

<input type=hidden name=pid value="##pid##">

<table border=0>
<tr>
<td class=txt8>

<font color=blue>

<div id=category>
##parent##
</div>

</td>
<td class=txt8>

&nbsp;
<b><a href="#" OnClick="OpenPIDWin()">Change</a></b>

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

</td>
</tr>

<tr><td><b>File</td>
<td><input type="file" name="f" size=40></td></tr>


<tr height=30>
<td>&nbsp;</td>
<td>
<input type="submit" name=import value="Import" class=btnred><input type=button value="Cancel" class=button 
onClick="document.location='##PAGE_URL##pid=##pid##'">

</td>
</tr>


<tr><td height=10 colspan=2></td><tr>

</table>

</form>

<b>
New data will be imported into the target ##CATEGORY|lc##.
<br>
Uploaded file should contain lines in the following format:
</b>

<br><br>

category1<br>
category1|subcategory1<br>
category1|subcategory2<br>
category2<br>
...
Return current item: Esvon Personals