Forum Moderators: coopster

Message Too Old, No Replies

need help on my script

         

professorsunday

11:28 pm on Aug 12, 2009 (gmt 0)

10+ Year Member



i did an sms website and am trying to ontegrate a phonebook functionality and sent message storage functionality. this my first experience with sms site coding that why am stranded. my home.pho code is below,so do tell me what to do to be able to get those functions
i would post the codes in bricks

professorsunday

11:30 pm on Aug 12, 2009 (gmt 0)

10+ Year Member




#
<?
#
session_start();
#
include($HTTP_SERVER_VARS["DOCUMENT_ROOT"] ."/includes/config.inc.php");
#
if(isset($_SESSION['user_id'])){
#
$user_id = $_SESSION['user_id'];
#
} else {redirect("login.php"); exit();}
#

#
$num_rows = CountRecords("SELECT * FROM ".TBL_CREDITS." WHERE user_id = $user_id");
#
if($num_rows >0){
#
$result = selectFrom("SELECT * FROM ".TBL_CREDITS." WHERE user_id = $user_id");
#
$user_credit = $result['credit'];
#

#
} else { $user_credit = 0; }
#

#

#
if($info == "Submit"){
#

#

#
if ($f_name != "") {
#
$valid = true;
#

#
}else { $valid = false; $msg = "Please Enter Your Name."; }
#

#
if($valid){
#
update("UPDATE ".TBL_USERS." SET user_name = '$f_name', d_name = '$send_name' WHERE id = $user_id");
#
$error = true; $msg = "Information Updated Successfully.";
#
} else { $error = true; }
#

#
}
#

#
if($password == "Submit"){
#
$result = selectFrom("SELECT * FROM ".TBL_USERS." WHERE id = $user_id");
#

#
if($pw == $result['pass']){
#
if($pw1 != ""){
#
if($pw1 == $pw2){
#
$valid = true;
#
}else { $valid = false; $msg = "Password Mismatch."; }
#
} else { $valid = false; $msg = "Please Enter New Password."; }
#
} else { $valid = false; $msg = "Old Password Incorrect."; }
#

#
if($valid){
#
update("UPDATE ".TBL_USERS." SET pass = '$pw1' WHERE id = $user_id");
#
$error = true; $msg = "Password Changed Successfully.";
#
} else { $error = true; }
#

#
}
#

#

#

#

#
$result = selectFrom("SELECT * FROM ".TBL_USERS." WHERE id = $user_id");
#

#
?>
#

#
<!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=iso-8859-1" />
#
<title>::Notice1:: - SMS ALERT SITE</title>
#
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
#
</head>
#

#
<body>
#

#
<div id="wrapper">
#

#
<div id="header">
#
<h1>Noticeone</h1>
#

#
</div>
#

#
<div id="menu">
#
<ul>
#
<li> <a href="home.php">Home </a> </li>
#
<li><a href="home.php?p=pricing">Pricing</a> </li>
#

#
<!-- <li><a href="home.php?p=pricing">Payment</a> </li> -->
#

#
<li><a href="contact.php">Contact Us</a></li>
#
<li><a href="payment.php">Payment</a></li>
#
<li> <a href="logout.php">Logout </a></li>
#
</ul>
#
</div>
#

#
<div id="sidebar">
#
<!-- <div id="feed">
#
<a class="feed-button" href="#">&nbsp;</a>
#
</div> -->
#
<br />
#

#
<div id="sidebar-top">
#

#
</div>
#
<ul>
#
<li><a href="home.php?p=pricing">Purchase Notice Credit</a></li>
#
<li><a href="home.php?p=single">Send Single Alert</a></li>
#
<li><a href="home.php?p=bulk">Send Multiple Alert</a></li>
#
<li><a href="home.php?p=settings">Settings</a></li>
#

#
<li><a href="home.php?p=integrate">Integrate to your website</a></li>
#
<li> <a href="logout.php">Logout </a></li>
#
</ul>
#
<div id="sidebar-bottom">
#
&nbsp;
#
</div> <br />
#

#
</div>
#
<div id="content">
#
<!-- <div id="ad-top"> -->
#
<!-- Insert 468x60 banner advertisement -->
#
<!--</div> -->
#
<br />
#
<? if($p == "checkout"){
#
$ipn = md5(uniqid(rand( ) ));
#
$transaction_id = substr($ipn,0,9);
#
$Price = $_POST['Price'];
#
$price_array = explode("N",$pr_show);
#

#
?>
#
<div class="entry">
#
<style type="text/css">
#
<!--
#
.style1 {font-size: 14px}
#
-->
#

#
</style>
#

#
<table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#

#

#
<tr>
#
<td align="center" valign="top">
#
<div style="width:80%; border:1px dotted #ffcc00; margin-top:10px; padding:5px; background:#F0F0F0">Please note that you can purchase Notice credits through <strong>Bank Payment</strong> by clicking <a href="payment.php" target="_self">here</a>.Thanks</div>
#

#
<div align="center">
#
You are purchasing <b><?=$quantity?></b> Noticeone credits at <b><?=$pr_show?></b>.<br>
#
The reference code for this transaction is <br><b><?=$transaction_id?></b> <br>Please note this ID for future reference. <div style="height:40px; padding-top:10px; border-bottom:1px dotted #ccc">
#
<form action="https://www.example.com/pay_pro/checkout.asp" method="POST" name="actform">
#

#
<input type="hidden" name="payee_account" value="17040M">
#

#
<input type="hidden" name="payee_name" value="Noticeone SMS Alert service">
#
<input type="hidden" name="currency" value="NGN">
#
<input type="hidden" name="transaction_id" value="<?=$transaction_id?>">
#
<input type="hidden" name="price_1" value="<?=$pr?>">
#
<input type="hidden" name="item_1" value="Purchase of Noticeone Notice credit">
#
<input type="hidden" name="quantity_1" value="<?=$quantity?>">
#
<input type="hidden" name="payment_return" value="http://example.com/success.php?user=<?=$user_id?>&trans_id="<?=$transaction_id?>&amt=<?=$price_array[1]?>&quantity=<?=$quantity?> >
#
<input type="hidden" name="failure_return" value="http://example.com/fail.php?user=<?=$user_id?>">
#

#
<input type="hidden" name="payment_email" value="yes" >
#
<input type="hidden" name="failure_email" value="yes" >
#

#

#

#
<input type="submit" value="Pay with NetNaira &gt;&gt;" />
#
</form></div>
#
</div></td>
#

#
</tr>
#

#

#
</table>
#

#

#
</div>
#
<? } if($p == "integrate"){ ?>
#
<div class="entry">
#
<style type="text/css">
#
<!--
#
.style1 {font-size: 14px}
#
.style2 {
#
font-size: 12px;
#
color: #999999;
#
}
#
.style4 {
#
font-size: 12px;
#
color: #999999;
#
font-weight: bold;
#
}
#
-->
#

#
</style>
#

#
<table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#
<form action="" method="post">
#
<tr>
#
<td width="100%" height="38" valign="middle"><span class="style1"><strong>Integration</strong></span></td>
#
</tr>
#
<tr>
#
<td width="548" height="38" valign="middle"><p>You can integrate Noticeone relatively easily to your website or any other software that requires an SMS sending feature. This enables you send SMS messages automatically from that website or software. </p>
#

#
<p>We are more than willing to put you through the integration process no matter your website or software platform. Please <a href="contact.php">contact us</a> for this service.</p></td>
#
</tr>
#
</form>
#
</table>
#

#

#
</div>
#
<? } if($p == "settings"){ ?>
#
<div class="entry">
#
<style type="text/css">
#
<!--
#
.style1 {font-size: 14px}
#
.style2 {
#
font-size: 12px;
#
color: #999999;
#
}
#
.style4 {
#
font-size: 12px;
#
color: #999999;
#
font-weight: bold;
#
}
#
-->
#

#
</style>
#

#
<table width="548" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#
<form action="" method="post">
#
<tr>
#
<td height="38" colspan="2" valign="middle"><span class="style1"><strong>Settings</strong></span>
#
<? if($error){?>
#
<div align=center><font color=red size=1><br><b><?=$msg?></b></font></div> </font>
#
<? } ?>
#
</td>
#
</tr>
#
<tr>
#
<td width="165" height="22" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
#

#
<td width="383" valign="middle"><span class="style1"> <span class="style2">
#
<label><strong>Change Account Password </strong></label>
#
</span> </span></td>
#
</tr>
#
<tr>
#
<td height="26" valign="top">Current Password: </td>
#
<td valign="middle"><input name="pw" type="password" id="pw" value="" maxlength="18"></td>
#

#
</tr>
#
<tr>
#
<td height="26" valign="top">New Password: </td>
#
<td valign="middle"><input name="pw1" type="password" id="pw1" value="" maxlength="18"></td>
#
</tr>
#
<tr>
#
<td height="26" valign="top">Retype New Password: </td>
#
<td valign="middle"><input name="pw2" type="password" id="pw2" value="" maxlength="18"></td>
#

#
</tr>
#
<tr>
#
<td height="39" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
#
<td valign="middle"><label>
#
<input name="password" type="submit" id="password" value="Submit" />
#
</label></td>
#
</tr>
#
<tr>
#
<td height="26" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
#

#
<td valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
#
</tr>
#
<tr>
#
<td height="26" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
#
<td valign="middle"><span class="style4">Change Account info </span></td>
#
</tr>
#
<tr>
#
<td height="26" valign="top">Full Name : </td>
#

#
<td valign="middle"><input name="f_name" type="text" id="f_name" value="<?=$result['user_name']?>" maxlength="40"></td>
#
</tr>
#
<tr>
#
<td height="26" valign="top">Default Sender Name : </td>
#
<td valign="middle"><input name="send_name" type="text" id="send_name" value="<?=$result['d_name']?>" maxlength="11"></td>
#
</tr>
#
<tr>
#
<td height="26" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
#

#
<td valign="middle"><!--DWLayoutEmptyCell-->&nbsp;</td>
#
</tr>
#
<tr>
#
<td height="24">&nbsp;</td>
#
<td valign="middle"><label>
#
<input name="info" type="submit" id="info" value="Submit">
#
</label></td>
#
</tr>
#
<tr>
#

#
<td height="27">&nbsp;</td>
#
<td>&nbsp;</td>
#
</tr>
#
</form>
#
</table>
#

#

#
</div>
#
<? } if($p == "bulk"){ ?>
#
<div class="entry">
#
<style type="text/css">
#
<!--
#
.style1 {color: #CC0000}
#
.style2 {
#
color: #D50000;
#
font-size: 10px;
#
}
#
.style5 {color: #CC0000; font-size: 10px; }
#
-->
#

#
</style>
#
<script>
#

[edited by: eelixduppy at 12:17 am (utc) on Aug. 13, 2009]
[edit reason] switched to example.com [/edit]

professorsunday

11:32 pm on Aug 12, 2009 (gmt 0)

10+ Year Member




function docount(me) {
#

#
if(me.value.length >= 160) {
#
me.value=me.value.substr(0, 160);
#
}
#
document.getElementById('countt').innerHTML = 160-me.value.length;
#
}
#
</script>
#
<table width="456" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#
<form action="<?=HOST_URL?>/smsms.php" method="post" enctype="multipart/form-data">
#
<tr>
#
<td height="38" colspan="2" valign="middle" bgcolor="#CCCCCC" style="padding-left:10px"><strong>Send Multiple Alert </strong></td>
#
</tr>
#
<tr>
#
<? if($error == "true") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Credit Exausted</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<? if($sent == "true") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Message Sent</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<? if($sent == "fail") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Unable to Sent Message</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<? if($sent == "24") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Unable to Sent Message to given numbers. Please Check Your Phone Numbers</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<td width="146" height="37" align="right" valign="top" style="padding-top:15px; padding-right:5px">From: <br />
#
</td>
#
<td width="310" valign="top" style="padding-top:15px"><label>
#
<input name="from" type="text" id="from" value="<?=$result['d_name']?>" size="15" maxlength="11">
#
</label> <span class="style5">e.g. Company_name, Ade (No spaces) </span></td>
#
</tr>
#
<tr>
#

#
<td height="44" align="right" valign="top" style="padding-top:10px; padding-right:5px">Message:</td>
#
<td rowspan="2" valign="top" style="padding-top:10px"><label>
#
<textarea name="msg" cols="35" rows="6" wrap="physical" id="msg" onKeyUp="docount(this)"></textarea>
#
</label></td>
#
</tr>
#
<tr align="right">
#
<td height="42" valign="top" style="color:#ff0000; padding-right:5px"><b><span id="countt" style="font-size:12px">160</span> <br>
#

#
characters left</b></td>
#
</tr>
#
<tr>
#
<td height="121" align="right" valign="top" style="padding-top:25px; padding-right:5px">To (Phone numbers):<br />
#
<span class="style1">Enter receivers' phone numbers here. Each number should be seperated by a comma e.g. 080123456789, 080987654321 </span></td>
#
<td valign="top" style="padding-top:25px"><textarea name="to" cols="35" rows="6" wrap="physical" id="to"></textarea>
#
<br />
#

#
<br />
#
</td>
#
</tr>
#

#
<tr>
#
<td height="44" align="right" valign="top">&nbsp; </td>
#
<td valign="top" style="padding-top:25px"><strong>OR</strong></td>
#
</tr>
#
<tr>
#

#
<td height="76" align="right" valign="top" style="padding-top:25px; padding-right:5px">To (Phone numbers) :<br />
#
<span class="style2">Upload comma seperated file<br />
#
(CSV file) </span></td>
#
<td valign="top" style="padding-top:25px"><label>
#
<span >
#
<input name="file" type="file" id="file" />
#
<strong>[ Optional ] </strong></span></label></td>
#

#
</tr>
#
<tr>
#
<td height="39" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
#
<td valign="middle"><label></label>
#
<label>
#
<input type="submit" name="Submit" value="Submit" />
#
</label></td>
#
</tr>
#
</form>
#

#
</table>
#

#

#
</div>
#
<? } if($p == "single"){ ?>
#
<div class="entry">
#
<script>
#
function docount(me) {
#

#
if(me.value.length >= 160) {
#
me.value=me.value.substr(0, 160);
#
}
#
document.getElementById('countt').innerHTML = 160-me.value.length;
#
}
#

#
</script>
#
<table width="476" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#
<form action="<?=HOST_URL?>/sssms.php" method="post">
#
<tr>
#
<td height="38" colspan="2" valign="middle" bgcolor="#CCCCCC" style="padding-left:10px"><strong>Send Single Alert </strong></td>
#
</tr>
#
<? if($error == "true") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Credit Exausted</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<? if($sent == "true") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Message Sent</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<? if($sent == "fail") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Unable to Sent Message</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<? if($sent == "24") { ?>
#
<tr>
#
<td align="center" valign="middle" colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<tr><td valign="center" height="40"><div align="center"><span style="padding-left:4px;padding-right:4px; background:yellow; font-size:11px"><b>Unable to Sent Message to <?=$phone?>. Please Check Your Phone Number</b></div></td></tr>
#
</table></td>
#
</tr>
#
<? } ?>
#
<tr>
#
<td width="129" height="50" align="right" valign="middle" style="padding-right:5px">From:</td>
#

#
<td width="419" height="50" valign="middle"><label>
#
<input name="from" type="text" id="from" maxlength="11" value="<?=$result['d_name']?>">
#
e.g. Company_name, Ade (No spaces) </label></td>
#
</tr>
#
<tr>
#
<td height="50" align="right" valign="middle" style="padding-right:5px">To:</td>
#
<td height="50" valign="middle"><input name="to" type="text" id="to" value="" maxlength="18">
#
Phone number </td>
#

#
</tr>
#
<tr>
#
<td height="25" align="right" valign="top" style="padding-right:5px">Message:</td>
#
<td rowspan="2" valign="top"><label>
#
<textarea name="msg" cols="40" rows="5" id="msg" onKeyUp="docount(this)"></textarea>
#
</label></td>
#
</tr>
#
<tr align="right">
#

#
<td height="74" valign="top" style="color:#ff0000;padding-right:5px"><b><span id="countt" style="font-size:12px">160</span> <br>
#
characters left</b></td>
#
</tr>
#
<tr>
#
<td height="50">&nbsp;</td>
#
<td valign="middle"><label>
#
<input type="submit" name="Submit" value="Send">
#

#
</label></td>
#
</tr>
#
<tr>
#
<td height="27">&nbsp;</td>
#
<td>&nbsp;</td>
#
</tr>
#
</form>
#
</table>
#

#

#
</div>
#
<? } if($p == "pricing"){ ?>
#
<div class="entry">
#
<style type="text/css">
#
<!--
#
.style1 {font-size: 14px}
#
-->
#

#
</style>
#

#
<table width="100%" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#

#

#
<tr>
#
<td align="center" valign="top">
#
<div style="width:80%; border:1px dotted #ffcc00; margin-top:10px; padding:5px; background:#F0F0F0">Please note that you can purchase Notice credits through <strong>Bank Payment</strong> by clicking <a href="payment.php" target="_self">here</a>.Thanks</div>
#

#
<div align="center">
#
<div><span class="style1"><strong>Pricing</strong></span></div>
#
<table width="60%" bgcolor="#66FFFF">
#
<tr bgcolor="#66FFFF">
#
<td><strong>Quantity</strong></td>
#
<td><strong>Unit Cost</strong></td>
#
</tr>
#
<?
#

#
$result = SelectMultiRecords("SELECT * FROM credits_mgmt");
#

#
for($i = 0; $i<count($result);$i++)
#
{
#

#
?>
#
<tr bgcolor="#FFFFFF">
#
<td><?=$result[$i]['amount']?></td>
#

#
<td>N<?=floatval($result[$i]['amt'])?></td>
#
</tr>
#
<? } ?>
#

#
</table>
#

#
<script language="JavaScript">
#
var max_qnt=parseInt(20000);
#
function calc_amount() {
#
var q = document.getElementById('quantity').value;
#
var unit_price =0;
#
if( q != '' && !parseInt(q)) {
#
alert('Quantity must be numbers only');
#
document.getElementById('quantity').value='';
#
return false;
#
}
#
if(q != '') {
#

#
q = parseInt(q);
#
if(q >= 1 && q <= 500) {
#
unit_price = <?=$result['0']['amt']?>;
#
}if(q >= 501 && q <= 5000) {
#
unit_price = <?=$result[1]['amt']?>;
#
}if(q >= 5001 && q <= 20000) {
#
unit_price = <?=$result[2]['amt']?>;
#
}
#
price = q*unit_price;
#
document.getElementById('Price').value='N'+price;
#
document.getElementById('pr_show').value='N'+price;
#
document.getElementById('pr').value=unit_price;
#
}
#
}
#

#
function doSubmit() {
#
if(document.getElementById('quantity').value < 1) {
#
alert("You must purchase a minimum of 1 credits at time.");
#
return false;
#
}else{
#
if(document.getElementById('quantity').value > max_qnt) {
#

#
alert( 'You can not purchase more than '+max_qnt+' credits directly online. Please contact us for larger purchases.');
#
return false;
#
}
#
return confirm("You have chosen to purchase "+parseInt(document.getElementById('quantity').value)+" Noticeone credits valued at "+document.getElementById('Price').value+" (NGN).\nContinue?");
#
}
#
}
#
</script>
#
<script>
#
function calc_amt (q) {
#
if(q > 1 && q < 500) {
#
unit_price = <?=floatval($result[0]['amt'])?>;
#
}if(q > 501 && q < 5000) {
#
unit_price = <?=floatval($result[1]['amt'])?>;
#
}if(q > 5001 && q < 20000) {
#
unit_price = <?=floatval($result[2]['amt'])?>;
#
}}
#
</script> </div></td>
#

#
</tr>
#
<tr>
#

#
<td height="38" valign="middle"><span class="style1"><strong><br>
#
Purchase credits </strong></span></td>
#
</tr>
#
<form name="form1" method="post" action="?p=checkout" enctype="multipart/form-data">
#
<tr>
#
<td align="center">
#
Enter number of Credits to be bought:<br>
#
<input name="quantity" type="text" id="quantity" size="6" maxlength="5" onKeyUp="calc_amount()">
#

#
<input name="Price" type="text" id="Price" value="N0.00" size="10" disabled >
#
<input type="submit" name="Submit" value="Check Out" onClick="return doSubmit()">
#
<input type="hidden" name="pr" id="pr" value="" >
#
<input type="hidden" name="pr_show" id="pr_show" value="" >
#
</td></tr>
#
</form>
#
</table>
#

#

#
</div>
#
<? } if(!$p){ ?>
#
<div class="entry">
#
<div class="entry-title">Welcome, <?=$result['user_name']?> </div>
#

#
<div class="date">This is your control panel where you can perform various tasks on your account.</div>
#

#
<table width="548" border="0" cellpadding="0" cellspacing="0">
#
<!--DWLayoutTable-->
#

#
<tr>
#
<td width="520" height="50" bordercolor="#999999"; style="font-size:14px">You have <b><?=$user_credit?></b> Notice credits left <a href="home.php?p=pricing">[ Buy more credits ]</a></td>
#

#
</tr>
#
<tr>
#
<td height="30" style="font-size:14px; padding-left:50px"><strong>:: <a href="?p=single">Send Single Alert</a> </strong></td>
#
</tr>
#
<tr>
#
<td height="30" style="font-size:14px; padding-left:50px"><strong>:: <a href="?p=bulk">Send Multiple Alert </a></strong></td>
#

#
</tr>
#
<tr>
#
<td height="30" style="font-size:14px; padding-left:50px"><strong>:: <a href="?p=settings">Change your account settings </a></strong></td>
#
</tr>
#
<tr>
#
<td height="30" style="font-size:14px; padding-left:50px"><strong>:: <a href="logout.php">Log Out </a></strong></td>
#
</tr>
#

#

#
</table>
#

#

#
</div>
#
<? } ?>
#
</div>
#

#

#

#
<div id="footer">
#
<div id="footer-valid">
#

#

#
</div> </div>
#

#
</div>
#

#
</body>
#
</html>

Thanks