<?php

include "../inc/sqlinf.php";
include "../inc/auth.php";
include "apple.inc";
?>

<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 SETTINGS";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'query.php';}
if (empty($id)) {$x='&edit=';}else{$x='&edit=tru';}
?>
          
          <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> Email 
                        Customization </b></font></td>
                </tr>
                <tr> 
                  <td bgcolor="#EEEEEE" width="10%"> <br>
                  </td>
                  
                  <td bgcolor="#F9F9F9" width="90%"> 
                        <form name="form1" method="post" action="app/function.php?which=SETTINGS&t1=S_SIGNUP&t2=S_CANCEL&t3=S_MODIFY&t4=S_FAILURE&t5=S_PAYMENT&t6=S_EOT&return=emailconfig<?php echo $x; ?>">
                          <div align="left"> <br>
                                <table border="0" cellspacing="0" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="middle" bgcolor="#FFFFFF"> 
                                        <td colspan="2" bgcolor="#FFFFFF"><font color="#666666">Here 
                                          you may customize the email messages that get sent to your 
                                          client, on signup, cancellation, end of term etc. You do 
                                          not need to change anything here &amp; should only do so, 
                                          if you know what you are doing.</font></td>
                                  </tr>
                                  <tr valign="middle" bgcolor="#FFFFFF">
                                        <td colspan="2" bgcolor="#FFFFFF"><br>
                                          <font color="#666666">Variables used in messages :<br>
                                          <br>
                                          &raquo; $message - the message assigned to the hosting package 
                                          in <a href="hostingpackages.php" target="main">Hosting Packages</a> 
                                          setup.<br>
                                          &raquo; $un - your customers username<br>
                                          &raquo; $pw - your customers password<br>
                                          &raquo; $domain - your customers domain name<br>
                                          &raquo; $name - your customers hosting package<br>
                                          &raquo; $url - http://www.yourdomain.com/Auto-Host/<br>
                                          &raquo; $members - /Auto-Host/ members directory</font></td>
                                  </tr>
                                </table>
                                <br>
                                <table border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#F9F9F9">
                                  <tr valign="top" bgcolor="#FFFFFF"> 
                                        <td> 
                                          <div align="left"><font color="#666666"><b>SIGNUP</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="left"> 
                                                
                                                <textarea name="1" cols="60" rows="5">

<?php if (empty($s_signup)){
echo '$message
<br>
<br>
Your account details are below :
<br>
<br>
Domain : <b>$domain</b>
<br>
Username : <b>$un</b>
<br>
Password : <b>$pw</b>
<br>
Package : <b>$name</b>
<br>
<br>
You may log into our client control panel at any time to view your account details
<br>
<br>
<a href=\"$url$members\">Client Area</a>
<br>
<br>
Thankyou
<br>
-Management';} else {echo $s_signup; }
?></textarea>
                                          </div>
                                        </td>
                                        
                                        <td><font color="#666666">&raquo; When visitor initially signs 
                                          up</font></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="top"> 
                                        <td> 
                                          <div align="left"><font color="#666666"><b>CANCEL</b></font></div>
                                        </td>
                                        <td> 
                                          <div align="left"> <b> 
                                                <textarea name="2" cols="60" rows="5">

<?php if (empty($s_cancel)){
echo 'You have cancelled your subscription to $name. You will still be able to access your account until the end of your subscription term. Please recover any files & backup any databases that you do not wish to lose.
<br>
<br>
Thankyou
<br>
-Management';} else {echo $s_cancel; }
?></textarea>
                                                </b></div>
                                        </td>
                                        <td><font color="#666666">&raquo; When client cancels his/her 
                                          subscription</font></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="top"> 
                                        <td><font color="#666666"><b>PAYMENT FAILURE</b></font></td>
                                        <td> 
                                          <textarea name="4" cols="60" rows="5">

<?php if (empty($s_failure)){
echo 'Your web hosting subscription to $name has failed, billing will be reattempted 3 days after failure date, and then again 5 days later, a third failure will lead to automatic cancellation of your subscription.
<br>
<br>
Thankyou
<br>
-Management ';} else {echo $s_failure; }
?>

</textarea>
                                        </td>
                                        <td><font color="#666666">&raquo; If payment fails for a billing 
                                          cycle </font></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="top"> 
                                        <td><font color="#666666"><b>PAYMENT</b></font></td>
                                        <td> 
                                          <textarea name="5" cols="60" rows="5">

<?php if (empty($s_payment)){
echo 'Your payment to $name has been successful!
<br>
<br>
You may log into our client control panel at any time to view your account details
<br>
<br>
<a href=\"$url$members\">Client Area</a>
<br>
<br>
Thankyou
<br>
-Management';} else {echo $s_payment; }
?>

</textarea>
                                        </td>
                                        <td><font color="#666666">&raquo; After each successful payment 
                                          cycle </font></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF" valign="top"> 
                                        <td><font color="#666666"><b>END OF TERM</b></font></td>
                                        <td> 
                                          <textarea name="6" cols="60" rows="5">

<?php if (empty($s_eot)){
echo 'You subscription to $name has ended, thankyou for hosting with us.
<br>
<br>
-Management';} else {echo $s_eot; }
?>

</textarea>
                                        </td>
                                        <td><font color="#666666">&raquo; If client cancels subscription, 
                                          when end of term is reached</font></td>
                                  </tr>
                                  <tr bgcolor="#EEEEEE" valign="middle"> 
                                        <td colspan="3"> 
                                          <div align="right"> 
                                                <input type="submit" name="Apply" value="Apply">
                                                <input type="hidden" name="id" value="<?php echo $id; ?>">
                                          </div>
                                        </td>
                                  </tr>
                                </table>
                          </div>
                        </form>
                  </td>
                </tr>
          </table>
        </td>
  </tr>
</table>
</body>
</html>


