-Tyquan
14-11-2011, 10:19 PM
RadiPanel Addons Needed if Not Have PODPANEL Addons , If Im Coding HTML , I need a HTML one ?
---------------------HERES THE CODE----------------------------------------
<?php include("../config.php");
include("../functions.php");
$siteinfo = mysql_query("SELECT * FROM info");
$siteinfo = mysql_fetch_array($siteinfo);
$info = mysql_query("SELECT * from `info`");
$info = mysql_fetch_array($info);
$ip = getenv("REMOTE_ADDR");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
[@]@import url( _css/style.css )[/@];
</style>
<style>
.announcement{
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border-left:1px solid #ffcfcf;
border-right:1px solid #ffcfcf;
border-top:1px solid #ffcfcf;
border-bottom:1px solid #ffcfcf0;
background-color: #ffcfcf;
padding:10px;
color:#801b1b;
}
</style>
<title><?php echo $info[HabbTunez]; ?> :: DJ Application</title>
</script>
</head>
<center>
<div class="wrapper">
<div class="center_blue">
<img src="_gd/blue.php?t=<?php echo $info[sitename]; ?> DJ Application&s=7&w=1" align="left" /></div>
<div class="box_background">
<?php
if($siteinfo[applicationsdisabled]== 1){
echo("
<div class=\"announcement\"><b><center>Sorry, the Radio DJ Applications are currently Closed. Check back to see when they open.</center></b>
</div>
");
} else {
if ($_POST) {
$habbo_name = cleanTag($_POST['habbo_name']);
$forum = cleanTag($_POST['forum']);
$email = cleanTag($_POST['email']);
$age = cleanTag($_POST['age']);
$djName = cleanTag($_POST['djName']);
$clip = cleanTag($_POST['clip']);
$experience = cleanTag($_POST['experience']);
$why = cleanTag($_POST['why']);
if($habbo_name == "" || $forum == "" || $email == "" || $age == "" || $age == "Please Choose" || $djName == "" || $clip == "" || $clip == "http://" || $experience == "" || $why == ""){
die("<p>Error: All fields need to be entered.</p>");
}
$insertSQL = "INSERT INTO djapplication (habboName, forumName, email, age, djName, voiceClip, experience, why, action) VALUES ('{$habbo_name}', '{$forum}', '{$email}', '{$age}', '{$djName}', '{$clip}', '{$experience}', '{$why}', 'No action, yet');";
$insertQ = mysql_query($insertSQL) or die(mysql_error());
$date = date("d/m/y - h:ia");
$insertLog = "INSERT INTO `logs` ( `log` , `date` ) VALUES ('<b>$habbo</b>($email) has applied as a Radio DJ', '$date')";
mysql_query($insertLog) or die('MySQL Error - Could not insert a log.');
?>
<div class="announcement"> <center><strong> Success </strong><br>
your Application has been sent!</center></div><br>
<?php
} else {
?>
<p>
<form method="post" action="djapplication.php">
<table align="center" border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody><tr>
<td align="right">
<b>Habbo Name:</b>
</td>
<td class="field">
<input name="habbo_name" id="habbo_name" type="text" style="width: 162px;" />
</td>
</tr>
<tr>
<td align="right">
<strong>Forum Name:</strong>
</td>
<td class="field">
<input name="forum" id="forum" style="width: 162px;" type="text">
</td>
</tr>
<tr>
<td align="right">
<b>Email Address:</b>
</td>
<td class="field">
<input name="email" type="text" id="email" style="width: 162px;">
</td>
</tr>
<tr>
<td align="right">
<b>Age:</b>
</td>
<td class="field">
<SELECT NAME="age" style="width: 162px;">
<OPTION VALUE="Please Choose">Please Choose</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>
</SELECT>
</td>
</tr>
<tr>
<td align="right">
<b>Preferred DJ Name:</b>
</td>
<td class="field">
<input name="djName" type="text" style="width: 162px;">
</td>
</tr>
<tr>
<td align="right">
<b>Voice Clip:</b>
</td>
<td class="field">
<input name="clip" type="text" style="width: 162px;" value="http://">
</td>
</tr>
<tr>
<td align="right">
<b>Experience:</b>
</td>
<td class="field">
<textarea name="experience" cols="25" rows="4" id="experience" class="bodytext"></textarea>
</td>
</tr>
<tr>
<td align="right">
<b>Why <?php echo $info[sitename]; ?>?:</b>
</td>
<td class="field">
<textarea name="why" cols="25" rows="4" id="why" class="bodytext"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="left">
<input class="button" type="submit" name="Submit" value="SUBMIT">
</td>
</tr>
</tbody></table>
</form>
</body>
<?php
}
}
?>
</div>
<div class="box_bottom">
</div><br style="clear:both;" />
---------------------HERES THE CODE----------------------------------------
<?php include("../config.php");
include("../functions.php");
$siteinfo = mysql_query("SELECT * FROM info");
$siteinfo = mysql_fetch_array($siteinfo);
$info = mysql_query("SELECT * from `info`");
$info = mysql_fetch_array($info);
$ip = getenv("REMOTE_ADDR");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
[@]@import url( _css/style.css )[/@];
</style>
<style>
.announcement{
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border-left:1px solid #ffcfcf;
border-right:1px solid #ffcfcf;
border-top:1px solid #ffcfcf;
border-bottom:1px solid #ffcfcf0;
background-color: #ffcfcf;
padding:10px;
color:#801b1b;
}
</style>
<title><?php echo $info[HabbTunez]; ?> :: DJ Application</title>
</script>
</head>
<center>
<div class="wrapper">
<div class="center_blue">
<img src="_gd/blue.php?t=<?php echo $info[sitename]; ?> DJ Application&s=7&w=1" align="left" /></div>
<div class="box_background">
<?php
if($siteinfo[applicationsdisabled]== 1){
echo("
<div class=\"announcement\"><b><center>Sorry, the Radio DJ Applications are currently Closed. Check back to see when they open.</center></b>
</div>
");
} else {
if ($_POST) {
$habbo_name = cleanTag($_POST['habbo_name']);
$forum = cleanTag($_POST['forum']);
$email = cleanTag($_POST['email']);
$age = cleanTag($_POST['age']);
$djName = cleanTag($_POST['djName']);
$clip = cleanTag($_POST['clip']);
$experience = cleanTag($_POST['experience']);
$why = cleanTag($_POST['why']);
if($habbo_name == "" || $forum == "" || $email == "" || $age == "" || $age == "Please Choose" || $djName == "" || $clip == "" || $clip == "http://" || $experience == "" || $why == ""){
die("<p>Error: All fields need to be entered.</p>");
}
$insertSQL = "INSERT INTO djapplication (habboName, forumName, email, age, djName, voiceClip, experience, why, action) VALUES ('{$habbo_name}', '{$forum}', '{$email}', '{$age}', '{$djName}', '{$clip}', '{$experience}', '{$why}', 'No action, yet');";
$insertQ = mysql_query($insertSQL) or die(mysql_error());
$date = date("d/m/y - h:ia");
$insertLog = "INSERT INTO `logs` ( `log` , `date` ) VALUES ('<b>$habbo</b>($email) has applied as a Radio DJ', '$date')";
mysql_query($insertLog) or die('MySQL Error - Could not insert a log.');
?>
<div class="announcement"> <center><strong> Success </strong><br>
your Application has been sent!</center></div><br>
<?php
} else {
?>
<p>
<form method="post" action="djapplication.php">
<table align="center" border="0" cellpadding="2" cellspacing="2" width="100%">
<tbody><tr>
<td align="right">
<b>Habbo Name:</b>
</td>
<td class="field">
<input name="habbo_name" id="habbo_name" type="text" style="width: 162px;" />
</td>
</tr>
<tr>
<td align="right">
<strong>Forum Name:</strong>
</td>
<td class="field">
<input name="forum" id="forum" style="width: 162px;" type="text">
</td>
</tr>
<tr>
<td align="right">
<b>Email Address:</b>
</td>
<td class="field">
<input name="email" type="text" id="email" style="width: 162px;">
</td>
</tr>
<tr>
<td align="right">
<b>Age:</b>
</td>
<td class="field">
<SELECT NAME="age" style="width: 162px;">
<OPTION VALUE="Please Choose">Please Choose</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>
</SELECT>
</td>
</tr>
<tr>
<td align="right">
<b>Preferred DJ Name:</b>
</td>
<td class="field">
<input name="djName" type="text" style="width: 162px;">
</td>
</tr>
<tr>
<td align="right">
<b>Voice Clip:</b>
</td>
<td class="field">
<input name="clip" type="text" style="width: 162px;" value="http://">
</td>
</tr>
<tr>
<td align="right">
<b>Experience:</b>
</td>
<td class="field">
<textarea name="experience" cols="25" rows="4" id="experience" class="bodytext"></textarea>
</td>
</tr>
<tr>
<td align="right">
<b>Why <?php echo $info[sitename]; ?>?:</b>
</td>
<td class="field">
<textarea name="why" cols="25" rows="4" id="why" class="bodytext"></textarea>
</td>
</tr>
<tr>
<td colspan="2" align="left">
<input class="button" type="submit" name="Submit" value="SUBMIT">
</td>
</tr>
</tbody></table>
</form>
</body>
<?php
}
}
?>
</div>
<div class="box_bottom">
</div><br style="clear:both;" />