<?
########## Confixx(R) 3.0 Professional ############
####### Copyright SWsoft, Inc. 2004-2005 ##########
#### http://www.sw-soft.com - info@sw-soft.com ####

if(!defined('CONFIXX'))
{
	return;
}

print_header();
$id = db_query("select id, name from custom_skins where owner_type='reseller' and anbieter='$PHP_AUTH_USER' and version='xp30'");
//echo dirname( __FILE__ );

?>
<script>
function submit_form()
{
	submit = true;
	len = document.actionform.action.length;
	if(document.actionform.action[len-1].checked)
	{
		submit = confirm('Delete?'); 
	}
	
	if(submit)
	{
		doChange();	
	}
}
</script>

<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr>
    <TD> 
<? if( db_num_rows($id) ): ?>
      <form name="actionform" method="get" action="skins.php">
        <table  border="1" cellpadding="3" cellspacing="0" bordercolorlight="<? echo $color_dark_grey; ?>" bordercolordark="#FFFFFF">
          <tr > 
            <td  colspan="2" align="left" class="titel-3" >
              <? echo ltext("sk_select_action"); ?>
              </td>
          </tr>
          <tr > 
            <td   align="left" valign="middle" colspan="2"> 
              <? echo ltext("sk_skin"); ?>
              <SELECT name="skin">
<? while( $wer = db_fetch_array($id) ): ?>
		<OPTION value="<? echo $wer["id"]; ?>"><? echo $wer["name"]; ?>
<? endwhile; ?>
              </SELECT>
            </td>
          </tr>
          <tr > 
            <td   align="left" valign="top"> 
<!--              

              <input type="radio" name="action" value="uplimages">             
              <? echo ltext("sk_upl_images"); ?>
              <br>
			  
			  <input type="radio" name="action" value="uplbuttons">               
              <? echo ltext("sk_upl_buttons"); ?>
              <br>
-->			  
              <input type="radio" name="action" value="upllogos">               
              <? echo ltext("sk_upl_logos"); ?>
              <br>
<!--			  
              <input type="radio" name="action" value="editstyle">           
              <? echo ltext("sk_edit_style"); ?>
              <br>
-->
              <input type="radio" name="action" value="adjust_workframe">           
              <? echo ltext("sk_style_adjust_workframe"); ?>
              <br>
<!--
              <input type="radio" name="action" value="newname">               
              <? echo ltext("sk_change_name"); ?>
              <br>
-->
              <input type="radio" name="action" value="delete">
               
              <? echo ltext("sk_delete"); ?>
              </td>
            <td   valign="middle" align="center"> 
	    
	    <table cellpadding="0" cellspacing="0" border="0">
	    <tr>
	    <td><input type=image border=0 src="<?=$strSkinName?>/pics/buttons/bt_img_left.gif"></td>
	    <td background="<?=$strSkinName?>/pics/buttons/bt_img_middle.jpg"><a href="javascript:submit_form()"  class="button-1"><? echo ltext("kuae_button1"); ?></a></td>
	    <td><input type=image border=0 src="<?=$strSkinName?>/pics/buttons/bt_changepass.gif"></td>
	    </tr>
	    </table></a>
            </td>
          </tr>
        </table>
        <input type="hidden" name="returnto" value="change">
        </form>
<? else: ?>
      <P><? echo ltext("sk_no_skins"); ?></P>
<? endif; ?>
    </TD>
  </TR>
</TABLE>

