<?php

include "../inc/sqlinf.php";
include "../inc/auth.php";
include "apple.inc";
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">
<table width="100%" border="5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
  <tr> 
        <td> 
          <?PHP
$SQL = "SELECT * from HOSTINGPACKAGES WHERE ID='$id'";
$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> New Hosting 
                        Package | <a href="hostingpackages.php"><font color="#CCCCCC">Refresh</font></a></b></font></td>
                </tr>
                <tr> 
                  <td bgcolor="#EEEEEE" width="10%"> <br>
                  </td>
                  <td bgcolor="#F9F9F9" width="90%"> 
                        <form name="form1" method="post" action="app/hp.php?which=HOSTINGPACKAGES&return=hostingpackages<?php echo $x; ?>&id=<?php echo $id; ?>">
                          <div align="left"> <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="1" 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="2" 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="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="left"><font color="#666666"><b>OFFER FREE TRIAL?</b></font></div>
                                        </td>
                                        <td><font color="#666666"><b> 
                                          <input type="radio" name="8" value="freetrial" <?php if ($freetrial == 'freetrial'){echo "checked";}else{} ?>>
                                          </b></font></td>
                                        <td><font color="#666666"><b> 
                                          <input type="radio" name="8" value="notrial" <?php if ($freetrial == 'notrial'){echo "checked";}else{} ?>>
                                          </b></font></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="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="center"><font color="#666666"><b>IF YES, HOW 
                                                LONG? </b></font></div>
                                        </td>
                                        <td> 
                                          <div align="center"><font color="#666666"><b> 
                                                <select name="9">
                                                  <option value="<?php if ($freetrial == 'freetrial') {echo $yy;} else {} ?> "> 
                                                  <?php if ($freetrial == 'freetrial') {echo $yy;} else {} ?>
                                                  </option>
                                                  <option value="1">1</option>
                                                  <option value="2">2</option>
                                                  <option value="3">3</option>
                                                  <option value="4">4</option>
                                                  <option value="5">5</option>
                                                  <option value="6">6</option>
                                                  <option value="7">7</option>
                                                  <option value="8">8</option>
                                                  <option value="9">9</option>
                                                  <option value="10">0</option>
                                                  <option value="11">11</option>
                                                  <option value="12">12</option>
                                                  <option value="13">13</option>
                                                  <option value="14">14</option>
                                                  <option value="15">15</option>
                                                  <option value="16">16</option>
                                                  <option value="17">17</option>
                                                  <option value="18">18</option>
                                                  <option value="19">19</option>
                                                  <option value="20">20</option>
                                                  <option value="21">21</option>
                                                  <option value="2">22</option>
                                                  <option value="23">23</option>
                                                  <option value="24">24</option>
                                                  <option value="25">25</option>
                                                  <option value="26">26</option>
                                                  <option value="27">27</option>
                                                  <option value="28">28</option>
                                                  <option value="29">29</option>
                                                  <option value="30">30</option>
                                                </select>
                                                </b></font></div>
                                        </td>
                                        <td><font color="#666666"><b><span class="ppsmallerror"> 
                                          <select name="10">
                                                <option value="<?php if ($freetrial == 'freetrial') {echo $nn;} else {} ?> "> 
                                                <?php if ($freetrial == 'freetrial') {echo $nn;} else {} ?>
                                                </option>
                                                <option value="D">Day(s)</option>
                                                <option value="W">Week(s)</option>
                                                <option value="M">Month(s)</option>
                                                <option value="Y">Year(s)</option>
                                          </select>
                                          </span></b></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" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9" cellspacing="0">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td colspan="2"><font color="#666666">Leave price field blank 
                                          to disable billing cycle option, price format 0.01, do not 
                                          include $ symbol</font></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td colspan="2"> 
                                          <div align="left"><font color="#666666"><b>PRICE</b></font></div>
                                        </td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="left"><font color="#666666"><b>MONTHLY</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="left"><font color="#666666"><b> 
                                                <input type="text" name="3" value="<?php echo $monthly; ?>" size="5">
                                                </b></font></div>
                                        </td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td><b><font color="#666666">QUARTERLY</font></b></td>
                                        <td><b> <font color="#666666"> 
                                          <input type="text" name="4" value="<?php echo $quarterly; ?>" size="5">
                                          </font></b></td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td><b><font color="#666666">SEMIANNUALLY</font></b></td>
                                        <td><b> <font color="#666666"> 
                                          <input type="text" name="5" value="<?php echo $semiannually; ?>" size="5">
                                          </font></b></td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td><b><font color="#666666">ANNUALLY</font></b></td>
                                        <td><b> <font color="#666666"> 
                                          <input type="text" name="6" value="<?php echo $annually; ?>" size="5">
                                          </font></b></td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td><b><font color="#666666">2 YEARS</font></b></td>
                                        <td><b> <font color="#666666"> 
                                          <input type="text" name="7" value="<?php echo $twoyears; ?>" size="5">
                                          </font></b></td>
                                  </tr>
                                </table>
                                <br>
                                <table width="100%" cellspacing="0" cellpadding="0">
                                  <tr> 
                                        <td height="5" bgcolor="#FFFFFF"></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9" cellspacing="0">
                                  <tr valign="middle" bgcolor="#F9F9F9"> 
                                        <td bgcolor="#FFFFFF"> <font color="#666666">Create an email 
                                          message for this package, this will be sent to your customer 
                                          after signup</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="11" value="<?php echo $subject; ?>" size="30">
                                                </b></div>
                                        </td>
                                        <td><b> 
                                          <input type="text" name="12" 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="13" 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>
                <tr bgcolor="#000066"> 
                  <td colspan="2"><font color="#FFFFFF">&raquo;<b> Current Hosting Packages</b></font></td>
                </tr>
                <tr> 
                  <td bgcolor="#EEEEEE" width="10%" height="76">&nbsp;</td>
                  <td bgcolor="#F9F9F9" width="90%" height="76"> 
                        <?PHP
$SQL = "SELECT * from HOSTINGPACKAGES";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'query.php';
?>
                        <table cellspacing="1" cellpadding="2" border="5" bordercolor="#F9F9F9" bgcolor="#FFFFFF" width="100%">
                          <tr> 
                                <td bgcolor="#FCFCFC" width="40%"> 
                                  <?php echo $name;?>
                                </td>
                                <td width="10%" bgcolor="#F9F9F9"> 
                                  <div align="center"><a href="hostingpackages.php?edit=tru&id=<?php echo $id; ?>">EDIT</a></div>
                                </td>
                                <td width="30%" bgcolor="#FCFCFC"> 
                                  <div align="center"><a href="app/delete.php?id=<?php echo $id; ?>&type=HOSTINGPACKAGES&return=hostingpackages">D</a> 
                                        (clicking D will delete)</div>
                                </td>
                          </tr>
                        </table>
                        <?php } ?>
                  </td>
                </tr>
          </table>
        </td>
  </tr>
</table>
</body>
</html>


