<?php
include 'apple.inc';
include "../inc/sqlinf.php";
include '../inc/auth.php';

if ($edit == 'tru') {

$SQL = "SELECT * from HOSTINGPACKAGES WHERE ID = '$id'";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'query.php';}
$x = '&edit=tru';
}

?>

<html>
<head>
<title>Paypal Information</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000000" vlink="#000000" alink="#000000">
<table width="100%" border="5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
  <tr> 
        <td> 
          <?PHP
$SQL = "SELECT * from FREEHOSTING";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'query.php';}?>
          
          
          <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
                <tr bgcolor="#000066"> 
                  <td width="100%" colspan="2"> <font color="#FFFFFF">&raquo;<b> Order 
                        Page Configuration</b></font></td>
                </tr>
                <tr> 
                  <td width="10%" bgcolor="#EEEEEE"> <br>
                  </td>
                  <td width="90%" bgcolor="#F9F9F9"> 
                        <form name="form1" method="post" action="app/function.php?which=FREEHOSTING&return=order&edit=tru&id=<?php echo $id; ?>&t1=FREE&t2=SYN&t3=SUB&t4=NAME&t5=WHMNAME&t6=SUBJECT&t7=FROOM&t8=MESSAGE">
                          <div align="left"> <br>
                                <table border="0" cellspacing="0" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#F9F9F9"> 
                                        <td bgcolor="#FFFFFF"> 
                                          <div align="center"><font color="#666666">Adjustments to 
                                                this page will be reflected on the customer <a href="../order.php" target="main">order 
                                                page</a></font></div>
                                        </td>
                                  </tr>
                                </table>
                                <br>
                                <table width="100%" cellspacing="0" cellpadding="0">
                                  <tr> 
                                        <td height="5" bgcolor="#FFFFFF"></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="center"><font color="#666666"><b>IS THIS A FREE 
                                                HOSTING COMPANY?</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b> 
                                                <input type="radio" name="1" value="YES" <?php if ($free == 'YES'){echo "checked";}else{} ?>>
                                                </b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b> 
                                                <input type="radio" name="1" value="NO" <?php if ($free == 'NO'){echo "checked";}else{} ?>>
                                                </b></font></div>
                                        </td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td>&nbsp;</td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b>Y</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b>N</b></font></div>
                                        </td>
                                  </tr>
                                </table>
                                <br>
                                <table width="100%" cellspacing="0" cellpadding="0">
                                  <tr> 
                                        <td height="5" bgcolor="#FFFFFF"></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="center"><font color="#666666"><b>USE SUBDOMAIN 
                                                SIGNUPS?</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b> 
                                                <input type="radio" name="2" value="YES" <?php if ($syn == 'YES'){echo "checked";}else{} ?>>
                                                </b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b> 
                                                <input type="radio" name="2" value="NO" <?php if ($syn == 'NO'){echo "checked";}else{} ?>>
                                                </b></font></div>
                                        </td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td>&nbsp;</td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b>Y</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b>N</b></font></div>
                                        </td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="0" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#F9F9F9"> 
                                        <td bgcolor="#FFFFFF"> <font color="#666666">If set to <b>YES</b> 
                                          above, users will choose a subdomain name. If set to <b>NO 
                                          </b>users will be allowed to choose their own domain name. 
                                          <b>This will effect both free and pay hosting.</b></font></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle"> 
                                        <td bgcolor="#FFFFFF"> 
                                          <div align="center"><font color="#666666"><b>YOUR DOMAIN 
                                                NAME IF USING SUBDOMAIN SIGNUPS</b></font></div>
                                        </td>
                                        <td bgcolor="#FFFFFF"> 
                                          <div align="center"><font color="#666666"><b>www. 
                                                <input type="text" name="3" value="<?php echo $sub; ?>">
                                                </b></font></div>
                                        </td>
                                  </tr>
                                </table>
                                <br>
                                <table width="100%" cellspacing="0" cellpadding="0">
                                  <tr> 
                                        <td height="5" bgcolor="#FFFFFF"></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="0" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#F9F9F9"> 
                                        <td bgcolor="#FFFFFF"> <font color="#666666">If this is a 
                                          free hosting company, configure your free hosting package 
                                          below </font></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="left"><font color="#666666"><b>PACKAGE DISPLAY 
                                                NAME</b></font></div>
                                        </td>
                                        <td><b> 
                                          <input type="text" name="4" value="<?php echo $name; ?>" size="30">
                                          </b></td>
                                        <td><font color="#666666">&raquo; This is what your visitors 
                                          will see</font></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="middle"> 
                                        <td> 
                                          <div align="left"><b><font color="#666666">PACKAGE WHM NAME</font> 
                                                </b></div>
                                        </td>
                                        <td><b> 
                                          <input type="text" name="5" value="<?php echo $whmname; ?>" size="30">
                                          </b></td>
                                        <td><font color="#666666">&raquo; This is the full WHM name 
                                          of the package (ie. username_package)</font></td>
                                  </tr>
                                </table>
                                <br>
                                <table width="100%" cellspacing="0" cellpadding="0">
                                  <tr> 
                                        <td height="5" bgcolor="#FFFFFF"></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="0" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#F9F9F9"> 
                                        <td bgcolor="#FFFFFF"> <font color="#666666">Define the email 
                                          message that will be sent when a visitor signs up for your 
                                          free hosting package.</font></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="left"><font color="#666666"><b>SUBJECT</b></font></div>
                                        </td>
                                        <td><b><font color="#666666">FROM</font></b></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="middle"> 
                                        <td> 
                                          <div align="left"><b> 
                                                <input type="text" name="6" value="<?php echo $subject; ?>" size="30">
                                                </b></div>
                                        </td>
                                        <td><b> 
                                          <input type="text" name="7" value="<?php echo $from; ?>" size="30">
                                          </b></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="middle"> 
                                        <td colspan="2"><font color="#666666"><b>MESSAGE</b></font> 
                                        </td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="middle"> 
                                        <td colspan="2"> 
                                          <textarea name="8" cols="62" rows="8"><?php echo $message; ?></textarea>
                                        </td>
                                  </tr>
                                  <tr bgcolor="#EEEEEE" valign="middle"> 
                                        <td colspan="2">
                                          <div align="right"><font color="#666666"><b> 
                                                <input type="submit" name="Apply" value="Apply">
                                                </b></font></div>
                                        </td>
                                  </tr>
                                </table>
                                
                          </div>
                        </form>
                  </td>
                </tr>
          </table>
        </td>
  </tr>
</table>
</body>
</html>


